Luis 4 years ago
parent
commit
c6ef4db44b
100 changed files with 0 additions and 11495 deletions
  1. BIN
      km0App/.gradle/5.6.2/executionHistory/executionHistory.bin
  2. BIN
      km0App/.gradle/5.6.2/executionHistory/executionHistory.lock
  3. BIN
      km0App/.gradle/5.6.2/fileChanges/last-build.bin
  4. BIN
      km0App/.gradle/5.6.2/fileHashes/fileHashes.lock
  5. 0
    0
      km0App/.gradle/5.6.2/gc.properties
  6. BIN
      km0App/.gradle/buildOutputCleanup/buildOutputCleanup.lock
  7. 0
    2
      km0App/.gradle/buildOutputCleanup/cache.properties
  8. 0
    1
      km0App/.vscode/plugins.json
  9. 0
    80
      km0App/.vscode/typings/cordova/cordova.d.ts
  10. 0
    26
      km0App/config.xml
  11. 0
    23
      km0App/hooks/README.md
  12. 0
    1
      km0App/jsconfig.json
  13. 0
    1
      km0App/node_modules/.bin/cordova-browser
  14. 0
    1
      km0App/node_modules/.bin/create
  15. 0
    1
      km0App/node_modules/.bin/ios-sim
  16. 0
    1
      km0App/node_modules/.bin/mime
  17. 0
    1
      km0App/node_modules/.bin/nopt
  18. 0
    1
      km0App/node_modules/.bin/semver
  19. 0
    1
      km0App/node_modules/.bin/shjs
  20. 0
    1
      km0App/node_modules/.bin/tape
  21. 0
    1
      km0App/node_modules/.bin/uuid
  22. 0
    1
      km0App/node_modules/.bin/which
  23. 0
    46
      km0App/node_modules/abbrev/LICENSE
  24. 0
    23
      km0App/node_modules/abbrev/README.md
  25. 0
    61
      km0App/node_modules/abbrev/abbrev.js
  26. 0
    57
      km0App/node_modules/abbrev/package.json
  27. 0
    236
      km0App/node_modules/accepts/HISTORY.md
  28. 0
    23
      km0App/node_modules/accepts/LICENSE
  29. 0
    142
      km0App/node_modules/accepts/README.md
  30. 0
    238
      km0App/node_modules/accepts/index.js
  31. 0
    87
      km0App/node_modules/accepts/package.json
  32. 0
    8
      km0App/node_modules/android-versions/.jshintignore
  33. 0
    29
      km0App/node_modules/android-versions/.jshintrc
  34. 0
    3
      km0App/node_modules/android-versions/.travis.yml
  35. 0
    87
      km0App/node_modules/android-versions/README.md
  36. 0
    162
      km0App/node_modules/android-versions/index.js
  37. 0
    67
      km0App/node_modules/android-versions/package.json
  38. 0
    119
      km0App/node_modules/android-versions/tests/index.test.js
  39. 0
    165
      km0App/node_modules/ansi-styles/index.js
  40. 0
    9
      km0App/node_modules/ansi-styles/license
  41. 0
    88
      km0App/node_modules/ansi-styles/package.json
  42. 0
    147
      km0App/node_modules/ansi-styles/readme.md
  43. 0
    4
      km0App/node_modules/ansi/.jshintrc
  44. 0
    1
      km0App/node_modules/ansi/.npmignore
  45. 0
    23
      km0App/node_modules/ansi/History.md
  46. 0
    24
      km0App/node_modules/ansi/LICENSE
  47. 0
    98
      km0App/node_modules/ansi/README.md
  48. 0
    16
      km0App/node_modules/ansi/examples/beep/index.js
  49. 0
    15
      km0App/node_modules/ansi/examples/clear/index.js
  50. 0
    32
      km0App/node_modules/ansi/examples/cursorPosition.js
  51. 0
    87
      km0App/node_modules/ansi/examples/progress/index.js
  52. 0
    405
      km0App/node_modules/ansi/lib/ansi.js
  53. 0
    71
      km0App/node_modules/ansi/lib/newlines.js
  54. 0
    55
      km0App/node_modules/ansi/package.json
  55. 0
    21
      km0App/node_modules/array-flatten/LICENSE
  56. 0
    43
      km0App/node_modules/array-flatten/README.md
  57. 0
    64
      km0App/node_modules/array-flatten/array-flatten.js
  58. 0
    64
      km0App/node_modules/array-flatten/package.json
  59. 0
    51
      km0App/node_modules/array-ify/README.md
  60. 0
    4
      km0App/node_modules/array-ify/index.js
  61. 0
    68
      km0App/node_modules/array-ify/package.json
  62. 0
    5
      km0App/node_modules/balanced-match/.npmignore
  63. 0
    21
      km0App/node_modules/balanced-match/LICENSE.md
  64. 0
    91
      km0App/node_modules/balanced-match/README.md
  65. 0
    59
      km0App/node_modules/balanced-match/index.js
  66. 0
    77
      km0App/node_modules/balanced-match/package.json
  67. 0
    21
      km0App/node_modules/base64-js/LICENSE
  68. 0
    32
      km0App/node_modules/base64-js/README.md
  69. 0
    1
      km0App/node_modules/base64-js/base64js.min.js
  70. 0
    152
      km0App/node_modules/base64-js/index.js
  71. 0
    60
      km0App/node_modules/base64-js/package.json
  72. 0
    2393
      km0App/node_modules/big-integer/BigInteger.d.ts
  73. 0
    1453
      km0App/node_modules/big-integer/BigInteger.js
  74. 0
    1
      km0App/node_modules/big-integer/BigInteger.min.js
  75. 0
    24
      km0App/node_modules/big-integer/LICENSE
  76. 0
    588
      km0App/node_modules/big-integer/README.md
  77. 0
    29
      km0App/node_modules/big-integer/bower.json
  78. 0
    80
      km0App/node_modules/big-integer/package.json
  79. 0
    26
      km0App/node_modules/big-integer/tsconfig.json
  80. 0
    609
      km0App/node_modules/body-parser/HISTORY.md
  81. 0
    23
      km0App/node_modules/body-parser/LICENSE
  82. 0
    443
      km0App/node_modules/body-parser/README.md
  83. 0
    157
      km0App/node_modules/body-parser/index.js
  84. 0
    181
      km0App/node_modules/body-parser/lib/read.js
  85. 0
    230
      km0App/node_modules/body-parser/lib/types/json.js
  86. 0
    101
      km0App/node_modules/body-parser/lib/types/raw.js
  87. 0
    121
      km0App/node_modules/body-parser/lib/types/text.js
  88. 0
    284
      km0App/node_modules/body-parser/lib/types/urlencoded.js
  89. 0
    87
      km0App/node_modules/body-parser/node_modules/bytes/History.md
  90. 0
    23
      km0App/node_modules/body-parser/node_modules/bytes/LICENSE
  91. 0
    126
      km0App/node_modules/body-parser/node_modules/bytes/Readme.md
  92. 0
    162
      km0App/node_modules/body-parser/node_modules/bytes/index.js
  93. 0
    83
      km0App/node_modules/body-parser/node_modules/bytes/package.json
  94. 0
    91
      km0App/node_modules/body-parser/package.json
  95. 0
    8
      km0App/node_modules/bplist-creator/.npmignore
  96. 0
    64
      km0App/node_modules/bplist-creator/README.md
  97. 0
    445
      km0App/node_modules/bplist-creator/bplistCreator.js
  98. 0
    58
      km0App/node_modules/bplist-creator/package.json
  99. BIN
      km0App/node_modules/bplist-creator/test/airplay.bplist
  100. 0
    0
      km0App/node_modules/bplist-creator/test/binaryData.bplist

BIN
km0App/.gradle/5.6.2/executionHistory/executionHistory.bin View File


BIN
km0App/.gradle/5.6.2/executionHistory/executionHistory.lock View File


BIN
km0App/.gradle/5.6.2/fileChanges/last-build.bin View File


BIN
km0App/.gradle/5.6.2/fileHashes/fileHashes.lock View File


+ 0
- 0
km0App/.gradle/5.6.2/gc.properties View File


BIN
km0App/.gradle/buildOutputCleanup/buildOutputCleanup.lock View File


+ 0
- 2
km0App/.gradle/buildOutputCleanup/cache.properties View File

@@ -1,2 +0,0 @@
1
-#Thu Oct 24 08:46:16 AST 2019
2
-gradle.version=5.6.2

+ 0
- 1
km0App/.vscode/plugins.json View File

@@ -1 +0,0 @@
1
-{"plugins":["cordova-plugin-whitelist","cordova-plugin-contacts"]}

+ 0
- 80
km0App/.vscode/typings/cordova/cordova.d.ts View File

@@ -1,80 +0,0 @@
1
-// Type definitions for Apache Cordova
2
-// Project: http://cordova.apache.org
3
-// Definitions by: Microsoft Open Technologies Inc. <http://msopentech.com>
4
-// Definitions: https://github.com/borisyankov/DefinitelyTyped
5
-//
6
-// Copyright (c) Microsoft Open Technologies, Inc.
7
-// Licensed under the MIT license.
8
-
9
-interface Cordova {
10
-    /** Invokes native functionality by specifying corresponding service name, action and optional parameters.
11
-     * @param success A success callback function.
12
-     * @param fail An error callback function.
13
-     * @param service The service name to call on the native side (corresponds to a native class).
14
-     * @param action The action name to call on the native side (generally corresponds to the native class method).
15
-     * @param args An array of arguments to pass into the native environment.
16
-     */
17
-    exec(success: () => any, fail: () => any, service: string, action: string, args?: string[]): void;
18
-    /** Gets the operating system name. */
19
-    platformId: string;
20
-    /** Gets Cordova framework version */
21
-    version: string;
22
-    /** Defines custom logic as a Cordova module. Other modules can later access it using module name provided. */
23
-    define(moduleName: string, factory: (require: any, exports: any, module: any) => any): void;
24
-    /** Access a Cordova module by name. */
25
-    require(moduleName: string): any;
26
-    /** Namespace for Cordova plugin functionality */
27
-    plugins:CordovaPlugins;
28
-}
29
-
30
-interface CordovaPlugins {}
31
-
32
-interface Document {
33
-    addEventListener(type: "deviceready", listener: (ev: Event) => any, useCapture?: boolean): void;
34
-    addEventListener(type: "pause", listener: (ev: Event) => any, useCapture?: boolean): void;
35
-    addEventListener(type: "resume", listener: (ev: Event) => any, useCapture?: boolean): void;
36
-    addEventListener(type: "backbutton", listener: (ev: Event) => any, useCapture?: boolean): void;
37
-    addEventListener(type: "menubutton", listener: (ev: Event) => any, useCapture?: boolean): void;
38
-    addEventListener(type: "searchbutton", listener: (ev: Event) => any, useCapture?: boolean): void;
39
-    addEventListener(type: "startcallbutton", listener: (ev: Event) => any, useCapture?: boolean): void;
40
-    addEventListener(type: "endcallbutton", listener: (ev: Event) => any, useCapture?: boolean): void;
41
-    addEventListener(type: "volumedownbutton", listener: (ev: Event) => any, useCapture?: boolean): void;
42
-    addEventListener(type: "volumeupbutton", listener: (ev: Event) => any, useCapture?: boolean): void;
43
-
44
-    removeEventListener(type: "deviceready", listener: (ev: Event) => any, useCapture?: boolean): void;
45
-    removeEventListener(type: "pause", listener: (ev: Event) => any, useCapture?: boolean): void;
46
-    removeEventListener(type: "resume", listener: (ev: Event) => any, useCapture?: boolean): void;
47
-    removeEventListener(type: "backbutton", listener: (ev: Event) => any, useCapture?: boolean): void;
48
-    removeEventListener(type: "menubutton", listener: (ev: Event) => any, useCapture?: boolean): void;
49
-    removeEventListener(type: "searchbutton", listener: (ev: Event) => any, useCapture?: boolean): void;
50
-    removeEventListener(type: "startcallbutton", listener: (ev: Event) => any, useCapture?: boolean): void;
51
-    removeEventListener(type: "endcallbutton", listener: (ev: Event) => any, useCapture?: boolean): void;
52
-    removeEventListener(type: "volumedownbutton", listener: (ev: Event) => any, useCapture?: boolean): void;
53
-    removeEventListener(type: "volumeupbutton", listener: (ev: Event) => any, useCapture?: boolean): void;
54
-
55
-    addEventListener(type: string, listener: (ev: Event) => any, useCapture?: boolean): void;
56
-    removeEventListener(type: string, listener: (ev: Event) => any, useCapture?: boolean): void;
57
-}
58
-
59
-interface Window {
60
-  cordova:Cordova;
61
-}
62
-
63
-// cordova/argscheck module
64
-interface ArgsCheck {
65
-    checkArgs(argsSpec: string, functionName: string, args: any[], callee?: any): void;
66
-    getValue(value?: any, defaultValue?: any): any;
67
-    enableChecks: boolean;
68
-}
69
-
70
-// cordova/urlutil module
71
-interface UrlUtil {
72
-    makeAbsolute(url: string): string
73
-}
74
-
75
-/** Apache Cordova instance */
76
-declare var cordova: Cordova;
77
-
78
-declare module 'cordova' {
79
-    export = cordova;
80
-}

+ 0
- 26
km0App/config.xml View File

@@ -1,26 +0,0 @@
1
-<?xml version='1.0' encoding='utf-8'?>
2
-<widget id="io.cordova.hellocordova" version="1.0.0" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
3
-    <name>HelloCordova</name>
4
-    <description>
5
-        A sample Apache Cordova application that responds to the deviceready event.
6
-    </description>
7
-    <author email="dev@cordova.apache.org" href="http://cordova.io">
8
-        Apache Cordova Team
9
-    </author>
10
-    <content src="index.html" />
11
-    <plugin name="cordova-plugin-whitelist" spec="1" />
12
-    <access origin="*" />
13
-    <allow-intent href="http://*/*" />
14
-    <allow-intent href="https://*/*" />
15
-    <allow-intent href="tel:*" />
16
-    <allow-intent href="sms:*" />
17
-    <allow-intent href="mailto:*" />
18
-    <allow-intent href="geo:*" />
19
-    <platform name="android">
20
-        <allow-intent href="market:*" />
21
-    </platform>
22
-    <platform name="ios">
23
-        <allow-intent href="itms:*" />
24
-        <allow-intent href="itms-apps:*" />
25
-    </platform>
26
-</widget>

+ 0
- 23
km0App/hooks/README.md View File

@@ -1,23 +0,0 @@
1
-<!--
2
-#
3
-# Licensed to the Apache Software Foundation (ASF) under one
4
-# or more contributor license agreements.  See the NOTICE file
5
-# distributed with this work for additional information
6
-# regarding copyright ownership.  The ASF licenses this file
7
-# to you under the Apache License, Version 2.0 (the
8
-# "License"); you may not use this file except in compliance
9
-# with the License.  You may obtain a copy of the License at
10
-#
11
-# http://www.apache.org/licenses/LICENSE-2.0
12
-#
13
-# Unless required by applicable law or agreed to in writing,
14
-# software distributed under the License is distributed on an
15
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16
-#  KIND, either express or implied.  See the License for the
17
-# specific language governing permissions and limitations
18
-# under the License.
19
-#
20
--->
21
-# Cordova Hooks
22
-
23
-Cordova Hooks represent special scripts which could be added by application and plugin developers or even by your own build system  to customize cordova commands. See Hooks Guide for more details:  http://cordova.apache.org/docs/en/edge/guide_appdev_hooks_index.md.html#Hooks%20Guide.

+ 0
- 1
km0App/jsconfig.json View File

@@ -1 +0,0 @@
1
-{}

+ 0
- 1
km0App/node_modules/.bin/cordova-browser View File

@@ -1 +0,0 @@
1
-../cordova-browser/bin/create

+ 0
- 1
km0App/node_modules/.bin/create View File

@@ -1 +0,0 @@
1
-../cordova-android/bin/create

+ 0
- 1
km0App/node_modules/.bin/ios-sim View File

@@ -1 +0,0 @@
1
-../ios-sim/bin/ios-sim

+ 0
- 1
km0App/node_modules/.bin/mime View File

@@ -1 +0,0 @@
1
-../mime/cli.js

+ 0
- 1
km0App/node_modules/.bin/nopt View File

@@ -1 +0,0 @@
1
-../nopt/bin/nopt.js

+ 0
- 1
km0App/node_modules/.bin/semver View File

@@ -1 +0,0 @@
1
-../semver/bin/semver

+ 0
- 1
km0App/node_modules/.bin/shjs View File

@@ -1 +0,0 @@
1
-../shelljs/bin/shjs

+ 0
- 1
km0App/node_modules/.bin/tape View File

@@ -1 +0,0 @@
1
-../tape/bin/tape

+ 0
- 1
km0App/node_modules/.bin/uuid View File

@@ -1 +0,0 @@
1
-../uuid/bin/uuid

+ 0
- 1
km0App/node_modules/.bin/which View File

@@ -1 +0,0 @@
1
-../which/bin/which

+ 0
- 46
km0App/node_modules/abbrev/LICENSE View File

@@ -1,46 +0,0 @@
1
-This software is dual-licensed under the ISC and MIT licenses.
2
-You may use this software under EITHER of the following licenses.
3
-
4
-----------
5
-
6
-The ISC License
7
-
8
-Copyright (c) Isaac Z. Schlueter and Contributors
9
-
10
-Permission to use, copy, modify, and/or distribute this software for any
11
-purpose with or without fee is hereby granted, provided that the above
12
-copyright notice and this permission notice appear in all copies.
13
-
14
-THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
15
-WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
16
-MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
17
-ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
18
-WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
19
-ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
20
-IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
21
-
22
-----------
23
-
24
-Copyright Isaac Z. Schlueter and Contributors
25
-All rights reserved.
26
-
27
-Permission is hereby granted, free of charge, to any person
28
-obtaining a copy of this software and associated documentation
29
-files (the "Software"), to deal in the Software without
30
-restriction, including without limitation the rights to use,
31
-copy, modify, merge, publish, distribute, sublicense, and/or sell
32
-copies of the Software, and to permit persons to whom the
33
-Software is furnished to do so, subject to the following
34
-conditions:
35
-
36
-The above copyright notice and this permission notice shall be
37
-included in all copies or substantial portions of the Software.
38
-
39
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
40
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
41
-OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
42
-NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
43
-HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
44
-WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
45
-FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
46
-OTHER DEALINGS IN THE SOFTWARE.

+ 0
- 23
km0App/node_modules/abbrev/README.md View File

@@ -1,23 +0,0 @@
1
-# abbrev-js
2
-
3
-Just like [ruby's Abbrev](http://apidock.com/ruby/Abbrev).
4
-
5
-Usage:
6
-
7
-    var abbrev = require("abbrev");
8
-    abbrev("foo", "fool", "folding", "flop");
9
-    
10
-    // returns:
11
-    { fl: 'flop'
12
-    , flo: 'flop'
13
-    , flop: 'flop'
14
-    , fol: 'folding'
15
-    , fold: 'folding'
16
-    , foldi: 'folding'
17
-    , foldin: 'folding'
18
-    , folding: 'folding'
19
-    , foo: 'foo'
20
-    , fool: 'fool'
21
-    }
22
-
23
-This is handy for command-line scripts, or other cases where you want to be able to accept shorthands.

+ 0
- 61
km0App/node_modules/abbrev/abbrev.js View File

@@ -1,61 +0,0 @@
1
-module.exports = exports = abbrev.abbrev = abbrev
2
-
3
-abbrev.monkeyPatch = monkeyPatch
4
-
5
-function monkeyPatch () {
6
-  Object.defineProperty(Array.prototype, 'abbrev', {
7
-    value: function () { return abbrev(this) },
8
-    enumerable: false, configurable: true, writable: true
9
-  })
10
-
11
-  Object.defineProperty(Object.prototype, 'abbrev', {
12
-    value: function () { return abbrev(Object.keys(this)) },
13
-    enumerable: false, configurable: true, writable: true
14
-  })
15
-}
16
-
17
-function abbrev (list) {
18
-  if (arguments.length !== 1 || !Array.isArray(list)) {
19
-    list = Array.prototype.slice.call(arguments, 0)
20
-  }
21
-  for (var i = 0, l = list.length, args = [] ; i < l ; i ++) {
22
-    args[i] = typeof list[i] === "string" ? list[i] : String(list[i])
23
-  }
24
-
25
-  // sort them lexicographically, so that they're next to their nearest kin
26
-  args = args.sort(lexSort)
27
-
28
-  // walk through each, seeing how much it has in common with the next and previous
29
-  var abbrevs = {}
30
-    , prev = ""
31
-  for (var i = 0, l = args.length ; i < l ; i ++) {
32
-    var current = args[i]
33
-      , next = args[i + 1] || ""
34
-      , nextMatches = true
35
-      , prevMatches = true
36
-    if (current === next) continue
37
-    for (var j = 0, cl = current.length ; j < cl ; j ++) {
38
-      var curChar = current.charAt(j)
39
-      nextMatches = nextMatches && curChar === next.charAt(j)
40
-      prevMatches = prevMatches && curChar === prev.charAt(j)
41
-      if (!nextMatches && !prevMatches) {
42
-        j ++
43
-        break
44
-      }
45
-    }
46
-    prev = current
47
-    if (j === cl) {
48
-      abbrevs[current] = current
49
-      continue
50
-    }
51
-    for (var a = current.substr(0, j) ; j <= cl ; j ++) {
52
-      abbrevs[a] = current
53
-      a += current.charAt(j)
54
-    }
55
-  }
56
-  return abbrevs
57
-}
58
-
59
-function lexSort (a, b) {
60
-  return a === b ? 0 : a > b ? 1 : -1
61
-}

+ 0
- 57
km0App/node_modules/abbrev/package.json View File

@@ -1,57 +0,0 @@
1
-{
2
-  "_from": "abbrev@1",
3
-  "_id": "abbrev@1.1.1",
4
-  "_inBundle": false,
5
-  "_integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==",
6
-  "_location": "/abbrev",
7
-  "_phantomChildren": {},
8
-  "_requested": {
9
-    "type": "range",
10
-    "registry": true,
11
-    "raw": "abbrev@1",
12
-    "name": "abbrev",
13
-    "escapedName": "abbrev",
14
-    "rawSpec": "1",
15
-    "saveSpec": null,
16
-    "fetchSpec": "1"
17
-  },
18
-  "_requiredBy": [
19
-    "/ios-sim/nopt",
20
-    "/nopt"
21
-  ],
22
-  "_resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz",
23
-  "_shasum": "f8f2c887ad10bf67f634f005b6987fed3179aac8",
24
-  "_spec": "abbrev@1",
25
-  "_where": "/Users/Luis/Documents/Universidad/Quinto Año (2019)/Software/km0/km0App/node_modules/ios-sim/node_modules/nopt",
26
-  "author": {
27
-    "name": "Isaac Z. Schlueter",
28
-    "email": "i@izs.me"
29
-  },
30
-  "bugs": {
31
-    "url": "https://github.com/isaacs/abbrev-js/issues"
32
-  },
33
-  "bundleDependencies": false,
34
-  "deprecated": false,
35
-  "description": "Like ruby's abbrev module, but in js",
36
-  "devDependencies": {
37
-    "tap": "^10.1"
38
-  },
39
-  "files": [
40
-    "abbrev.js"
41
-  ],
42
-  "homepage": "https://github.com/isaacs/abbrev-js#readme",
43
-  "license": "ISC",
44
-  "main": "abbrev.js",
45
-  "name": "abbrev",
46
-  "repository": {
47
-    "type": "git",
48
-    "url": "git+ssh://git@github.com/isaacs/abbrev-js.git"
49
-  },
50
-  "scripts": {
51
-    "postpublish": "git push origin --all; git push origin --tags",
52
-    "postversion": "npm publish",
53
-    "preversion": "npm test",
54
-    "test": "tap test.js --100"
55
-  },
56
-  "version": "1.1.1"
57
-}

+ 0
- 236
km0App/node_modules/accepts/HISTORY.md View File

@@ -1,236 +0,0 @@
1
-1.3.7 / 2019-04-29
2
-==================
3
-
4
-  * deps: negotiator@0.6.2
5
-    - Fix sorting charset, encoding, and language with extra parameters
6
-
7
-1.3.6 / 2019-04-28
8
-==================
9
-
10
-  * deps: mime-types@~2.1.24
11
-    - deps: mime-db@~1.40.0
12
-
13
-1.3.5 / 2018-02-28
14
-==================
15
-
16
-  * deps: mime-types@~2.1.18
17
-    - deps: mime-db@~1.33.0
18
-
19
-1.3.4 / 2017-08-22
20
-==================
21
-
22
-  * deps: mime-types@~2.1.16
23
-    - deps: mime-db@~1.29.0
24
-
25
-1.3.3 / 2016-05-02
26
-==================
27
-
28
-  * deps: mime-types@~2.1.11
29
-    - deps: mime-db@~1.23.0
30
-  * deps: negotiator@0.6.1
31
-    - perf: improve `Accept` parsing speed
32
-    - perf: improve `Accept-Charset` parsing speed
33
-    - perf: improve `Accept-Encoding` parsing speed
34
-    - perf: improve `Accept-Language` parsing speed
35
-
36
-1.3.2 / 2016-03-08
37
-==================
38
-
39
-  * deps: mime-types@~2.1.10
40
-    - Fix extension of `application/dash+xml`
41
-    - Update primary extension for `audio/mp4`
42
-    - deps: mime-db@~1.22.0
43
-
44
-1.3.1 / 2016-01-19
45
-==================
46
-
47
-  * deps: mime-types@~2.1.9
48
-    - deps: mime-db@~1.21.0
49
-
50
-1.3.0 / 2015-09-29
51
-==================
52
-
53
-  * deps: mime-types@~2.1.7
54
-    - deps: mime-db@~1.19.0
55
-  * deps: negotiator@0.6.0
56
-    - Fix including type extensions in parameters in `Accept` parsing
57
-    - Fix parsing `Accept` parameters with quoted equals
58
-    - Fix parsing `Accept` parameters with quoted semicolons
59
-    - Lazy-load modules from main entry point
60
-    - perf: delay type concatenation until needed
61
-    - perf: enable strict mode
62
-    - perf: hoist regular expressions
63
-    - perf: remove closures getting spec properties
64
-    - perf: remove a closure from media type parsing
65
-    - perf: remove property delete from media type parsing
66
-
67
-1.2.13 / 2015-09-06
68
-===================
69
-
70
-  * deps: mime-types@~2.1.6
71
-    - deps: mime-db@~1.18.0
72
-
73
-1.2.12 / 2015-07-30
74
-===================
75
-
76
-  * deps: mime-types@~2.1.4
77
-    - deps: mime-db@~1.16.0
78
-
79
-1.2.11 / 2015-07-16
80
-===================
81
-
82
-  * deps: mime-types@~2.1.3
83
-    - deps: mime-db@~1.15.0
84
-
85
-1.2.10 / 2015-07-01
86
-===================
87
-
88
-  * deps: mime-types@~2.1.2
89
-    - deps: mime-db@~1.14.0
90
-
91
-1.2.9 / 2015-06-08
92
-==================
93
-
94
-  * deps: mime-types@~2.1.1
95
-    - perf: fix deopt during mapping
96
-
97
-1.2.8 / 2015-06-07
98
-==================
99
-
100
-  * deps: mime-types@~2.1.0
101
-    - deps: mime-db@~1.13.0
102
-  * perf: avoid argument reassignment & argument slice
103
-  * perf: avoid negotiator recursive construction
104
-  * perf: enable strict mode
105
-  * perf: remove unnecessary bitwise operator
106
-
107
-1.2.7 / 2015-05-10
108
-==================
109
-
110
-  * deps: negotiator@0.5.3
111
-    - Fix media type parameter matching to be case-insensitive
112
-
113
-1.2.6 / 2015-05-07
114
-==================
115
-
116
-  * deps: mime-types@~2.0.11
117
-    - deps: mime-db@~1.9.1
118
-  * deps: negotiator@0.5.2
119
-    - Fix comparing media types with quoted values
120
-    - Fix splitting media types with quoted commas
121
-
122
-1.2.5 / 2015-03-13
123
-==================
124
-
125
-  * deps: mime-types@~2.0.10
126
-    - deps: mime-db@~1.8.0
127
-
128
-1.2.4 / 2015-02-14
129
-==================
130
-
131
-  * Support Node.js 0.6
132
-  * deps: mime-types@~2.0.9
133
-    - deps: mime-db@~1.7.0
134
-  * deps: negotiator@0.5.1
135
-    - Fix preference sorting to be stable for long acceptable lists
136
-
137
-1.2.3 / 2015-01-31
138
-==================
139
-
140
-  * deps: mime-types@~2.0.8
141
-    - deps: mime-db@~1.6.0
142
-
143
-1.2.2 / 2014-12-30
144
-==================
145
-
146
-  * deps: mime-types@~2.0.7
147
-    - deps: mime-db@~1.5.0
148
-
149
-1.2.1 / 2014-12-30
150
-==================
151
-
152
-  * deps: mime-types@~2.0.5
153
-    - deps: mime-db@~1.3.1
154
-
155
-1.2.0 / 2014-12-19
156
-==================
157
-
158
-  * deps: negotiator@0.5.0
159
-    - Fix list return order when large accepted list
160
-    - Fix missing identity encoding when q=0 exists
161
-    - Remove dynamic building of Negotiator class
162
-
163
-1.1.4 / 2014-12-10
164
-==================
165
-
166
-  * deps: mime-types@~2.0.4
167
-    - deps: mime-db@~1.3.0
168
-
169
-1.1.3 / 2014-11-09
170
-==================
171
-
172
-  * deps: mime-types@~2.0.3
173
-    - deps: mime-db@~1.2.0
174
-
175
-1.1.2 / 2014-10-14
176
-==================
177
-
178
-  * deps: negotiator@0.4.9
179
-    - Fix error when media type has invalid parameter
180
-
181
-1.1.1 / 2014-09-28
182
-==================
183
-
184
-  * deps: mime-types@~2.0.2
185
-    - deps: mime-db@~1.1.0
186
-  * deps: negotiator@0.4.8
187
-    - Fix all negotiations to be case-insensitive
188
-    - Stable sort preferences of same quality according to client order
189
-
190
-1.1.0 / 2014-09-02
191
-==================
192
-
193
-  * update `mime-types`
194
-
195
-1.0.7 / 2014-07-04
196
-==================
197
-
198
-  * Fix wrong type returned from `type` when match after unknown extension
199
-
200
-1.0.6 / 2014-06-24
201
-==================
202
-
203
-  * deps: negotiator@0.4.7
204
-
205
-1.0.5 / 2014-06-20
206
-==================
207
-
208
- * fix crash when unknown extension given
209
-
210
-1.0.4 / 2014-06-19
211
-==================
212
-
213
-  * use `mime-types`
214
-
215
-1.0.3 / 2014-06-11
216
-==================
217
-
218
-  * deps: negotiator@0.4.6
219
-    - Order by specificity when quality is the same
220
-
221
-1.0.2 / 2014-05-29
222
-==================
223
-
224
-  * Fix interpretation when header not in request
225
-  * deps: pin negotiator@0.4.5
226
-
227
-1.0.1 / 2014-01-18
228
-==================
229
-
230
-  * Identity encoding isn't always acceptable
231
-  * deps: negotiator@~0.4.0
232
-
233
-1.0.0 / 2013-12-27
234
-==================
235
-
236
-  * Genesis

+ 0
- 23
km0App/node_modules/accepts/LICENSE View File

@@ -1,23 +0,0 @@
1
-(The MIT License)
2
-
3
-Copyright (c) 2014 Jonathan Ong <me@jongleberry.com>
4
-Copyright (c) 2015 Douglas Christopher Wilson <doug@somethingdoug.com>
5
-
6
-Permission is hereby granted, free of charge, to any person obtaining
7
-a copy of this software and associated documentation files (the
8
-'Software'), to deal in the Software without restriction, including
9
-without limitation the rights to use, copy, modify, merge, publish,
10
-distribute, sublicense, and/or sell copies of the Software, and to
11
-permit persons to whom the Software is furnished to do so, subject to
12
-the following conditions:
13
-
14
-The above copyright notice and this permission notice shall be
15
-included in all copies or substantial portions of the Software.
16
-
17
-THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
18
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
19
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
20
-IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
21
-CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
22
-TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
23
-SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

+ 0
- 142
km0App/node_modules/accepts/README.md View File

@@ -1,142 +0,0 @@
1
-# accepts
2
-
3
-[![NPM Version][npm-version-image]][npm-url]
4
-[![NPM Downloads][npm-downloads-image]][npm-url]
5
-[![Node.js Version][node-version-image]][node-version-url]
6
-[![Build Status][travis-image]][travis-url]
7
-[![Test Coverage][coveralls-image]][coveralls-url]
8
-
9
-Higher level content negotiation based on [negotiator](https://www.npmjs.com/package/negotiator).
10
-Extracted from [koa](https://www.npmjs.com/package/koa) for general use.
11
-
12
-In addition to negotiator, it allows:
13
-
14
-- Allows types as an array or arguments list, ie `(['text/html', 'application/json'])`
15
-  as well as `('text/html', 'application/json')`.
16
-- Allows type shorthands such as `json`.
17
-- Returns `false` when no types match
18
-- Treats non-existent headers as `*`
19
-
20
-## Installation
21
-
22
-This is a [Node.js](https://nodejs.org/en/) module available through the
23
-[npm registry](https://www.npmjs.com/). Installation is done using the
24
-[`npm install` command](https://docs.npmjs.com/getting-started/installing-npm-packages-locally):
25
-
26
-```sh
27
-$ npm install accepts
28
-```
29
-
30
-## API
31
-
32
-<!-- eslint-disable no-unused-vars -->
33
-
34
-```js
35
-var accepts = require('accepts')
36
-```
37
-
38
-### accepts(req)
39
-
40
-Create a new `Accepts` object for the given `req`.
41
-
42
-#### .charset(charsets)
43
-
44
-Return the first accepted charset. If nothing in `charsets` is accepted,
45
-then `false` is returned.
46
-
47
-#### .charsets()
48
-
49
-Return the charsets that the request accepts, in the order of the client's
50
-preference (most preferred first).
51
-
52
-#### .encoding(encodings)
53
-
54
-Return the first accepted encoding. If nothing in `encodings` is accepted,
55
-then `false` is returned.
56
-
57
-#### .encodings()
58
-
59
-Return the encodings that the request accepts, in the order of the client's
60
-preference (most preferred first).
61
-
62
-#### .language(languages)
63
-
64
-Return the first accepted language. If nothing in `languages` is accepted,
65
-then `false` is returned.
66
-
67
-#### .languages()
68
-
69
-Return the languages that the request accepts, in the order of the client's
70
-preference (most preferred first).
71
-
72
-#### .type(types)
73
-
74
-Return the first accepted type (and it is returned as the same text as what
75
-appears in the `types` array). If nothing in `types` is accepted, then `false`
76
-is returned.
77
-
78
-The `types` array can contain full MIME types or file extensions. Any value
79
-that is not a full MIME types is passed to `require('mime-types').lookup`.
80
-
81
-#### .types()
82
-
83
-Return the types that the request accepts, in the order of the client's
84
-preference (most preferred first).
85
-
86
-## Examples
87
-
88
-### Simple type negotiation
89
-
90
-This simple example shows how to use `accepts` to return a different typed
91
-respond body based on what the client wants to accept. The server lists it's
92
-preferences in order and will get back the best match between the client and
93
-server.
94
-
95
-```js
96
-var accepts = require('accepts')
97
-var http = require('http')
98
-
99
-function app (req, res) {
100
-  var accept = accepts(req)
101
-
102
-  // the order of this list is significant; should be server preferred order
103
-  switch (accept.type(['json', 'html'])) {
104
-    case 'json':
105
-      res.setHeader('Content-Type', 'application/json')
106
-      res.write('{"hello":"world!"}')
107
-      break
108
-    case 'html':
109
-      res.setHeader('Content-Type', 'text/html')
110
-      res.write('<b>hello, world!</b>')
111
-      break
112
-    default:
113
-      // the fallback is text/plain, so no need to specify it above
114
-      res.setHeader('Content-Type', 'text/plain')
115
-      res.write('hello, world!')
116
-      break
117
-  }
118
-
119
-  res.end()
120
-}
121
-
122
-http.createServer(app).listen(3000)
123
-```
124
-
125
-You can test this out with the cURL program:
126
-```sh
127
-curl -I -H'Accept: text/html' http://localhost:3000/
128
-```
129
-
130
-## License
131
-
132
-[MIT](LICENSE)
133
-
134
-[coveralls-image]: https://badgen.net/coveralls/c/github/jshttp/accepts/master
135
-[coveralls-url]: https://coveralls.io/r/jshttp/accepts?branch=master
136
-[node-version-image]: https://badgen.net/npm/node/accepts
137
-[node-version-url]: https://nodejs.org/en/download
138
-[npm-downloads-image]: https://badgen.net/npm/dm/accepts
139
-[npm-url]: https://npmjs.org/package/accepts
140
-[npm-version-image]: https://badgen.net/npm/v/accepts
141
-[travis-image]: https://badgen.net/travis/jshttp/accepts/master
142
-[travis-url]: https://travis-ci.org/jshttp/accepts

+ 0
- 238
km0App/node_modules/accepts/index.js View File

@@ -1,238 +0,0 @@
1
-/*!
2
- * accepts
3
- * Copyright(c) 2014 Jonathan Ong
4
- * Copyright(c) 2015 Douglas Christopher Wilson
5
- * MIT Licensed
6
- */
7
-
8
-'use strict'
9
-
10
-/**
11
- * Module dependencies.
12
- * @private
13
- */
14
-
15
-var Negotiator = require('negotiator')
16
-var mime = require('mime-types')
17
-
18
-/**
19
- * Module exports.
20
- * @public
21
- */
22
-
23
-module.exports = Accepts
24
-
25
-/**
26
- * Create a new Accepts object for the given req.
27
- *
28
- * @param {object} req
29
- * @public
30
- */
31
-
32
-function Accepts (req) {
33
-  if (!(this instanceof Accepts)) {
34
-    return new Accepts(req)
35
-  }
36
-
37
-  this.headers = req.headers
38
-  this.negotiator = new Negotiator(req)
39
-}
40
-
41
-/**
42
- * Check if the given `type(s)` is acceptable, returning
43
- * the best match when true, otherwise `undefined`, in which
44
- * case you should respond with 406 "Not Acceptable".
45
- *
46
- * The `type` value may be a single mime type string
47
- * such as "application/json", the extension name
48
- * such as "json" or an array `["json", "html", "text/plain"]`. When a list
49
- * or array is given the _best_ match, if any is returned.
50
- *
51
- * Examples:
52
- *
53
- *     // Accept: text/html
54
- *     this.types('html');
55
- *     // => "html"
56
- *
57
- *     // Accept: text/*, application/json
58
- *     this.types('html');
59
- *     // => "html"
60
- *     this.types('text/html');
61
- *     // => "text/html"
62
- *     this.types('json', 'text');
63
- *     // => "json"
64
- *     this.types('application/json');
65
- *     // => "application/json"
66
- *
67
- *     // Accept: text/*, application/json
68
- *     this.types('image/png');
69
- *     this.types('png');
70
- *     // => undefined
71
- *
72
- *     // Accept: text/*;q=.5, application/json
73
- *     this.types(['html', 'json']);
74
- *     this.types('html', 'json');
75
- *     // => "json"
76
- *
77
- * @param {String|Array} types...
78
- * @return {String|Array|Boolean}
79
- * @public
80
- */
81
-
82
-Accepts.prototype.type =
83
-Accepts.prototype.types = function (types_) {
84
-  var types = types_
85
-
86
-  // support flattened arguments
87
-  if (types && !Array.isArray(types)) {
88
-    types = new Array(arguments.length)
89
-    for (var i = 0; i < types.length; i++) {
90
-      types[i] = arguments[i]
91
-    }
92
-  }
93
-
94
-  // no types, return all requested types
95
-  if (!types || types.length === 0) {
96
-    return this.negotiator.mediaTypes()
97
-  }
98
-
99
-  // no accept header, return first given type
100
-  if (!this.headers.accept) {
101
-    return types[0]
102
-  }
103
-
104
-  var mimes = types.map(extToMime)
105
-  var accepts = this.negotiator.mediaTypes(mimes.filter(validMime))
106
-  var first = accepts[0]
107
-
108
-  return first
109
-    ? types[mimes.indexOf(first)]
110
-    : false
111
-}
112
-
113
-/**
114
- * Return accepted encodings or best fit based on `encodings`.
115
- *
116
- * Given `Accept-Encoding: gzip, deflate`
117
- * an array sorted by quality is returned:
118
- *
119
- *     ['gzip', 'deflate']
120
- *
121
- * @param {String|Array} encodings...
122
- * @return {String|Array}
123
- * @public
124
- */
125
-
126
-Accepts.prototype.encoding =
127
-Accepts.prototype.encodings = function (encodings_) {
128
-  var encodings = encodings_
129
-
130
-  // support flattened arguments
131
-  if (encodings && !Array.isArray(encodings)) {
132
-    encodings = new Array(arguments.length)
133
-    for (var i = 0; i < encodings.length; i++) {
134
-      encodings[i] = arguments[i]
135
-    }
136
-  }
137
-
138
-  // no encodings, return all requested encodings
139
-  if (!encodings || encodings.length === 0) {
140
-    return this.negotiator.encodings()
141
-  }
142
-
143
-  return this.negotiator.encodings(encodings)[0] || false
144
-}
145
-
146
-/**
147
- * Return accepted charsets or best fit based on `charsets`.
148
- *
149
- * Given `Accept-Charset: utf-8, iso-8859-1;q=0.2, utf-7;q=0.5`
150
- * an array sorted by quality is returned:
151
- *
152
- *     ['utf-8', 'utf-7', 'iso-8859-1']
153
- *
154
- * @param {String|Array} charsets...
155
- * @return {String|Array}
156
- * @public
157
- */
158
-
159
-Accepts.prototype.charset =
160
-Accepts.prototype.charsets = function (charsets_) {
161
-  var charsets = charsets_
162
-
163
-  // support flattened arguments
164
-  if (charsets && !Array.isArray(charsets)) {
165
-    charsets = new Array(arguments.length)
166
-    for (var i = 0; i < charsets.length; i++) {
167
-      charsets[i] = arguments[i]
168
-    }
169
-  }
170
-
171
-  // no charsets, return all requested charsets
172
-  if (!charsets || charsets.length === 0) {
173
-    return this.negotiator.charsets()
174
-  }
175
-
176
-  return this.negotiator.charsets(charsets)[0] || false
177
-}
178
-
179
-/**
180
- * Return accepted languages or best fit based on `langs`.
181
- *
182
- * Given `Accept-Language: en;q=0.8, es, pt`
183
- * an array sorted by quality is returned:
184
- *
185
- *     ['es', 'pt', 'en']
186
- *
187
- * @param {String|Array} langs...
188
- * @return {Array|String}
189
- * @public
190
- */
191
-
192
-Accepts.prototype.lang =
193
-Accepts.prototype.langs =
194
-Accepts.prototype.language =
195
-Accepts.prototype.languages = function (languages_) {
196
-  var languages = languages_
197
-
198
-  // support flattened arguments
199
-  if (languages && !Array.isArray(languages)) {
200
-    languages = new Array(arguments.length)
201
-    for (var i = 0; i < languages.length; i++) {
202
-      languages[i] = arguments[i]
203
-    }
204
-  }
205
-
206
-  // no languages, return all requested languages
207
-  if (!languages || languages.length === 0) {
208
-    return this.negotiator.languages()
209
-  }
210
-
211
-  return this.negotiator.languages(languages)[0] || false
212
-}
213
-
214
-/**
215
- * Convert extnames to mime.
216
- *
217
- * @param {String} type
218
- * @return {String}
219
- * @private
220
- */
221
-
222
-function extToMime (type) {
223
-  return type.indexOf('/') === -1
224
-    ? mime.lookup(type)
225
-    : type
226
-}
227
-
228
-/**
229
- * Check if mime is valid.
230
- *
231
- * @param {String} type
232
- * @return {String}
233
- * @private
234
- */
235
-
236
-function validMime (type) {
237
-  return typeof type === 'string'
238
-}

+ 0
- 87
km0App/node_modules/accepts/package.json View File

@@ -1,87 +0,0 @@
1
-{
2
-  "_from": "accepts@~1.3.5",
3
-  "_id": "accepts@1.3.7",
4
-  "_inBundle": false,
5
-  "_integrity": "sha512-Il80Qs2WjYlJIBNzNkK6KYqlVMTbZLXgHx2oT0pU/fjRHyEp+PEfEPY0R3WCwAGVOtauxh1hOxNgIf5bv7dQpA==",
6
-  "_location": "/accepts",
7
-  "_phantomChildren": {},
8
-  "_requested": {
9
-    "type": "range",
10
-    "registry": true,
11
-    "raw": "accepts@~1.3.5",
12
-    "name": "accepts",
13
-    "escapedName": "accepts",
14
-    "rawSpec": "~1.3.5",
15
-    "saveSpec": null,
16
-    "fetchSpec": "~1.3.5"
17
-  },
18
-  "_requiredBy": [
19
-    "/compression",
20
-    "/express"
21
-  ],
22
-  "_resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.7.tgz",
23
-  "_shasum": "531bc726517a3b2b41f850021c6cc15eaab507cd",
24
-  "_spec": "accepts@~1.3.5",
25
-  "_where": "/home/luis/Software/kilometro0/km0App/node_modules/compression",
26
-  "bugs": {
27
-    "url": "https://github.com/jshttp/accepts/issues"
28
-  },
29
-  "bundleDependencies": false,
30
-  "contributors": [
31
-    {
32
-      "name": "Douglas Christopher Wilson",
33
-      "email": "doug@somethingdoug.com"
34
-    },
35
-    {
36
-      "name": "Jonathan Ong",
37
-      "email": "me@jongleberry.com",
38
-      "url": "http://jongleberry.com"
39
-    }
40
-  ],
41
-  "dependencies": {
42
-    "mime-types": "~2.1.24",
43
-    "negotiator": "0.6.2"
44
-  },
45
-  "deprecated": false,
46
-  "description": "Higher-level content negotiation",
47
-  "devDependencies": {
48
-    "deep-equal": "1.0.1",
49
-    "eslint": "5.16.0",
50
-    "eslint-config-standard": "12.0.0",
51
-    "eslint-plugin-import": "2.17.2",
52
-    "eslint-plugin-markdown": "1.0.0",
53
-    "eslint-plugin-node": "8.0.1",
54
-    "eslint-plugin-promise": "4.1.1",
55
-    "eslint-plugin-standard": "4.0.0",
56
-    "mocha": "6.1.4",
57
-    "nyc": "14.0.0"
58
-  },
59
-  "engines": {
60
-    "node": ">= 0.6"
61
-  },
62
-  "files": [
63
-    "LICENSE",
64
-    "HISTORY.md",
65
-    "index.js"
66
-  ],
67
-  "homepage": "https://github.com/jshttp/accepts#readme",
68
-  "keywords": [
69
-    "content",
70
-    "negotiation",
71
-    "accept",
72
-    "accepts"
73
-  ],
74
-  "license": "MIT",
75
-  "name": "accepts",
76
-  "repository": {
77
-    "type": "git",
78
-    "url": "git+https://github.com/jshttp/accepts.git"
79
-  },
80
-  "scripts": {
81
-    "lint": "eslint --plugin markdown --ext js,md .",
82
-    "test": "mocha --reporter spec --check-leaks --bail test/",
83
-    "test-cov": "nyc --reporter=html --reporter=text npm test",
84
-    "test-travis": "nyc --reporter=text npm test"
85
-  },
86
-  "version": "1.3.7"
87
-}

+ 0
- 8
km0App/node_modules/android-versions/.jshintignore View File

@@ -1,8 +0,0 @@
1
-.git/
2
-node_modules/
3
-coverage/
4
-build/
5
-assets/
6
-dist/
7
-docs/
8
-tests/

+ 0
- 29
km0App/node_modules/android-versions/.jshintrc View File

@@ -1,29 +0,0 @@
1
-{
2
-  "esversion": 6,
3
-  "indent":   2,
4
-  "forin":    true,
5
-  "noarg":    true,
6
-  "bitwise":  true,
7
-  "nonew":    true,
8
-  "strict":   true,
9
-
10
-  "browser":  true,
11
-  "devel":    true,
12
-  "node":     false,
13
-  "jquery":   false,
14
-  "esnext":   false,
15
-  "moz":      false,
16
-  "es3":      false,
17
-
18
-  "asi":      true,
19
-
20
-  "eqnull":   true,
21
-  "debug":    true,
22
-  "boss":     true,
23
-  "evil":     true,
24
-  "loopfunc": true,
25
-  "laxbreak": true,
26
-
27
-  "unused":   true,
28
-  "undef":    true
29
-}

+ 0
- 3
km0App/node_modules/android-versions/.travis.yml View File

@@ -1,3 +0,0 @@
1
-language: node_js
2
-node_js:
3
-  - "6.1.0"

+ 0
- 87
km0App/node_modules/android-versions/README.md View File

@@ -1,87 +0,0 @@
1
-Android Versions
2
-================
3
-
4
-A node module to get Android versions by API level, NDK level, semantic version, or version name.
5
-
6
-Versions are referenced from [source.android.com/source/build-numbers.html](https://source.android.com/source/build-numbers.html#platform-code-names-versions-api-levels-and-ndk-releases). The version for "Current Development Build" (`"CUR_DEVELOPMENT"`) is not included in the list of `VERSIONS`.
7
-
8
-[![NPM version][npm-image]][npm-url]
9
-[![build status][travis-image]][travis-url]
10
-
11
-[npm-image]: https://img.shields.io/npm/v/android-versions.svg?style=flat-square
12
-[npm-url]: https://npmjs.org/package/android-versions
13
-[travis-image]: https://img.shields.io/travis/dvoiss/android-versions.svg?style=flat-square
14
-[travis-url]: https://travis-ci.org/dvoiss/android-versions
15
-
16
-## Install
17
-
18
-```bash
19
-# NPM
20
-npm install android-versions --save
21
-# YARN
22
-yarn add android-versions
23
-```
24
-
25
-## Usage
26
-
27
-View the tests for more advanced usage.
28
-
29
-```javascript
30
-const android = require('android-versions')
31
-```
32
-
33
-#### Get by API level:
34
-```javascript
35
-console.log(android.get(23))
36
-
37
-=> { api: 23, ndk: 8, semver: "6.0", name: "Marshmallow", versionCode: "M" }
38
-```
39
-
40
-#### Get by version:
41
-
42
-```javascript
43
-console.log(android.get("2.3.3"))
44
-
45
-=> { api: 10, ndk: 5, semver: "2.3.3", name: "Gingerbread", versionCode: "GINGERBREAD_MR1" }
46
-```
47
-
48
-#### Get all by predicate:
49
-
50
-```
51
-android.getAll((version) => {
52
-  return version.ndk > 5 && version.api < 15
53
-}).map((version) => version.versionCode)
54
-
55
-=> [ "HONEYCOMB_MR1", "HONEYCOMB_MR2", "ICE_CREAM_SANDWICH" ]
56
-```
57
-
58
-#### Access a specific version with all info:
59
-
60
-```
61
-android.LOLLIPOP
62
-
63
-=> { api: 21, ndk: 8, semver: "5.0", name: "Lollipop", versionCode: "LOLLIPOP" }
64
-```
65
-
66
-#### Access the complete reference of Android versions with all info:
67
-
68
-```javascript
69
-android.VERSIONS
70
-
71
-=> {
72
-  BASE:    { api: 1,  ndk: 0, semver: "1.0", name: "(no code name)", versionCode: "BASE" },
73
-  ...
74
-  N:       { api: 24, ndk: 8, semver: "7.0", name: "Nougat",         versionCode: "N" }
75
-  ...
76
-}
77
-```
78
-
79
-## Test
80
-
81
-```bash
82
-npm run test
83
-```
84
-
85
-## License
86
-
87
-MIT

+ 0
- 162
km0App/node_modules/android-versions/index.js View File

@@ -1,162 +0,0 @@
1
-/**
2
- * Copyright (c) 2016, David Voiss <davidvoiss@gmail.com>
3
- *
4
- * Permission to use, copy, modify, and/or distribute this software for any purpose
5
- * with or without fee is hereby granted, provided that the above copyright notice
6
- * and this permission notice appear in all copies.
7
- *
8
- * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
9
- * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
10
- * FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
11
- * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
12
- * OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
13
- * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
14
- * THIS SOFTWARE.
15
-*/
16
-
17
-/* jshint node: true */
18
-"use strict";
19
-
20
-/**
21
- * A module to get Android versions by API level, NDK level, semantic version, or version name.
22
- *
23
- * Versions are referenced from here:
24
- * {@link https://source.android.com/source/build-numbers.html#platform-code-names-versions-api-levels-and-ndk-releases}
25
- * {@link https://github.com/android/platform_frameworks_base/blob/master/core/java/android/os/Build.java}
26
- *
27
- * The version for "Current Development Build" ("CUR_DEVELOPMENT") is not included.
28
- *
29
- * @module android-versions
30
- */
31
-
32
-var VERSIONS = {
33
-  BASE:                   { api: 1,     ndk: 0, semver: "1.0",               name: "(no code name)",     },
34
-  BASE_1_1:               { api: 2,     ndk: 0, semver: "1.1",               name: "(no code name)",     },
35
-  CUPCAKE:                { api: 3,     ndk: 1, semver: "1.5",               name: "Cupcake",            },
36
-  DONUT:                  { api: 4,     ndk: 2, semver: "1.6",               name: "Donut",              },
37
-  ECLAIR:                 { api: 5,     ndk: 2, semver: "2.0",               name: "Eclair",             },
38
-  ECLAIR_0_1:             { api: 6,     ndk: 2, semver: "2.0.1",             name: "Eclair",             },
39
-  ECLAIR_MR1:             { api: 7,     ndk: 3, semver: "2.1",               name: "Eclair",             },
40
-  FROYO:                  { api: 8,     ndk: 4, semver: "2.2.x",             name: "Froyo",              },
41
-  GINGERBREAD:            { api: 9,     ndk: 5, semver: "2.3.0 - 2.3.2",     name: "Gingerbread",        },
42
-  GINGERBREAD_MR1:        { api: 10,    ndk: 5, semver: "2.3.3 - 2.3.7",     name: "Gingerbread",        },
43
-  HONEYCOMB:              { api: 11,    ndk: 5, semver: "3.0",               name: "Honeycomb",          },
44
-  HONEYCOMB_MR1:          { api: 12,    ndk: 6, semver: "3.1",               name: "Honeycomb",          },
45
-  HONEYCOMB_MR2:          { api: 13,    ndk: 6, semver: "3.2.x",             name: "Honeycomb",          },
46
-  ICE_CREAM_SANDWICH:     { api: 14,    ndk: 7, semver: "4.0.1 - 4.0.2",     name: "Ice Cream Sandwich", },
47
-  ICE_CREAM_SANDWICH_MR1: { api: 15,    ndk: 8, semver: "4.0.3 - 4.0.4",     name: "Ice Cream Sandwich", },
48
-  JELLY_BEAN:             { api: 16,    ndk: 8, semver: "4.1.x",             name: "Jellybean",          },
49
-  JELLY_BEAN_MR1:         { api: 17,    ndk: 8, semver: "4.2.x",             name: "Jellybean",          },
50
-  JELLY_BEAN_MR2:         { api: 18,    ndk: 8, semver: "4.3.x",             name: "Jellybean",          },
51
-  KITKAT:                 { api: 19,    ndk: 8, semver: "4.4.0 - 4.4.4",     name: "KitKat",             },
52
-  KITKAT_WATCH:           { api: 20,    ndk: 8, semver: "4.4",               name: "KitKat Watch",       },
53
-  LOLLIPOP:               { api: 21,    ndk: 8, semver: "5.0",               name: "Lollipop",           },
54
-  LOLLIPOP_MR1:           { api: 22,    ndk: 8, semver: "5.1",               name: "Lollipop",           },
55
-  M:                      { api: 23,    ndk: 8, semver: "6.0",               name: "Marshmallow",        },
56
-  N:                      { api: 24,    ndk: 8, semver: "7.0",               name: "Nougat",             },
57
-  N_MR1:                  { api: 25,    ndk: 8, semver: "7.1",               name: "Nougat",             },
58
-  O:                      { api: 26,    ndk: 8, semver: "8.0.0",             name: "Oreo",               },
59
-  O_MR1:                  { api: 27,    ndk: 8, semver: "8.1.0",             name: "Oreo",               },
60
-  P:                      { api: 28,    ndk: 8, semver: "9",                 name: "Pie",                },
61
-  Q:                      { api: 29,    ndk: 8, semver: "10",                name: "Android10",          }
62
-}
63
-
64
-// Add a key to each version of Android for the "versionCode".
65
-// This is the same key we use in the VERSIONS map above.
66
-Object.keys(VERSIONS).forEach(function(version) {
67
-  VERSIONS[version].versionCode = version
68
-})
69
-
70
-var semver = require('semver');
71
-
72
-// semver format requires <major>.<minor>.<patch> but we allow just <major>.<minor> format.
73
-// Coerce <major>.<minor> to <major>.<minor>.0
74
-function formatSemver(semver) {
75
-  if (semver.match(/^\d+.\d+$/)) {
76
-    return semver + '.0'
77
-  } else {
78
-    return semver
79
-  }
80
-}
81
-
82
-// The default predicate compares against API level, semver, name, or code.
83
-function getFromDefaultPredicate(arg) {
84
-  // Coerce arg to string for comparisons below.
85
-  arg = arg.toString()
86
-
87
-  return getFromPredicate(function(version) {
88
-    // Check API level before all else.
89
-    if (arg === version.api.toString()) {
90
-      return true
91
-    }
92
-
93
-    var argSemver = formatSemver(arg)
94
-    var versionSemver = formatSemver(version.semver)
95
-
96
-    if (semver.valid(argSemver) && semver.satisfies(argSemver, versionSemver)) {
97
-      return true
98
-    }
99
-
100
-    // Compare version name and code.
101
-    return arg === version.name || arg === version.versionCode
102
-  })
103
-}
104
-
105
-// The function to allow passing a predicate.
106
-function getFromPredicate(predicate) {
107
-  if (predicate === null) {
108
-    return null
109
-  }
110
-
111
-  return Object.keys(VERSIONS).filter(function(version) {
112
-    return predicate(VERSIONS[version])
113
-  }).map(function(key) { return VERSIONS[key] })
114
-}
115
-
116
-/**
117
- * The Android version codes available as keys for easier look-up.
118
- */
119
-Object.keys(VERSIONS).forEach(function(name) {
120
-  exports[name] = VERSIONS[name]
121
-})
122
-
123
-/**
124
- * The complete reference of Android versions for easier look-up.
125
- */
126
-exports.VERSIONS = VERSIONS
127
-
128
-/**
129
- * Retrieve a single Android version.
130
- *
131
- * @param {object | Function} arg - The value or predicate to use to retrieve values.
132
- *
133
- * @return {object} An object representing the version found or null if none found.
134
- */
135
-exports.get = function(arg) {
136
-  var result = exports.getAll(arg)
137
-
138
-  if (result === null || result.length === 0) {
139
-    return null
140
-  }
141
-
142
-  return result[0]
143
-}
144
-
145
-/**
146
- * Retrieve all Android versions that meet the criteria of the argument.
147
- *
148
- * @param {object | Function} arg - The value or predicate to use to retrieve values.
149
- *
150
- * @return {object} An object representing the version found or null if none found.
151
- */
152
-exports.getAll = function(arg) {
153
-  if (arg === null) {
154
-    return null
155
-  }
156
-
157
-  if (typeof arg === "function") {
158
-    return getFromPredicate(arg)
159
-  } else {
160
-    return getFromDefaultPredicate(arg)
161
-  }
162
-}

+ 0
- 67
km0App/node_modules/android-versions/package.json View File

@@ -1,67 +0,0 @@
1
-{
2
-  "_from": "android-versions@^1.4.0",
3
-  "_id": "android-versions@1.5.0",
4
-  "_inBundle": false,
5
-  "_integrity": "sha512-/GWUAqa2OJNlDF5VGSe3SR1QMHEPXxx54Ur56r0qQC0H9FlBr7kyBF2SgVEhzFCPbrW4UcYgVuWrq/2Ty3QvXg==",
6
-  "_location": "/android-versions",
7
-  "_phantomChildren": {},
8
-  "_requested": {
9
-    "type": "range",
10
-    "registry": true,
11
-    "raw": "android-versions@^1.4.0",
12
-    "name": "android-versions",
13
-    "escapedName": "android-versions",
14
-    "rawSpec": "^1.4.0",
15
-    "saveSpec": null,
16
-    "fetchSpec": "^1.4.0"
17
-  },
18
-  "_requiredBy": [
19
-    "/cordova-android"
20
-  ],
21
-  "_resolved": "https://registry.npmjs.org/android-versions/-/android-versions-1.5.0.tgz",
22
-  "_shasum": "7790bc74e0812aafd69fb1ad0cb4db4474a525d6",
23
-  "_spec": "android-versions@^1.4.0",
24
-  "_where": "/home/luis/Software/kilometro0/km0App/node_modules/cordova-android",
25
-  "author": {
26
-    "name": "dvoiss"
27
-  },
28
-  "bugs": {
29
-    "url": "https://github.com/dvoiss/android-versions/issues"
30
-  },
31
-  "bundleDependencies": false,
32
-  "dependencies": {
33
-    "semver": "^5.4.1"
34
-  },
35
-  "deprecated": false,
36
-  "description": "Get the name, API level, version level, NDK level, or version code from any version of Android.",
37
-  "devDependencies": {
38
-    "jshint": "^2.9.6",
39
-    "tape": "^4.6.0"
40
-  },
41
-  "homepage": "https://github.com/dvoiss/android-versions#readme",
42
-  "keywords": [
43
-    "android",
44
-    "version",
45
-    "versions",
46
-    "ndk",
47
-    "nougat",
48
-    "marshmallow",
49
-    "api",
50
-    "level"
51
-  ],
52
-  "license": "MIT",
53
-  "main": "index.js",
54
-  "name": "android-versions",
55
-  "pre-commit": [
56
-    "jshint"
57
-  ],
58
-  "repository": {
59
-    "type": "git",
60
-    "url": "git+https://github.com/dvoiss/android-versions.git"
61
-  },
62
-  "scripts": {
63
-    "jshint": "jshint .",
64
-    "test": "tape tests/**/*.js"
65
-  },
66
-  "version": "1.5.0"
67
-}

+ 0
- 119
km0App/node_modules/android-versions/tests/index.test.js View File

@@ -1,119 +0,0 @@
1
-"use strict";
2
-
3
-const test = require('tape')
4
-const android = require('..')
5
-
6
-test('get specific version by API level', (t) => {
7
-  t.plan(1)
8
-  t.equal(android.get(24).name, "Nougat")
9
-})
10
-
11
-test('getAll versions by API level', (t) => {
12
-  t.plan(1)
13
-  t.equal(android.getAll(24)[0].name, "Nougat")
14
-})
15
-
16
-test('get specific version by predicate', (t) => {
17
-  t.plan(2)
18
-
19
-  let actual = android.get((version) => {
20
-    return version.name.indexOf("on") !== -1
21
-  })
22
-  t.equal(actual.name, "Donut")
23
-
24
-  actual = android.get((version) => {
25
-    return version.ndk > 5 && version.api < 15
26
-  })
27
-  t.equal(actual.versionCode, "HONEYCOMB_MR1")
28
-})
29
-
30
-test('getAll versions by predicate', (t) => {
31
-  t.plan(3)
32
-
33
-  let actual = android.getAll((version) => {
34
-    return version.name.indexOf("on") !== -1
35
-  }).map((version) => version.name)
36
-  t.deepEqual(actual, ["Donut", "Honeycomb", "Honeycomb", "Honeycomb"])
37
-
38
-  actual = android.getAll((version) => {
39
-    return version.ndk > 5 && version.api < 15
40
-  }).map((version) => version.versionCode)
41
-  t.deepEqual(actual, ["HONEYCOMB_MR1", "HONEYCOMB_MR2", "ICE_CREAM_SANDWICH"])
42
-
43
-  actual = android.getAll((version) => {
44
-    return version.api > 22
45
-  }).map((version) => version.versionCode)
46
-  t.deepEqual(actual, ["M", "N", "N_MR1", "O", "O_MR1", "P", "Q"])
47
-})
48
-
49
-test('get version by semantic version', (t) => {
50
-  t.plan(4)
51
-  t.equal(android.get("6.0").versionCode, android.M.versionCode)
52
-  t.equal(android.get("6.0.0").versionCode, android.M.versionCode)
53
-  t.equal(android.get("2.3").versionCode, android.GINGERBREAD.versionCode)
54
-  t.equal(android.get("2.3.3").versionCode, android.GINGERBREAD_MR1.versionCode)
55
-})
56
-
57
-test('support major version only', (t) => {
58
-  t.plan(2)
59
-  t.equal(android.get("9.0").versionCode, android.P.versionCode)
60
-  t.equal(android.get("9.0.0").versionCode, android.P.versionCode)
61
-})
62
-
63
-test('support version ranges', (t) => {
64
-  t.plan(7)
65
-  let tests = [ "4.4", "4.4.0", "4.4.1", "4.4.2", "4.4.3", "4.4.4" ]
66
-  tests.forEach((versionCode) => {
67
-    t.equal(android.get(versionCode).versionCode, android.KITKAT.versionCode)
68
-  })
69
-  t.equal(android.get("4.4.5"), null)
70
-})
71
-
72
-test('support x-ranges', (t) => {
73
-  t.plan(12)
74
-  let tests = [
75
-    "4.1", "4.1.0", "4.1.1", "4.1.2", "4.1.3", "4.1.4",
76
-    "4.1.5", "4.1.6", "4.1.7", "4.1.8", "4.1.9", "4.1.10"
77
-  ]
78
-  tests.forEach((versionCode) => {
79
-    t.equal(android.get(versionCode).versionCode, android.JELLY_BEAN.versionCode)
80
-  })
81
-})
82
-
83
-test('access version codes object', (t) => {
84
-  t.plan(1)
85
-  t.ok(android.VERSIONS)
86
-})
87
-
88
-test('access specific versions directly', (t) => {
89
-  t.plan(29)
90
-  t.ok(android.BASE)
91
-  t.ok(android.BASE_1_1)
92
-  t.ok(android.CUPCAKE)
93
-  t.ok(android.DONUT)
94
-  t.ok(android.ECLAIR)
95
-  t.ok(android.ECLAIR_0_1)
96
-  t.ok(android.ECLAIR_MR1)
97
-  t.ok(android.FROYO)
98
-  t.ok(android.GINGERBREAD)
99
-  t.ok(android.GINGERBREAD_MR1)
100
-  t.ok(android.HONEYCOMB)
101
-  t.ok(android.HONEYCOMB_MR1)
102
-  t.ok(android.HONEYCOMB_MR2)
103
-  t.ok(android.ICE_CREAM_SANDWICH)
104
-  t.ok(android.ICE_CREAM_SANDWICH_MR1)
105
-  t.ok(android.JELLY_BEAN)
106
-  t.ok(android.JELLY_BEAN_MR1)
107
-  t.ok(android.JELLY_BEAN_MR2)
108
-  t.ok(android.KITKAT)
109
-  t.ok(android.KITKAT_WATCH)
110
-  t.ok(android.LOLLIPOP)
111
-  t.ok(android.LOLLIPOP_MR1)
112
-  t.ok(android.M)
113
-  t.ok(android.N)
114
-  t.ok(android.N_MR1)
115
-  t.ok(android.O)
116
-  t.ok(android.O_MR1)
117
-  t.ok(android.P)
118
-  t.ok(android.Q)
119
-})

+ 0
- 165
km0App/node_modules/ansi-styles/index.js View File

@@ -1,165 +0,0 @@
1
-'use strict';
2
-const colorConvert = require('color-convert');
3
-
4
-const wrapAnsi16 = (fn, offset) => function () {
5
-	const code = fn.apply(colorConvert, arguments);
6
-	return `\u001B[${code + offset}m`;
7
-};
8
-
9
-const wrapAnsi256 = (fn, offset) => function () {
10
-	const code = fn.apply(colorConvert, arguments);
11
-	return `\u001B[${38 + offset};5;${code}m`;
12
-};
13
-
14
-const wrapAnsi16m = (fn, offset) => function () {
15
-	const rgb = fn.apply(colorConvert, arguments);
16
-	return `\u001B[${38 + offset};2;${rgb[0]};${rgb[1]};${rgb[2]}m`;
17
-};
18
-
19
-function assembleStyles() {
20
-	const codes = new Map();
21
-	const styles = {
22
-		modifier: {
23
-			reset: [0, 0],
24
-			// 21 isn't widely supported and 22 does the same thing
25
-			bold: [1, 22],
26
-			dim: [2, 22],
27
-			italic: [3, 23],
28
-			underline: [4, 24],
29
-			inverse: [7, 27],
30
-			hidden: [8, 28],
31
-			strikethrough: [9, 29]
32
-		},
33
-		color: {
34
-			black: [30, 39],
35
-			red: [31, 39],
36
-			green: [32, 39],
37
-			yellow: [33, 39],
38
-			blue: [34, 39],
39
-			magenta: [35, 39],
40
-			cyan: [36, 39],
41
-			white: [37, 39],
42
-			gray: [90, 39],
43
-
44
-			// Bright color
45
-			redBright: [91, 39],
46
-			greenBright: [92, 39],
47
-			yellowBright: [93, 39],
48
-			blueBright: [94, 39],
49
-			magentaBright: [95, 39],
50
-			cyanBright: [96, 39],
51
-			whiteBright: [97, 39]
52
-		},
53
-		bgColor: {
54
-			bgBlack: [40, 49],
55
-			bgRed: [41, 49],
56
-			bgGreen: [42, 49],
57
-			bgYellow: [43, 49],
58
-			bgBlue: [44, 49],
59
-			bgMagenta: [45, 49],
60
-			bgCyan: [46, 49],
61
-			bgWhite: [47, 49],
62
-
63
-			// Bright color
64
-			bgBlackBright: [100, 49],
65
-			bgRedBright: [101, 49],
66
-			bgGreenBright: [102, 49],
67
-			bgYellowBright: [103, 49],
68
-			bgBlueBright: [104, 49],
69
-			bgMagentaBright: [105, 49],
70
-			bgCyanBright: [106, 49],
71
-			bgWhiteBright: [107, 49]
72
-		}
73
-	};
74
-
75
-	// Fix humans
76
-	styles.color.grey = styles.color.gray;
77
-
78
-	for (const groupName of Object.keys(styles)) {
79
-		const group = styles[groupName];
80
-
81
-		for (const styleName of Object.keys(group)) {
82
-			const style = group[styleName];
83
-
84
-			styles[styleName] = {
85
-				open: `\u001B[${style[0]}m`,
86
-				close: `\u001B[${style[1]}m`
87
-			};
88
-
89
-			group[styleName] = styles[styleName];
90
-
91
-			codes.set(style[0], style[1]);
92
-		}
93
-
94
-		Object.defineProperty(styles, groupName, {
95
-			value: group,
96
-			enumerable: false
97
-		});
98
-
99
-		Object.defineProperty(styles, 'codes', {
100
-			value: codes,
101
-			enumerable: false
102
-		});
103
-	}
104
-
105
-	const ansi2ansi = n => n;
106
-	const rgb2rgb = (r, g, b) => [r, g, b];
107
-
108
-	styles.color.close = '\u001B[39m';
109
-	styles.bgColor.close = '\u001B[49m';
110
-
111
-	styles.color.ansi = {
112
-		ansi: wrapAnsi16(ansi2ansi, 0)
113
-	};
114
-	styles.color.ansi256 = {
115
-		ansi256: wrapAnsi256(ansi2ansi, 0)
116
-	};
117
-	styles.color.ansi16m = {
118
-		rgb: wrapAnsi16m(rgb2rgb, 0)
119
-	};
120
-
121
-	styles.bgColor.ansi = {
122
-		ansi: wrapAnsi16(ansi2ansi, 10)
123
-	};
124
-	styles.bgColor.ansi256 = {
125
-		ansi256: wrapAnsi256(ansi2ansi, 10)
126
-	};
127
-	styles.bgColor.ansi16m = {
128
-		rgb: wrapAnsi16m(rgb2rgb, 10)
129
-	};
130
-
131
-	for (let key of Object.keys(colorConvert)) {
132
-		if (typeof colorConvert[key] !== 'object') {
133
-			continue;
134
-		}
135
-
136
-		const suite = colorConvert[key];
137
-
138
-		if (key === 'ansi16') {
139
-			key = 'ansi';
140
-		}
141
-
142
-		if ('ansi16' in suite) {
143
-			styles.color.ansi[key] = wrapAnsi16(suite.ansi16, 0);
144
-			styles.bgColor.ansi[key] = wrapAnsi16(suite.ansi16, 10);
145
-		}
146
-
147
-		if ('ansi256' in suite) {
148
-			styles.color.ansi256[key] = wrapAnsi256(suite.ansi256, 0);
149
-			styles.bgColor.ansi256[key] = wrapAnsi256(suite.ansi256, 10);
150
-		}
151
-
152
-		if ('rgb' in suite) {
153
-			styles.color.ansi16m[key] = wrapAnsi16m(suite.rgb, 0);
154
-			styles.bgColor.ansi16m[key] = wrapAnsi16m(suite.rgb, 10);
155
-		}
156
-	}
157
-
158
-	return styles;
159
-}
160
-
161
-// Make the export immutable
162
-Object.defineProperty(module, 'exports', {
163
-	enumerable: true,
164
-	get: assembleStyles
165
-});

+ 0
- 9
km0App/node_modules/ansi-styles/license View File

@@ -1,9 +0,0 @@
1
-MIT License
2
-
3
-Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
4
-
5
-Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6
-
7
-The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8
-
9
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

+ 0
- 88
km0App/node_modules/ansi-styles/package.json View File

@@ -1,88 +0,0 @@
1
-{
2
-  "_from": "ansi-styles@^3.2.1",
3
-  "_id": "ansi-styles@3.2.1",
4
-  "_inBundle": false,
5
-  "_integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==",
6
-  "_location": "/ansi-styles",
7
-  "_phantomChildren": {},
8
-  "_requested": {
9
-    "type": "range",
10
-    "registry": true,
11
-    "raw": "ansi-styles@^3.2.1",
12
-    "name": "ansi-styles",
13
-    "escapedName": "ansi-styles",
14
-    "rawSpec": "^3.2.1",
15
-    "saveSpec": null,
16
-    "fetchSpec": "^3.2.1"
17
-  },
18
-  "_requiredBy": [
19
-    "/chalk"
20
-  ],
21
-  "_resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz",
22
-  "_shasum": "41fbb20243e50b12be0f04b8dedbf07520ce841d",
23
-  "_spec": "ansi-styles@^3.2.1",
24
-  "_where": "/home/luis/Software/kilometro0/km0App/node_modules/chalk",
25
-  "author": {
26
-    "name": "Sindre Sorhus",
27
-    "email": "sindresorhus@gmail.com",
28
-    "url": "sindresorhus.com"
29
-  },
30
-  "ava": {
31
-    "require": "babel-polyfill"
32
-  },
33
-  "bugs": {
34
-    "url": "https://github.com/chalk/ansi-styles/issues"
35
-  },
36
-  "bundleDependencies": false,
37
-  "dependencies": {
38
-    "color-convert": "^1.9.0"
39
-  },
40
-  "deprecated": false,
41
-  "description": "ANSI escape codes for styling strings in the terminal",
42
-  "devDependencies": {
43
-    "ava": "*",
44
-    "babel-polyfill": "^6.23.0",
45
-    "svg-term-cli": "^2.1.1",
46
-    "xo": "*"
47
-  },
48
-  "engines": {
49
-    "node": ">=4"
50
-  },
51
-  "files": [
52
-    "index.js"
53
-  ],
54
-  "homepage": "https://github.com/chalk/ansi-styles#readme",
55
-  "keywords": [
56
-    "ansi",
57
-    "styles",
58
-    "color",
59
-    "colour",
60
-    "colors",
61
-    "terminal",
62
-    "console",
63
-    "cli",
64
-    "string",
65
-    "tty",
66
-    "escape",
67
-    "formatting",
68
-    "rgb",
69
-    "256",
70
-    "shell",
71
-    "xterm",
72
-    "log",
73
-    "logging",
74
-    "command-line",
75
-    "text"
76
-  ],
77
-  "license": "MIT",
78
-  "name": "ansi-styles",
79
-  "repository": {
80
-    "type": "git",
81
-    "url": "git+https://github.com/chalk/ansi-styles.git"
82
-  },
83
-  "scripts": {
84
-    "screenshot": "svg-term --command='node screenshot' --out=screenshot.svg --padding=3 --width=55 --height=3 --at=1000 --no-cursor",
85
-    "test": "xo && ava"
86
-  },
87
-  "version": "3.2.1"
88
-}

+ 0
- 147
km0App/node_modules/ansi-styles/readme.md View File

@@ -1,147 +0,0 @@
1
-# ansi-styles [![Build Status](https://travis-ci.org/chalk/ansi-styles.svg?branch=master)](https://travis-ci.org/chalk/ansi-styles)
2
-
3
-> [ANSI escape codes](http://en.wikipedia.org/wiki/ANSI_escape_code#Colors_and_Styles) for styling strings in the terminal
4
-
5
-You probably want the higher-level [chalk](https://github.com/chalk/chalk) module for styling your strings.
6
-
7
-<img src="https://cdn.rawgit.com/chalk/ansi-styles/8261697c95bf34b6c7767e2cbe9941a851d59385/screenshot.svg" width="900">
8
-
9
-
10
-## Install
11
-
12
-```
13
-$ npm install ansi-styles
14
-```
15
-
16
-
17
-## Usage
18
-
19
-```js
20
-const style = require('ansi-styles');
21
-
22
-console.log(`${style.green.open}Hello world!${style.green.close}`);
23
-
24
-
25
-// Color conversion between 16/256/truecolor
26
-// NOTE: If conversion goes to 16 colors or 256 colors, the original color
27
-//       may be degraded to fit that color palette. This means terminals
28
-//       that do not support 16 million colors will best-match the
29
-//       original color.
30
-console.log(style.bgColor.ansi.hsl(120, 80, 72) + 'Hello world!' + style.bgColor.close);
31
-console.log(style.color.ansi256.rgb(199, 20, 250) + 'Hello world!' + style.color.close);
32
-console.log(style.color.ansi16m.hex('#ABCDEF') + 'Hello world!' + style.color.close);
33
-```
34
-
35
-## API
36
-
37
-Each style has an `open` and `close` property.
38
-
39
-
40
-## Styles
41
-
42
-### Modifiers
43
-
44
-- `reset`
45
-- `bold`
46
-- `dim`
47
-- `italic` *(Not widely supported)*
48
-- `underline`
49
-- `inverse`
50
-- `hidden`
51
-- `strikethrough` *(Not widely supported)*
52
-
53
-### Colors
54
-
55
-- `black`
56
-- `red`
57
-- `green`
58
-- `yellow`
59
-- `blue`
60
-- `magenta`
61
-- `cyan`
62
-- `white`
63
-- `gray` ("bright black")
64
-- `redBright`
65
-- `greenBright`
66
-- `yellowBright`
67
-- `blueBright`
68
-- `magentaBright`
69
-- `cyanBright`
70
-- `whiteBright`
71
-
72
-### Background colors
73
-
74
-- `bgBlack`
75
-- `bgRed`
76
-- `bgGreen`
77
-- `bgYellow`
78
-- `bgBlue`
79
-- `bgMagenta`
80
-- `bgCyan`
81
-- `bgWhite`
82
-- `bgBlackBright`
83
-- `bgRedBright`
84
-- `bgGreenBright`
85
-- `bgYellowBright`
86
-- `bgBlueBright`
87
-- `bgMagentaBright`
88
-- `bgCyanBright`
89
-- `bgWhiteBright`
90
-
91
-
92
-## Advanced usage
93
-
94
-By default, you get a map of styles, but the styles are also available as groups. They are non-enumerable so they don't show up unless you access them explicitly. This makes it easier to expose only a subset in a higher-level module.
95
-
96
-- `style.modifier`
97
-- `style.color`
98
-- `style.bgColor`
99
-
100
-###### Example
101
-
102
-```js
103
-console.log(style.color.green.open);
104
-```
105
-
106
-Raw escape codes (i.e. without the CSI escape prefix `\u001B[` and render mode postfix `m`) are available under `style.codes`, which returns a `Map` with the open codes as keys and close codes as values.
107
-
108
-###### Example
109
-
110
-```js
111
-console.log(style.codes.get(36));
112
-//=> 39
113
-```
114
-
115
-
116
-## [256 / 16 million (TrueColor) support](https://gist.github.com/XVilka/8346728)
117
-
118
-`ansi-styles` uses the [`color-convert`](https://github.com/Qix-/color-convert) package to allow for converting between various colors and ANSI escapes, with support for 256 and 16 million colors.
119
-
120
-To use these, call the associated conversion function with the intended output, for example:
121
-
122
-```js
123
-style.color.ansi.rgb(100, 200, 15); // RGB to 16 color ansi foreground code
124
-style.bgColor.ansi.rgb(100, 200, 15); // RGB to 16 color ansi background code
125
-
126
-style.color.ansi256.hsl(120, 100, 60); // HSL to 256 color ansi foreground code
127
-style.bgColor.ansi256.hsl(120, 100, 60); // HSL to 256 color ansi foreground code
128
-
129
-style.color.ansi16m.hex('#C0FFEE'); // Hex (RGB) to 16 million color foreground code
130
-style.bgColor.ansi16m.hex('#C0FFEE'); // Hex (RGB) to 16 million color background code
131
-```
132
-
133
-
134
-## Related
135
-
136
-- [ansi-escapes](https://github.com/sindresorhus/ansi-escapes) - ANSI escape codes for manipulating the terminal
137
-
138
-
139
-## Maintainers
140
-
141
-- [Sindre Sorhus](https://github.com/sindresorhus)
142
-- [Josh Junon](https://github.com/qix-)
143
-
144
-
145
-## License
146
-
147
-MIT

+ 0
- 4
km0App/node_modules/ansi/.jshintrc View File

@@ -1,4 +0,0 @@
1
-{
2
-  "laxcomma": true,
3
-  "asi": true
4
-}

+ 0
- 1
km0App/node_modules/ansi/.npmignore View File

@@ -1 +0,0 @@
1
-node_modules

+ 0
- 23
km0App/node_modules/ansi/History.md View File

@@ -1,23 +0,0 @@
1
-
2
-0.3.1 / 2016-01-14
3
-==================
4
-
5
-  * add MIT LICENSE file (#23, @kasicka)
6
-  * preserve chaining after redundant style-method calls (#19, @drewblaisdell)
7
-  * package: add "license" field (#16, @BenjaminTsai)
8
-
9
-0.3.0 / 2014-05-09
10
-==================
11
-
12
-  * package: remove "test" script and "devDependencies"
13
-  * package: remove "engines" section
14
-  * pacakge: remove "bin" section
15
-  * package: beautify
16
-  * examples: remove `starwars` example (#15)
17
-  * Documented goto, horizontalAbsolute, and eraseLine methods in README.md (#12, @Jammerwoch)
18
-  * add `.jshintrc` file
19
-
20
-< 0.3.0
21
-=======
22
-
23
-  * Prehistoric

+ 0
- 24
km0App/node_modules/ansi/LICENSE View File

@@ -1,24 +0,0 @@
1
-(The MIT License)
2
-
3
-Copyright (c) 2012 Nathan Rajlich <nathan@tootallnate.net>
4
-
5
-Permission is hereby granted, free of charge, to any person
6
-obtaining a copy of this software and associated documentation
7
-files (the "Software"), to deal in the Software without
8
-restriction, including without limitation the rights to use,
9
-copy, modify, merge, publish, distribute, sublicense, and/or sell
10
-copies of the Software, and to permit persons to whom the
11
-Software is furnished to do so, subject to the following
12
-conditions:
13
-
14
-The above copyright notice and this permission notice shall be
15
-included in all copies or substantial portions of the Software.
16
-
17
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
18
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
19
-OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
20
-NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
21
-HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
22
-WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
23
-FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
24
-OTHER DEALINGS IN THE SOFTWARE.

+ 0
- 98
km0App/node_modules/ansi/README.md View File

@@ -1,98 +0,0 @@
1
-ansi.js
2
-=========
3
-### Advanced ANSI formatting tool for Node.js
4
-
5
-`ansi.js` is a module for Node.js that provides an easy-to-use API for
6
-writing ANSI escape codes to `Stream` instances. ANSI escape codes are used to do
7
-fancy things in a terminal window, like render text in colors, delete characters,
8
-lines, the entire window, or hide and show the cursor, and lots more!
9
-
10
-#### Features:
11
-
12
- * 256 color support for the terminal!
13
- * Make a beep sound from your terminal!
14
- * Works with *any* writable `Stream` instance.
15
- * Allows you to move the cursor anywhere on the terminal window.
16
- * Allows you to delete existing contents from the terminal window.
17
- * Allows you to hide and show the cursor.
18
- * Converts CSS color codes and RGB values into ANSI escape codes.
19
- * Low-level; you are in control of when escape codes are used, it's not abstracted.
20
-
21
-
22
-Installation
23
-------------
24
-
25
-Install with `npm`:
26
-
27
-``` bash
28
-$ npm install ansi
29
-```
30
-
31
-
32
-Example
33
--------
34
-
35
-``` js
36
-var ansi = require('ansi')
37
-  , cursor = ansi(process.stdout)
38
-
39
-// You can chain your calls forever:
40
-cursor
41
-  .red()                 // Set font color to red
42
-  .bg.grey()             // Set background color to grey
43
-  .write('Hello World!') // Write 'Hello World!' to stdout
44
-  .bg.reset()            // Reset the bgcolor before writing the trailing \n,
45
-                         //      to avoid Terminal glitches
46
-  .write('\n')           // And a final \n to wrap things up
47
-
48
-// Rendering modes are persistent:
49
-cursor.hex('#660000').bold().underline()
50
-
51
-// You can use the regular logging functions, text will be green:
52
-console.log('This is blood red, bold text')
53
-
54
-// To reset just the foreground color:
55
-cursor.fg.reset()
56
-
57
-console.log('This will still be bold')
58
-
59
-// to go to a location (x,y) on the console
60
-// note: 1-indexed, not 0-indexed:
61
-cursor.goto(10, 5).write('Five down, ten over')
62
-
63
-// to clear the current line:
64
-cursor.horizontalAbsolute(0).eraseLine().write('Starting again')
65
-
66
-// to go to a different column on the current line:
67
-cursor.horizontalAbsolute(5).write('column five')
68
-
69
-// Clean up after yourself!
70
-cursor.reset()
71
-```
72
-
73
-
74
-License
75
--------
76
-
77
-(The MIT License)
78
-
79
-Copyright (c) 2012 Nathan Rajlich &lt;nathan@tootallnate.net&gt;
80
-
81
-Permission is hereby granted, free of charge, to any person obtaining
82
-a copy of this software and associated documentation files (the
83
-'Software'), to deal in the Software without restriction, including
84
-without limitation the rights to use, copy, modify, merge, publish,
85
-distribute, sublicense, and/or sell copies of the Software, and to
86
-permit persons to whom the Software is furnished to do so, subject to
87
-the following conditions:
88
-
89
-The above copyright notice and this permission notice shall be
90
-included in all copies or substantial portions of the Software.
91
-
92
-THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
93
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
94
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
95
-IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
96
-CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
97
-TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
98
-SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

+ 0
- 16
km0App/node_modules/ansi/examples/beep/index.js View File

@@ -1,16 +0,0 @@
1
-#!/usr/bin/env node
2
-
3
-/**
4
- * Invokes the terminal "beep" sound once per second on every exact second.
5
- */
6
-
7
-process.title = 'beep'
8
-
9
-var cursor = require('../../')(process.stdout)
10
-
11
-function beep () {
12
-  cursor.beep()
13
-  setTimeout(beep, 1000 - (new Date()).getMilliseconds())
14
-}
15
-
16
-setTimeout(beep, 1000 - (new Date()).getMilliseconds())

+ 0
- 15
km0App/node_modules/ansi/examples/clear/index.js View File

@@ -1,15 +0,0 @@
1
-#!/usr/bin/env node
2
-
3
-/**
4
- * Like GNU ncurses "clear" command.
5
- * https://github.com/mscdex/node-ncurses/blob/master/deps/ncurses/progs/clear.c
6
- */
7
-
8
-process.title = 'clear'
9
-
10
-function lf () { return '\n' }
11
-
12
-require('../../')(process.stdout)
13
-  .write(Array.apply(null, Array(process.stdout.getWindowSize()[1])).map(lf).join(''))
14
-  .eraseData(2)
15
-  .goto(1, 1)

+ 0
- 32
km0App/node_modules/ansi/examples/cursorPosition.js View File

@@ -1,32 +0,0 @@
1
-#!/usr/bin/env node
2
-
3
-var tty = require('tty')
4
-var cursor = require('../')(process.stdout)
5
-
6
-// listen for the queryPosition report on stdin
7
-process.stdin.resume()
8
-raw(true)
9
-
10
-process.stdin.once('data', function (b) {
11
-  var match = /\[(\d+)\;(\d+)R$/.exec(b.toString())
12
-  if (match) {
13
-    var xy = match.slice(1, 3).reverse().map(Number)
14
-    console.error(xy)
15
-  }
16
-
17
-  // cleanup and close stdin
18
-  raw(false)
19
-  process.stdin.pause()
20
-})
21
-
22
-
23
-// send the query position request code to stdout
24
-cursor.queryPosition()
25
-
26
-function raw (mode) {
27
-  if (process.stdin.setRawMode) {
28
-    process.stdin.setRawMode(mode)
29
-  } else {
30
-    tty.setRawMode(mode)
31
-  }
32
-}

+ 0
- 87
km0App/node_modules/ansi/examples/progress/index.js View File

@@ -1,87 +0,0 @@
1
-#!/usr/bin/env node
2
-
3
-var assert = require('assert')
4
-  , ansi = require('../../')
5
-
6
-function Progress (stream, width) {
7
-  this.cursor = ansi(stream)
8
-  this.delta = this.cursor.newlines
9
-  this.width = width | 0 || 10
10
-  this.open = '['
11
-  this.close = ']'
12
-  this.complete = '█'
13
-  this.incomplete = '_'
14
-
15
-  // initial render
16
-  this.progress = 0
17
-}
18
-
19
-Object.defineProperty(Progress.prototype, 'progress', {
20
-    get: get
21
-  , set: set
22
-  , configurable: true
23
-  , enumerable: true
24
-})
25
-
26
-function get () {
27
-  return this._progress
28
-}
29
-
30
-function set (v) {
31
-  this._progress = Math.max(0, Math.min(v, 100))
32
-
33
-  var w = this.width - this.complete.length - this.incomplete.length
34
-    , n = w * (this._progress / 100) | 0
35
-    , i = w - n
36
-    , com = c(this.complete, n)
37
-    , inc = c(this.incomplete, i)
38
-    , delta = this.cursor.newlines - this.delta
39
-
40
-  assert.equal(com.length + inc.length, w)
41
-
42
-  if (delta > 0) {
43
-    this.cursor.up(delta)
44
-    this.delta = this.cursor.newlines
45
-  }
46
-
47
-  this.cursor
48
-    .horizontalAbsolute(0)
49
-    .eraseLine(2)
50
-    .fg.white()
51
-    .write(this.open)
52
-    .fg.grey()
53
-    .bold()
54
-    .write(com)
55
-    .resetBold()
56
-    .write(inc)
57
-    .fg.white()
58
-    .write(this.close)
59
-    .fg.reset()
60
-    .write('\n')
61
-}
62
-
63
-function c (char, length) {
64
-  return Array.apply(null, Array(length)).map(function () {
65
-    return char
66
-  }).join('')
67
-}
68
-
69
-
70
-
71
-
72
-// Usage
73
-var width = parseInt(process.argv[2], 10) || process.stdout.getWindowSize()[0] / 2
74
-  , p = new Progress(process.stdout, width)
75
-
76
-;(function tick () {
77
-  p.progress += Math.random() * 5
78
-  p.cursor
79
-    .eraseLine(2)
80
-    .write('Progress: ')
81
-    .bold().write(p.progress.toFixed(2))
82
-    .write('%')
83
-    .resetBold()
84
-    .write('\n')
85
-  if (p.progress < 100)
86
-    setTimeout(tick, 100)
87
-})()

+ 0
- 405
km0App/node_modules/ansi/lib/ansi.js View File

@@ -1,405 +0,0 @@
1
-
2
-/**
3
- * References:
4
- *
5
- *   - http://en.wikipedia.org/wiki/ANSI_escape_code
6
- *   - http://www.termsys.demon.co.uk/vtansi.htm
7
- *
8
- */
9
-
10
-/**
11
- * Module dependencies.
12
- */
13
-
14
-var emitNewlineEvents = require('./newlines')
15
-  , prefix = '\x1b[' // For all escape codes
16
-  , suffix = 'm'     // Only for color codes
17
-
18
-/**
19
- * The ANSI escape sequences.
20
- */
21
-
22
-var codes = {
23
-    up: 'A'
24
-  , down: 'B'
25
-  , forward: 'C'
26
-  , back: 'D'
27
-  , nextLine: 'E'
28
-  , previousLine: 'F'
29
-  , horizontalAbsolute: 'G'
30
-  , eraseData: 'J'
31
-  , eraseLine: 'K'
32
-  , scrollUp: 'S'
33
-  , scrollDown: 'T'
34
-  , savePosition: 's'
35
-  , restorePosition: 'u'
36
-  , queryPosition: '6n'
37
-  , hide: '?25l'
38
-  , show: '?25h'
39
-}
40
-
41
-/**
42
- * Rendering ANSI codes.
43
- */
44
-
45
-var styles = {
46
-    bold: 1
47
-  , italic: 3
48
-  , underline: 4
49
-  , inverse: 7
50
-}
51
-
52
-/**
53
- * The negating ANSI code for the rendering modes.
54
- */
55
-
56
-var reset = {
57
-    bold: 22
58
-  , italic: 23
59
-  , underline: 24
60
-  , inverse: 27
61
-}
62
-
63
-/**
64
- * The standard, styleable ANSI colors.
65
- */
66
-
67
-var colors = {
68
-    white: 37
69
-  , black: 30
70
-  , blue: 34
71
-  , cyan: 36
72
-  , green: 32
73
-  , magenta: 35
74
-  , red: 31
75
-  , yellow: 33
76
-  , grey: 90
77
-  , brightBlack: 90
78
-  , brightRed: 91
79
-  , brightGreen: 92
80
-  , brightYellow: 93
81
-  , brightBlue: 94
82
-  , brightMagenta: 95
83
-  , brightCyan: 96
84
-  , brightWhite: 97
85
-}
86
-
87
-
88
-/**
89
- * Creates a Cursor instance based off the given `writable stream` instance.
90
- */
91
-
92
-function ansi (stream, options) {
93
-  if (stream._ansicursor) {
94
-    return stream._ansicursor
95
-  } else {
96
-    return stream._ansicursor = new Cursor(stream, options)
97
-  }
98
-}
99
-module.exports = exports = ansi
100
-
101
-/**
102
- * The `Cursor` class.
103
- */
104
-
105
-function Cursor (stream, options) {
106
-  if (!(this instanceof Cursor)) {
107
-    return new Cursor(stream, options)
108
-  }
109
-  if (typeof stream != 'object' || typeof stream.write != 'function') {
110
-    throw new Error('a valid Stream instance must be passed in')
111
-  }
112
-
113
-  // the stream to use
114
-  this.stream = stream
115
-
116
-  // when 'enabled' is false then all the functions are no-ops except for write()
117
-  this.enabled = options && options.enabled
118
-  if (typeof this.enabled === 'undefined') {
119
-    this.enabled = stream.isTTY
120
-  }
121
-  this.enabled = !!this.enabled
122
-
123
-  // then `buffering` is true, then `write()` calls are buffered in
124
-  // memory until `flush()` is invoked
125
-  this.buffering = !!(options && options.buffering)
126
-  this._buffer = []
127
-
128
-  // controls the foreground and background colors
129
-  this.fg = this.foreground = new Colorer(this, 0)
130
-  this.bg = this.background = new Colorer(this, 10)
131
-
132
-  // defaults
133
-  this.Bold = false
134
-  this.Italic = false
135
-  this.Underline = false
136
-  this.Inverse = false
137
-
138
-  // keep track of the number of "newlines" that get encountered
139
-  this.newlines = 0
140
-  emitNewlineEvents(stream)
141
-  stream.on('newline', function () {
142
-    this.newlines++
143
-  }.bind(this))
144
-}
145
-exports.Cursor = Cursor
146
-
147
-/**
148
- * Helper function that calls `write()` on the underlying Stream.
149
- * Returns `this` instead of the write() return value to keep
150
- * the chaining going.
151
- */
152
-
153
-Cursor.prototype.write = function (data) {
154
-  if (this.buffering) {
155
-    this._buffer.push(arguments)
156
-  } else {
157
-    this.stream.write.apply(this.stream, arguments)
158
-  }
159
-  return this
160
-}
161
-
162
-/**
163
- * Buffer `write()` calls into memory.
164
- *
165
- * @api public
166
- */
167
-
168
-Cursor.prototype.buffer = function () {
169
-  this.buffering = true
170
-  return this
171
-}
172
-
173
-/**
174
- * Write out the in-memory buffer.
175
- *
176
- * @api public
177
- */
178
-
179
-Cursor.prototype.flush = function () {
180
-  this.buffering = false
181
-  var str = this._buffer.map(function (args) {
182
-    if (args.length != 1) throw new Error('unexpected args length! ' + args.length);
183
-    return args[0];
184
-  }).join('');
185
-  this._buffer.splice(0); // empty
186
-  this.write(str);
187
-  return this
188
-}
189
-
190
-
191
-/**
192
- * The `Colorer` class manages both the background and foreground colors.
193
- */
194
-
195
-function Colorer (cursor, base) {
196
-  this.current = null
197
-  this.cursor = cursor
198
-  this.base = base
199
-}
200
-exports.Colorer = Colorer
201
-
202
-/**
203
- * Write an ANSI color code, ensuring that the same code doesn't get rewritten.
204
- */
205
-
206
-Colorer.prototype._setColorCode = function setColorCode (code) {
207
-  var c = String(code)
208
-  if (this.current === c) return
209
-  this.cursor.enabled && this.cursor.write(prefix + c + suffix)
210
-  this.current = c
211
-  return this
212
-}
213
-
214
-
215
-/**
216
- * Set up the positional ANSI codes.
217
- */
218
-
219
-Object.keys(codes).forEach(function (name) {
220
-  var code = String(codes[name])
221
-  Cursor.prototype[name] = function () {
222
-    var c = code
223
-    if (arguments.length > 0) {
224
-      c = toArray(arguments).map(Math.round).join(';') + code
225
-    }
226
-    this.enabled && this.write(prefix + c)
227
-    return this
228
-  }
229
-})
230
-
231
-/**
232
- * Set up the functions for the rendering ANSI codes.
233
- */
234
-
235
-Object.keys(styles).forEach(function (style) {
236
-  var name = style[0].toUpperCase() + style.substring(1)
237
-    , c = styles[style]
238
-    , r = reset[style]
239
-
240
-  Cursor.prototype[style] = function () {
241
-    if (this[name]) return this
242
-    this.enabled && this.write(prefix + c + suffix)
243
-    this[name] = true
244
-    return this
245
-  }
246
-
247
-  Cursor.prototype['reset' + name] = function () {
248
-    if (!this[name]) return this
249
-    this.enabled && this.write(prefix + r + suffix)
250
-    this[name] = false
251
-    return this
252
-  }
253
-})
254
-
255
-/**
256
- * Setup the functions for the standard colors.
257
- */
258
-
259
-Object.keys(colors).forEach(function (color) {
260
-  var code = colors[color]
261
-
262
-  Colorer.prototype[color] = function () {
263
-    this._setColorCode(this.base + code)
264
-    return this.cursor
265
-  }
266
-
267
-  Cursor.prototype[color] = function () {
268
-    return this.foreground[color]()
269
-  }
270
-})
271
-
272
-/**
273
- * Makes a beep sound!
274
- */
275
-
276
-Cursor.prototype.beep = function () {
277
-  this.enabled && this.write('\x07')
278
-  return this
279
-}
280
-
281
-/**
282
- * Moves cursor to specific position
283
- */
284
-
285
-Cursor.prototype.goto = function (x, y) {
286
-  x = x | 0
287
-  y = y | 0
288
-  this.enabled && this.write(prefix + y + ';' + x + 'H')
289
-  return this
290
-}
291
-
292
-/**
293
- * Resets the color.
294
- */
295
-
296
-Colorer.prototype.reset = function () {
297
-  this._setColorCode(this.base + 39)
298
-  return this.cursor
299
-}
300
-
301
-/**
302
- * Resets all ANSI formatting on the stream.
303
- */
304
-
305
-Cursor.prototype.reset = function () {
306
-  this.enabled && this.write(prefix + '0' + suffix)
307
-  this.Bold = false
308
-  this.Italic = false
309
-  this.Underline = false
310
-  this.Inverse = false
311
-  this.foreground.current = null
312
-  this.background.current = null
313
-  return this
314
-}
315
-
316
-/**
317
- * Sets the foreground color with the given RGB values.
318
- * The closest match out of the 216 colors is picked.
319
- */
320
-
321
-Colorer.prototype.rgb = function (r, g, b) {
322
-  var base = this.base + 38
323
-    , code = rgb(r, g, b)
324
-  this._setColorCode(base + ';5;' + code)
325
-  return this.cursor
326
-}
327
-
328
-/**
329
- * Same as `cursor.fg.rgb(r, g, b)`.
330
- */
331
-
332
-Cursor.prototype.rgb = function (r, g, b) {
333
-  return this.foreground.rgb(r, g, b)
334
-}
335
-
336
-/**
337
- * Accepts CSS color codes for use with ANSI escape codes.
338
- * For example: `#FF000` would be bright red.
339
- */
340
-
341
-Colorer.prototype.hex = function (color) {
342
-  return this.rgb.apply(this, hex(color))
343
-}
344
-
345
-/**
346
- * Same as `cursor.fg.hex(color)`.
347
- */
348
-
349
-Cursor.prototype.hex = function (color) {
350
-  return this.foreground.hex(color)
351
-}
352
-
353
-
354
-// UTIL FUNCTIONS //
355
-
356
-/**
357
- * Translates a 255 RGB value to a 0-5 ANSI RGV value,
358
- * then returns the single ANSI color code to use.
359
- */
360
-
361
-function rgb (r, g, b) {
362
-  var red = r / 255 * 5
363
-    , green = g / 255 * 5
364
-    , blue = b / 255 * 5
365
-  return rgb5(red, green, blue)
366
-}
367
-
368
-/**
369
- * Turns rgb 0-5 values into a single ANSI color code to use.
370
- */
371
-
372
-function rgb5 (r, g, b) {
373
-  var red = Math.round(r)
374
-    , green = Math.round(g)
375
-    , blue = Math.round(b)
376
-  return 16 + (red*36) + (green*6) + blue
377
-}
378
-
379
-/**
380
- * Accepts a hex CSS color code string (# is optional) and
381
- * translates it into an Array of 3 RGB 0-255 values, which
382
- * can then be used with rgb().
383
- */
384
-
385
-function hex (color) {
386
-  var c = color[0] === '#' ? color.substring(1) : color
387
-    , r = c.substring(0, 2)
388
-    , g = c.substring(2, 4)
389
-    , b = c.substring(4, 6)
390
-  return [parseInt(r, 16), parseInt(g, 16), parseInt(b, 16)]
391
-}
392
-
393
-/**
394
- * Turns an array-like object into a real array.
395
- */
396
-
397
-function toArray (a) {
398
-  var i = 0
399
-    , l = a.length
400
-    , rtn = []
401
-  for (; i<l; i++) {
402
-    rtn.push(a[i])
403
-  }
404
-  return rtn
405
-}

+ 0
- 71
km0App/node_modules/ansi/lib/newlines.js View File

@@ -1,71 +0,0 @@
1
-
2
-/**
3
- * Accepts any node Stream instance and hijacks its "write()" function,
4
- * so that it can count any newlines that get written to the output.
5
- *
6
- * When a '\n' byte is encountered, then a "newline" event will be emitted
7
- * on the stream, with no arguments. It is up to the listeners to determine
8
- * any necessary deltas required for their use-case.
9
- *
10
- * Ex:
11
- *
12
- *   var cursor = ansi(process.stdout)
13
- *     , ln = 0
14
- *   process.stdout.on('newline', function () {
15
- *    ln++
16
- *   })
17
- */
18
-
19
-/**
20
- * Module dependencies.
21
- */
22
-
23
-var assert = require('assert')
24
-var NEWLINE = '\n'.charCodeAt(0)
25
-
26
-function emitNewlineEvents (stream) {
27
-  if (stream._emittingNewlines) {
28
-    // already emitting newline events
29
-    return
30
-  }
31
-
32
-  var write = stream.write
33
-
34
-  stream.write = function (data) {
35
-    // first write the data
36
-    var rtn = write.apply(stream, arguments)
37
-
38
-    if (stream.listeners('newline').length > 0) {
39
-      var len = data.length
40
-        , i = 0
41
-      // now try to calculate any deltas
42
-      if (typeof data == 'string') {
43
-        for (; i<len; i++) {
44
-          processByte(stream, data.charCodeAt(i))
45
-        }
46
-      } else {
47
-        // buffer
48
-        for (; i<len; i++) {
49
-          processByte(stream, data[i])
50
-        }
51
-      }
52
-    }
53
-
54
-    return rtn
55
-  }
56
-
57
-  stream._emittingNewlines = true
58
-}
59
-module.exports = emitNewlineEvents
60
-
61
-
62
-/**
63
- * Processes an individual byte being written to a stream
64
- */
65
-
66
-function processByte (stream, b) {
67
-  assert.equal(typeof b, 'number')
68
-  if (b === NEWLINE) {
69
-    stream.emit('newline')
70
-  }
71
-}

+ 0
- 55
km0App/node_modules/ansi/package.json View File

@@ -1,55 +0,0 @@
1
-{
2
-  "_from": "ansi@^0.3.1",
3
-  "_id": "ansi@0.3.1",
4
-  "_inBundle": false,
5
-  "_integrity": "sha1-DELU+xcWDVqa8eSEus4cZpIsGyE=",
6
-  "_location": "/ansi",
7
-  "_phantomChildren": {},
8
-  "_requested": {
9
-    "type": "range",
10
-    "registry": true,
11
-    "raw": "ansi@^0.3.1",
12
-    "name": "ansi",
13
-    "escapedName": "ansi",
14
-    "rawSpec": "^0.3.1",
15
-    "saveSpec": null,
16
-    "fetchSpec": "^0.3.1"
17
-  },
18
-  "_requiredBy": [
19
-    "/cordova-common"
20
-  ],
21
-  "_resolved": "https://registry.npmjs.org/ansi/-/ansi-0.3.1.tgz",
22
-  "_shasum": "0c42d4fb17160d5a9af1e484bace1c66922c1b21",
23
-  "_spec": "ansi@^0.3.1",
24
-  "_where": "/Users/Luis/Documents/Universidad/Quinto Año (2019)/Software/km0/km0App/node_modules/cordova-common",
25
-  "author": {
26
-    "name": "Nathan Rajlich",
27
-    "email": "nathan@tootallnate.net",
28
-    "url": "http://tootallnate.net"
29
-  },
30
-  "bugs": {
31
-    "url": "https://github.com/TooTallNate/ansi.js/issues"
32
-  },
33
-  "bundleDependencies": false,
34
-  "deprecated": false,
35
-  "description": "Advanced ANSI formatting tool for Node.js",
36
-  "homepage": "https://github.com/TooTallNate/ansi.js#readme",
37
-  "keywords": [
38
-    "ansi",
39
-    "formatting",
40
-    "cursor",
41
-    "color",
42
-    "terminal",
43
-    "rgb",
44
-    "256",
45
-    "stream"
46
-  ],
47
-  "license": "MIT",
48
-  "main": "./lib/ansi.js",
49
-  "name": "ansi",
50
-  "repository": {
51
-    "type": "git",
52
-    "url": "git://github.com/TooTallNate/ansi.js.git"
53
-  },
54
-  "version": "0.3.1"
55
-}

+ 0
- 21
km0App/node_modules/array-flatten/LICENSE View File

@@ -1,21 +0,0 @@
1
-The MIT License (MIT)
2
-
3
-Copyright (c) 2014 Blake Embrey (hello@blakeembrey.com)
4
-
5
-Permission is hereby granted, free of charge, to any person obtaining a copy
6
-of this software and associated documentation files (the "Software"), to deal
7
-in the Software without restriction, including without limitation the rights
8
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
-copies of the Software, and to permit persons to whom the Software is
10
-furnished to do so, subject to the following conditions:
11
-
12
-The above copyright notice and this permission notice shall be included in
13
-all copies or substantial portions of the Software.
14
-
15
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
-THE SOFTWARE.

+ 0
- 43
km0App/node_modules/array-flatten/README.md View File

@@ -1,43 +0,0 @@
1
-# Array Flatten
2
-
3
-[![NPM version][npm-image]][npm-url]
4
-[![NPM downloads][downloads-image]][downloads-url]
5
-[![Build status][travis-image]][travis-url]
6
-[![Test coverage][coveralls-image]][coveralls-url]
7
-
8
-> Flatten an array of nested arrays into a single flat array. Accepts an optional depth.
9
-
10
-## Installation
11
-
12
-```
13
-npm install array-flatten --save
14
-```
15
-
16
-## Usage
17
-
18
-```javascript
19
-var flatten = require('array-flatten')
20
-
21
-flatten([1, [2, [3, [4, [5], 6], 7], 8], 9])
22
-//=> [1, 2, 3, 4, 5, 6, 7, 8, 9]
23
-
24
-flatten([1, [2, [3, [4, [5], 6], 7], 8], 9], 2)
25
-//=> [1, 2, 3, [4, [5], 6], 7, 8, 9]
26
-
27
-(function () {
28
-  flatten(arguments) //=> [1, 2, 3]
29
-})(1, [2, 3])
30
-```
31
-
32
-## License
33
-
34
-MIT
35
-
36
-[npm-image]: https://img.shields.io/npm/v/array-flatten.svg?style=flat
37
-[npm-url]: https://npmjs.org/package/array-flatten
38
-[downloads-image]: https://img.shields.io/npm/dm/array-flatten.svg?style=flat
39
-[downloads-url]: https://npmjs.org/package/array-flatten
40
-[travis-image]: https://img.shields.io/travis/blakeembrey/array-flatten.svg?style=flat
41
-[travis-url]: https://travis-ci.org/blakeembrey/array-flatten
42
-[coveralls-image]: https://img.shields.io/coveralls/blakeembrey/array-flatten.svg?style=flat
43
-[coveralls-url]: https://coveralls.io/r/blakeembrey/array-flatten?branch=master

+ 0
- 64
km0App/node_modules/array-flatten/array-flatten.js View File

@@ -1,64 +0,0 @@
1
-'use strict'
2
-
3
-/**
4
- * Expose `arrayFlatten`.
5
- */
6
-module.exports = arrayFlatten
7
-
8
-/**
9
- * Recursive flatten function with depth.
10
- *
11
- * @param  {Array}  array
12
- * @param  {Array}  result
13
- * @param  {Number} depth
14
- * @return {Array}
15
- */
16
-function flattenWithDepth (array, result, depth) {
17
-  for (var i = 0; i < array.length; i++) {
18
-    var value = array[i]
19
-
20
-    if (depth > 0 && Array.isArray(value)) {
21
-      flattenWithDepth(value, result, depth - 1)
22
-    } else {
23
-      result.push(value)
24
-    }
25
-  }
26
-
27
-  return result
28
-}
29
-
30
-/**
31
- * Recursive flatten function. Omitting depth is slightly faster.
32
- *
33
- * @param  {Array} array
34
- * @param  {Array} result
35
- * @return {Array}
36
- */
37
-function flattenForever (array, result) {
38
-  for (var i = 0; i < array.length; i++) {
39
-    var value = array[i]
40
-
41
-    if (Array.isArray(value)) {
42
-      flattenForever(value, result)
43
-    } else {
44
-      result.push(value)
45
-    }
46
-  }
47
-
48
-  return result
49
-}
50
-
51
-/**
52
- * Flatten an array, with the ability to define a depth.
53
- *
54
- * @param  {Array}  array
55
- * @param  {Number} depth
56
- * @return {Array}
57
- */
58
-function arrayFlatten (array, depth) {
59
-  if (depth == null) {
60
-    return flattenForever(array, [])
61
-  }
62
-
63
-  return flattenWithDepth(array, [], depth)
64
-}

+ 0
- 64
km0App/node_modules/array-flatten/package.json View File

@@ -1,64 +0,0 @@
1
-{
2
-  "_from": "array-flatten@1.1.1",
3
-  "_id": "array-flatten@1.1.1",
4
-  "_inBundle": false,
5
-  "_integrity": "sha1-ml9pkFGx5wczKPKgCJaLZOopVdI=",
6
-  "_location": "/array-flatten",
7
-  "_phantomChildren": {},
8
-  "_requested": {
9
-    "type": "version",
10
-    "registry": true,
11
-    "raw": "array-flatten@1.1.1",
12
-    "name": "array-flatten",
13
-    "escapedName": "array-flatten",
14
-    "rawSpec": "1.1.1",
15
-    "saveSpec": null,
16
-    "fetchSpec": "1.1.1"
17
-  },
18
-  "_requiredBy": [
19
-    "/express"
20
-  ],
21
-  "_resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz",
22
-  "_shasum": "9a5f699051b1e7073328f2a008968b64ea2955d2",
23
-  "_spec": "array-flatten@1.1.1",
24
-  "_where": "/home/luis/Software/kilometro0/km0App/node_modules/express",
25
-  "author": {
26
-    "name": "Blake Embrey",
27
-    "email": "hello@blakeembrey.com",
28
-    "url": "http://blakeembrey.me"
29
-  },
30
-  "bugs": {
31
-    "url": "https://github.com/blakeembrey/array-flatten/issues"
32
-  },
33
-  "bundleDependencies": false,
34
-  "deprecated": false,
35
-  "description": "Flatten an array of nested arrays into a single flat array",
36
-  "devDependencies": {
37
-    "istanbul": "^0.3.13",
38
-    "mocha": "^2.2.4",
39
-    "pre-commit": "^1.0.7",
40
-    "standard": "^3.7.3"
41
-  },
42
-  "files": [
43
-    "array-flatten.js",
44
-    "LICENSE"
45
-  ],
46
-  "homepage": "https://github.com/blakeembrey/array-flatten",
47
-  "keywords": [
48
-    "array",
49
-    "flatten",
50
-    "arguments",
51
-    "depth"
52
-  ],
53
-  "license": "MIT",
54
-  "main": "array-flatten.js",
55
-  "name": "array-flatten",
56
-  "repository": {
57
-    "type": "git",
58
-    "url": "git://github.com/blakeembrey/array-flatten.git"
59
-  },
60
-  "scripts": {
61
-    "test": "istanbul cover _mocha -- -R spec"
62
-  },
63
-  "version": "1.1.1"
64
-}

+ 0
- 51
km0App/node_modules/array-ify/README.md View File

@@ -1,51 +0,0 @@
1
-#  [![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Dependency Status][daviddm-image]][daviddm-url] [![Coverage Status][coveralls-image]][coveralls-url]
2
-
3
-> Turn anything into an array
4
-
5
-
6
-## Install
7
-
8
-```sh
9
-$ npm install --save array-ify
10
-```
11
-
12
-
13
-## Usage
14
-
15
-```js
16
-var arrayify = require('array-ify');
17
-
18
-arrayify('unicorn');
19
-//=> ['unicorn']
20
-
21
-arrayify(['unicorn']);
22
-//=> ['unicorn']
23
-
24
-arrayify(null);
25
-//=> [null]
26
-
27
-arrayify(undefined);
28
-//=> [undefined]
29
-```
30
-
31
-
32
-## Related
33
-
34
-- [arrify](https://github.com/sindresorhus/arrify) - Convert a value to an array
35
-
36
-The difference that is this module does **NOT** turn `null` or `undefined` to an empty array.
37
-
38
-
39
-## License
40
-
41
-MIT © [Steve Mao](https://github.com/stevemao)
42
-
43
-
44
-[npm-image]: https://badge.fury.io/js/array-ify.svg
45
-[npm-url]: https://npmjs.org/package/array-ify
46
-[travis-image]: https://travis-ci.org/stevemao/array-ify.svg?branch=master
47
-[travis-url]: https://travis-ci.org/stevemao/array-ify
48
-[daviddm-image]: https://david-dm.org/stevemao/array-ify.svg?theme=shields.io
49
-[daviddm-url]: https://david-dm.org/stevemao/array-ify
50
-[coveralls-image]: https://coveralls.io/repos/stevemao/array-ify/badge.svg
51
-[coveralls-url]: https://coveralls.io/r/stevemao/array-ify

+ 0
- 4
km0App/node_modules/array-ify/index.js View File

@@ -1,4 +0,0 @@
1
-'use strict';
2
-module.exports = function(val) {
3
-  return Array.isArray(val) ? val : [val];
4
-};

+ 0
- 68
km0App/node_modules/array-ify/package.json View File

@@ -1,68 +0,0 @@
1
-{
2
-  "_from": "array-ify@^1.0.0",
3
-  "_id": "array-ify@1.0.0",
4
-  "_inBundle": false,
5
-  "_integrity": "sha1-nlKHYrSpBmrRY6aWKjZEGOlibs4=",
6
-  "_location": "/array-ify",
7
-  "_phantomChildren": {},
8
-  "_requested": {
9
-    "type": "range",
10
-    "registry": true,
11
-    "raw": "array-ify@^1.0.0",
12
-    "name": "array-ify",
13
-    "escapedName": "array-ify",
14
-    "rawSpec": "^1.0.0",
15
-    "saveSpec": null,
16
-    "fetchSpec": "^1.0.0"
17
-  },
18
-  "_requiredBy": [
19
-    "/compare-func"
20
-  ],
21
-  "_resolved": "https://registry.npmjs.org/array-ify/-/array-ify-1.0.0.tgz",
22
-  "_shasum": "9e528762b4a9066ad163a6962a364418e9626ece",
23
-  "_spec": "array-ify@^1.0.0",
24
-  "_where": "/home/luis/Software/kilometro0/km0App/node_modules/compare-func",
25
-  "author": {
26
-    "name": "Steve Mao",
27
-    "email": "maochenyan@gmail.com",
28
-    "url": "https://github.com/stevemao"
29
-  },
30
-  "bugs": {
31
-    "url": "https://github.com/stevemao/array-ify/issues"
32
-  },
33
-  "bundleDependencies": false,
34
-  "deprecated": false,
35
-  "description": "Turn anything into an array",
36
-  "devDependencies": {
37
-    "coveralls": "^2.11.2",
38
-    "istanbul": "^0.3.8",
39
-    "jscs": "^1.11.3",
40
-    "jshint": "^2.6.3",
41
-    "mocha": "*"
42
-  },
43
-  "files": [
44
-    "index.js"
45
-  ],
46
-  "homepage": "https://github.com/stevemao/array-ify",
47
-  "keywords": [
48
-    "array-ify",
49
-    "array",
50
-    "arr",
51
-    "arrify",
52
-    "arrayify",
53
-    "convert",
54
-    "value"
55
-  ],
56
-  "license": "MIT",
57
-  "name": "array-ify",
58
-  "repository": {
59
-    "type": "git",
60
-    "url": "git+https://github.com/stevemao/array-ify.git"
61
-  },
62
-  "scripts": {
63
-    "coverage": "istanbul cover _mocha -- -R spec && rm -rf ./coverage",
64
-    "lint": "jshint *.js --exclude node_modules && jscs *.js",
65
-    "test": "npm run-script lint && mocha"
66
-  },
67
-  "version": "1.0.0"
68
-}

+ 0
- 5
km0App/node_modules/balanced-match/.npmignore View File

@@ -1,5 +0,0 @@
1
-test
2
-.gitignore
3
-.travis.yml
4
-Makefile
5
-example.js

+ 0
- 21
km0App/node_modules/balanced-match/LICENSE.md View File

@@ -1,21 +0,0 @@
1
-(MIT)
2
-
3
-Copyright (c) 2013 Julian Gruber &lt;julian@juliangruber.com&gt;
4
-
5
-Permission is hereby granted, free of charge, to any person obtaining a copy of
6
-this software and associated documentation files (the "Software"), to deal in
7
-the Software without restriction, including without limitation the rights to
8
-use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
9
-of the Software, and to permit persons to whom the Software is furnished to do
10
-so, subject to the following conditions:
11
-
12
-The above copyright notice and this permission notice shall be included in all
13
-copies or substantial portions of the Software.
14
-
15
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
-SOFTWARE.

+ 0
- 91
km0App/node_modules/balanced-match/README.md View File

@@ -1,91 +0,0 @@
1
-# balanced-match
2
-
3
-Match balanced string pairs, like `{` and `}` or `<b>` and `</b>`. Supports regular expressions as well!
4
-
5
-[![build status](https://secure.travis-ci.org/juliangruber/balanced-match.svg)](http://travis-ci.org/juliangruber/balanced-match)
6
-[![downloads](https://img.shields.io/npm/dm/balanced-match.svg)](https://www.npmjs.org/package/balanced-match)
7
-
8
-[![testling badge](https://ci.testling.com/juliangruber/balanced-match.png)](https://ci.testling.com/juliangruber/balanced-match)
9
-
10
-## Example
11
-
12
-Get the first matching pair of braces:
13
-
14
-```js
15
-var balanced = require('balanced-match');
16
-
17
-console.log(balanced('{', '}', 'pre{in{nested}}post'));
18
-console.log(balanced('{', '}', 'pre{first}between{second}post'));
19
-console.log(balanced(/\s+\{\s+/, /\s+\}\s+/, 'pre  {   in{nest}   }  post'));
20
-```
21
-
22
-The matches are:
23
-
24
-```bash
25
-$ node example.js
26
-{ start: 3, end: 14, pre: 'pre', body: 'in{nested}', post: 'post' }
27
-{ start: 3,
28
-  end: 9,
29
-  pre: 'pre',
30
-  body: 'first',
31
-  post: 'between{second}post' }
32
-{ start: 3, end: 17, pre: 'pre', body: 'in{nest}', post: 'post' }
33
-```
34
-
35
-## API
36
-
37
-### var m = balanced(a, b, str)
38
-
39
-For the first non-nested matching pair of `a` and `b` in `str`, return an
40
-object with those keys:
41
-
42
-* **start** the index of the first match of `a`
43
-* **end** the index of the matching `b`
44
-* **pre** the preamble, `a` and `b` not included
45
-* **body** the match, `a` and `b` not included
46
-* **post** the postscript, `a` and `b` not included
47
-
48
-If there's no match, `undefined` will be returned.
49
-
50
-If the `str` contains more `a` than `b` / there are unmatched pairs, the first match that was closed will be used. For example, `{{a}` will match `['{', 'a', '']` and `{a}}` will match `['', 'a', '}']`.
51
-
52
-### var r = balanced.range(a, b, str)
53
-
54
-For the first non-nested matching pair of `a` and `b` in `str`, return an
55
-array with indexes: `[ <a index>, <b index> ]`.
56
-
57
-If there's no match, `undefined` will be returned.
58
-
59
-If the `str` contains more `a` than `b` / there are unmatched pairs, the first match that was closed will be used. For example, `{{a}` will match `[ 1, 3 ]` and `{a}}` will match `[0, 2]`.
60
-
61
-## Installation
62
-
63
-With [npm](https://npmjs.org) do:
64
-
65
-```bash
66
-npm install balanced-match
67
-```
68
-
69
-## License
70
-
71
-(MIT)
72
-
73
-Copyright (c) 2013 Julian Gruber &lt;julian@juliangruber.com&gt;
74
-
75
-Permission is hereby granted, free of charge, to any person obtaining a copy of
76
-this software and associated documentation files (the "Software"), to deal in
77
-the Software without restriction, including without limitation the rights to
78
-use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
79
-of the Software, and to permit persons to whom the Software is furnished to do
80
-so, subject to the following conditions:
81
-
82
-The above copyright notice and this permission notice shall be included in all
83
-copies or substantial portions of the Software.
84
-
85
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
86
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
87
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
88
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
89
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
90
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
91
-SOFTWARE.

+ 0
- 59
km0App/node_modules/balanced-match/index.js View File

@@ -1,59 +0,0 @@
1
-'use strict';
2
-module.exports = balanced;
3
-function balanced(a, b, str) {
4
-  if (a instanceof RegExp) a = maybeMatch(a, str);
5
-  if (b instanceof RegExp) b = maybeMatch(b, str);
6
-
7
-  var r = range(a, b, str);
8
-
9
-  return r && {
10
-    start: r[0],
11
-    end: r[1],
12
-    pre: str.slice(0, r[0]),
13
-    body: str.slice(r[0] + a.length, r[1]),
14
-    post: str.slice(r[1] + b.length)
15
-  };
16
-}
17
-
18
-function maybeMatch(reg, str) {
19
-  var m = str.match(reg);
20
-  return m ? m[0] : null;
21
-}
22
-
23
-balanced.range = range;
24
-function range(a, b, str) {
25
-  var begs, beg, left, right, result;
26
-  var ai = str.indexOf(a);
27
-  var bi = str.indexOf(b, ai + 1);
28
-  var i = ai;
29
-
30
-  if (ai >= 0 && bi > 0) {
31
-    begs = [];
32
-    left = str.length;
33
-
34
-    while (i >= 0 && !result) {
35
-      if (i == ai) {
36
-        begs.push(i);
37
-        ai = str.indexOf(a, i + 1);
38
-      } else if (begs.length == 1) {
39
-        result = [ begs.pop(), bi ];
40
-      } else {
41
-        beg = begs.pop();
42
-        if (beg < left) {
43
-          left = beg;
44
-          right = bi;
45
-        }
46
-
47
-        bi = str.indexOf(b, i + 1);
48
-      }
49
-
50
-      i = ai < bi && ai >= 0 ? ai : bi;
51
-    }
52
-
53
-    if (begs.length) {
54
-      result = [ left, right ];
55
-    }
56
-  }
57
-
58
-  return result;
59
-}

+ 0
- 77
km0App/node_modules/balanced-match/package.json View File

@@ -1,77 +0,0 @@
1
-{
2
-  "_from": "balanced-match@^1.0.0",
3
-  "_id": "balanced-match@1.0.0",
4
-  "_inBundle": false,
5
-  "_integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=",
6
-  "_location": "/balanced-match",
7
-  "_phantomChildren": {},
8
-  "_requested": {
9
-    "type": "range",
10
-    "registry": true,
11
-    "raw": "balanced-match@^1.0.0",
12
-    "name": "balanced-match",
13
-    "escapedName": "balanced-match",
14
-    "rawSpec": "^1.0.0",
15
-    "saveSpec": null,
16
-    "fetchSpec": "^1.0.0"
17
-  },
18
-  "_requiredBy": [
19
-    "/brace-expansion"
20
-  ],
21
-  "_resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz",
22
-  "_shasum": "89b4d199ab2bee49de164ea02b89ce462d71b767",
23
-  "_spec": "balanced-match@^1.0.0",
24
-  "_where": "/Users/Luis/Documents/Universidad/Quinto Año (2019)/Software/km0/km0App/node_modules/brace-expansion",
25
-  "author": {
26
-    "name": "Julian Gruber",
27
-    "email": "mail@juliangruber.com",
28
-    "url": "http://juliangruber.com"
29
-  },
30
-  "bugs": {
31
-    "url": "https://github.com/juliangruber/balanced-match/issues"
32
-  },
33
-  "bundleDependencies": false,
34
-  "dependencies": {},
35
-  "deprecated": false,
36
-  "description": "Match balanced character pairs, like \"{\" and \"}\"",
37
-  "devDependencies": {
38
-    "matcha": "^0.7.0",
39
-    "tape": "^4.6.0"
40
-  },
41
-  "homepage": "https://github.com/juliangruber/balanced-match",
42
-  "keywords": [
43
-    "match",
44
-    "regexp",
45
-    "test",
46
-    "balanced",
47
-    "parse"
48
-  ],
49
-  "license": "MIT",
50
-  "main": "index.js",
51
-  "name": "balanced-match",
52
-  "repository": {
53
-    "type": "git",
54
-    "url": "git://github.com/juliangruber/balanced-match.git"
55
-  },
56
-  "scripts": {
57
-    "bench": "make bench",
58
-    "test": "make test"
59
-  },
60
-  "testling": {
61
-    "files": "test/*.js",
62
-    "browsers": [
63
-      "ie/8..latest",
64
-      "firefox/20..latest",
65
-      "firefox/nightly",
66
-      "chrome/25..latest",
67
-      "chrome/canary",
68
-      "opera/12..latest",
69
-      "opera/next",
70
-      "safari/5.1..latest",
71
-      "ipad/6.0..latest",
72
-      "iphone/6.0..latest",
73
-      "android-browser/4.2..latest"
74
-    ]
75
-  },
76
-  "version": "1.0.0"
77
-}

+ 0
- 21
km0App/node_modules/base64-js/LICENSE View File

@@ -1,21 +0,0 @@
1
-The MIT License (MIT)
2
-
3
-Copyright (c) 2014 Jameson Little
4
-
5
-Permission is hereby granted, free of charge, to any person obtaining a copy
6
-of this software and associated documentation files (the "Software"), to deal
7
-in the Software without restriction, including without limitation the rights
8
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
-copies of the Software, and to permit persons to whom the Software is
10
-furnished to do so, subject to the following conditions:
11
-
12
-The above copyright notice and this permission notice shall be included in
13
-all copies or substantial portions of the Software.
14
-
15
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
-THE SOFTWARE.

+ 0
- 32
km0App/node_modules/base64-js/README.md View File

@@ -1,32 +0,0 @@
1
-base64-js
2
-=========
3
-
4
-`base64-js` does basic base64 encoding/decoding in pure JS.
5
-
6
-[![build status](https://secure.travis-ci.org/beatgammit/base64-js.png)](http://travis-ci.org/beatgammit/base64-js)
7
-
8
-Many browsers already have base64 encoding/decoding functionality, but it is for text data, not all-purpose binary data.
9
-
10
-Sometimes encoding/decoding binary data in the browser is useful, and that is what this module does.
11
-
12
-## install
13
-
14
-With [npm](https://npmjs.org) do:
15
-
16
-`npm install base64-js` and `var base64js = require('base64-js')`
17
-
18
-For use in web browsers do:
19
-
20
-`<script src="base64js.min.js"></script>`
21
-
22
-## methods
23
-
24
-`base64js` has three exposed functions, `byteLength`, `toByteArray` and `fromByteArray`, which both take a single argument.
25
-
26
-* `byteLength` - Takes a base64 string and returns length of byte array
27
-* `toByteArray` - Takes a base64 string and returns a byte array
28
-* `fromByteArray` - Takes a byte array and returns a base64 string
29
-
30
-## license
31
-
32
-MIT

+ 0
- 1
km0App/node_modules/base64-js/base64js.min.js View File

@@ -1 +0,0 @@
1
-(function(r){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=r()}else if(typeof define==="function"&&define.amd){define([],r)}else{var e;if(typeof window!=="undefined"){e=window}else if(typeof global!=="undefined"){e=global}else if(typeof self!=="undefined"){e=self}else{e=this}e.base64js=r()}})(function(){var r,e,n;return function(){function d(a,f,i){function u(n,r){if(!f[n]){if(!a[n]){var e="function"==typeof require&&require;if(!r&&e)return e(n,!0);if(v)return v(n,!0);var t=new Error("Cannot find module '"+n+"'");throw t.code="MODULE_NOT_FOUND",t}var o=f[n]={exports:{}};a[n][0].call(o.exports,function(r){var e=a[n][1][r];return u(e||r)},o,o.exports,d,a,f,i)}return f[n].exports}for(var v="function"==typeof require&&require,r=0;r<i.length;r++)u(i[r]);return u}return d}()({"/":[function(r,e,n){"use strict";n.byteLength=f;n.toByteArray=i;n.fromByteArray=p;var u=[];var v=[];var d=typeof Uint8Array!=="undefined"?Uint8Array:Array;var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var o=0,a=t.length;o<a;++o){u[o]=t[o];v[t.charCodeAt(o)]=o}v["-".charCodeAt(0)]=62;v["_".charCodeAt(0)]=63;function c(r){var e=r.length;if(e%4>0){throw new Error("Invalid string. Length must be a multiple of 4")}var n=r.indexOf("=");if(n===-1)n=e;var t=n===e?0:4-n%4;return[n,t]}function f(r){var e=c(r);var n=e[0];var t=e[1];return(n+t)*3/4-t}function h(r,e,n){return(e+n)*3/4-n}function i(r){var e;var n=c(r);var t=n[0];var o=n[1];var a=new d(h(r,t,o));var f=0;var i=o>0?t-4:t;var u;for(u=0;u<i;u+=4){e=v[r.charCodeAt(u)]<<18|v[r.charCodeAt(u+1)]<<12|v[r.charCodeAt(u+2)]<<6|v[r.charCodeAt(u+3)];a[f++]=e>>16&255;a[f++]=e>>8&255;a[f++]=e&255}if(o===2){e=v[r.charCodeAt(u)]<<2|v[r.charCodeAt(u+1)]>>4;a[f++]=e&255}if(o===1){e=v[r.charCodeAt(u)]<<10|v[r.charCodeAt(u+1)]<<4|v[r.charCodeAt(u+2)]>>2;a[f++]=e>>8&255;a[f++]=e&255}return a}function s(r){return u[r>>18&63]+u[r>>12&63]+u[r>>6&63]+u[r&63]}function l(r,e,n){var t;var o=[];for(var a=e;a<n;a+=3){t=(r[a]<<16&16711680)+(r[a+1]<<8&65280)+(r[a+2]&255);o.push(s(t))}return o.join("")}function p(r){var e;var n=r.length;var t=n%3;var o=[];var a=16383;for(var f=0,i=n-t;f<i;f+=a){o.push(l(r,f,f+a>i?i:f+a))}if(t===1){e=r[n-1];o.push(u[e>>2]+u[e<<4&63]+"==")}else if(t===2){e=(r[n-2]<<8)+r[n-1];o.push(u[e>>10]+u[e>>4&63]+u[e<<2&63]+"=")}return o.join("")}},{}]},{},[])("/")});

+ 0
- 152
km0App/node_modules/base64-js/index.js View File

@@ -1,152 +0,0 @@
1
-'use strict'
2
-
3
-exports.byteLength = byteLength
4
-exports.toByteArray = toByteArray
5
-exports.fromByteArray = fromByteArray
6
-
7
-var lookup = []
8
-var revLookup = []
9
-var Arr = typeof Uint8Array !== 'undefined' ? Uint8Array : Array
10
-
11
-var code = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'
12
-for (var i = 0, len = code.length; i < len; ++i) {
13
-  lookup[i] = code[i]
14
-  revLookup[code.charCodeAt(i)] = i
15
-}
16
-
17
-// Support decoding URL-safe base64 strings, as Node.js does.
18
-// See: https://en.wikipedia.org/wiki/Base64#URL_applications
19
-revLookup['-'.charCodeAt(0)] = 62
20
-revLookup['_'.charCodeAt(0)] = 63
21
-
22
-function getLens (b64) {
23
-  var len = b64.length
24
-
25
-  if (len % 4 > 0) {
26
-    throw new Error('Invalid string. Length must be a multiple of 4')
27
-  }
28
-
29
-  // Trim off extra bytes after placeholder bytes are found
30
-  // See: https://github.com/beatgammit/base64-js/issues/42
31
-  var validLen = b64.indexOf('=')
32
-  if (validLen === -1) validLen = len
33
-
34
-  var placeHoldersLen = validLen === len
35
-    ? 0
36
-    : 4 - (validLen % 4)
37
-
38
-  return [validLen, placeHoldersLen]
39
-}
40
-
41
-// base64 is 4/3 + up to two characters of the original data
42
-function byteLength (b64) {
43
-  var lens = getLens(b64)
44
-  var validLen = lens[0]
45
-  var placeHoldersLen = lens[1]
46
-  return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen
47
-}
48
-
49
-function _byteLength (b64, validLen, placeHoldersLen) {
50
-  return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen
51
-}
52
-
53
-function toByteArray (b64) {
54
-  var tmp
55
-  var lens = getLens(b64)
56
-  var validLen = lens[0]
57
-  var placeHoldersLen = lens[1]
58
-
59
-  var arr = new Arr(_byteLength(b64, validLen, placeHoldersLen))
60
-
61
-  var curByte = 0
62
-
63
-  // if there are placeholders, only get up to the last complete 4 chars
64
-  var len = placeHoldersLen > 0
65
-    ? validLen - 4
66
-    : validLen
67
-
68
-  var i
69
-  for (i = 0; i < len; i += 4) {
70
-    tmp =
71
-      (revLookup[b64.charCodeAt(i)] << 18) |
72
-      (revLookup[b64.charCodeAt(i + 1)] << 12) |
73
-      (revLookup[b64.charCodeAt(i + 2)] << 6) |
74
-      revLookup[b64.charCodeAt(i + 3)]
75
-    arr[curByte++] = (tmp >> 16) & 0xFF
76
-    arr[curByte++] = (tmp >> 8) & 0xFF
77
-    arr[curByte++] = tmp & 0xFF
78
-  }
79
-
80
-  if (placeHoldersLen === 2) {
81
-    tmp =
82
-      (revLookup[b64.charCodeAt(i)] << 2) |
83
-      (revLookup[b64.charCodeAt(i + 1)] >> 4)
84
-    arr[curByte++] = tmp & 0xFF
85
-  }
86
-
87
-  if (placeHoldersLen === 1) {
88
-    tmp =
89
-      (revLookup[b64.charCodeAt(i)] << 10) |
90
-      (revLookup[b64.charCodeAt(i + 1)] << 4) |
91
-      (revLookup[b64.charCodeAt(i + 2)] >> 2)
92
-    arr[curByte++] = (tmp >> 8) & 0xFF
93
-    arr[curByte++] = tmp & 0xFF
94
-  }
95
-
96
-  return arr
97
-}
98
-
99
-function tripletToBase64 (num) {
100
-  return lookup[num >> 18 & 0x3F] +
101
-    lookup[num >> 12 & 0x3F] +
102
-    lookup[num >> 6 & 0x3F] +
103
-    lookup[num & 0x3F]
104
-}
105
-
106
-function encodeChunk (uint8, start, end) {
107
-  var tmp
108
-  var output = []
109
-  for (var i = start; i < end; i += 3) {
110
-    tmp =
111
-      ((uint8[i] << 16) & 0xFF0000) +
112
-      ((uint8[i + 1] << 8) & 0xFF00) +
113
-      (uint8[i + 2] & 0xFF)
114
-    output.push(tripletToBase64(tmp))
115
-  }
116
-  return output.join('')
117
-}
118
-
119
-function fromByteArray (uint8) {
120
-  var tmp
121
-  var len = uint8.length
122
-  var extraBytes = len % 3 // if we have 1 byte left, pad 2 bytes
123
-  var parts = []
124
-  var maxChunkLength = 16383 // must be multiple of 3
125
-
126
-  // go through the array every three bytes, we'll deal with trailing stuff later
127
-  for (var i = 0, len2 = len - extraBytes; i < len2; i += maxChunkLength) {
128
-    parts.push(encodeChunk(
129
-      uint8, i, (i + maxChunkLength) > len2 ? len2 : (i + maxChunkLength)
130
-    ))
131
-  }
132
-
133
-  // pad the end with zeros, but make sure to not forget the extra bytes
134
-  if (extraBytes === 1) {
135
-    tmp = uint8[len - 1]
136
-    parts.push(
137
-      lookup[tmp >> 2] +
138
-      lookup[(tmp << 4) & 0x3F] +
139
-      '=='
140
-    )
141
-  } else if (extraBytes === 2) {
142
-    tmp = (uint8[len - 2] << 8) + uint8[len - 1]
143
-    parts.push(
144
-      lookup[tmp >> 10] +
145
-      lookup[(tmp >> 4) & 0x3F] +
146
-      lookup[(tmp << 2) & 0x3F] +
147
-      '='
148
-    )
149
-  }
150
-
151
-  return parts.join('')
152
-}

+ 0
- 60
km0App/node_modules/base64-js/package.json View File

@@ -1,60 +0,0 @@
1
-{
2
-  "_from": "base64-js@^1.2.3",
3
-  "_id": "base64-js@1.3.1",
4
-  "_inBundle": false,
5
-  "_integrity": "sha512-mLQ4i2QO1ytvGWFWmcngKO//JXAQueZvwEKtjgQFM4jIK0kU+ytMfplL8j+n5mspOfjHwoAg+9yhb7BwAHm36g==",
6
-  "_location": "/base64-js",
7
-  "_phantomChildren": {},
8
-  "_requested": {
9
-    "type": "range",
10
-    "registry": true,
11
-    "raw": "base64-js@^1.2.3",
12
-    "name": "base64-js",
13
-    "escapedName": "base64-js",
14
-    "rawSpec": "^1.2.3",
15
-    "saveSpec": null,
16
-    "fetchSpec": "^1.2.3"
17
-  },
18
-  "_requiredBy": [
19
-    "/plist"
20
-  ],
21
-  "_resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.3.1.tgz",
22
-  "_shasum": "58ece8cb75dd07e71ed08c736abc5fac4dbf8df1",
23
-  "_spec": "base64-js@^1.2.3",
24
-  "_where": "/Users/Luis/Documents/Universidad/Quinto Año (2019)/Software/km0/km0App/node_modules/plist",
25
-  "author": {
26
-    "name": "T. Jameson Little",
27
-    "email": "t.jameson.little@gmail.com"
28
-  },
29
-  "bugs": {
30
-    "url": "https://github.com/beatgammit/base64-js/issues"
31
-  },
32
-  "bundleDependencies": false,
33
-  "deprecated": false,
34
-  "description": "Base64 encoding/decoding in pure JS",
35
-  "devDependencies": {
36
-    "benchmark": "^2.1.4",
37
-    "browserify": "^16.3.0",
38
-    "standard": "*",
39
-    "tape": "4.x",
40
-    "uglify-js": "^3.6.0"
41
-  },
42
-  "homepage": "https://github.com/beatgammit/base64-js",
43
-  "keywords": [
44
-    "base64"
45
-  ],
46
-  "license": "MIT",
47
-  "main": "index.js",
48
-  "name": "base64-js",
49
-  "repository": {
50
-    "type": "git",
51
-    "url": "git://github.com/beatgammit/base64-js.git"
52
-  },
53
-  "scripts": {
54
-    "build": "browserify -s base64js -r ./ | uglifyjs -m > base64js.min.js",
55
-    "lint": "standard",
56
-    "test": "npm run lint && npm run unit",
57
-    "unit": "tape test/*.js"
58
-  },
59
-  "version": "1.3.1"
60
-}

+ 0
- 2393
km0App/node_modules/big-integer/BigInteger.d.ts
File diff suppressed because it is too large
View File


+ 0
- 1453
km0App/node_modules/big-integer/BigInteger.js
File diff suppressed because it is too large
View File


+ 0
- 1
km0App/node_modules/big-integer/BigInteger.min.js
File diff suppressed because it is too large
View File


+ 0
- 24
km0App/node_modules/big-integer/LICENSE View File

@@ -1,24 +0,0 @@
1
-This is free and unencumbered software released into the public domain.
2
-
3
-Anyone is free to copy, modify, publish, use, compile, sell, or
4
-distribute this software, either in source code form or as a compiled
5
-binary, for any purpose, commercial or non-commercial, and by any
6
-means.
7
-
8
-In jurisdictions that recognize copyright laws, the author or authors
9
-of this software dedicate any and all copyright interest in the
10
-software to the public domain. We make this dedication for the benefit
11
-of the public at large and to the detriment of our heirs and
12
-successors. We intend this dedication to be an overt act of
13
-relinquishment in perpetuity of all present and future rights to this
14
-software under copyright law.
15
-
16
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
19
-IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
20
-OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
21
-ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
22
-OTHER DEALINGS IN THE SOFTWARE.
23
-
24
-For more information, please refer to <http://unlicense.org>

+ 0
- 588
km0App/node_modules/big-integer/README.md View File

@@ -1,588 +0,0 @@
1
-# BigInteger.js [![Build Status][travis-img]][travis-url] [![Coverage Status][coveralls-img]][coveralls-url] [![Monthly Downloads][downloads-img]][downloads-url]
2
-
3
-[travis-url]: https://travis-ci.org/peterolson/BigInteger.js
4
-[travis-img]: https://travis-ci.org/peterolson/BigInteger.js.svg?branch=master
5
-[coveralls-url]: https://coveralls.io/github/peterolson/BigInteger.js?branch=master
6
-[coveralls-img]: https://coveralls.io/repos/peterolson/BigInteger.js/badge.svg?branch=master&service=github
7
-[downloads-url]: https://www.npmjs.com/package/big-integer
8
-[downloads-img]: https://img.shields.io/npm/dm/big-integer.svg
9
-
10
-**BigInteger.js** is an arbitrary-length integer library for Javascript, allowing arithmetic operations on integers of unlimited size, notwithstanding memory and time limitations.
11
-
12
-**Update (December 2, 2018):** [`BigInt` is being added as a native feature of JavaScript](https://tc39.github.io/proposal-bigint/). This library now works as a polyfill: if the environment supports the native `BigInt`, this library acts as a thin wrapper over the native implementation.
13
-
14
-## Installation
15
-
16
-If you are using a browser, you can download [BigInteger.js from GitHub](http://peterolson.github.com/BigInteger.js/BigInteger.min.js) or just hotlink to it:
17
-
18
-	<script src="https://peterolson.github.io/BigInteger.js/BigInteger.min.js"></script>
19
-
20
-If you are using node, you can install BigInteger with [npm](https://npmjs.org/).
21
-
22
-    npm install big-integer
23
-
24
-Then you can include it in your code:
25
-
26
-	var bigInt = require("big-integer");
27
-
28
-
29
-## Usage
30
-### `bigInt(number, [base], [alphabet], [caseSensitive])`
31
-
32
-You can create a bigInt by calling the `bigInt` function. You can pass in
33
-
34
- - a string, which it will parse as an bigInt and throw an `"Invalid integer"` error if the parsing fails.
35
- - a Javascript number, which it will parse as an bigInt and throw an `"Invalid integer"` error if the parsing fails.
36
- - another bigInt.
37
- - nothing, and it will return `bigInt.zero`.
38
-
39
- If you provide a second parameter, then it will parse `number` as a number in base `base`. Note that `base` can be any bigInt (even negative or zero). The letters "a-z" and "A-Z" will be interpreted as the numbers 10 to 35. Higher digits can be specified in angle brackets (`<` and `>`). The default `base` is `10`.
40
-
41
- You can specify a custom alphabet for base conversion with the third parameter. The default `alphabet` is `"0123456789abcdefghijklmnopqrstuvwxyz"`.
42
-
43
- The fourth parameter specifies whether or not the number string should be case-sensitive, i.e. whether `a` and `A` should be treated as different digits. By default `caseSensitive` is `false`.
44
-
45
-Examples:
46
-
47
-    var zero = bigInt();
48
-    var ninetyThree = bigInt(93);
49
-	var largeNumber = bigInt("75643564363473453456342378564387956906736546456235345");
50
-	var googol = bigInt("1e100");
51
-	var bigNumber = bigInt(largeNumber);
52
-
53
-	var maximumByte = bigInt("FF", 16);
54
-	var fiftyFiveGoogol = bigInt("<55>0", googol);
55
-
56
-Note that Javascript numbers larger than `9007199254740992` and smaller than `-9007199254740992` are not precisely represented numbers and will not produce exact results. If you are dealing with numbers outside that range, it is better to pass in strings.
57
-
58
-### Method Chaining
59
-
60
-Note that bigInt operations return bigInts, which allows you to chain methods, for example:
61
-
62
-    var salary = bigInt(dollarsPerHour).times(hoursWorked).plus(randomBonuses)
63
-
64
-### Constants
65
-
66
-There are three named constants already stored that you do not have to construct with the `bigInt` function yourself:
67
-
68
- - `bigInt.one`, equivalent to `bigInt(1)`
69
- - `bigInt.zero`, equivalent to `bigInt(0)`
70
- - `bigInt.minusOne`, equivalent to `bigInt(-1)`
71
-
72
-The numbers from -999 to 999 are also already prestored and can be accessed using `bigInt[index]`, for example:
73
-
74
- - `bigInt[-999]`, equivalent to `bigInt(-999)`
75
- - `bigInt[256]`, equivalent to `bigInt(256)`
76
-
77
-### Methods
78
-
79
-#### `abs()`
80
-
81
-Returns the absolute value of a bigInt.
82
-
83
- - `bigInt(-45).abs()` => `45`
84
- - `bigInt(45).abs()` => `45`
85
-
86
-#### `add(number)`
87
-
88
-Performs addition.
89
-
90
- - `bigInt(5).add(7)` => `12`
91
-
92
-[View benchmarks for this method](http://peterolson.github.io/BigInteger.js/benchmark/#Addition)
93
-
94
-#### `and(number)`
95
-
96
-Performs the bitwise AND operation. The operands are treated as if they were represented using [two's complement representation](http://en.wikipedia.org/wiki/Two%27s_complement).
97
-
98
- - `bigInt(6).and(3)` => `2`
99
- - `bigInt(6).and(-3)` => `4`
100
-
101
-#### `bitLength()`
102
-
103
-Returns the number of digits required to represent a bigInt in binary.
104
-
105
- - `bigInt(5)` => `3` (since 5 is `101` in binary, which is three digits long)
106
-
107
-#### `compare(number)`
108
-
109
-Performs a comparison between two numbers. If the numbers are equal, it returns `0`. If the first number is greater, it returns `1`. If the first number is lesser, it returns `-1`.
110
-
111
- - `bigInt(5).compare(5)` => `0`
112
- - `bigInt(5).compare(4)` => `1`
113
- - `bigInt(4).compare(5)` => `-1`
114
-
115
-#### `compareAbs(number)`
116
-
117
-Performs a comparison between the absolute value of two numbers.
118
-
119
- - `bigInt(5).compareAbs(-5)` => `0`
120
- - `bigInt(5).compareAbs(4)` => `1`
121
- - `bigInt(4).compareAbs(-5)` => `-1`
122
-
123
-#### `compareTo(number)`
124
-
125
-Alias for the `compare` method.
126
-
127
-#### `divide(number)`
128
-
129
-Performs integer division, disregarding the remainder.
130
-
131
- - `bigInt(59).divide(5)` => `11`
132
-
133
-[View benchmarks for this method](http://peterolson.github.io/BigInteger.js/benchmark/#Division)
134
-
135
-#### `divmod(number)`
136
-
137
-Performs division and returns an object with two properties: `quotient` and `remainder`. The sign of the remainder will match the sign of the dividend.
138
-
139
- - `bigInt(59).divmod(5)` => `{quotient: bigInt(11), remainder: bigInt(4) }`
140
- - `bigInt(-5).divmod(2)` => `{quotient: bigInt(-2), remainder: bigInt(-1) }`
141
-
142
-[View benchmarks for this method](http://peterolson.github.io/BigInteger.js/benchmark/#Division)
143
-
144
-#### `eq(number)`
145
-
146
-Alias for the `equals` method.
147
-
148
-#### `equals(number)`
149
-
150
-Checks if two numbers are equal.
151
-
152
- - `bigInt(5).equals(5)` => `true`
153
- - `bigInt(4).equals(7)` => `false`
154
-
155
-#### `geq(number)`
156
-
157
-Alias for the `greaterOrEquals` method.
158
-
159
-
160
-#### `greater(number)`
161
-
162
-Checks if the first number is greater than the second.
163
-
164
- - `bigInt(5).greater(6)` => `false`
165
- - `bigInt(5).greater(5)` => `false`
166
- - `bigInt(5).greater(4)` => `true`
167
-
168
-#### `greaterOrEquals(number)`
169
-
170
-Checks if the first number is greater than or equal to the second.
171
-
172
- - `bigInt(5).greaterOrEquals(6)` => `false`
173
- - `bigInt(5).greaterOrEquals(5)` => `true`
174
- - `bigInt(5).greaterOrEquals(4)` => `true`
175
-
176
-#### `gt(number)`
177
-
178
-Alias for the `greater` method.
179
-
180
-#### `isDivisibleBy(number)`
181
-
182
-Returns `true` if the first number is divisible by the second number, `false` otherwise.
183
-
184
- - `bigInt(999).isDivisibleBy(333)` => `true`
185
- - `bigInt(99).isDivisibleBy(5)` => `false`
186
-
187
-#### `isEven()`
188
-
189
-Returns `true` if the number is even, `false` otherwise.
190
-
191
- - `bigInt(6).isEven()` => `true`
192
- - `bigInt(3).isEven()` => `false`
193
-
194
-#### `isNegative()`
195
-
196
-Returns `true` if the number is negative, `false` otherwise.
197
-Returns `false` for `0` and `-0`.
198
-
199
- - `bigInt(-23).isNegative()` => `true`
200
- - `bigInt(50).isNegative()` => `false`
201
-
202
-#### `isOdd()`
203
-
204
-Returns `true` if the number is odd, `false` otherwise.
205
-
206
- - `bigInt(13).isOdd()` => `true`
207
- - `bigInt(40).isOdd()` => `false`
208
-
209
-#### `isPositive()`
210
-
211
-Return `true` if the number is positive, `false` otherwise.
212
-Returns `false` for `0` and `-0`.
213
-
214
- - `bigInt(54).isPositive()` => `true`
215
- - `bigInt(-1).isPositive()` => `false`
216
-
217
-#### `isPrime()`
218
-
219
-Returns `true` if the number is prime, `false` otherwise.
220
-
221
- - `bigInt(5).isPrime()` => `true`
222
- - `bigInt(6).isPrime()` => `false`
223
-
224
-#### `isProbablePrime([iterations], [rng])`
225
-
226
-Returns `true` if the number is very likely to be prime, `false` otherwise.
227
-Supplying `iterations` is optional - it determines the number of iterations of the test (default: `5`). The more iterations, the lower chance of getting a false positive.
228
-This uses the [Miller Rabin test](https://en.wikipedia.org/wiki/Miller%E2%80%93Rabin_primality_test).
229
-
230
- - `bigInt(5).isProbablePrime()` => `true`
231
- - `bigInt(49).isProbablePrime()` => `false`
232
- - `bigInt(1729).isProbablePrime()` => `false`
233
-
234
-Note that this function is not deterministic, since it relies on random sampling of factors, so the result for some numbers is not always the same - unless you pass a predictable random number generator as `rng`. The behavior and requirements are the same as with `randBetween`.
235
-
236
- - `bigInt(1729).isProbablePrime(1, () => 0.1)` => `false`
237
- - `bigInt(1729).isProbablePrime(1, () => 0.2)` => `true`
238
-
239
-If the number is composite then the Miller–Rabin primality test declares the number probably prime with a probability at most `4` to the power `−iterations`.
240
-If the number is prime, this function always returns `true`.
241
-
242
-#### `isUnit()`
243
-
244
-Returns `true` if the number is `1` or `-1`, `false` otherwise.
245
-
246
- - `bigInt.one.isUnit()` => `true`
247
- - `bigInt.minusOne.isUnit()` => `true`
248
- - `bigInt(5).isUnit()` => `false`
249
-
250
-#### `isZero()`
251
-
252
-Return `true` if the number is `0` or `-0`, `false` otherwise.
253
-
254
- - `bigInt.zero.isZero()` => `true`
255
- - `bigInt("-0").isZero()` => `true`
256
- - `bigInt(50).isZero()` => `false`
257
-
258
-#### `leq(number)`
259
-
260
-Alias for the `lesserOrEquals` method.
261
-
262
-#### `lesser(number)`
263
-
264
-Checks if the first number is lesser than the second.
265
-
266
- - `bigInt(5).lesser(6)` => `true`
267
- - `bigInt(5).lesser(5)` => `false`
268
- - `bigInt(5).lesser(4)` => `false`
269
-
270
-#### `lesserOrEquals(number)`
271
-
272
-Checks if the first number is less than or equal to the second.
273
-
274
- - `bigInt(5).lesserOrEquals(6)` => `true`
275
- - `bigInt(5).lesserOrEquals(5)` => `true`
276
- - `bigInt(5).lesserOrEquals(4)` => `false`
277
-
278
-#### `lt(number)`
279
-
280
-Alias for the `lesser` method.
281
-
282
-#### `minus(number)`
283
-
284
-Alias for the `subtract` method.
285
-
286
- - `bigInt(3).minus(5)` => `-2`
287
-
288
-[View benchmarks for this method](http://peterolson.github.io/BigInteger.js/benchmark/#Subtraction)
289
-
290
-#### `mod(number)`
291
-
292
-Performs division and returns the remainder, disregarding the quotient. The sign of the remainder will match the sign of the dividend.
293
-
294
- - `bigInt(59).mod(5)` =>  `4`
295
- - `bigInt(-5).mod(2)` => `-1`
296
-
297
-[View benchmarks for this method](http://peterolson.github.io/BigInteger.js/benchmark/#Division)
298
-
299
-#### `modInv(mod)`
300
-
301
-Finds the [multiplicative inverse](https://en.wikipedia.org/wiki/Modular_multiplicative_inverse) of the number modulo `mod`.
302
-
303
- - `bigInt(3).modInv(11)` => `4`
304
- - `bigInt(42).modInv(2017)` => `1969`
305
-
306
-#### `modPow(exp, mod)`
307
-
308
-Takes the number to the power `exp` modulo `mod`.
309
-
310
- - `bigInt(10).modPow(3, 30)` => `10`
311
-
312
-#### `multiply(number)`
313
-
314
-Performs multiplication.
315
-
316
- - `bigInt(111).multiply(111)` => `12321`
317
-
318
-[View benchmarks for this method](http://peterolson.github.io/BigInteger.js/benchmark/#Multiplication)
319
-
320
-#### `neq(number)`
321
-
322
-Alias for the `notEquals` method.
323
-
324
-#### `next()`
325
-
326
-Adds one to the number.
327
-
328
- - `bigInt(6).next()` => `7`
329
-
330
-#### `not()`
331
-
332
-Performs the bitwise NOT operation. The operands are treated as if they were represented using [two's complement representation](http://en.wikipedia.org/wiki/Two%27s_complement).
333
-
334
- - `bigInt(10).not()` => `-11`
335
- - `bigInt(0).not()` => `-1`
336
-
337
-#### `notEquals(number)`
338
-
339
-Checks if two numbers are not equal.
340
-
341
- - `bigInt(5).notEquals(5)` => `false`
342
- - `bigInt(4).notEquals(7)` => `true`
343
-
344
-#### `or(number)`
345
-
346
-Performs the bitwise OR operation. The operands are treated as if they were represented using [two's complement representation](http://en.wikipedia.org/wiki/Two%27s_complement).
347
-
348
- - `bigInt(13).or(10)` => `15`
349
- - `bigInt(13).or(-8)` => `-3`
350
-
351
-#### `over(number)`
352
-
353
-Alias for the `divide` method.
354
-
355
- - `bigInt(59).over(5)` => `11`
356
-
357
-[View benchmarks for this method](http://peterolson.github.io/BigInteger.js/benchmark/#Division)
358
-
359
-#### `plus(number)`
360
-
361
-Alias for the `add` method.
362
-
363
- - `bigInt(5).plus(7)` => `12`
364
-
365
-[View benchmarks for this method](http://peterolson.github.io/BigInteger.js/benchmark/#Addition)
366
-
367
-#### `pow(number)`
368
-
369
-Performs exponentiation. If the exponent is less than `0`, `pow` returns `0`. `bigInt.zero.pow(0)` returns `1`.
370
-
371
- - `bigInt(16).pow(16)` => `18446744073709551616`
372
-
373
-[View benchmarks for this method](http://peterolson.github.io/BigInteger.js/benchmark/#Exponentiation)
374
-
375
-#### `prev(number)`
376
-
377
-Subtracts one from the number.
378
-
379
- - `bigInt(6).prev()` => `5`
380
-
381
-#### `remainder(number)`
382
-
383
-Alias for the `mod` method.
384
-
385
-[View benchmarks for this method](http://peterolson.github.io/BigInteger.js/benchmark/#Division)
386
-
387
-#### `shiftLeft(n)`
388
-
389
-Shifts the number left by `n` places in its binary representation. If a negative number is provided, it will shift right. Throws an error if `n` is outside of the range `[-9007199254740992, 9007199254740992]`.
390
-
391
- - `bigInt(8).shiftLeft(2)` => `32`
392
- - `bigInt(8).shiftLeft(-2)` => `2`
393
-
394
-#### `shiftRight(n)`
395
-
396
-Shifts the number right by `n` places in its binary representation. If a negative number is provided, it will shift left. Throws an error if `n` is outside of the range `[-9007199254740992, 9007199254740992]`.
397
-
398
- - `bigInt(8).shiftRight(2)` => `2`
399
- - `bigInt(8).shiftRight(-2)` => `32`
400
-
401
-#### `square()`
402
-
403
-Squares the number
404
-
405
- - `bigInt(3).square()` => `9`
406
-
407
-[View benchmarks for this method](http://peterolson.github.io/BigInteger.js/benchmark/#Squaring)
408
-
409
-#### `subtract(number)`
410
-
411
-Performs subtraction.
412
-
413
- - `bigInt(3).subtract(5)` => `-2`
414
-
415
-[View benchmarks for this method](http://peterolson.github.io/BigInteger.js/benchmark/#Subtraction)
416
-
417
-#### `times(number)`
418
-
419
-Alias for the `multiply` method.
420
-
421
- - `bigInt(111).times(111)` => `12321`
422
-
423
-[View benchmarks for this method](http://peterolson.github.io/BigInteger.js/benchmark/#Multiplication)
424
-
425
-#### `toArray(radix)`
426
-
427
-Converts a bigInt into an object with the properties "value" and "isNegative." "Value" is an array of integers modulo the given radix. "isNegative" is a boolean that represents the sign of the result.
428
-
429
- - `bigInt("1e9").toArray(10)` => {
430
-     value: [1, 0, 0, 0, 0, 0, 0, 0, 0, 0],
431
-     isNegative: false
432
-   }
433
- - `bigInt("1e9").toArray(16)` => {
434
-     value: [3, 11, 9, 10, 12, 10, 0, 0],
435
-     isNegative: false
436
-   }
437
- - `bigInt(567890).toArray(100)` => {
438
-     value: [56, 78, 90],
439
-     isNegative: false
440
-   }
441
-
442
-Negative bases are supported.
443
-
444
- - `bigInt(12345).toArray(-10)` => {
445
-     value: [2, 8, 4, 6, 5],
446
-     isNegative: false
447
-   }
448
-
449
-Base 1 and base -1 are also supported.
450
-
451
- - `bigInt(-15).toArray(1)` => {
452
-     value: [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
453
-     isNegative: true
454
-   }
455
- - `bigInt(-15).toArray(-1)` => {
456
-     value: [1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1,
457
-             0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0],
458
-     isNegative: false
459
-   }
460
-
461
-Base 0 is only allowed for the number zero.
462
-
463
- - `bigInt(0).toArray(0)` => {
464
-     value: [0],
465
-     isNegative: false
466
-   }
467
- - `bigInt(1).toArray(0)` => `Error: Cannot convert nonzero numbers to base 0.`
468
-
469
-#### `toJSNumber()`
470
-
471
-Converts a bigInt into a native Javascript number. Loses precision for numbers outside the range `[-9007199254740992, 9007199254740992]`.
472
-
473
- - `bigInt("18446744073709551616").toJSNumber()` => `18446744073709552000`
474
-
475
-#### `xor(number)`
476
-
477
-Performs the bitwise XOR operation. The operands are treated as if they were represented using [two's complement representation](http://en.wikipedia.org/wiki/Two%27s_complement).
478
-
479
- - `bigInt(12).xor(5)` => `9`
480
- - `bigInt(12).xor(-5)` => `-9`
481
-
482
-### Static Methods
483
-
484
-#### `fromArray(digits, base = 10, isNegative?)`
485
-
486
-Constructs a bigInt from an array of digits in base `base`. The optional `isNegative` flag will make the number negative.
487
-
488
- - `bigInt.fromArray([1, 2, 3, 4, 5], 10)` => `12345`
489
- - `bigInt.fromArray([1, 0, 0], 2, true)` => `-4`
490
-
491
-#### `gcd(a, b)`
492
-
493
-Finds the greatest common denominator of `a` and `b`.
494
-
495
- - `bigInt.gcd(42,56)` => `14`
496
-
497
-#### `isInstance(x)`
498
-
499
-Returns `true` if `x` is a BigInteger, `false` otherwise.
500
-
501
- - `bigInt.isInstance(bigInt(14))` => `true`
502
- - `bigInt.isInstance(14)` => `false`
503
-
504
-#### `lcm(a,b)`
505
-
506
-Finds the least common multiple of `a` and `b`.
507
-
508
- - `bigInt.lcm(21, 6)` => `42`
509
-
510
-#### `max(a,b)`
511
-
512
-Returns the largest of `a` and `b`.
513
-
514
- - `bigInt.max(77, 432)` => `432`
515
-
516
-#### `min(a,b)`
517
-
518
-Returns the smallest of `a` and `b`.
519
-
520
- - `bigInt.min(77, 432)` => `77`
521
-
522
-#### `randBetween(min, max, [rng])`
523
-
524
-Returns a random number between `min` and `max`, optionally using `rng` to generate randomness.
525
-
526
- - `bigInt.randBetween("-1e100", "1e100")` => (for example) `8494907165436643479673097939554427056789510374838494147955756275846226209006506706784609314471378745`
527
-
528
-`rng` should take no arguments and return a `number` between 0 and 1. It defaults to `Math.random`.
529
-
530
-  - `bigInt.randBetween("-1e100", "1e100", () => 0.5)` => (always) `50000005000000500000050000005000000500000050000005000000500000050000005000000500000050000005000000`
531
-
532
-
533
-### Override Methods
534
-
535
-#### `toString(radix = 10, [alphabet])`
536
-
537
-Converts a bigInt to a string. There is an optional radix parameter (which defaults to 10) that converts the number to the given radix. Digits in the range `10-35` will use the letters `a-z`.
538
-
539
- - `bigInt("1e9").toString()` => `"1000000000"`
540
- - `bigInt("1e9").toString(16)` => `"3b9aca00"`
541
-
542
- You can use a custom base alphabet with the second parameter. The default `alphabet` is `"0123456789abcdefghijklmnopqrstuvwxyz"`.
543
-
544
-  - `bigInt("5").toString(2, "aA")` => `"AaA"`
545
-
546
-**Note that arithmetical operators will trigger the `valueOf` function rather than the `toString` function.** When converting a bigInteger to a string, you should use the `toString` method or the `String` function instead of adding the empty string.
547
-
548
- - `bigInt("999999999999999999").toString()` => `"999999999999999999"`
549
- - `String(bigInt("999999999999999999"))` => `"999999999999999999"`
550
- - `bigInt("999999999999999999") + ""` => `1000000000000000000`
551
-
552
-Bases larger than 36 are supported. If a digit is greater than or equal to 36, it will be enclosed in angle brackets.
553
-
554
- - `bigInt(567890).toString(100)` => `"<56><78><90>"`
555
-
556
-Negative bases are also supported.
557
-
558
- - `bigInt(12345).toString(-10)` => `"28465"`
559
-
560
-Base 1 and base -1 are also supported.
561
-
562
- - `bigInt(-15).toString(1)` => `"-111111111111111"`
563
- - `bigInt(-15).toString(-1)` => `"101010101010101010101010101010"`
564
-
565
-Base 0 is only allowed for the number zero.
566
-
567
- - `bigInt(0).toString(0)` => `0`
568
- - `bigInt(1).toString(0)` => `Error: Cannot convert nonzero numbers to base 0.`
569
-
570
-[View benchmarks for this method](http://peterolson.github.io/BigInteger.js/benchmark/#toString)
571
-
572
-#### `valueOf()`
573
-
574
-Converts a bigInt to a native Javascript number. This override allows you to use native arithmetic operators without explicit conversion:
575
-
576
- - `bigInt("100") + bigInt("200") === 300; //true`
577
-
578
-## Contributors
579
-
580
-To contribute, just fork the project, make some changes, and submit a pull request. Please verify that the unit tests pass before submitting.
581
-
582
-The unit tests are contained in the `spec/spec.js` file. You can run them locally by opening the `spec/SpecRunner.html` or file or running `npm test`. You can also [run the tests online from GitHub](http://peterolson.github.io/BigInteger.js/spec/SpecRunner.html).
583
-
584
-There are performance benchmarks that can be viewed from the `benchmarks/index.html` page. You can [run them online from GitHub](http://peterolson.github.io/BigInteger.js/benchmark/).
585
-
586
-## License
587
-
588
-This project is public domain. For more details, read about the [Unlicense](http://unlicense.org/).

+ 0
- 29
km0App/node_modules/big-integer/bower.json View File

@@ -1,29 +0,0 @@
1
-{
2
-  "name": "big-integer",
3
-  "description": "An arbitrary length integer library for Javascript",
4
-  "main": "./BigInteger.js",
5
-  "authors": [
6
-    "Peter Olson"
7
-  ],
8
-  "license": "Unlicense",
9
-  "keywords": [
10
-    "math",
11
-    "big",
12
-    "bignum",
13
-    "bigint",
14
-    "biginteger",
15
-    "integer",
16
-    "arbitrary",
17
-    "precision",
18
-    "arithmetic"
19
-  ],
20
-  "homepage": "https://github.com/peterolson/BigInteger.js",
21
-  "ignore": [
22
-    "**/.*",
23
-    "node_modules",
24
-    "bower_components",
25
-    "test",
26
-    "coverage",
27
-    "tests"
28
-  ]
29
-}

+ 0
- 80
km0App/node_modules/big-integer/package.json View File

@@ -1,80 +0,0 @@
1
-{
2
-  "_from": "big-integer@^1.6.7",
3
-  "_id": "big-integer@1.6.47",
4
-  "_inBundle": false,
5
-  "_integrity": "sha512-9t9f7X3as2XGX8b52GqG6ox0GvIdM86LyIXASJnDCFhYNgt+A+MByQZ3W2PyMRZjEvG5f8TEbSPfEotVuMJnQg==",
6
-  "_location": "/big-integer",
7
-  "_phantomChildren": {},
8
-  "_requested": {
9
-    "type": "range",
10
-    "registry": true,
11
-    "raw": "big-integer@^1.6.7",
12
-    "name": "big-integer",
13
-    "escapedName": "big-integer",
14
-    "rawSpec": "^1.6.7",
15
-    "saveSpec": null,
16
-    "fetchSpec": "^1.6.7"
17
-  },
18
-  "_requiredBy": [
19
-    "/bplist-parser"
20
-  ],
21
-  "_resolved": "https://registry.npmjs.org/big-integer/-/big-integer-1.6.47.tgz",
22
-  "_shasum": "e1e9320e26c4cc81f64fbf4b3bb20e025bf18e2d",
23
-  "_spec": "big-integer@^1.6.7",
24
-  "_where": "/Users/Luis/Documents/Universidad/Quinto Año (2019)/Software/km0/km0App/node_modules/bplist-parser",
25
-  "author": {
26
-    "name": "Peter Olson",
27
-    "email": "peter.e.c.olson+npm@gmail.com"
28
-  },
29
-  "bin": {},
30
-  "bugs": {
31
-    "url": "https://github.com/peterolson/BigInteger.js/issues"
32
-  },
33
-  "bundleDependencies": false,
34
-  "contributors": [],
35
-  "deprecated": false,
36
-  "description": "An arbitrary length integer library for Javascript",
37
-  "devDependencies": {
38
-    "@types/lodash": "^4.14.118",
39
-    "@types/node": "^7.10.2",
40
-    "coveralls": "^3.0.6",
41
-    "jasmine": "3.5.0",
42
-    "jasmine-core": "^3.5.0",
43
-    "karma": "^4.3.0",
44
-    "karma-cli": "^2.0.0",
45
-    "karma-coverage": "^2.0.1",
46
-    "karma-jasmine": "^2.0.1",
47
-    "karma-phantomjs-launcher": "^1.0.4",
48
-    "lodash": "^4.17.11",
49
-    "typescript": "^3.6.3",
50
-    "uglifyjs": "^2.4.10"
51
-  },
52
-  "engines": {
53
-    "node": ">=0.6"
54
-  },
55
-  "homepage": "https://github.com/peterolson/BigInteger.js#readme",
56
-  "keywords": [
57
-    "math",
58
-    "big",
59
-    "bignum",
60
-    "bigint",
61
-    "biginteger",
62
-    "integer",
63
-    "arbitrary",
64
-    "precision",
65
-    "arithmetic"
66
-  ],
67
-  "license": "Unlicense",
68
-  "main": "./BigInteger",
69
-  "name": "big-integer",
70
-  "repository": {
71
-    "type": "git",
72
-    "url": "git+ssh://git@github.com/peterolson/BigInteger.js.git"
73
-  },
74
-  "scripts": {
75
-    "minify": "uglifyjs BigInteger.js -o BigInteger.min.js",
76
-    "test": "tsc && karma start my.conf.js && node spec/tsDefinitions.js"
77
-  },
78
-  "typings": "./BigInteger.d.ts",
79
-  "version": "1.6.47"
80
-}

+ 0
- 26
km0App/node_modules/big-integer/tsconfig.json View File

@@ -1,26 +0,0 @@
1
-{
2
-    "compilerOptions": {
3
-        "target": "esnext",
4
-        "module": "commonjs",
5
-        "lib": [
6
-            "es6"
7
-        ],
8
-        "noImplicitAny": true,
9
-        "noImplicitThis": true,
10
-        "strictNullChecks": false,
11
-        "baseUrl": "./",
12
-        "moduleResolution": "node",
13
-        "allowJs": true,
14
-        "typeRoots": [
15
-            "./"
16
-        ],
17
-        "types": [
18
-            "node"
19
-        ],
20
-        "forceConsistentCasingInFileNames": true
21
-    },
22
-    "files": [
23
-        "BigInteger.d.ts",
24
-        "spec/tsDefinitions.ts"
25
-    ]
26
-}

+ 0
- 609
km0App/node_modules/body-parser/HISTORY.md View File

@@ -1,609 +0,0 @@
1
-1.19.0 / 2019-04-25
2
-===================
3
-
4
-  * deps: bytes@3.1.0
5
-    - Add petabyte (`pb`) support
6
-  * deps: http-errors@1.7.2
7
-    - Set constructor name when possible
8
-    - deps: setprototypeof@1.1.1
9
-    - deps: statuses@'>= 1.5.0 < 2'
10
-  * deps: iconv-lite@0.4.24
11
-    - Added encoding MIK
12
-  * deps: qs@6.7.0
13
-    - Fix parsing array brackets after index
14
-  * deps: raw-body@2.4.0
15
-    - deps: bytes@3.1.0
16
-    - deps: http-errors@1.7.2
17
-    - deps: iconv-lite@0.4.24
18
-  * deps: type-is@~1.6.17
19
-    - deps: mime-types@~2.1.24
20
-    - perf: prevent internal `throw` on invalid type
21
-
22
-1.18.3 / 2018-05-14
23
-===================
24
-
25
-  * Fix stack trace for strict json parse error
26
-  * deps: depd@~1.1.2
27
-    - perf: remove argument reassignment
28
-  * deps: http-errors@~1.6.3
29
-    - deps: depd@~1.1.2
30
-    - deps: setprototypeof@1.1.0
31
-    - deps: statuses@'>= 1.3.1 < 2'
32
-  * deps: iconv-lite@0.4.23
33
-    - Fix loading encoding with year appended
34
-    - Fix deprecation warnings on Node.js 10+
35
-  * deps: qs@6.5.2
36
-  * deps: raw-body@2.3.3
37
-    - deps: http-errors@1.6.3
38
-    - deps: iconv-lite@0.4.23
39
-  * deps: type-is@~1.6.16
40
-    - deps: mime-types@~2.1.18
41
-
42
-1.18.2 / 2017-09-22
43
-===================
44
-
45
-  * deps: debug@2.6.9
46
-  * perf: remove argument reassignment
47
-
48
-1.18.1 / 2017-09-12
49
-===================
50
-
51
-  * deps: content-type@~1.0.4
52
-    - perf: remove argument reassignment
53
-    - perf: skip parameter parsing when no parameters
54
-  * deps: iconv-lite@0.4.19
55
-    - Fix ISO-8859-1 regression
56
-    - Update Windows-1255
57
-  * deps: qs@6.5.1
58
-    - Fix parsing & compacting very deep objects
59
-  * deps: raw-body@2.3.2
60
-    - deps: iconv-lite@0.4.19
61
-
62
-1.18.0 / 2017-09-08
63
-===================
64
-
65
-  * Fix JSON strict violation error to match native parse error
66
-  * Include the `body` property on verify errors
67
-  * Include the `type` property on all generated errors
68
-  * Use `http-errors` to set status code on errors
69
-  * deps: bytes@3.0.0
70
-  * deps: debug@2.6.8
71
-  * deps: depd@~1.1.1
72
-    - Remove unnecessary `Buffer` loading
73
-  * deps: http-errors@~1.6.2
74
-    - deps: depd@1.1.1
75
-  * deps: iconv-lite@0.4.18
76
-    - Add support for React Native
77
-    - Add a warning if not loaded as utf-8
78
-    - Fix CESU-8 decoding in Node.js 8
79
-    - Improve speed of ISO-8859-1 encoding
80
-  * deps: qs@6.5.0
81
-  * deps: raw-body@2.3.1
82
-    - Use `http-errors` for standard emitted errors
83
-    - deps: bytes@3.0.0
84
-    - deps: iconv-lite@0.4.18
85
-    - perf: skip buffer decoding on overage chunk
86
-  * perf: prevent internal `throw` when missing charset
87
-
88
-1.17.2 / 2017-05-17
89
-===================
90
-
91
-  * deps: debug@2.6.7
92
-    - Fix `DEBUG_MAX_ARRAY_LENGTH`
93
-    - deps: ms@2.0.0
94
-  * deps: type-is@~1.6.15
95
-    - deps: mime-types@~2.1.15
96
-
97
-1.17.1 / 2017-03-06
98
-===================
99
-
100
-  * deps: qs@6.4.0
101
-    - Fix regression parsing keys starting with `[`
102
-
103
-1.17.0 / 2017-03-01
104
-===================
105
-
106
-  * deps: http-errors@~1.6.1
107
-    - Make `message` property enumerable for `HttpError`s
108
-    - deps: setprototypeof@1.0.3
109
-  * deps: qs@6.3.1
110
-    - Fix compacting nested arrays
111
-
112
-1.16.1 / 2017-02-10
113
-===================
114
-
115
-  * deps: debug@2.6.1
116
-    - Fix deprecation messages in WebStorm and other editors
117
-    - Undeprecate `DEBUG_FD` set to `1` or `2`
118
-
119
-1.16.0 / 2017-01-17
120
-===================
121
-
122
-  * deps: debug@2.6.0
123
-    - Allow colors in workers
124
-    - Deprecated `DEBUG_FD` environment variable
125
-    - Fix error when running under React Native
126
-    - Use same color for same namespace
127
-    - deps: ms@0.7.2
128
-  * deps: http-errors@~1.5.1
129
-    - deps: inherits@2.0.3
130
-    - deps: setprototypeof@1.0.2
131
-    - deps: statuses@'>= 1.3.1 < 2'
132
-  * deps: iconv-lite@0.4.15
133
-    - Added encoding MS-31J
134
-    - Added encoding MS-932
135
-    - Added encoding MS-936
136
-    - Added encoding MS-949
137
-    - Added encoding MS-950
138
-    - Fix GBK/GB18030 handling of Euro character
139
-  * deps: qs@6.2.1
140
-    - Fix array parsing from skipping empty values
141
-  * deps: raw-body@~2.2.0
142
-    - deps: iconv-lite@0.4.15
143
-  * deps: type-is@~1.6.14
144
-    - deps: mime-types@~2.1.13
145
-
146
-1.15.2 / 2016-06-19
147
-===================
148
-
149
-  * deps: bytes@2.4.0
150
-  * deps: content-type@~1.0.2
151
-    - perf: enable strict mode
152
-  * deps: http-errors@~1.5.0
153
-    - Use `setprototypeof` module to replace `__proto__` setting
154
-    - deps: statuses@'>= 1.3.0 < 2'
155
-    - perf: enable strict mode
156
-  * deps: qs@6.2.0
157
-  * deps: raw-body@~2.1.7
158
-    - deps: bytes@2.4.0
159
-    - perf: remove double-cleanup on happy path
160
-  * deps: type-is@~1.6.13
161
-    - deps: mime-types@~2.1.11
162
-
163
-1.15.1 / 2016-05-05
164
-===================
165
-
166
-  * deps: bytes@2.3.0
167
-    - Drop partial bytes on all parsed units
168
-    - Fix parsing byte string that looks like hex
169
-  * deps: raw-body@~2.1.6
170
-    - deps: bytes@2.3.0
171
-  * deps: type-is@~1.6.12
172
-    - deps: mime-types@~2.1.10
173
-
174
-1.15.0 / 2016-02-10
175
-===================
176
-
177
-  * deps: http-errors@~1.4.0
178
-    - Add `HttpError` export, for `err instanceof createError.HttpError`
179
-    - deps: inherits@2.0.1
180
-    - deps: statuses@'>= 1.2.1 < 2'
181
-  * deps: qs@6.1.0
182
-  * deps: type-is@~1.6.11
183
-    - deps: mime-types@~2.1.9
184
-
185
-1.14.2 / 2015-12-16
186
-===================
187
-
188
-  * deps: bytes@2.2.0
189
-  * deps: iconv-lite@0.4.13
190
-  * deps: qs@5.2.0
191
-  * deps: raw-body@~2.1.5
192
-    - deps: bytes@2.2.0
193
-    - deps: iconv-lite@0.4.13
194
-  * deps: type-is@~1.6.10
195
-    - deps: mime-types@~2.1.8
196
-
197
-1.14.1 / 2015-09-27
198
-===================
199
-
200
-  * Fix issue where invalid charset results in 400 when `verify` used
201
-  * deps: iconv-lite@0.4.12
202
-    - Fix CESU-8 decoding in Node.js 4.x
203
-  * deps: raw-body@~2.1.4
204
-    - Fix masking critical errors from `iconv-lite`
205
-    - deps: iconv-lite@0.4.12
206
-  * deps: type-is@~1.6.9
207
-    - deps: mime-types@~2.1.7
208
-
209
-1.14.0 / 2015-09-16
210
-===================
211
-
212
-  * Fix JSON strict parse error to match syntax errors
213
-  * Provide static `require` analysis in `urlencoded` parser
214
-  * deps: depd@~1.1.0
215
-    - Support web browser loading
216
-  * deps: qs@5.1.0
217
-  * deps: raw-body@~2.1.3
218
-    - Fix sync callback when attaching data listener causes sync read
219
-  * deps: type-is@~1.6.8
220
-    - Fix type error when given invalid type to match against
221
-    - deps: mime-types@~2.1.6
222
-
223
-1.13.3 / 2015-07-31
224
-===================
225
-
226
-  * deps: type-is@~1.6.6
227
-    - deps: mime-types@~2.1.4
228
-
229
-1.13.2 / 2015-07-05
230
-===================
231
-
232
-  * deps: iconv-lite@0.4.11
233
-  * deps: qs@4.0.0
234
-    - Fix dropping parameters like `hasOwnProperty`
235
-    - Fix user-visible incompatibilities from 3.1.0
236
-    - Fix various parsing edge cases
237
-  * deps: raw-body@~2.1.2
238
-    - Fix error stack traces to skip `makeError`
239
-    - deps: iconv-lite@0.4.11
240
-  * deps: type-is@~1.6.4
241
-    - deps: mime-types@~2.1.2
242
-    - perf: enable strict mode
243
-    - perf: remove argument reassignment
244
-
245
-1.13.1 / 2015-06-16
246
-===================
247
-
248
-  * deps: qs@2.4.2
249
-    - Downgraded from 3.1.0 because of user-visible incompatibilities
250
-
251
-1.13.0 / 2015-06-14
252
-===================
253
-
254
-  * Add `statusCode` property on `Error`s, in addition to `status`
255
-  * Change `type` default to `application/json` for JSON parser
256
-  * Change `type` default to `application/x-www-form-urlencoded` for urlencoded parser
257
-  * Provide static `require` analysis
258
-  * Use the `http-errors` module to generate errors
259
-  * deps: bytes@2.1.0
260
-    - Slight optimizations
261
-  * deps: iconv-lite@0.4.10
262
-    - The encoding UTF-16 without BOM now defaults to UTF-16LE when detection fails
263
-    - Leading BOM is now removed when decoding
264
-  * deps: on-finished@~2.3.0
265
-    - Add defined behavior for HTTP `CONNECT` requests
266
-    - Add defined behavior for HTTP `Upgrade` requests
267
-    - deps: ee-first@1.1.1
268
-  * deps: qs@3.1.0
269
-    - Fix dropping parameters like `hasOwnProperty`
270
-    - Fix various parsing edge cases
271
-    - Parsed object now has `null` prototype
272
-  * deps: raw-body@~2.1.1
273
-    - Use `unpipe` module for unpiping requests
274
-    - deps: iconv-lite@0.4.10
275
-  * deps: type-is@~1.6.3
276
-    - deps: mime-types@~2.1.1
277
-    - perf: reduce try block size
278
-    - perf: remove bitwise operations
279
-  * perf: enable strict mode
280
-  * perf: remove argument reassignment
281
-  * perf: remove delete call
282
-
283
-1.12.4 / 2015-05-10
284
-===================
285
-
286
-  * deps: debug@~2.2.0
287
-  * deps: qs@2.4.2
288
-    - Fix allowing parameters like `constructor`
289
-  * deps: on-finished@~2.2.1
290
-  * deps: raw-body@~2.0.1
291
-    - Fix a false-positive when unpiping in Node.js 0.8
292
-    - deps: bytes@2.0.1
293
-  * deps: type-is@~1.6.2
294
-    - deps: mime-types@~2.0.11
295
-
296
-1.12.3 / 2015-04-15
297
-===================
298
-
299
-  * Slight efficiency improvement when not debugging
300
-  * deps: depd@~1.0.1
301
-  * deps: iconv-lite@0.4.8
302
-    - Add encoding alias UNICODE-1-1-UTF-7
303
-  * deps: raw-body@1.3.4
304
-    - Fix hanging callback if request aborts during read
305
-    - deps: iconv-lite@0.4.8
306
-
307
-1.12.2 / 2015-03-16
308
-===================
309
-
310
-  * deps: qs@2.4.1
311
-    - Fix error when parameter `hasOwnProperty` is present
312
-
313
-1.12.1 / 2015-03-15
314
-===================
315
-
316
-  * deps: debug@~2.1.3
317
-    - Fix high intensity foreground color for bold
318
-    - deps: ms@0.7.0
319
-  * deps: type-is@~1.6.1
320
-    - deps: mime-types@~2.0.10
321
-
322
-1.12.0 / 2015-02-13
323
-===================
324
-
325
-  * add `debug` messages
326
-  * accept a function for the `type` option
327
-  * use `content-type` to parse `Content-Type` headers
328
-  * deps: iconv-lite@0.4.7
329
-    - Gracefully support enumerables on `Object.prototype`
330
-  * deps: raw-body@1.3.3
331
-    - deps: iconv-lite@0.4.7
332
-  * deps: type-is@~1.6.0
333
-    - fix argument reassignment
334
-    - fix false-positives in `hasBody` `Transfer-Encoding` check
335
-    - support wildcard for both type and subtype (`*/*`)
336
-    - deps: mime-types@~2.0.9
337
-
338
-1.11.0 / 2015-01-30
339
-===================
340
-
341
-  * make internal `extended: true` depth limit infinity
342
-  * deps: type-is@~1.5.6
343
-    - deps: mime-types@~2.0.8
344
-
345
-1.10.2 / 2015-01-20
346
-===================
347
-
348
-  * deps: iconv-lite@0.4.6
349
-    - Fix rare aliases of single-byte encodings
350
-  * deps: raw-body@1.3.2
351
-    - deps: iconv-lite@0.4.6
352
-
353
-1.10.1 / 2015-01-01
354
-===================
355
-
356
-  * deps: on-finished@~2.2.0
357
-  * deps: type-is@~1.5.5
358
-    - deps: mime-types@~2.0.7
359
-
360
-1.10.0 / 2014-12-02
361
-===================
362
-
363
-  * make internal `extended: true` array limit dynamic
364
-
365
-1.9.3 / 2014-11-21
366
-==================
367
-
368
-  * deps: iconv-lite@0.4.5
369
-    - Fix Windows-31J and X-SJIS encoding support
370
-  * deps: qs@2.3.3
371
-    - Fix `arrayLimit` behavior
372
-  * deps: raw-body@1.3.1
373
-    - deps: iconv-lite@0.4.5
374
-  * deps: type-is@~1.5.3
375
-    - deps: mime-types@~2.0.3
376
-
377
-1.9.2 / 2014-10-27
378
-==================
379
-
380
-  * deps: qs@2.3.2
381
-    - Fix parsing of mixed objects and values
382
-
383
-1.9.1 / 2014-10-22
384
-==================
385
-
386
-  * deps: on-finished@~2.1.1
387
-    - Fix handling of pipelined requests
388
-  * deps: qs@2.3.0
389
-    - Fix parsing of mixed implicit and explicit arrays
390
-  * deps: type-is@~1.5.2
391
-    - deps: mime-types@~2.0.2
392
-
393
-1.9.0 / 2014-09-24
394
-==================
395
-
396
-  * include the charset in "unsupported charset" error message
397
-  * include the encoding in "unsupported content encoding" error message
398
-  * deps: depd@~1.0.0
399
-
400
-1.8.4 / 2014-09-23
401
-==================
402
-
403
-  * fix content encoding to be case-insensitive
404
-
405
-1.8.3 / 2014-09-19
406
-==================
407
-
408
-  * deps: qs@2.2.4
409
-    - Fix issue with object keys starting with numbers truncated
410
-
411
-1.8.2 / 2014-09-15
412
-==================
413
-
414
-  * deps: depd@0.4.5
415
-
416
-1.8.1 / 2014-09-07
417
-==================
418
-
419
-  * deps: media-typer@0.3.0
420
-  * deps: type-is@~1.5.1
421
-
422
-1.8.0 / 2014-09-05
423
-==================
424
-
425
-  * make empty-body-handling consistent between chunked requests
426
-    - empty `json` produces `{}`
427
-    - empty `raw` produces `new Buffer(0)`
428
-    - empty `text` produces `''`
429
-    - empty `urlencoded` produces `{}`
430
-  * deps: qs@2.2.3
431
-    - Fix issue where first empty value in array is discarded
432
-  * deps: type-is@~1.5.0
433
-    - fix `hasbody` to be true for `content-length: 0`
434
-
435
-1.7.0 / 2014-09-01
436
-==================
437
-
438
-  * add `parameterLimit` option to `urlencoded` parser
439
-  * change `urlencoded` extended array limit to 100
440
-  * respond with 413 when over `parameterLimit` in `urlencoded`
441
-
442
-1.6.7 / 2014-08-29
443
-==================
444
-
445
-  * deps: qs@2.2.2
446
-    - Remove unnecessary cloning
447
-
448
-1.6.6 / 2014-08-27
449
-==================
450
-
451
-  * deps: qs@2.2.0
452
-    - Array parsing fix
453
-    - Performance improvements
454
-
455
-1.6.5 / 2014-08-16
456
-==================
457
-
458
-  * deps: on-finished@2.1.0
459
-
460
-1.6.4 / 2014-08-14
461
-==================
462
-
463
-  * deps: qs@1.2.2
464
-
465
-1.6.3 / 2014-08-10
466
-==================
467
-
468
-  * deps: qs@1.2.1
469
-
470
-1.6.2 / 2014-08-07
471
-==================
472
-
473
-  * deps: qs@1.2.0
474
-    - Fix parsing array of objects
475
-
476
-1.6.1 / 2014-08-06
477
-==================
478
-
479
-  * deps: qs@1.1.0
480
-    - Accept urlencoded square brackets
481
-    - Accept empty values in implicit array notation
482
-
483
-1.6.0 / 2014-08-05
484
-==================
485
-
486
-  * deps: qs@1.0.2
487
-    - Complete rewrite
488
-    - Limits array length to 20
489
-    - Limits object depth to 5
490
-    - Limits parameters to 1,000
491
-
492
-1.5.2 / 2014-07-27
493
-==================
494
-
495
-  * deps: depd@0.4.4
496
-    - Work-around v8 generating empty stack traces
497
-
498
-1.5.1 / 2014-07-26
499
-==================
500
-
501
-  * deps: depd@0.4.3
502
-    - Fix exception when global `Error.stackTraceLimit` is too low
503
-
504
-1.5.0 / 2014-07-20
505
-==================
506
-
507
-  * deps: depd@0.4.2
508
-    - Add `TRACE_DEPRECATION` environment variable
509
-    - Remove non-standard grey color from color output
510
-    - Support `--no-deprecation` argument
511
-    - Support `--trace-deprecation` argument
512
-  * deps: iconv-lite@0.4.4
513
-    - Added encoding UTF-7
514
-  * deps: raw-body@1.3.0
515
-    - deps: iconv-lite@0.4.4
516
-    - Added encoding UTF-7
517
-    - Fix `Cannot switch to old mode now` error on Node.js 0.10+
518
-  * deps: type-is@~1.3.2
519
-
520
-1.4.3 / 2014-06-19
521
-==================
522
-
523
-  * deps: type-is@1.3.1
524
-    - fix global variable leak
525
-
526
-1.4.2 / 2014-06-19
527
-==================
528
-
529
-  * deps: type-is@1.3.0
530
-    - improve type parsing
531
-
532
-1.4.1 / 2014-06-19
533
-==================
534
-
535
-  * fix urlencoded extended deprecation message
536
-
537
-1.4.0 / 2014-06-19
538
-==================
539
-
540
-  * add `text` parser
541
-  * add `raw` parser
542
-  * check accepted charset in content-type (accepts utf-8)
543
-  * check accepted encoding in content-encoding (accepts identity)
544
-  * deprecate `bodyParser()` middleware; use `.json()` and `.urlencoded()` as needed
545
-  * deprecate `urlencoded()` without provided `extended` option
546
-  * lazy-load urlencoded parsers
547
-  * parsers split into files for reduced mem usage
548
-  * support gzip and deflate bodies
549
-    - set `inflate: false` to turn off
550
-  * deps: raw-body@1.2.2
551
-    - Support all encodings from `iconv-lite`
552
-
553
-1.3.1 / 2014-06-11
554
-==================
555
-
556
-  * deps: type-is@1.2.1
557
-    - Switch dependency from mime to mime-types@1.0.0
558
-
559
-1.3.0 / 2014-05-31
560
-==================
561
-
562
-  * add `extended` option to urlencoded parser
563
-
564
-1.2.2 / 2014-05-27
565
-==================
566
-
567
-  * deps: raw-body@1.1.6
568
-    - assert stream encoding on node.js 0.8
569
-    - assert stream encoding on node.js < 0.10.6
570
-    - deps: bytes@1
571
-
572
-1.2.1 / 2014-05-26
573
-==================
574
-
575
-  * invoke `next(err)` after request fully read
576
-    - prevents hung responses and socket hang ups
577
-
578
-1.2.0 / 2014-05-11
579
-==================
580
-
581
-  * add `verify` option
582
-  * deps: type-is@1.2.0
583
-    - support suffix matching
584
-
585
-1.1.2 / 2014-05-11
586
-==================
587
-
588
-  * improve json parser speed
589
-
590
-1.1.1 / 2014-05-11
591
-==================
592
-
593
-  * fix repeated limit parsing with every request
594
-
595
-1.1.0 / 2014-05-10
596
-==================
597
-
598
-  * add `type` option
599
-  * deps: pin for safety and consistency
600
-
601
-1.0.2 / 2014-04-14
602
-==================
603
-
604
-  * use `type-is` module
605
-
606
-1.0.1 / 2014-03-20
607
-==================
608
-
609
-  * lower default limits to 100kb

+ 0
- 23
km0App/node_modules/body-parser/LICENSE View File

@@ -1,23 +0,0 @@
1
-(The MIT License)
2
-
3
-Copyright (c) 2014 Jonathan Ong <me@jongleberry.com>
4
-Copyright (c) 2014-2015 Douglas Christopher Wilson <doug@somethingdoug.com>
5
-
6
-Permission is hereby granted, free of charge, to any person obtaining
7
-a copy of this software and associated documentation files (the
8
-'Software'), to deal in the Software without restriction, including
9
-without limitation the rights to use, copy, modify, merge, publish,
10
-distribute, sublicense, and/or sell copies of the Software, and to
11
-permit persons to whom the Software is furnished to do so, subject to
12
-the following conditions:
13
-
14
-The above copyright notice and this permission notice shall be
15
-included in all copies or substantial portions of the Software.
16
-
17
-THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
18
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
19
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
20
-IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
21
-CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
22
-TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
23
-SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

+ 0
- 443
km0App/node_modules/body-parser/README.md View File

@@ -1,443 +0,0 @@
1
-# body-parser
2
-
3
-[![NPM Version][npm-image]][npm-url]
4
-[![NPM Downloads][downloads-image]][downloads-url]
5
-[![Build Status][travis-image]][travis-url]
6
-[![Test Coverage][coveralls-image]][coveralls-url]
7
-
8
-Node.js body parsing middleware.
9
-
10
-Parse incoming request bodies in a middleware before your handlers, available
11
-under the `req.body` property.
12
-
13
-**Note** As `req.body`'s shape is based on user-controlled input, all
14
-properties and values in this object are untrusted and should be validated
15
-before trusting. For example, `req.body.foo.toString()` may fail in multiple
16
-ways, for example the `foo` property may not be there or may not be a string,
17
-and `toString` may not be a function and instead a string or other user input.
18
-
19
-[Learn about the anatomy of an HTTP transaction in Node.js](https://nodejs.org/en/docs/guides/anatomy-of-an-http-transaction/).
20
-
21
-_This does not handle multipart bodies_, due to their complex and typically
22
-large nature. For multipart bodies, you may be interested in the following
23
-modules:
24
-
25
-  * [busboy](https://www.npmjs.org/package/busboy#readme) and
26
-    [connect-busboy](https://www.npmjs.org/package/connect-busboy#readme)
27
-  * [multiparty](https://www.npmjs.org/package/multiparty#readme) and
28
-    [connect-multiparty](https://www.npmjs.org/package/connect-multiparty#readme)
29
-  * [formidable](https://www.npmjs.org/package/formidable#readme)
30
-  * [multer](https://www.npmjs.org/package/multer#readme)
31
-
32
-This module provides the following parsers:
33
-
34
-  * [JSON body parser](#bodyparserjsonoptions)
35
-  * [Raw body parser](#bodyparserrawoptions)
36
-  * [Text body parser](#bodyparsertextoptions)
37
-  * [URL-encoded form body parser](#bodyparserurlencodedoptions)
38
-
39
-Other body parsers you might be interested in:
40
-
41
-- [body](https://www.npmjs.org/package/body#readme)
42
-- [co-body](https://www.npmjs.org/package/co-body#readme)
43
-
44
-## Installation
45
-
46
-```sh
47
-$ npm install body-parser
48
-```
49
-
50
-## API
51
-
52
-<!-- eslint-disable no-unused-vars -->
53
-
54
-```js
55
-var bodyParser = require('body-parser')
56
-```
57
-
58
-The `bodyParser` object exposes various factories to create middlewares. All
59
-middlewares will populate the `req.body` property with the parsed body when
60
-the `Content-Type` request header matches the `type` option, or an empty
61
-object (`{}`) if there was no body to parse, the `Content-Type` was not matched,
62
-or an error occurred.
63
-
64
-The various errors returned by this module are described in the
65
-[errors section](#errors).
66
-
67
-### bodyParser.json([options])
68
-
69
-Returns middleware that only parses `json` and only looks at requests where
70
-the `Content-Type` header matches the `type` option. This parser accepts any
71
-Unicode encoding of the body and supports automatic inflation of `gzip` and
72
-`deflate` encodings.
73
-
74
-A new `body` object containing the parsed data is populated on the `request`
75
-object after the middleware (i.e. `req.body`).
76
-
77
-#### Options
78
-
79
-The `json` function takes an optional `options` object that may contain any of
80
-the following keys:
81
-
82
-##### inflate
83
-
84
-When set to `true`, then deflated (compressed) bodies will be inflated; when
85
-`false`, deflated bodies are rejected. Defaults to `true`.
86
-
87
-##### limit
88
-
89
-Controls the maximum request body size. If this is a number, then the value
90
-specifies the number of bytes; if it is a string, the value is passed to the
91
-[bytes](https://www.npmjs.com/package/bytes) library for parsing. Defaults
92
-to `'100kb'`.
93
-
94
-##### reviver
95
-
96
-The `reviver` option is passed directly to `JSON.parse` as the second
97
-argument. You can find more information on this argument
98
-[in the MDN documentation about JSON.parse](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse#Example.3A_Using_the_reviver_parameter).
99
-
100
-##### strict
101
-
102
-When set to `true`, will only accept arrays and objects; when `false` will
103
-accept anything `JSON.parse` accepts. Defaults to `true`.
104
-
105
-##### type
106
-
107
-The `type` option is used to determine what media type the middleware will
108
-parse. This option can be a string, array of strings, or a function. If not a
109
-function, `type` option is passed directly to the
110
-[type-is](https://www.npmjs.org/package/type-is#readme) library and this can
111
-be an extension name (like `json`), a mime type (like `application/json`), or
112
-a mime type with a wildcard (like `*/*` or `*/json`). If a function, the `type`
113
-option is called as `fn(req)` and the request is parsed if it returns a truthy
114
-value. Defaults to `application/json`.
115
-
116
-##### verify
117
-
118
-The `verify` option, if supplied, is called as `verify(req, res, buf, encoding)`,
119
-where `buf` is a `Buffer` of the raw request body and `encoding` is the
120
-encoding of the request. The parsing can be aborted by throwing an error.
121
-
122
-### bodyParser.raw([options])
123
-
124
-Returns middleware that parses all bodies as a `Buffer` and only looks at
125
-requests where the `Content-Type` header matches the `type` option. This
126
-parser supports automatic inflation of `gzip` and `deflate` encodings.
127
-
128
-A new `body` object containing the parsed data is populated on the `request`
129
-object after the middleware (i.e. `req.body`). This will be a `Buffer` object
130
-of the body.
131
-
132
-#### Options
133
-
134
-The `raw` function takes an optional `options` object that may contain any of
135
-the following keys:
136
-
137
-##### inflate
138
-
139
-When set to `true`, then deflated (compressed) bodies will be inflated; when
140
-`false`, deflated bodies are rejected. Defaults to `true`.
141
-
142
-##### limit
143
-
144
-Controls the maximum request body size. If this is a number, then the value
145
-specifies the number of bytes; if it is a string, the value is passed to the
146
-[bytes](https://www.npmjs.com/package/bytes) library for parsing. Defaults
147
-to `'100kb'`.
148
-
149
-##### type
150
-
151
-The `type` option is used to determine what media type the middleware will
152
-parse. This option can be a string, array of strings, or a function.
153
-If not a function, `type` option is passed directly to the
154
-[type-is](https://www.npmjs.org/package/type-is#readme) library and this
155
-can be an extension name (like `bin`), a mime type (like
156
-`application/octet-stream`), or a mime type with a wildcard (like `*/*` or
157
-`application/*`). If a function, the `type` option is called as `fn(req)`
158
-and the request is parsed if it returns a truthy value. Defaults to
159
-`application/octet-stream`.
160
-
161
-##### verify
162
-
163
-The `verify` option, if supplied, is called as `verify(req, res, buf, encoding)`,
164
-where `buf` is a `Buffer` of the raw request body and `encoding` is the
165
-encoding of the request. The parsing can be aborted by throwing an error.
166
-
167
-### bodyParser.text([options])
168
-
169
-Returns middleware that parses all bodies as a string and only looks at
170
-requests where the `Content-Type` header matches the `type` option. This
171
-parser supports automatic inflation of `gzip` and `deflate` encodings.
172
-
173
-A new `body` string containing the parsed data is populated on the `request`
174
-object after the middleware (i.e. `req.body`). This will be a string of the
175
-body.
176
-
177
-#### Options
178
-
179
-The `text` function takes an optional `options` object that may contain any of
180
-the following keys:
181
-
182
-##### defaultCharset
183
-
184
-Specify the default character set for the text content if the charset is not
185
-specified in the `Content-Type` header of the request. Defaults to `utf-8`.
186
-
187
-##### inflate
188
-
189
-When set to `true`, then deflated (compressed) bodies will be inflated; when
190
-`false`, deflated bodies are rejected. Defaults to `true`.
191
-
192
-##### limit
193
-
194
-Controls the maximum request body size. If this is a number, then the value
195
-specifies the number of bytes; if it is a string, the value is passed to the
196
-[bytes](https://www.npmjs.com/package/bytes) library for parsing. Defaults
197
-to `'100kb'`.
198
-
199
-##### type
200
-
201
-The `type` option is used to determine what media type the middleware will
202
-parse. This option can be a string, array of strings, or a function. If not
203
-a function, `type` option is passed directly to the
204
-[type-is](https://www.npmjs.org/package/type-is#readme) library and this can
205
-be an extension name (like `txt`), a mime type (like `text/plain`), or a mime
206
-type with a wildcard (like `*/*` or `text/*`). If a function, the `type`
207
-option is called as `fn(req)` and the request is parsed if it returns a
208
-truthy value. Defaults to `text/plain`.
209
-
210
-##### verify
211
-
212
-The `verify` option, if supplied, is called as `verify(req, res, buf, encoding)`,
213
-where `buf` is a `Buffer` of the raw request body and `encoding` is the
214
-encoding of the request. The parsing can be aborted by throwing an error.
215
-
216
-### bodyParser.urlencoded([options])
217
-
218
-Returns middleware that only parses `urlencoded` bodies and only looks at
219
-requests where the `Content-Type` header matches the `type` option. This
220
-parser accepts only UTF-8 encoding of the body and supports automatic
221
-inflation of `gzip` and `deflate` encodings.
222
-
223
-A new `body` object containing the parsed data is populated on the `request`
224
-object after the middleware (i.e. `req.body`). This object will contain
225
-key-value pairs, where the value can be a string or array (when `extended` is
226
-`false`), or any type (when `extended` is `true`).
227
-
228
-#### Options
229
-
230
-The `urlencoded` function takes an optional `options` object that may contain
231
-any of the following keys:
232
-
233
-##### extended
234
-
235
-The `extended` option allows to choose between parsing the URL-encoded data
236
-with the `querystring` library (when `false`) or the `qs` library (when
237
-`true`). The "extended" syntax allows for rich objects and arrays to be
238
-encoded into the URL-encoded format, allowing for a JSON-like experience
239
-with URL-encoded. For more information, please
240
-[see the qs library](https://www.npmjs.org/package/qs#readme).
241
-
242
-Defaults to `true`, but using the default has been deprecated. Please
243
-research into the difference between `qs` and `querystring` and choose the
244
-appropriate setting.
245
-
246
-##### inflate
247
-
248
-When set to `true`, then deflated (compressed) bodies will be inflated; when
249
-`false`, deflated bodies are rejected. Defaults to `true`.
250
-
251
-##### limit
252
-
253
-Controls the maximum request body size. If this is a number, then the value
254
-specifies the number of bytes; if it is a string, the value is passed to the
255
-[bytes](https://www.npmjs.com/package/bytes) library for parsing. Defaults
256
-to `'100kb'`.
257
-
258
-##### parameterLimit
259
-
260
-The `parameterLimit` option controls the maximum number of parameters that
261
-are allowed in the URL-encoded data. If a request contains more parameters
262
-than this value, a 413 will be returned to the client. Defaults to `1000`.
263
-
264
-##### type
265
-
266
-The `type` option is used to determine what media type the middleware will
267
-parse. This option can be a string, array of strings, or a function. If not
268
-a function, `type` option is passed directly to the
269
-[type-is](https://www.npmjs.org/package/type-is#readme) library and this can
270
-be an extension name (like `urlencoded`), a mime type (like
271
-`application/x-www-form-urlencoded`), or a mime type with a wildcard (like
272
-`*/x-www-form-urlencoded`). If a function, the `type` option is called as
273
-`fn(req)` and the request is parsed if it returns a truthy value. Defaults
274
-to `application/x-www-form-urlencoded`.
275
-
276
-##### verify
277
-
278
-The `verify` option, if supplied, is called as `verify(req, res, buf, encoding)`,
279
-where `buf` is a `Buffer` of the raw request body and `encoding` is the
280
-encoding of the request. The parsing can be aborted by throwing an error.
281
-
282
-## Errors
283
-
284
-The middlewares provided by this module create errors depending on the error
285
-condition during parsing. The errors will typically have a `status`/`statusCode`
286
-property that contains the suggested HTTP response code, an `expose` property
287
-to determine if the `message` property should be displayed to the client, a
288
-`type` property to determine the type of error without matching against the
289
-`message`, and a `body` property containing the read body, if available.
290
-
291
-The following are the common errors emitted, though any error can come through
292
-for various reasons.
293
-
294
-### content encoding unsupported
295
-
296
-This error will occur when the request had a `Content-Encoding` header that
297
-contained an encoding but the "inflation" option was set to `false`. The
298
-`status` property is set to `415`, the `type` property is set to
299
-`'encoding.unsupported'`, and the `charset` property will be set to the
300
-encoding that is unsupported.
301
-
302
-### request aborted
303
-
304
-This error will occur when the request is aborted by the client before reading
305
-the body has finished. The `received` property will be set to the number of
306
-bytes received before the request was aborted and the `expected` property is
307
-set to the number of expected bytes. The `status` property is set to `400`
308
-and `type` property is set to `'request.aborted'`.
309
-
310
-### request entity too large
311
-
312
-This error will occur when the request body's size is larger than the "limit"
313
-option. The `limit` property will be set to the byte limit and the `length`
314
-property will be set to the request body's length. The `status` property is
315
-set to `413` and the `type` property is set to `'entity.too.large'`.
316
-
317
-### request size did not match content length
318
-
319
-This error will occur when the request's length did not match the length from
320
-the `Content-Length` header. This typically occurs when the request is malformed,
321
-typically when the `Content-Length` header was calculated based on characters
322
-instead of bytes. The `status` property is set to `400` and the `type` property
323
-is set to `'request.size.invalid'`.
324
-
325
-### stream encoding should not be set
326
-
327
-This error will occur when something called the `req.setEncoding` method prior
328
-to this middleware. This module operates directly on bytes only and you cannot
329
-call `req.setEncoding` when using this module. The `status` property is set to
330
-`500` and the `type` property is set to `'stream.encoding.set'`.
331
-
332
-### too many parameters
333
-
334
-This error will occur when the content of the request exceeds the configured
335
-`parameterLimit` for the `urlencoded` parser. The `status` property is set to
336
-`413` and the `type` property is set to `'parameters.too.many'`.
337
-
338
-### unsupported charset "BOGUS"
339
-
340
-This error will occur when the request had a charset parameter in the
341
-`Content-Type` header, but the `iconv-lite` module does not support it OR the
342
-parser does not support it. The charset is contained in the message as well
343
-as in the `charset` property. The `status` property is set to `415`, the
344
-`type` property is set to `'charset.unsupported'`, and the `charset` property
345
-is set to the charset that is unsupported.
346
-
347
-### unsupported content encoding "bogus"
348
-
349
-This error will occur when the request had a `Content-Encoding` header that
350
-contained an unsupported encoding. The encoding is contained in the message
351
-as well as in the `encoding` property. The `status` property is set to `415`,
352
-the `type` property is set to `'encoding.unsupported'`, and the `encoding`
353
-property is set to the encoding that is unsupported.
354
-
355
-## Examples
356
-
357
-### Express/Connect top-level generic
358
-
359
-This example demonstrates adding a generic JSON and URL-encoded parser as a
360
-top-level middleware, which will parse the bodies of all incoming requests.
361
-This is the simplest setup.
362
-
363
-```js
364
-var express = require('express')
365
-var bodyParser = require('body-parser')
366
-
367
-var app = express()
368
-
369
-// parse application/x-www-form-urlencoded
370
-app.use(bodyParser.urlencoded({ extended: false }))
371
-
372
-// parse application/json
373
-app.use(bodyParser.json())
374
-
375
-app.use(function (req, res) {
376
-  res.setHeader('Content-Type', 'text/plain')
377
-  res.write('you posted:\n')
378
-  res.end(JSON.stringify(req.body, null, 2))
379
-})
380
-```
381
-
382
-### Express route-specific
383
-
384
-This example demonstrates adding body parsers specifically to the routes that
385
-need them. In general, this is the most recommended way to use body-parser with
386
-Express.
387
-
388
-```js
389
-var express = require('express')
390
-var bodyParser = require('body-parser')
391
-
392
-var app = express()
393
-
394
-// create application/json parser
395
-var jsonParser = bodyParser.json()
396
-
397
-// create application/x-www-form-urlencoded parser
398
-var urlencodedParser = bodyParser.urlencoded({ extended: false })
399
-
400
-// POST /login gets urlencoded bodies
401
-app.post('/login', urlencodedParser, function (req, res) {
402
-  res.send('welcome, ' + req.body.username)
403
-})
404
-
405
-// POST /api/users gets JSON bodies
406
-app.post('/api/users', jsonParser, function (req, res) {
407
-  // create user in req.body
408
-})
409
-```
410
-
411
-### Change accepted type for parsers
412
-
413
-All the parsers accept a `type` option which allows you to change the
414
-`Content-Type` that the middleware will parse.
415
-
416
-```js
417
-var express = require('express')
418
-var bodyParser = require('body-parser')
419
-
420
-var app = express()
421
-
422
-// parse various different custom JSON types as JSON
423
-app.use(bodyParser.json({ type: 'application/*+json' }))
424
-
425
-// parse some custom thing into a Buffer
426
-app.use(bodyParser.raw({ type: 'application/vnd.custom-type' }))
427
-
428
-// parse an HTML body into a string
429
-app.use(bodyParser.text({ type: 'text/html' }))
430
-```
431
-
432
-## License
433
-
434
-[MIT](LICENSE)
435
-
436
-[npm-image]: https://img.shields.io/npm/v/body-parser.svg
437
-[npm-url]: https://npmjs.org/package/body-parser
438
-[travis-image]: https://img.shields.io/travis/expressjs/body-parser/master.svg
439
-[travis-url]: https://travis-ci.org/expressjs/body-parser
440
-[coveralls-image]: https://img.shields.io/coveralls/expressjs/body-parser/master.svg
441
-[coveralls-url]: https://coveralls.io/r/expressjs/body-parser?branch=master
442
-[downloads-image]: https://img.shields.io/npm/dm/body-parser.svg
443
-[downloads-url]: https://npmjs.org/package/body-parser

+ 0
- 157
km0App/node_modules/body-parser/index.js View File

@@ -1,157 +0,0 @@
1
-/*!
2
- * body-parser
3
- * Copyright(c) 2014-2015 Douglas Christopher Wilson
4
- * MIT Licensed
5
- */
6
-
7
-'use strict'
8
-
9
-/**
10
- * Module dependencies.
11
- * @private
12
- */
13
-
14
-var deprecate = require('depd')('body-parser')
15
-
16
-/**
17
- * Cache of loaded parsers.
18
- * @private
19
- */
20
-
21
-var parsers = Object.create(null)
22
-
23
-/**
24
- * @typedef Parsers
25
- * @type {function}
26
- * @property {function} json
27
- * @property {function} raw
28
- * @property {function} text
29
- * @property {function} urlencoded
30
- */
31
-
32
-/**
33
- * Module exports.
34
- * @type {Parsers}
35
- */
36
-
37
-exports = module.exports = deprecate.function(bodyParser,
38
-  'bodyParser: use individual json/urlencoded middlewares')
39
-
40
-/**
41
- * JSON parser.
42
- * @public
43
- */
44
-
45
-Object.defineProperty(exports, 'json', {
46
-  configurable: true,
47
-  enumerable: true,
48
-  get: createParserGetter('json')
49
-})
50
-
51
-/**
52
- * Raw parser.
53
- * @public
54
- */
55
-
56
-Object.defineProperty(exports, 'raw', {
57
-  configurable: true,
58
-  enumerable: true,
59
-  get: createParserGetter('raw')
60
-})
61
-
62
-/**
63
- * Text parser.
64
- * @public
65
- */
66
-
67
-Object.defineProperty(exports, 'text', {
68
-  configurable: true,
69
-  enumerable: true,
70
-  get: createParserGetter('text')
71
-})
72
-
73
-/**
74
- * URL-encoded parser.
75
- * @public
76
- */
77
-
78
-Object.defineProperty(exports, 'urlencoded', {
79
-  configurable: true,
80
-  enumerable: true,
81
-  get: createParserGetter('urlencoded')
82
-})
83
-
84
-/**
85
- * Create a middleware to parse json and urlencoded bodies.
86
- *
87
- * @param {object} [options]
88
- * @return {function}
89
- * @deprecated
90
- * @public
91
- */
92
-
93
-function bodyParser (options) {
94
-  var opts = {}
95
-
96
-  // exclude type option
97
-  if (options) {
98
-    for (var prop in options) {
99
-      if (prop !== 'type') {
100
-        opts[prop] = options[prop]
101
-      }
102
-    }
103
-  }
104
-
105
-  var _urlencoded = exports.urlencoded(opts)
106
-  var _json = exports.json(opts)
107
-
108
-  return function bodyParser (req, res, next) {
109
-    _json(req, res, function (err) {
110
-      if (err) return next(err)
111
-      _urlencoded(req, res, next)
112
-    })
113
-  }
114
-}
115
-
116
-/**
117
- * Create a getter for loading a parser.
118
- * @private
119
- */
120
-
121
-function createParserGetter (name) {
122
-  return function get () {
123
-    return loadParser(name)
124
-  }
125
-}
126
-
127
-/**
128
- * Load a parser module.
129
- * @private
130
- */
131
-
132
-function loadParser (parserName) {
133
-  var parser = parsers[parserName]
134
-
135
-  if (parser !== undefined) {
136
-    return parser
137
-  }
138
-
139
-  // this uses a switch for static require analysis
140
-  switch (parserName) {
141
-    case 'json':
142
-      parser = require('./lib/types/json')
143
-      break
144
-    case 'raw':
145
-      parser = require('./lib/types/raw')
146
-      break
147
-    case 'text':
148
-      parser = require('./lib/types/text')
149
-      break
150
-    case 'urlencoded':
151
-      parser = require('./lib/types/urlencoded')
152
-      break
153
-  }
154
-
155
-  // store to prevent invoking require()
156
-  return (parsers[parserName] = parser)
157
-}

+ 0
- 181
km0App/node_modules/body-parser/lib/read.js View File

@@ -1,181 +0,0 @@
1
-/*!
2
- * body-parser
3
- * Copyright(c) 2014-2015 Douglas Christopher Wilson
4
- * MIT Licensed
5
- */
6
-
7
-'use strict'
8
-
9
-/**
10
- * Module dependencies.
11
- * @private
12
- */
13
-
14
-var createError = require('http-errors')
15
-var getBody = require('raw-body')
16
-var iconv = require('iconv-lite')
17
-var onFinished = require('on-finished')
18
-var zlib = require('zlib')
19
-
20
-/**
21
- * Module exports.
22
- */
23
-
24
-module.exports = read
25
-
26
-/**
27
- * Read a request into a buffer and parse.
28
- *
29
- * @param {object} req
30
- * @param {object} res
31
- * @param {function} next
32
- * @param {function} parse
33
- * @param {function} debug
34
- * @param {object} options
35
- * @private
36
- */
37
-
38
-function read (req, res, next, parse, debug, options) {
39
-  var length
40
-  var opts = options
41
-  var stream
42
-
43
-  // flag as parsed
44
-  req._body = true
45
-
46
-  // read options
47
-  var encoding = opts.encoding !== null
48
-    ? opts.encoding
49
-    : null
50
-  var verify = opts.verify
51
-
52
-  try {
53
-    // get the content stream
54
-    stream = contentstream(req, debug, opts.inflate)
55
-    length = stream.length
56
-    stream.length = undefined
57
-  } catch (err) {
58
-    return next(err)
59
-  }
60
-
61
-  // set raw-body options
62
-  opts.length = length
63
-  opts.encoding = verify
64
-    ? null
65
-    : encoding
66
-
67
-  // assert charset is supported
68
-  if (opts.encoding === null && encoding !== null && !iconv.encodingExists(encoding)) {
69
-    return next(createError(415, 'unsupported charset "' + encoding.toUpperCase() + '"', {
70
-      charset: encoding.toLowerCase(),
71
-      type: 'charset.unsupported'
72
-    }))
73
-  }
74
-
75
-  // read body
76
-  debug('read body')
77
-  getBody(stream, opts, function (error, body) {
78
-    if (error) {
79
-      var _error
80
-
81
-      if (error.type === 'encoding.unsupported') {
82
-        // echo back charset
83
-        _error = createError(415, 'unsupported charset "' + encoding.toUpperCase() + '"', {
84
-          charset: encoding.toLowerCase(),
85
-          type: 'charset.unsupported'
86
-        })
87
-      } else {
88
-        // set status code on error
89
-        _error = createError(400, error)
90
-      }
91
-
92
-      // read off entire request
93
-      stream.resume()
94
-      onFinished(req, function onfinished () {
95
-        next(createError(400, _error))
96
-      })
97
-      return
98
-    }
99
-
100
-    // verify
101
-    if (verify) {
102
-      try {
103
-        debug('verify body')
104
-        verify(req, res, body, encoding)
105
-      } catch (err) {
106
-        next(createError(403, err, {
107
-          body: body,
108
-          type: err.type || 'entity.verify.failed'
109
-        }))
110
-        return
111
-      }
112
-    }
113
-
114
-    // parse
115
-    var str = body
116
-    try {
117
-      debug('parse body')
118
-      str = typeof body !== 'string' && encoding !== null
119
-        ? iconv.decode(body, encoding)
120
-        : body
121
-      req.body = parse(str)
122
-    } catch (err) {
123
-      next(createError(400, err, {
124
-        body: str,
125
-        type: err.type || 'entity.parse.failed'
126
-      }))
127
-      return
128
-    }
129
-
130
-    next()
131
-  })
132
-}
133
-
134
-/**
135
- * Get the content stream of the request.
136
- *
137
- * @param {object} req
138
- * @param {function} debug
139
- * @param {boolean} [inflate=true]
140
- * @return {object}
141
- * @api private
142
- */
143
-
144
-function contentstream (req, debug, inflate) {
145
-  var encoding = (req.headers['content-encoding'] || 'identity').toLowerCase()
146
-  var length = req.headers['content-length']
147
-  var stream
148
-
149
-  debug('content-encoding "%s"', encoding)
150
-
151
-  if (inflate === false && encoding !== 'identity') {
152
-    throw createError(415, 'content encoding unsupported', {
153
-      encoding: encoding,
154
-      type: 'encoding.unsupported'
155
-    })
156
-  }
157
-
158
-  switch (encoding) {
159
-    case 'deflate':
160
-      stream = zlib.createInflate()
161
-      debug('inflate body')
162
-      req.pipe(stream)
163
-      break
164
-    case 'gzip':
165
-      stream = zlib.createGunzip()
166
-      debug('gunzip body')
167
-      req.pipe(stream)
168
-      break
169
-    case 'identity':
170
-      stream = req
171
-      stream.length = length
172
-      break
173
-    default:
174
-      throw createError(415, 'unsupported content encoding "' + encoding + '"', {
175
-        encoding: encoding,
176
-        type: 'encoding.unsupported'
177
-      })
178
-  }
179
-
180
-  return stream
181
-}

+ 0
- 230
km0App/node_modules/body-parser/lib/types/json.js View File

@@ -1,230 +0,0 @@
1
-/*!
2
- * body-parser
3
- * Copyright(c) 2014 Jonathan Ong
4
- * Copyright(c) 2014-2015 Douglas Christopher Wilson
5
- * MIT Licensed
6
- */
7
-
8
-'use strict'
9
-
10
-/**
11
- * Module dependencies.
12
- * @private
13
- */
14
-
15
-var bytes = require('bytes')
16
-var contentType = require('content-type')
17
-var createError = require('http-errors')
18
-var debug = require('debug')('body-parser:json')
19
-var read = require('../read')
20
-var typeis = require('type-is')
21
-
22
-/**
23
- * Module exports.
24
- */
25
-
26
-module.exports = json
27
-
28
-/**
29
- * RegExp to match the first non-space in a string.
30
- *
31
- * Allowed whitespace is defined in RFC 7159:
32
- *
33
- *    ws = *(
34
- *            %x20 /              ; Space
35
- *            %x09 /              ; Horizontal tab
36
- *            %x0A /              ; Line feed or New line
37
- *            %x0D )              ; Carriage return
38
- */
39
-
40
-var FIRST_CHAR_REGEXP = /^[\x20\x09\x0a\x0d]*(.)/ // eslint-disable-line no-control-regex
41
-
42
-/**
43
- * Create a middleware to parse JSON bodies.
44
- *
45
- * @param {object} [options]
46
- * @return {function}
47
- * @public
48
- */
49
-
50
-function json (options) {
51
-  var opts = options || {}
52
-
53
-  var limit = typeof opts.limit !== 'number'
54
-    ? bytes.parse(opts.limit || '100kb')
55
-    : opts.limit
56
-  var inflate = opts.inflate !== false
57
-  var reviver = opts.reviver
58
-  var strict = opts.strict !== false
59
-  var type = opts.type || 'application/json'
60
-  var verify = opts.verify || false
61
-
62
-  if (verify !== false && typeof verify !== 'function') {
63
-    throw new TypeError('option verify must be function')
64
-  }
65
-
66
-  // create the appropriate type checking function
67
-  var shouldParse = typeof type !== 'function'
68
-    ? typeChecker(type)
69
-    : type
70
-
71
-  function parse (body) {
72
-    if (body.length === 0) {
73
-      // special-case empty json body, as it's a common client-side mistake
74
-      // TODO: maybe make this configurable or part of "strict" option
75
-      return {}
76
-    }
77
-
78
-    if (strict) {
79
-      var first = firstchar(body)
80
-
81
-      if (first !== '{' && first !== '[') {
82
-        debug('strict violation')
83
-        throw createStrictSyntaxError(body, first)
84
-      }
85
-    }
86
-
87
-    try {
88
-      debug('parse json')
89
-      return JSON.parse(body, reviver)
90
-    } catch (e) {
91
-      throw normalizeJsonSyntaxError(e, {
92
-        message: e.message,
93
-        stack: e.stack
94
-      })
95
-    }
96
-  }
97
-
98
-  return function jsonParser (req, res, next) {
99
-    if (req._body) {
100
-      debug('body already parsed')
101
-      next()
102
-      return
103
-    }
104
-
105
-    req.body = req.body || {}
106
-
107
-    // skip requests without bodies
108
-    if (!typeis.hasBody(req)) {
109
-      debug('skip empty body')
110
-      next()
111
-      return
112
-    }
113
-
114
-    debug('content-type %j', req.headers['content-type'])
115
-
116
-    // determine if request should be parsed
117
-    if (!shouldParse(req)) {
118
-      debug('skip parsing')
119
-      next()
120
-      return
121
-    }
122
-
123
-    // assert charset per RFC 7159 sec 8.1
124
-    var charset = getCharset(req) || 'utf-8'
125
-    if (charset.substr(0, 4) !== 'utf-') {
126
-      debug('invalid charset')
127
-      next(createError(415, 'unsupported charset "' + charset.toUpperCase() + '"', {
128
-        charset: charset,
129
-        type: 'charset.unsupported'
130
-      }))
131
-      return
132
-    }
133
-
134
-    // read
135
-    read(req, res, next, parse, debug, {
136
-      encoding: charset,
137
-      inflate: inflate,
138
-      limit: limit,
139
-      verify: verify
140
-    })
141
-  }
142
-}
143
-
144
-/**
145
- * Create strict violation syntax error matching native error.
146
- *
147
- * @param {string} str
148
- * @param {string} char
149
- * @return {Error}
150
- * @private
151
- */
152
-
153
-function createStrictSyntaxError (str, char) {
154
-  var index = str.indexOf(char)
155
-  var partial = str.substring(0, index) + '#'
156
-
157
-  try {
158
-    JSON.parse(partial); /* istanbul ignore next */ throw new SyntaxError('strict violation')
159
-  } catch (e) {
160
-    return normalizeJsonSyntaxError(e, {
161
-      message: e.message.replace('#', char),
162
-      stack: e.stack
163
-    })
164
-  }
165
-}
166
-
167
-/**
168
- * Get the first non-whitespace character in a string.
169
- *
170
- * @param {string} str
171
- * @return {function}
172
- * @private
173
- */
174
-
175
-function firstchar (str) {
176
-  return FIRST_CHAR_REGEXP.exec(str)[1]
177
-}
178
-
179
-/**
180
- * Get the charset of a request.
181
- *
182
- * @param {object} req
183
- * @api private
184
- */
185
-
186
-function getCharset (req) {
187
-  try {
188
-    return (contentType.parse(req).parameters.charset || '').toLowerCase()
189
-  } catch (e) {
190
-    return undefined
191
-  }
192
-}
193
-
194
-/**
195
- * Normalize a SyntaxError for JSON.parse.
196
- *
197
- * @param {SyntaxError} error
198
- * @param {object} obj
199
- * @return {SyntaxError}
200
- */
201
-
202
-function normalizeJsonSyntaxError (error, obj) {
203
-  var keys = Object.getOwnPropertyNames(error)
204
-
205
-  for (var i = 0; i < keys.length; i++) {
206
-    var key = keys[i]
207
-    if (key !== 'stack' && key !== 'message') {
208
-      delete error[key]
209
-    }
210
-  }
211
-
212
-  // replace stack before message for Node.js 0.10 and below
213
-  error.stack = obj.stack.replace(error.message, obj.message)
214
-  error.message = obj.message
215
-
216
-  return error
217
-}
218
-
219
-/**
220
- * Get the simple type checker.
221
- *
222
- * @param {string} type
223
- * @return {function}
224
- */
225
-
226
-function typeChecker (type) {
227
-  return function checkType (req) {
228
-    return Boolean(typeis(req, type))
229
-  }
230
-}

+ 0
- 101
km0App/node_modules/body-parser/lib/types/raw.js View File

@@ -1,101 +0,0 @@
1
-/*!
2
- * body-parser
3
- * Copyright(c) 2014-2015 Douglas Christopher Wilson
4
- * MIT Licensed
5
- */
6
-
7
-'use strict'
8
-
9
-/**
10
- * Module dependencies.
11
- */
12
-
13
-var bytes = require('bytes')
14
-var debug = require('debug')('body-parser:raw')
15
-var read = require('../read')
16
-var typeis = require('type-is')
17
-
18
-/**
19
- * Module exports.
20
- */
21
-
22
-module.exports = raw
23
-
24
-/**
25
- * Create a middleware to parse raw bodies.
26
- *
27
- * @param {object} [options]
28
- * @return {function}
29
- * @api public
30
- */
31
-
32
-function raw (options) {
33
-  var opts = options || {}
34
-
35
-  var inflate = opts.inflate !== false
36
-  var limit = typeof opts.limit !== 'number'
37
-    ? bytes.parse(opts.limit || '100kb')
38
-    : opts.limit
39
-  var type = opts.type || 'application/octet-stream'
40
-  var verify = opts.verify || false
41
-
42
-  if (verify !== false && typeof verify !== 'function') {
43
-    throw new TypeError('option verify must be function')
44
-  }
45
-
46
-  // create the appropriate type checking function
47
-  var shouldParse = typeof type !== 'function'
48
-    ? typeChecker(type)
49
-    : type
50
-
51
-  function parse (buf) {
52
-    return buf
53
-  }
54
-
55
-  return function rawParser (req, res, next) {
56
-    if (req._body) {
57
-      debug('body already parsed')
58
-      next()
59
-      return
60
-    }
61
-
62
-    req.body = req.body || {}
63
-
64
-    // skip requests without bodies
65
-    if (!typeis.hasBody(req)) {
66
-      debug('skip empty body')
67
-      next()
68
-      return
69
-    }
70
-
71
-    debug('content-type %j', req.headers['content-type'])
72
-
73
-    // determine if request should be parsed
74
-    if (!shouldParse(req)) {
75
-      debug('skip parsing')
76
-      next()
77
-      return
78
-    }
79
-
80
-    // read
81
-    read(req, res, next, parse, debug, {
82
-      encoding: null,
83
-      inflate: inflate,
84
-      limit: limit,
85
-      verify: verify
86
-    })
87
-  }
88
-}
89
-
90
-/**
91
- * Get the simple type checker.
92
- *
93
- * @param {string} type
94
- * @return {function}
95
- */
96
-
97
-function typeChecker (type) {
98
-  return function checkType (req) {
99
-    return Boolean(typeis(req, type))
100
-  }
101
-}

+ 0
- 121
km0App/node_modules/body-parser/lib/types/text.js View File

@@ -1,121 +0,0 @@
1
-/*!
2
- * body-parser
3
- * Copyright(c) 2014-2015 Douglas Christopher Wilson
4
- * MIT Licensed
5
- */
6
-
7
-'use strict'
8
-
9
-/**
10
- * Module dependencies.
11
- */
12
-
13
-var bytes = require('bytes')
14
-var contentType = require('content-type')
15
-var debug = require('debug')('body-parser:text')
16
-var read = require('../read')
17
-var typeis = require('type-is')
18
-
19
-/**
20
- * Module exports.
21
- */
22
-
23
-module.exports = text
24
-
25
-/**
26
- * Create a middleware to parse text bodies.
27
- *
28
- * @param {object} [options]
29
- * @return {function}
30
- * @api public
31
- */
32
-
33
-function text (options) {
34
-  var opts = options || {}
35
-
36
-  var defaultCharset = opts.defaultCharset || 'utf-8'
37
-  var inflate = opts.inflate !== false
38
-  var limit = typeof opts.limit !== 'number'
39
-    ? bytes.parse(opts.limit || '100kb')
40
-    : opts.limit
41
-  var type = opts.type || 'text/plain'
42
-  var verify = opts.verify || false
43
-
44
-  if (verify !== false && typeof verify !== 'function') {
45
-    throw new TypeError('option verify must be function')
46
-  }
47
-
48
-  // create the appropriate type checking function
49
-  var shouldParse = typeof type !== 'function'
50
-    ? typeChecker(type)
51
-    : type
52
-
53
-  function parse (buf) {
54
-    return buf
55
-  }
56
-
57
-  return function textParser (req, res, next) {
58
-    if (req._body) {
59
-      debug('body already parsed')
60
-      next()
61
-      return
62
-    }
63
-
64
-    req.body = req.body || {}
65
-
66
-    // skip requests without bodies
67
-    if (!typeis.hasBody(req)) {
68
-      debug('skip empty body')
69
-      next()
70
-      return
71
-    }
72
-
73
-    debug('content-type %j', req.headers['content-type'])
74
-
75
-    // determine if request should be parsed
76
-    if (!shouldParse(req)) {
77
-      debug('skip parsing')
78
-      next()
79
-      return
80
-    }
81
-
82
-    // get charset
83
-    var charset = getCharset(req) || defaultCharset
84
-
85
-    // read
86
-    read(req, res, next, parse, debug, {
87
-      encoding: charset,
88
-      inflate: inflate,
89
-      limit: limit,
90
-      verify: verify
91
-    })
92
-  }
93
-}
94
-
95
-/**
96
- * Get the charset of a request.
97
- *
98
- * @param {object} req
99
- * @api private
100
- */
101
-
102
-function getCharset (req) {
103
-  try {
104
-    return (contentType.parse(req).parameters.charset || '').toLowerCase()
105
-  } catch (e) {
106
-    return undefined
107
-  }
108
-}
109
-
110
-/**
111
- * Get the simple type checker.
112
- *
113
- * @param {string} type
114
- * @return {function}
115
- */
116
-
117
-function typeChecker (type) {
118
-  return function checkType (req) {
119
-    return Boolean(typeis(req, type))
120
-  }
121
-}

+ 0
- 284
km0App/node_modules/body-parser/lib/types/urlencoded.js View File

@@ -1,284 +0,0 @@
1
-/*!
2
- * body-parser
3
- * Copyright(c) 2014 Jonathan Ong
4
- * Copyright(c) 2014-2015 Douglas Christopher Wilson
5
- * MIT Licensed
6
- */
7
-
8
-'use strict'
9
-
10
-/**
11
- * Module dependencies.
12
- * @private
13
- */
14
-
15
-var bytes = require('bytes')
16
-var contentType = require('content-type')
17
-var createError = require('http-errors')
18
-var debug = require('debug')('body-parser:urlencoded')
19
-var deprecate = require('depd')('body-parser')
20
-var read = require('../read')
21
-var typeis = require('type-is')
22
-
23
-/**
24
- * Module exports.
25
- */
26
-
27
-module.exports = urlencoded
28
-
29
-/**
30
- * Cache of parser modules.
31
- */
32
-
33
-var parsers = Object.create(null)
34
-
35
-/**
36
- * Create a middleware to parse urlencoded bodies.
37
- *
38
- * @param {object} [options]
39
- * @return {function}
40
- * @public
41
- */
42
-
43
-function urlencoded (options) {
44
-  var opts = options || {}
45
-
46
-  // notice because option default will flip in next major
47
-  if (opts.extended === undefined) {
48
-    deprecate('undefined extended: provide extended option')
49
-  }
50
-
51
-  var extended = opts.extended !== false
52
-  var inflate = opts.inflate !== false
53
-  var limit = typeof opts.limit !== 'number'
54
-    ? bytes.parse(opts.limit || '100kb')
55
-    : opts.limit
56
-  var type = opts.type || 'application/x-www-form-urlencoded'
57
-  var verify = opts.verify || false
58
-
59
-  if (verify !== false && typeof verify !== 'function') {
60
-    throw new TypeError('option verify must be function')
61
-  }
62
-
63
-  // create the appropriate query parser
64
-  var queryparse = extended
65
-    ? extendedparser(opts)
66
-    : simpleparser(opts)
67
-
68
-  // create the appropriate type checking function
69
-  var shouldParse = typeof type !== 'function'
70
-    ? typeChecker(type)
71
-    : type
72
-
73
-  function parse (body) {
74
-    return body.length
75
-      ? queryparse(body)
76
-      : {}
77
-  }
78
-
79
-  return function urlencodedParser (req, res, next) {
80
-    if (req._body) {
81
-      debug('body already parsed')
82
-      next()
83
-      return
84
-    }
85
-
86
-    req.body = req.body || {}
87
-
88
-    // skip requests without bodies
89
-    if (!typeis.hasBody(req)) {
90
-      debug('skip empty body')
91
-      next()
92
-      return
93
-    }
94
-
95
-    debug('content-type %j', req.headers['content-type'])
96
-
97
-    // determine if request should be parsed
98
-    if (!shouldParse(req)) {
99
-      debug('skip parsing')
100
-      next()
101
-      return
102
-    }
103
-
104
-    // assert charset
105
-    var charset = getCharset(req) || 'utf-8'
106
-    if (charset !== 'utf-8') {
107
-      debug('invalid charset')
108
-      next(createError(415, 'unsupported charset "' + charset.toUpperCase() + '"', {
109
-        charset: charset,
110
-        type: 'charset.unsupported'
111
-      }))
112
-      return
113
-    }
114
-
115
-    // read
116
-    read(req, res, next, parse, debug, {
117
-      debug: debug,
118
-      encoding: charset,
119
-      inflate: inflate,
120
-      limit: limit,
121
-      verify: verify
122
-    })
123
-  }
124
-}
125
-
126
-/**
127
- * Get the extended query parser.
128
- *
129
- * @param {object} options
130
- */
131
-
132
-function extendedparser (options) {
133
-  var parameterLimit = options.parameterLimit !== undefined
134
-    ? options.parameterLimit
135
-    : 1000
136
-  var parse = parser('qs')
137
-
138
-  if (isNaN(parameterLimit) || parameterLimit < 1) {
139
-    throw new TypeError('option parameterLimit must be a positive number')
140
-  }
141
-
142
-  if (isFinite(parameterLimit)) {
143
-    parameterLimit = parameterLimit | 0
144
-  }
145
-
146
-  return function queryparse (body) {
147
-    var paramCount = parameterCount(body, parameterLimit)
148
-
149
-    if (paramCount === undefined) {
150
-      debug('too many parameters')
151
-      throw createError(413, 'too many parameters', {
152
-        type: 'parameters.too.many'
153
-      })
154
-    }
155
-
156
-    var arrayLimit = Math.max(100, paramCount)
157
-
158
-    debug('parse extended urlencoding')
159
-    return parse(body, {
160
-      allowPrototypes: true,
161
-      arrayLimit: arrayLimit,
162
-      depth: Infinity,
163
-      parameterLimit: parameterLimit
164
-    })
165
-  }
166
-}
167
-
168
-/**
169
- * Get the charset of a request.
170
- *
171
- * @param {object} req
172
- * @api private
173
- */
174
-
175
-function getCharset (req) {
176
-  try {
177
-    return (contentType.parse(req).parameters.charset || '').toLowerCase()
178
-  } catch (e) {
179
-    return undefined
180
-  }
181
-}
182
-
183
-/**
184
- * Count the number of parameters, stopping once limit reached
185
- *
186
- * @param {string} body
187
- * @param {number} limit
188
- * @api private
189
- */
190
-
191
-function parameterCount (body, limit) {
192
-  var count = 0
193
-  var index = 0
194
-
195
-  while ((index = body.indexOf('&', index)) !== -1) {
196
-    count++
197
-    index++
198
-
199
-    if (count === limit) {
200
-      return undefined
201
-    }
202
-  }
203
-
204
-  return count
205
-}
206
-
207
-/**
208
- * Get parser for module name dynamically.
209
- *
210
- * @param {string} name
211
- * @return {function}
212
- * @api private
213
- */
214
-
215
-function parser (name) {
216
-  var mod = parsers[name]
217
-
218
-  if (mod !== undefined) {
219
-    return mod.parse
220
-  }
221
-
222
-  // this uses a switch for static require analysis
223
-  switch (name) {
224
-    case 'qs':
225
-      mod = require('qs')
226
-      break
227
-    case 'querystring':
228
-      mod = require('querystring')
229
-      break
230
-  }
231
-
232
-  // store to prevent invoking require()
233
-  parsers[name] = mod
234
-
235
-  return mod.parse
236
-}
237
-
238
-/**
239
- * Get the simple query parser.
240
- *
241
- * @param {object} options
242
- */
243
-
244
-function simpleparser (options) {
245
-  var parameterLimit = options.parameterLimit !== undefined
246
-    ? options.parameterLimit
247
-    : 1000
248
-  var parse = parser('querystring')
249
-
250
-  if (isNaN(parameterLimit) || parameterLimit < 1) {
251
-    throw new TypeError('option parameterLimit must be a positive number')
252
-  }
253
-
254
-  if (isFinite(parameterLimit)) {
255
-    parameterLimit = parameterLimit | 0
256
-  }
257
-
258
-  return function queryparse (body) {
259
-    var paramCount = parameterCount(body, parameterLimit)
260
-
261
-    if (paramCount === undefined) {
262
-      debug('too many parameters')
263
-      throw createError(413, 'too many parameters', {
264
-        type: 'parameters.too.many'
265
-      })
266
-    }
267
-
268
-    debug('parse urlencoding')
269
-    return parse(body, undefined, undefined, { maxKeys: parameterLimit })
270
-  }
271
-}
272
-
273
-/**
274
- * Get the simple type checker.
275
- *
276
- * @param {string} type
277
- * @return {function}
278
- */
279
-
280
-function typeChecker (type) {
281
-  return function checkType (req) {
282
-    return Boolean(typeis(req, type))
283
-  }
284
-}

+ 0
- 87
km0App/node_modules/body-parser/node_modules/bytes/History.md View File

@@ -1,87 +0,0 @@
1
-3.1.0 / 2019-01-22
2
-==================
3
-
4
-  * Add petabyte (`pb`) support
5
-
6
-3.0.0 / 2017-08-31
7
-==================
8
-
9
-  * Change "kB" to "KB" in format output
10
-  * Remove support for Node.js 0.6
11
-  * Remove support for ComponentJS
12
-
13
-2.5.0 / 2017-03-24
14
-==================
15
-
16
-  * Add option "unit"
17
-
18
-2.4.0 / 2016-06-01
19
-==================
20
-
21
-  * Add option "unitSeparator"
22
-
23
-2.3.0 / 2016-02-15
24
-==================
25
-
26
-  * Drop partial bytes on all parsed units
27
-  * Fix non-finite numbers to `.format` to return `null`
28
-  * Fix parsing byte string that looks like hex
29
-  * perf: hoist regular expressions
30
-
31
-2.2.0 / 2015-11-13
32
-==================
33
-
34
-  * add option "decimalPlaces"
35
-  * add option "fixedDecimals"
36
-
37
-2.1.0 / 2015-05-21
38
-==================
39
-
40
-  * add `.format` export
41
-  * add `.parse` export
42
-
43
-2.0.2 / 2015-05-20
44
-==================
45
-
46
-  * remove map recreation
47
-  * remove unnecessary object construction
48
-
49
-2.0.1 / 2015-05-07
50
-==================
51
-
52
-  * fix browserify require
53
-  * remove node.extend dependency
54
-
55
-2.0.0 / 2015-04-12
56
-==================
57
-
58
-  * add option "case"
59
-  * add option "thousandsSeparator"
60
-  * return "null" on invalid parse input
61
-  * support proper round-trip: bytes(bytes(num)) === num
62
-  * units no longer case sensitive when parsing
63
-
64
-1.0.0 / 2014-05-05
65
-==================
66
-
67
- * add negative support. fixes #6
68
-
69
-0.3.0 / 2014-03-19
70
-==================
71
-
72
- * added terabyte support
73
-
74
-0.2.1 / 2013-04-01
75
-==================
76
-
77
-  * add .component
78
-
79
-0.2.0 / 2012-10-28
80
-==================
81
-
82
-  * bytes(200).should.eql('200b')
83
-
84
-0.1.0 / 2012-07-04
85
-==================
86
-
87
-  * add bytes to string conversion [yields]

+ 0
- 23
km0App/node_modules/body-parser/node_modules/bytes/LICENSE View File

@@ -1,23 +0,0 @@
1
-(The MIT License)
2
-
3
-Copyright (c) 2012-2014 TJ Holowaychuk <tj@vision-media.ca>
4
-Copyright (c) 2015 Jed Watson <jed.watson@me.com>
5
-
6
-Permission is hereby granted, free of charge, to any person obtaining
7
-a copy of this software and associated documentation files (the
8
-'Software'), to deal in the Software without restriction, including
9
-without limitation the rights to use, copy, modify, merge, publish,
10
-distribute, sublicense, and/or sell copies of the Software, and to
11
-permit persons to whom the Software is furnished to do so, subject to
12
-the following conditions:
13
-
14
-The above copyright notice and this permission notice shall be
15
-included in all copies or substantial portions of the Software.
16
-
17
-THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
18
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
19
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
20
-IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
21
-CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
22
-TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
23
-SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

+ 0
- 126
km0App/node_modules/body-parser/node_modules/bytes/Readme.md View File

@@ -1,126 +0,0 @@
1
-# Bytes utility
2
-
3
-[![NPM Version][npm-image]][npm-url]
4
-[![NPM Downloads][downloads-image]][downloads-url]
5
-[![Build Status][travis-image]][travis-url]
6
-[![Test Coverage][coveralls-image]][coveralls-url]
7
-
8
-Utility to parse a string bytes (ex: `1TB`) to bytes (`1099511627776`) and vice-versa.
9
-
10
-## Installation
11
-
12
-This is a [Node.js](https://nodejs.org/en/) module available through the
13
-[npm registry](https://www.npmjs.com/). Installation is done using the
14
-[`npm install` command](https://docs.npmjs.com/getting-started/installing-npm-packages-locally):
15
-
16
-```bash
17
-$ npm install bytes
18
-```
19
-
20
-## Usage
21
-
22
-```js
23
-var bytes = require('bytes');
24
-```
25
-
26
-#### bytes.format(number value, [options]): string|null
27
-
28
-Format the given value in bytes into a string. If the value is negative, it is kept as such. If it is a float, it is
29
- rounded.
30
-
31
-**Arguments**
32
-
33
-| Name    | Type     | Description        |
34
-|---------|----------|--------------------|
35
-| value   | `number` | Value in bytes     |
36
-| options | `Object` | Conversion options |
37
-
38
-**Options**
39
-
40
-| Property          | Type   | Description                                                                             |
41
-|-------------------|--------|-----------------------------------------------------------------------------------------|
42
-| decimalPlaces | `number`|`null` | Maximum number of decimal places to include in output. Default value to `2`. |
43
-| fixedDecimals | `boolean`|`null` | Whether to always display the maximum number of decimal places. Default value to `false` |
44
-| thousandsSeparator | `string`|`null` | Example of values: `' '`, `','` and `.`... Default value to `''`. |
45
-| unit | `string`|`null` | The unit in which the result will be returned (B/KB/MB/GB/TB). Default value to `''` (which means auto detect). |
46
-| unitSeparator | `string`|`null` | Separator to use between number and unit. Default value to `''`. |
47
-
48
-**Returns**
49
-
50
-| Name    | Type             | Description                                     |
51
-|---------|------------------|-------------------------------------------------|
52
-| results | `string`|`null` | Return null upon error. String value otherwise. |
53
-
54
-**Example**
55
-
56
-```js
57
-bytes(1024);
58
-// output: '1KB'
59
-
60
-bytes(1000);
61
-// output: '1000B'
62
-
63
-bytes(1000, {thousandsSeparator: ' '});
64
-// output: '1 000B'
65
-
66
-bytes(1024 * 1.7, {decimalPlaces: 0});
67
-// output: '2KB'
68
-
69
-bytes(1024, {unitSeparator: ' '});
70
-// output: '1 KB'
71
-
72
-```
73
-
74
-#### bytes.parse(string|number value): number|null
75
-
76
-Parse the string value into an integer in bytes. If no unit is given, or `value`
77
-is a number, it is assumed the value is in bytes.
78
-
79
-Supported units and abbreviations are as follows and are case-insensitive:
80
-
81
-  * `b` for bytes
82
-  * `kb` for kilobytes
83
-  * `mb` for megabytes
84
-  * `gb` for gigabytes
85
-  * `tb` for terabytes
86
-  * `pb` for petabytes
87
-
88
-The units are in powers of two, not ten. This means 1kb = 1024b according to this parser.
89
-
90
-**Arguments**
91
-
92
-| Name          | Type   | Description        |
93
-|---------------|--------|--------------------|
94
-| value   | `string`|`number` | String to parse, or number in bytes.   |
95
-
96
-**Returns**
97
-
98
-| Name    | Type        | Description             |
99
-|---------|-------------|-------------------------|
100
-| results | `number`|`null` | Return null upon error. Value in bytes otherwise. |
101
-
102
-**Example**
103
-
104
-```js
105
-bytes('1KB');
106
-// output: 1024
107
-
108
-bytes('1024');
109
-// output: 1024
110
-
111
-bytes(1024);
112
-// output: 1KB
113
-```
114
-
115
-## License 
116
-
117
-[MIT](LICENSE)
118
-
119
-[coveralls-image]: https://badgen.net/coveralls/c/github/visionmedia/bytes.js/master
120
-[coveralls-url]: https://coveralls.io/r/visionmedia/bytes.js?branch=master
121
-[downloads-image]: https://badgen.net/npm/dm/bytes
122
-[downloads-url]: https://npmjs.org/package/bytes
123
-[npm-image]: https://badgen.net/npm/node/bytes
124
-[npm-url]: https://npmjs.org/package/bytes
125
-[travis-image]: https://badgen.net/travis/visionmedia/bytes.js/master
126
-[travis-url]: https://travis-ci.org/visionmedia/bytes.js

+ 0
- 162
km0App/node_modules/body-parser/node_modules/bytes/index.js View File

@@ -1,162 +0,0 @@
1
-/*!
2
- * bytes
3
- * Copyright(c) 2012-2014 TJ Holowaychuk
4
- * Copyright(c) 2015 Jed Watson
5
- * MIT Licensed
6
- */
7
-
8
-'use strict';
9
-
10
-/**
11
- * Module exports.
12
- * @public
13
- */
14
-
15
-module.exports = bytes;
16
-module.exports.format = format;
17
-module.exports.parse = parse;
18
-
19
-/**
20
- * Module variables.
21
- * @private
22
- */
23
-
24
-var formatThousandsRegExp = /\B(?=(\d{3})+(?!\d))/g;
25
-
26
-var formatDecimalsRegExp = /(?:\.0*|(\.[^0]+)0+)$/;
27
-
28
-var map = {
29
-  b:  1,
30
-  kb: 1 << 10,
31
-  mb: 1 << 20,
32
-  gb: 1 << 30,
33
-  tb: Math.pow(1024, 4),
34
-  pb: Math.pow(1024, 5),
35
-};
36
-
37
-var parseRegExp = /^((-|\+)?(\d+(?:\.\d+)?)) *(kb|mb|gb|tb|pb)$/i;
38
-
39
-/**
40
- * Convert the given value in bytes into a string or parse to string to an integer in bytes.
41
- *
42
- * @param {string|number} value
43
- * @param {{
44
- *  case: [string],
45
- *  decimalPlaces: [number]
46
- *  fixedDecimals: [boolean]
47
- *  thousandsSeparator: [string]
48
- *  unitSeparator: [string]
49
- *  }} [options] bytes options.
50
- *
51
- * @returns {string|number|null}
52
- */
53
-
54
-function bytes(value, options) {
55
-  if (typeof value === 'string') {
56
-    return parse(value);
57
-  }
58
-
59
-  if (typeof value === 'number') {
60
-    return format(value, options);
61
-  }
62
-
63
-  return null;
64
-}
65
-
66
-/**
67
- * Format the given value in bytes into a string.
68
- *
69
- * If the value is negative, it is kept as such. If it is a float,
70
- * it is rounded.
71
- *
72
- * @param {number} value
73
- * @param {object} [options]
74
- * @param {number} [options.decimalPlaces=2]
75
- * @param {number} [options.fixedDecimals=false]
76
- * @param {string} [options.thousandsSeparator=]
77
- * @param {string} [options.unit=]
78
- * @param {string} [options.unitSeparator=]
79
- *
80
- * @returns {string|null}
81
- * @public
82
- */
83
-
84
-function format(value, options) {
85
-  if (!Number.isFinite(value)) {
86
-    return null;
87
-  }
88
-
89
-  var mag = Math.abs(value);
90
-  var thousandsSeparator = (options && options.thousandsSeparator) || '';
91
-  var unitSeparator = (options && options.unitSeparator) || '';
92
-  var decimalPlaces = (options && options.decimalPlaces !== undefined) ? options.decimalPlaces : 2;
93
-  var fixedDecimals = Boolean(options && options.fixedDecimals);
94
-  var unit = (options && options.unit) || '';
95
-
96
-  if (!unit || !map[unit.toLowerCase()]) {
97
-    if (mag >= map.pb) {
98
-      unit = 'PB';
99
-    } else if (mag >= map.tb) {
100
-      unit = 'TB';
101
-    } else if (mag >= map.gb) {
102
-      unit = 'GB';
103
-    } else if (mag >= map.mb) {
104
-      unit = 'MB';
105
-    } else if (mag >= map.kb) {
106
-      unit = 'KB';
107
-    } else {
108
-      unit = 'B';
109
-    }
110
-  }
111
-
112
-  var val = value / map[unit.toLowerCase()];
113
-  var str = val.toFixed(decimalPlaces);
114
-
115
-  if (!fixedDecimals) {
116
-    str = str.replace(formatDecimalsRegExp, '$1');
117
-  }
118
-
119
-  if (thousandsSeparator) {
120
-    str = str.replace(formatThousandsRegExp, thousandsSeparator);
121
-  }
122
-
123
-  return str + unitSeparator + unit;
124
-}
125
-
126
-/**
127
- * Parse the string value into an integer in bytes.
128
- *
129
- * If no unit is given, it is assumed the value is in bytes.
130
- *
131
- * @param {number|string} val
132
- *
133
- * @returns {number|null}
134
- * @public
135
- */
136
-
137
-function parse(val) {
138
-  if (typeof val === 'number' && !isNaN(val)) {
139
-    return val;
140
-  }
141
-
142
-  if (typeof val !== 'string') {
143
-    return null;
144
-  }
145
-
146
-  // Test if the string passed is valid
147
-  var results = parseRegExp.exec(val);
148
-  var floatValue;
149
-  var unit = 'b';
150
-
151
-  if (!results) {
152
-    // Nothing could be extracted from the given string
153
-    floatValue = parseInt(val, 10);
154
-    unit = 'b'
155
-  } else {
156
-    // Retrieve the value and the unit
157
-    floatValue = parseFloat(results[1]);
158
-    unit = results[4].toLowerCase();
159
-  }
160
-
161
-  return Math.floor(map[unit] * floatValue);
162
-}

+ 0
- 83
km0App/node_modules/body-parser/node_modules/bytes/package.json View File

@@ -1,83 +0,0 @@
1
-{
2
-  "_from": "bytes@3.1.0",
3
-  "_id": "bytes@3.1.0",
4
-  "_inBundle": false,
5
-  "_integrity": "sha512-zauLjrfCG+xvoyaqLoV8bLVXXNGC4JqlxFCutSDWA6fJrTo2ZuvLYTqZ7aHBLZSMOopbzwv8f+wZcVzfVTI2Dg==",
6
-  "_location": "/body-parser/bytes",
7
-  "_phantomChildren": {},
8
-  "_requested": {
9
-    "type": "version",
10
-    "registry": true,
11
-    "raw": "bytes@3.1.0",
12
-    "name": "bytes",
13
-    "escapedName": "bytes",
14
-    "rawSpec": "3.1.0",
15
-    "saveSpec": null,
16
-    "fetchSpec": "3.1.0"
17
-  },
18
-  "_requiredBy": [
19
-    "/body-parser"
20
-  ],
21
-  "_resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.0.tgz",
22
-  "_shasum": "f6cf7933a360e0588fa9fde85651cdc7f805d1f6",
23
-  "_spec": "bytes@3.1.0",
24
-  "_where": "/home/luis/Software/kilometro0/km0App/node_modules/body-parser",
25
-  "author": {
26
-    "name": "TJ Holowaychuk",
27
-    "email": "tj@vision-media.ca",
28
-    "url": "http://tjholowaychuk.com"
29
-  },
30
-  "bugs": {
31
-    "url": "https://github.com/visionmedia/bytes.js/issues"
32
-  },
33
-  "bundleDependencies": false,
34
-  "contributors": [
35
-    {
36
-      "name": "Jed Watson",
37
-      "email": "jed.watson@me.com"
38
-    },
39
-    {
40
-      "name": "Théo FIDRY",
41
-      "email": "theo.fidry@gmail.com"
42
-    }
43
-  ],
44
-  "deprecated": false,
45
-  "description": "Utility to parse a string bytes to bytes and vice-versa",
46
-  "devDependencies": {
47
-    "eslint": "5.12.1",
48
-    "mocha": "5.2.0",
49
-    "nyc": "13.1.0"
50
-  },
51
-  "engines": {
52
-    "node": ">= 0.8"
53
-  },
54
-  "files": [
55
-    "History.md",
56
-    "LICENSE",
57
-    "Readme.md",
58
-    "index.js"
59
-  ],
60
-  "homepage": "https://github.com/visionmedia/bytes.js#readme",
61
-  "keywords": [
62
-    "byte",
63
-    "bytes",
64
-    "utility",
65
-    "parse",
66
-    "parser",
67
-    "convert",
68
-    "converter"
69
-  ],
70
-  "license": "MIT",
71
-  "name": "bytes",
72
-  "repository": {
73
-    "type": "git",
74
-    "url": "git+https://github.com/visionmedia/bytes.js.git"
75
-  },
76
-  "scripts": {
77
-    "lint": "eslint .",
78
-    "test": "mocha --check-leaks --reporter spec",
79
-    "test-ci": "nyc --reporter=text npm test",
80
-    "test-cov": "nyc --reporter=html --reporter=text npm test"
81
-  },
82
-  "version": "3.1.0"
83
-}

+ 0
- 91
km0App/node_modules/body-parser/package.json View File

@@ -1,91 +0,0 @@
1
-{
2
-  "_from": "body-parser@1.19.0",
3
-  "_id": "body-parser@1.19.0",
4
-  "_inBundle": false,
5
-  "_integrity": "sha512-dhEPs72UPbDnAQJ9ZKMNTP6ptJaionhP5cBb541nXPlW60Jepo9RV/a4fX4XWW9CuFNK22krhrj1+rgzifNCsw==",
6
-  "_location": "/body-parser",
7
-  "_phantomChildren": {},
8
-  "_requested": {
9
-    "type": "version",
10
-    "registry": true,
11
-    "raw": "body-parser@1.19.0",
12
-    "name": "body-parser",
13
-    "escapedName": "body-parser",
14
-    "rawSpec": "1.19.0",
15
-    "saveSpec": null,
16
-    "fetchSpec": "1.19.0"
17
-  },
18
-  "_requiredBy": [
19
-    "/express"
20
-  ],
21
-  "_resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.19.0.tgz",
22
-  "_shasum": "96b2709e57c9c4e09a6fd66a8fd979844f69f08a",
23
-  "_spec": "body-parser@1.19.0",
24
-  "_where": "/home/luis/Software/kilometro0/km0App/node_modules/express",
25
-  "bugs": {
26
-    "url": "https://github.com/expressjs/body-parser/issues"
27
-  },
28
-  "bundleDependencies": false,
29
-  "contributors": [
30
-    {
31
-      "name": "Douglas Christopher Wilson",
32
-      "email": "doug@somethingdoug.com"
33
-    },
34
-    {
35
-      "name": "Jonathan Ong",
36
-      "email": "me@jongleberry.com",
37
-      "url": "http://jongleberry.com"
38
-    }
39
-  ],
40
-  "dependencies": {
41
-    "bytes": "3.1.0",
42
-    "content-type": "~1.0.4",
43
-    "debug": "2.6.9",
44
-    "depd": "~1.1.2",
45
-    "http-errors": "1.7.2",
46
-    "iconv-lite": "0.4.24",
47
-    "on-finished": "~2.3.0",
48
-    "qs": "6.7.0",
49
-    "raw-body": "2.4.0",
50
-    "type-is": "~1.6.17"
51
-  },
52
-  "deprecated": false,
53
-  "description": "Node.js body parsing middleware",
54
-  "devDependencies": {
55
-    "eslint": "5.16.0",
56
-    "eslint-config-standard": "12.0.0",
57
-    "eslint-plugin-import": "2.17.2",
58
-    "eslint-plugin-markdown": "1.0.0",
59
-    "eslint-plugin-node": "8.0.1",
60
-    "eslint-plugin-promise": "4.1.1",
61
-    "eslint-plugin-standard": "4.0.0",
62
-    "istanbul": "0.4.5",
63
-    "methods": "1.1.2",
64
-    "mocha": "6.1.4",
65
-    "safe-buffer": "5.1.2",
66
-    "supertest": "4.0.2"
67
-  },
68
-  "engines": {
69
-    "node": ">= 0.8"
70
-  },
71
-  "files": [
72
-    "lib/",
73
-    "LICENSE",
74
-    "HISTORY.md",
75
-    "index.js"
76
-  ],
77
-  "homepage": "https://github.com/expressjs/body-parser#readme",
78
-  "license": "MIT",
79
-  "name": "body-parser",
80
-  "repository": {
81
-    "type": "git",
82
-    "url": "git+https://github.com/expressjs/body-parser.git"
83
-  },
84
-  "scripts": {
85
-    "lint": "eslint --plugin markdown --ext js,md .",
86
-    "test": "mocha --require test/support/env --reporter spec --check-leaks --bail test/",
87
-    "test-cov": "istanbul cover node_modules/mocha/bin/_mocha -- --require test/support/env --reporter dot --check-leaks test/",
88
-    "test-travis": "istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --require test/support/env --reporter spec --check-leaks test/"
89
-  },
90
-  "version": "1.19.0"
91
-}

+ 0
- 8
km0App/node_modules/bplist-creator/.npmignore View File

@@ -1,8 +0,0 @@
1
-/build/*
2
-node_modules
3
-*.node
4
-*.sh
5
-*.swp
6
-.lock*
7
-npm-debug.log
8
-.idea

+ 0
- 64
km0App/node_modules/bplist-creator/README.md View File

@@ -1,64 +0,0 @@
1
-bplist-parser
2
-=============
3
-
4
-Binary Mac OS X Plist (property list) creator.
5
-
6
-## Installation
7
-
8
-```bash
9
-$ npm install bplist-creator
10
-```
11
-
12
-## Quick Examples
13
-
14
-```javascript
15
-var bplist = require('bplist-creator');
16
-
17
-var buffer = bplist({
18
-  key1: [1, 2, 3]
19
-});
20
-```
21
-
22
-## Real/Double/Float handling
23
-
24
-Javascript don't have different types for `1` and `1.0`. This package
25
-will automatically store numbers as the appropriate type, but can't
26
-detect floats that is also integers.
27
-
28
-If you need to force a value to be written with the `real` type pass
29
-an instance of `Real`.
30
-
31
-```javascript
32
-var buffer = bplist({
33
-  backgroundRed: new bplist.Real(1),
34
-  backgroundGreen: new bplist.Real(0),
35
-  backgroundBlue: new bplist.Real(0)
36
-});
37
-```
38
-
39
-In `xml` the corresponding tags is `<integer>` and `<real>`.
40
-
41
-## License
42
-
43
-(The MIT License)
44
-
45
-Copyright (c) 2012 Near Infinity Corporation
46
-
47
-Permission is hereby granted, free of charge, to any person obtaining
48
-a copy of this software and associated documentation files (the
49
-"Software"), to deal in the Software without restriction, including
50
-without limitation the rights to use, copy, modify, merge, publish,
51
-distribute, sublicense, and/or sell copies of the Software, and to
52
-permit persons to whom the Software is furnished to do so, subject to
53
-the following conditions:
54
-
55
-The above copyright notice and this permission notice shall be
56
-included in all copies or substantial portions of the Software.
57
-
58
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
59
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
60
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
61
-NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
62
-LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
63
-OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
64
-WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

+ 0
- 445
km0App/node_modules/bplist-creator/bplistCreator.js View File

@@ -1,445 +0,0 @@
1
-'use strict';
2
-
3
-// adapted from http://code.google.com/p/plist/source/browse/trunk/src/main/java/com/dd/plist/BinaryPropertyListWriter.java
4
-
5
-var streamBuffers = require("stream-buffers");
6
-
7
-var debug = false;
8
-
9
-function Real(value) {
10
-  this.value = value;
11
-}
12
-
13
-module.exports = function(dicts) {
14
-  var buffer = new streamBuffers.WritableStreamBuffer();
15
-  buffer.write(new Buffer("bplist00"));
16
-
17
-  if (debug) {
18
-    console.log('create', require('util').inspect(dicts, false, 10));
19
-  }
20
-
21
-  if (dicts instanceof Array && dicts.length === 1) {
22
-    dicts = dicts[0];
23
-  }
24
-
25
-  var entries = toEntries(dicts);
26
-  if (debug) {
27
-    console.log('entries', entries);
28
-  }
29
-  var idSizeInBytes = computeIdSizeInBytes(entries.length);
30
-  var offsets = [];
31
-  var offsetSizeInBytes;
32
-  var offsetTableOffset;
33
-
34
-  updateEntryIds();
35
-
36
-  entries.forEach(function(entry, entryIdx) {
37
-    offsets[entryIdx] = buffer.size();
38
-    if (!entry) {
39
-      buffer.write(0x00);
40
-    } else {
41
-      write(entry);
42
-    }
43
-  });
44
-
45
-  writeOffsetTable();
46
-  writeTrailer();
47
-  return buffer.getContents();
48
-
49
-  function updateEntryIds() {
50
-    var strings = {};
51
-    var entryId = 0;
52
-    entries.forEach(function(entry) {
53
-      if (entry.id) {
54
-        return;
55
-      }
56
-      if (entry.type === 'string') {
57
-        if (!entry.bplistOverride && strings.hasOwnProperty(entry.value)) {
58
-          entry.type = 'stringref';
59
-          entry.id = strings[entry.value];
60
-        } else {
61
-          strings[entry.value] = entry.id = entryId++;
62
-        }
63
-      } else {
64
-        entry.id = entryId++;
65
-      }
66
-    });
67
-
68
-    entries = entries.filter(function(entry) {
69
-      return (entry.type !== 'stringref');
70
-    });
71
-  }
72
-
73
-  function writeTrailer() {
74
-    if (debug) {
75
-      console.log('0x' + buffer.size().toString(16), 'writeTrailer');
76
-    }
77
-    // 6 null bytes
78
-    buffer.write(new Buffer([0, 0, 0, 0, 0, 0]));
79
-
80
-    // size of an offset
81
-    if (debug) {
82
-      console.log('0x' + buffer.size().toString(16), 'writeTrailer(offsetSizeInBytes):', offsetSizeInBytes);
83
-    }
84
-    writeByte(offsetSizeInBytes);
85
-
86
-    // size of a ref
87
-    if (debug) {
88
-      console.log('0x' + buffer.size().toString(16), 'writeTrailer(offsetSizeInBytes):', idSizeInBytes);
89
-    }
90
-    writeByte(idSizeInBytes);
91
-
92
-    // number of objects
93
-    if (debug) {
94
-      console.log('0x' + buffer.size().toString(16), 'writeTrailer(number of objects):', entries.length);
95
-    }
96
-    writeLong(entries.length);
97
-
98
-    // top object
99
-    if (debug) {
100
-      console.log('0x' + buffer.size().toString(16), 'writeTrailer(top object)');
101
-    }
102
-    writeLong(0);
103
-
104
-    // offset table offset
105
-    if (debug) {
106
-      console.log('0x' + buffer.size().toString(16), 'writeTrailer(offset table offset):', offsetTableOffset);
107
-    }
108
-    writeLong(offsetTableOffset);
109
-  }
110
-
111
-  function writeOffsetTable() {
112
-    if (debug) {
113
-      console.log('0x' + buffer.size().toString(16), 'writeOffsetTable');
114
-    }
115
-    offsetTableOffset = buffer.size();
116
-    offsetSizeInBytes = computeOffsetSizeInBytes(offsetTableOffset);
117
-    offsets.forEach(function(offset) {
118
-      writeBytes(offset, offsetSizeInBytes);
119
-    });
120
-  }
121
-
122
-  function write(entry) {
123
-    switch (entry.type) {
124
-    case 'dict':
125
-      writeDict(entry);
126
-      break;
127
-    case 'number':
128
-    case 'double':
129
-      writeNumber(entry);
130
-      break;
131
-    case 'UID':
132
-      writeUID(entry);
133
-      break;
134
-    case 'array':
135
-      writeArray(entry);
136
-      break;
137
-    case 'boolean':
138
-      writeBoolean(entry);
139
-      break;
140
-    case 'string':
141
-    case 'string-utf16':
142
-      writeString(entry);
143
-      break;
144
-    case 'date':
145
-      writeDate(entry);
146
-      break;
147
-    case 'data':
148
-      writeData(entry);
149
-      break;
150
-    default:
151
-      throw new Error("unhandled entry type: " + entry.type);
152
-    }
153
-  }
154
-
155
-  function writeDate(entry) {
156
-    writeByte(0x33);
157
-    var date = (Date.parse(entry.value)/1000) - 978307200
158
-    writeDouble(date)
159
-  }
160
-
161
-  function writeDict(entry) {
162
-    if (debug) {
163
-      var keysStr = entry.entryKeys.map(function(k) {return k.id;});
164
-      var valsStr = entry.entryValues.map(function(k) {return k.id;});
165
-      console.log('0x' + buffer.size().toString(16), 'writeDict', '(id: ' + entry.id + ')', '(keys: ' + keysStr + ')', '(values: ' + valsStr + ')');
166
-    }
167
-    writeIntHeader(0xD, entry.entryKeys.length);
168
-    entry.entryKeys.forEach(function(entry) {
169
-      writeID(entry.id);
170
-    });
171
-    entry.entryValues.forEach(function(entry) {
172
-      writeID(entry.id);
173
-    });
174
-  }
175
-
176
-  function writeNumber(entry) {
177
-    if (debug) {
178
-      console.log('0x' + buffer.size().toString(16), 'writeNumber', entry.value, ' (type: ' + entry.type + ')', '(id: ' + entry.id + ')');
179
-    }
180
-
181
-    if (entry.type !== 'double' && parseFloat(entry.value.toFixed()) == entry.value) {
182
-      if (entry.value < 0) {
183
-        writeByte(0x13);
184
-        writeBytes(entry.value, 8);
185
-      } else if (entry.value <= 0xff) {
186
-        writeByte(0x10);
187
-        writeBytes(entry.value, 1);
188
-      } else if (entry.value <= 0xffff) {
189
-        writeByte(0x11);
190
-        writeBytes(entry.value, 2);
191
-      } else if (entry.value <= 0xffffffff) {
192
-        writeByte(0x12);
193
-        writeBytes(entry.value, 4);
194
-      } else {
195
-        writeByte(0x13);
196
-        writeBytes(entry.value, 8);
197
-      }
198
-    } else {
199
-      writeByte(0x23);
200
-      writeDouble(entry.value);
201
-    }
202
-  }
203
-
204
-  function writeUID(entry) {
205
-    if (debug) {
206
-      console.log('0x' + buffer.size().toString(16), 'writeUID', entry.value, ' (type: ' + entry.type + ')', '(id: ' + entry.id + ')');
207
-    }
208
-
209
-    writeIntHeader(0x8, 0x0);
210
-    writeID(entry.value);
211
-  }
212
-
213
-  function writeArray(entry) {
214
-    if (debug) {
215
-      console.log('0x' + buffer.size().toString(16), 'writeArray (length: ' + entry.entries.length + ')', '(id: ' + entry.id + ')');
216
-    }
217
-    writeIntHeader(0xA, entry.entries.length);
218
-    entry.entries.forEach(function(e) {
219
-      writeID(e.id);
220
-    });
221
-  }
222
-
223
-  function writeBoolean(entry) {
224
-    if (debug) {
225
-      console.log('0x' + buffer.size().toString(16), 'writeBoolean', entry.value, '(id: ' + entry.id + ')');
226
-    }
227
-    writeByte(entry.value ? 0x09 : 0x08);
228
-  }
229
-
230
-  function writeString(entry) {
231
-    if (debug) {
232
-      console.log('0x' + buffer.size().toString(16), 'writeString', entry.value, '(id: ' + entry.id + ')');
233
-    }
234
-    if (entry.type === 'string-utf16' || mustBeUtf16(entry.value)) {
235
-      var utf16 = new Buffer(entry.value, 'ucs2');
236
-      writeIntHeader(0x6, utf16.length / 2);
237
-      // needs to be big endian so swap the bytes
238
-      for (var i = 0; i < utf16.length; i += 2) {
239
-        var t = utf16[i + 0];
240
-        utf16[i + 0] = utf16[i + 1];
241
-        utf16[i + 1] = t;
242
-      }
243
-      buffer.write(utf16);
244
-    } else {
245
-      var utf8 = new Buffer(entry.value, 'ascii');
246
-      writeIntHeader(0x5, utf8.length);
247
-      buffer.write(utf8);
248
-    }
249
-  }
250
-
251
-  function writeData(entry) {
252
-    if (debug) {
253
-      console.log('0x' + buffer.size().toString(16), 'writeData', entry.value, '(id: ' + entry.id + ')');
254
-    }
255
-    writeIntHeader(0x4, entry.value.length);
256
-    buffer.write(entry.value);
257
-  }
258
-
259
-  function writeLong(l) {
260
-    writeBytes(l, 8);
261
-  }
262
-
263
-  function writeByte(b) {
264
-    buffer.write(new Buffer([b]));
265
-  }
266
-
267
-  function writeDouble(v) {
268
-    var buf = new Buffer(8);
269
-    buf.writeDoubleBE(v, 0);
270
-    buffer.write(buf);
271
-  }
272
-
273
-  function writeIntHeader(kind, value) {
274
-    if (value < 15) {
275
-      writeByte((kind << 4) + value);
276
-    } else if (value < 256) {
277
-      writeByte((kind << 4) + 15);
278
-      writeByte(0x10);
279
-      writeBytes(value, 1);
280
-    } else if (value < 65536) {
281
-      writeByte((kind << 4) + 15);
282
-      writeByte(0x11);
283
-      writeBytes(value, 2);
284
-    } else {
285
-      writeByte((kind << 4) + 15);
286
-      writeByte(0x12);
287
-      writeBytes(value, 4);
288
-    }
289
-  }
290
-
291
-  function writeID(id) {
292
-    writeBytes(id, idSizeInBytes);
293
-  }
294
-
295
-  function writeBytes(value, bytes) {
296
-    // write low-order bytes big-endian style
297
-    var buf = new Buffer(bytes);
298
-    var z = 0;
299
-    // javascript doesn't handle large numbers
300
-    while (bytes > 4) {
301
-      buf[z++] = 0;
302
-      bytes--;
303
-    }
304
-    for (var i = bytes - 1; i >= 0; i--) {
305
-      buf[z++] = value >> (8 * i);
306
-    }
307
-    buffer.write(buf);
308
-  }
309
-
310
-  function mustBeUtf16(string) {
311
-    return Buffer.byteLength(string, 'utf8') != string.length;
312
-  }
313
-};
314
-
315
-function toEntries(dicts) {
316
-  if (dicts.bplistOverride) {
317
-    return [dicts];
318
-  }
319
-
320
-  if (dicts instanceof Array) {
321
-    return toEntriesArray(dicts);
322
-  } else if (dicts instanceof Buffer) {
323
-    return [
324
-      {
325
-        type: 'data',
326
-        value: dicts
327
-      }
328
-    ];
329
-  } else if (dicts instanceof Real) {
330
-    return [
331
-      {
332
-        type: 'double',
333
-        value: dicts.value
334
-      }
335
-    ];
336
-  } else if (typeof(dicts) === 'object') {
337
-    if (dicts instanceof Date) {
338
-      return [
339
-        {
340
-          type: 'date',
341
-          value: dicts
342
-        }
343
-      ]
344
-    } else if (Object.keys(dicts).length == 1 && typeof(dicts.UID) === 'number') {
345
-      return [
346
-        {
347
-          type: 'UID',
348
-          value: dicts.UID
349
-        }
350
-      ]
351
-    } else {
352
-      return toEntriesObject(dicts);
353
-    }
354
-  } else if (typeof(dicts) === 'string') {
355
-    return [
356
-      {
357
-        type: 'string',
358
-        value: dicts
359
-      }
360
-    ];
361
-  } else if (typeof(dicts) === 'number') {
362
-    return [
363
-      {
364
-        type: 'number',
365
-        value: dicts
366
-      }
367
-    ];
368
-  } else if (typeof(dicts) === 'boolean') {
369
-    return [
370
-      {
371
-        type: 'boolean',
372
-        value: dicts
373
-      }
374
-    ];
375
-  } else {
376
-    throw new Error('unhandled entry: ' + dicts);
377
-  }
378
-}
379
-
380
-function toEntriesArray(arr) {
381
-  if (debug) {
382
-    console.log('toEntriesArray');
383
-  }
384
-  var results = [
385
-    {
386
-      type: 'array',
387
-      entries: []
388
-    }
389
-  ];
390
-  arr.forEach(function(v) {
391
-    var entry = toEntries(v);
392
-    results[0].entries.push(entry[0]);
393
-    results = results.concat(entry);
394
-  });
395
-  return results;
396
-}
397
-
398
-function toEntriesObject(dict) {
399
-  if (debug) {
400
-    console.log('toEntriesObject');
401
-  }
402
-  var results = [
403
-    {
404
-      type: 'dict',
405
-      entryKeys: [],
406
-      entryValues: []
407
-    }
408
-  ];
409
-  Object.keys(dict).forEach(function(key) {
410
-    var entryKey = toEntries(key);
411
-    results[0].entryKeys.push(entryKey[0]);
412
-    results = results.concat(entryKey[0]);
413
-  });
414
-  Object.keys(dict).forEach(function(key) {
415
-    var entryValue = toEntries(dict[key]);
416
-    results[0].entryValues.push(entryValue[0]);
417
-    results = results.concat(entryValue);
418
-  });
419
-  return results;
420
-}
421
-
422
-function computeOffsetSizeInBytes(maxOffset) {
423
-  if (maxOffset < 256) {
424
-    return 1;
425
-  }
426
-  if (maxOffset < 65536) {
427
-    return 2;
428
-  }
429
-  if (maxOffset < 4294967296) {
430
-    return 4;
431
-  }
432
-  return 8;
433
-}
434
-
435
-function computeIdSizeInBytes(numberOfIds) {
436
-  if (numberOfIds < 256) {
437
-    return 1;
438
-  }
439
-  if (numberOfIds < 65536) {
440
-    return 2;
441
-  }
442
-  return 4;
443
-}
444
-
445
-module.exports.Real = Real;

+ 0
- 58
km0App/node_modules/bplist-creator/package.json View File

@@ -1,58 +0,0 @@
1
-{
2
-  "_from": "bplist-creator@0.0.7",
3
-  "_id": "bplist-creator@0.0.7",
4
-  "_inBundle": false,
5
-  "_integrity": "sha1-N98VNgkoJLh8QvlXsBNEEXNyrkU=",
6
-  "_location": "/bplist-creator",
7
-  "_phantomChildren": {},
8
-  "_requested": {
9
-    "type": "version",
10
-    "registry": true,
11
-    "raw": "bplist-creator@0.0.7",
12
-    "name": "bplist-creator",
13
-    "escapedName": "bplist-creator",
14
-    "rawSpec": "0.0.7",
15
-    "saveSpec": null,
16
-    "fetchSpec": "0.0.7"
17
-  },
18
-  "_requiredBy": [
19
-    "/simple-plist"
20
-  ],
21
-  "_resolved": "https://registry.npmjs.org/bplist-creator/-/bplist-creator-0.0.7.tgz",
22
-  "_shasum": "37df1536092824b87c42f957b01344117372ae45",
23
-  "_spec": "bplist-creator@0.0.7",
24
-  "_where": "/Users/Luis/Documents/Universidad/Quinto Año (2019)/Software/km0/km0App/node_modules/simple-plist",
25
-  "author": {
26
-    "name": "https://github.com/nearinfinity/node-bplist-parser.git"
27
-  },
28
-  "bugs": {
29
-    "url": "https://github.com/nearinfinity/node-bplist-creator/issues"
30
-  },
31
-  "bundleDependencies": false,
32
-  "dependencies": {
33
-    "stream-buffers": "~2.2.0"
34
-  },
35
-  "deprecated": false,
36
-  "description": "Binary Mac OS X Plist (property list) creator.",
37
-  "devDependencies": {
38
-    "bplist-parser": "~0.1.0",
39
-    "nodeunit": "0.9.1"
40
-  },
41
-  "homepage": "https://github.com/nearinfinity/node-bplist-creator#readme",
42
-  "keywords": [
43
-    "bplist",
44
-    "plist",
45
-    "creator"
46
-  ],
47
-  "license": "MIT",
48
-  "main": "bplistCreator.js",
49
-  "name": "bplist-creator",
50
-  "repository": {
51
-    "type": "git",
52
-    "url": "git+https://github.com/nearinfinity/node-bplist-creator.git"
53
-  },
54
-  "scripts": {
55
-    "test": "./node_modules/nodeunit/bin/nodeunit test"
56
-  },
57
-  "version": "0.0.7"
58
-}

BIN
km0App/node_modules/bplist-creator/test/airplay.bplist View File


+ 0
- 0
km0App/node_modules/bplist-creator/test/binaryData.bplist View File


Some files were not shown because too many files changed in this diff