Quellcode durchsuchen

added browser platform

luis vor 5 Jahren
Ursprung
Commit
d198970c71
100 geänderte Dateien mit 11142 neuen und 0 gelöschten Zeilen
  1. 1
    0
      km0App/node_modules/.bin/cordova-browser
  2. 1
    0
      km0App/node_modules/.bin/mime
  3. 236
    0
      km0App/node_modules/accepts/HISTORY.md
  4. 23
    0
      km0App/node_modules/accepts/LICENSE
  5. 142
    0
      km0App/node_modules/accepts/README.md
  6. 238
    0
      km0App/node_modules/accepts/index.js
  7. 87
    0
      km0App/node_modules/accepts/package.json
  8. 165
    0
      km0App/node_modules/ansi-styles/index.js
  9. 9
    0
      km0App/node_modules/ansi-styles/license
  10. 88
    0
      km0App/node_modules/ansi-styles/package.json
  11. 147
    0
      km0App/node_modules/ansi-styles/readme.md
  12. 21
    0
      km0App/node_modules/array-flatten/LICENSE
  13. 43
    0
      km0App/node_modules/array-flatten/README.md
  14. 64
    0
      km0App/node_modules/array-flatten/array-flatten.js
  15. 64
    0
      km0App/node_modules/array-flatten/package.json
  16. 609
    0
      km0App/node_modules/body-parser/HISTORY.md
  17. 23
    0
      km0App/node_modules/body-parser/LICENSE
  18. 443
    0
      km0App/node_modules/body-parser/README.md
  19. 157
    0
      km0App/node_modules/body-parser/index.js
  20. 181
    0
      km0App/node_modules/body-parser/lib/read.js
  21. 230
    0
      km0App/node_modules/body-parser/lib/types/json.js
  22. 101
    0
      km0App/node_modules/body-parser/lib/types/raw.js
  23. 121
    0
      km0App/node_modules/body-parser/lib/types/text.js
  24. 284
    0
      km0App/node_modules/body-parser/lib/types/urlencoded.js
  25. 87
    0
      km0App/node_modules/body-parser/node_modules/bytes/History.md
  26. 23
    0
      km0App/node_modules/body-parser/node_modules/bytes/LICENSE
  27. 126
    0
      km0App/node_modules/body-parser/node_modules/bytes/Readme.md
  28. 162
    0
      km0App/node_modules/body-parser/node_modules/bytes/index.js
  29. 83
    0
      km0App/node_modules/body-parser/node_modules/bytes/package.json
  30. 91
    0
      km0App/node_modules/body-parser/package.json
  31. 82
    0
      km0App/node_modules/bytes/History.md
  32. 23
    0
      km0App/node_modules/bytes/LICENSE
  33. 125
    0
      km0App/node_modules/bytes/Readme.md
  34. 159
    0
      km0App/node_modules/bytes/index.js
  35. 81
    0
      km0App/node_modules/bytes/package.json
  36. 228
    0
      km0App/node_modules/chalk/index.js
  37. 93
    0
      km0App/node_modules/chalk/index.js.flow
  38. 9
    0
      km0App/node_modules/chalk/license
  39. 103
    0
      km0App/node_modules/chalk/package.json
  40. 314
    0
      km0App/node_modules/chalk/readme.md
  41. 128
    0
      km0App/node_modules/chalk/templates.js
  42. 97
    0
      km0App/node_modules/chalk/types/index.d.ts
  43. 54
    0
      km0App/node_modules/color-convert/CHANGELOG.md
  44. 21
    0
      km0App/node_modules/color-convert/LICENSE
  45. 68
    0
      km0App/node_modules/color-convert/README.md
  46. 868
    0
      km0App/node_modules/color-convert/conversions.js
  47. 78
    0
      km0App/node_modules/color-convert/index.js
  48. 81
    0
      km0App/node_modules/color-convert/package.json
  49. 97
    0
      km0App/node_modules/color-convert/route.js
  50. 43
    0
      km0App/node_modules/color-name/.eslintrc.json
  51. 107
    0
      km0App/node_modules/color-name/.npmignore
  52. 8
    0
      km0App/node_modules/color-name/LICENSE
  53. 11
    0
      km0App/node_modules/color-name/README.md
  54. 152
    0
      km0App/node_modules/color-name/index.js
  55. 53
    0
      km0App/node_modules/color-name/package.json
  56. 7
    0
      km0App/node_modules/color-name/test.js
  57. 104
    0
      km0App/node_modules/compressible/HISTORY.md
  58. 24
    0
      km0App/node_modules/compressible/LICENSE
  59. 61
    0
      km0App/node_modules/compressible/README.md
  60. 58
    0
      km0App/node_modules/compressible/index.js
  61. 91
    0
      km0App/node_modules/compressible/package.json
  62. 307
    0
      km0App/node_modules/compression/HISTORY.md
  63. 23
    0
      km0App/node_modules/compression/LICENSE
  64. 240
    0
      km0App/node_modules/compression/README.md
  65. 288
    0
      km0App/node_modules/compression/index.js
  66. 86
    0
      km0App/node_modules/compression/package.json
  67. 55
    0
      km0App/node_modules/content-disposition/HISTORY.md
  68. 22
    0
      km0App/node_modules/content-disposition/LICENSE
  69. 148
    0
      km0App/node_modules/content-disposition/README.md
  70. 458
    0
      km0App/node_modules/content-disposition/index.js
  71. 79
    0
      km0App/node_modules/content-disposition/package.json
  72. 24
    0
      km0App/node_modules/content-type/HISTORY.md
  73. 22
    0
      km0App/node_modules/content-type/LICENSE
  74. 92
    0
      km0App/node_modules/content-type/README.md
  75. 222
    0
      km0App/node_modules/content-type/index.js
  76. 76
    0
      km0App/node_modules/content-type/package.json
  77. 4
    0
      km0App/node_modules/cookie-signature/.npmignore
  78. 38
    0
      km0App/node_modules/cookie-signature/History.md
  79. 42
    0
      km0App/node_modules/cookie-signature/Readme.md
  80. 51
    0
      km0App/node_modules/cookie-signature/index.js
  81. 57
    0
      km0App/node_modules/cookie-signature/package.json
  82. 123
    0
      km0App/node_modules/cookie/HISTORY.md
  83. 24
    0
      km0App/node_modules/cookie/LICENSE
  84. 253
    0
      km0App/node_modules/cookie/README.md
  85. 198
    0
      km0App/node_modules/cookie/index.js
  86. 78
    0
      km0App/node_modules/cookie/package.json
  87. 1
    0
      km0App/node_modules/cordova-browser/.eslintignore
  88. 10
    0
      km0App/node_modules/cordova-browser/.eslintrc.yml
  89. 94
    0
      km0App/node_modules/cordova-browser/.gitattributes
  90. 22
    0
      km0App/node_modules/cordova-browser/.github/PULL_REQUEST_TEMPLATE.md
  91. 9
    0
      km0App/node_modules/cordova-browser/.npmignore
  92. 3
    0
      km0App/node_modules/cordova-browser/.ratignore
  93. 15
    0
      km0App/node_modules/cordova-browser/.travis.yml
  94. 37
    0
      km0App/node_modules/cordova-browser/CONTRIBUTING.md
  95. 317
    0
      km0App/node_modules/cordova-browser/LICENSE
  96. 5
    0
      km0App/node_modules/cordova-browser/NOTICE
  97. 42
    0
      km0App/node_modules/cordova-browser/README.md
  98. 98
    0
      km0App/node_modules/cordova-browser/RELEASENOTES.md
  99. 1
    0
      km0App/node_modules/cordova-browser/VERSION
  100. 0
    0
      km0App/node_modules/cordova-browser/appveyor.yml

+ 1
- 0
km0App/node_modules/.bin/cordova-browser Datei anzeigen

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

+ 1
- 0
km0App/node_modules/.bin/mime Datei anzeigen

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

+ 236
- 0
km0App/node_modules/accepts/HISTORY.md Datei anzeigen

@@ -0,0 +1,236 @@
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

+ 23
- 0
km0App/node_modules/accepts/LICENSE Datei anzeigen

@@ -0,0 +1,23 @@
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.

+ 142
- 0
km0App/node_modules/accepts/README.md Datei anzeigen

@@ -0,0 +1,142 @@
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

+ 238
- 0
km0App/node_modules/accepts/index.js Datei anzeigen

@@ -0,0 +1,238 @@
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
+}

+ 87
- 0
km0App/node_modules/accepts/package.json Datei anzeigen

@@ -0,0 +1,87 @@
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
+}

+ 165
- 0
km0App/node_modules/ansi-styles/index.js Datei anzeigen

@@ -0,0 +1,165 @@
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
+});

+ 9
- 0
km0App/node_modules/ansi-styles/license Datei anzeigen

@@ -0,0 +1,9 @@
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.

+ 88
- 0
km0App/node_modules/ansi-styles/package.json Datei anzeigen

@@ -0,0 +1,88 @@
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
+}

+ 147
- 0
km0App/node_modules/ansi-styles/readme.md Datei anzeigen

@@ -0,0 +1,147 @@
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

+ 21
- 0
km0App/node_modules/array-flatten/LICENSE Datei anzeigen

@@ -0,0 +1,21 @@
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.

+ 43
- 0
km0App/node_modules/array-flatten/README.md Datei anzeigen

@@ -0,0 +1,43 @@
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

+ 64
- 0
km0App/node_modules/array-flatten/array-flatten.js Datei anzeigen

@@ -0,0 +1,64 @@
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
+}

+ 64
- 0
km0App/node_modules/array-flatten/package.json Datei anzeigen

@@ -0,0 +1,64 @@
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
+}

+ 609
- 0
km0App/node_modules/body-parser/HISTORY.md Datei anzeigen

@@ -0,0 +1,609 @@
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

+ 23
- 0
km0App/node_modules/body-parser/LICENSE Datei anzeigen

@@ -0,0 +1,23 @@
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.

+ 443
- 0
km0App/node_modules/body-parser/README.md Datei anzeigen

@@ -0,0 +1,443 @@
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

+ 157
- 0
km0App/node_modules/body-parser/index.js Datei anzeigen

@@ -0,0 +1,157 @@
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
+}

+ 181
- 0
km0App/node_modules/body-parser/lib/read.js Datei anzeigen

@@ -0,0 +1,181 @@
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
+}

+ 230
- 0
km0App/node_modules/body-parser/lib/types/json.js Datei anzeigen

@@ -0,0 +1,230 @@
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
+}

+ 101
- 0
km0App/node_modules/body-parser/lib/types/raw.js Datei anzeigen

@@ -0,0 +1,101 @@
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
+}

+ 121
- 0
km0App/node_modules/body-parser/lib/types/text.js Datei anzeigen

@@ -0,0 +1,121 @@
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
+}

+ 284
- 0
km0App/node_modules/body-parser/lib/types/urlencoded.js Datei anzeigen

@@ -0,0 +1,284 @@
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
+}

+ 87
- 0
km0App/node_modules/body-parser/node_modules/bytes/History.md Datei anzeigen

@@ -0,0 +1,87 @@
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]

+ 23
- 0
km0App/node_modules/body-parser/node_modules/bytes/LICENSE Datei anzeigen

@@ -0,0 +1,23 @@
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.

+ 126
- 0
km0App/node_modules/body-parser/node_modules/bytes/Readme.md Datei anzeigen

@@ -0,0 +1,126 @@
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

+ 162
- 0
km0App/node_modules/body-parser/node_modules/bytes/index.js Datei anzeigen

@@ -0,0 +1,162 @@
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
+}

+ 83
- 0
km0App/node_modules/body-parser/node_modules/bytes/package.json Datei anzeigen

@@ -0,0 +1,83 @@
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
+}

+ 91
- 0
km0App/node_modules/body-parser/package.json Datei anzeigen

@@ -0,0 +1,91 @@
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
+}

+ 82
- 0
km0App/node_modules/bytes/History.md Datei anzeigen

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

+ 23
- 0
km0App/node_modules/bytes/LICENSE Datei anzeigen

@@ -0,0 +1,23 @@
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.

+ 125
- 0
km0App/node_modules/bytes/Readme.md Datei anzeigen

@@ -0,0 +1,125 @@
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
+
87
+The units are in powers of two, not ten. This means 1kb = 1024b according to this parser.
88
+
89
+**Arguments**
90
+
91
+| Name          | Type   | Description        |
92
+|---------------|--------|--------------------|
93
+| value   | `string`|`number` | String to parse, or number in bytes.   |
94
+
95
+**Returns**
96
+
97
+| Name    | Type        | Description             |
98
+|---------|-------------|-------------------------|
99
+| results | `number`|`null` | Return null upon error. Value in bytes otherwise. |
100
+
101
+**Example**
102
+
103
+```js
104
+bytes('1KB');
105
+// output: 1024
106
+
107
+bytes('1024');
108
+// output: 1024
109
+
110
+bytes(1024);
111
+// output: 1024
112
+```
113
+
114
+## License 
115
+
116
+[MIT](LICENSE)
117
+
118
+[downloads-image]: https://img.shields.io/npm/dm/bytes.svg
119
+[downloads-url]: https://npmjs.org/package/bytes
120
+[npm-image]: https://img.shields.io/npm/v/bytes.svg
121
+[npm-url]: https://npmjs.org/package/bytes
122
+[travis-image]: https://img.shields.io/travis/visionmedia/bytes.js/master.svg
123
+[travis-url]: https://travis-ci.org/visionmedia/bytes.js
124
+[coveralls-image]: https://img.shields.io/coveralls/visionmedia/bytes.js/master.svg
125
+[coveralls-url]: https://coveralls.io/r/visionmedia/bytes.js?branch=master

+ 159
- 0
km0App/node_modules/bytes/index.js Datei anzeigen

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

+ 81
- 0
km0App/node_modules/bytes/package.json Datei anzeigen

@@ -0,0 +1,81 @@
1
+{
2
+  "_from": "bytes@3.0.0",
3
+  "_id": "bytes@3.0.0",
4
+  "_inBundle": false,
5
+  "_integrity": "sha1-0ygVQE1olpn4Wk6k+odV3ROpYEg=",
6
+  "_location": "/bytes",
7
+  "_phantomChildren": {},
8
+  "_requested": {
9
+    "type": "version",
10
+    "registry": true,
11
+    "raw": "bytes@3.0.0",
12
+    "name": "bytes",
13
+    "escapedName": "bytes",
14
+    "rawSpec": "3.0.0",
15
+    "saveSpec": null,
16
+    "fetchSpec": "3.0.0"
17
+  },
18
+  "_requiredBy": [
19
+    "/compression"
20
+  ],
21
+  "_resolved": "https://registry.npmjs.org/bytes/-/bytes-3.0.0.tgz",
22
+  "_shasum": "d32815404d689699f85a4ea4fa8755dd13a96048",
23
+  "_spec": "bytes@3.0.0",
24
+  "_where": "/home/luis/Software/kilometro0/km0App/node_modules/compression",
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
+    "mocha": "2.5.3",
48
+    "nyc": "10.3.2"
49
+  },
50
+  "engines": {
51
+    "node": ">= 0.8"
52
+  },
53
+  "files": [
54
+    "History.md",
55
+    "LICENSE",
56
+    "Readme.md",
57
+    "index.js"
58
+  ],
59
+  "homepage": "https://github.com/visionmedia/bytes.js#readme",
60
+  "keywords": [
61
+    "byte",
62
+    "bytes",
63
+    "utility",
64
+    "parse",
65
+    "parser",
66
+    "convert",
67
+    "converter"
68
+  ],
69
+  "license": "MIT",
70
+  "name": "bytes",
71
+  "repository": {
72
+    "type": "git",
73
+    "url": "git+https://github.com/visionmedia/bytes.js.git"
74
+  },
75
+  "scripts": {
76
+    "test": "mocha --check-leaks --reporter spec",
77
+    "test-ci": "nyc --reporter=text npm test",
78
+    "test-cov": "nyc --reporter=html --reporter=text npm test"
79
+  },
80
+  "version": "3.0.0"
81
+}

+ 228
- 0
km0App/node_modules/chalk/index.js Datei anzeigen

@@ -0,0 +1,228 @@
1
+'use strict';
2
+const escapeStringRegexp = require('escape-string-regexp');
3
+const ansiStyles = require('ansi-styles');
4
+const stdoutColor = require('supports-color').stdout;
5
+
6
+const template = require('./templates.js');
7
+
8
+const isSimpleWindowsTerm = process.platform === 'win32' && !(process.env.TERM || '').toLowerCase().startsWith('xterm');
9
+
10
+// `supportsColor.level` → `ansiStyles.color[name]` mapping
11
+const levelMapping = ['ansi', 'ansi', 'ansi256', 'ansi16m'];
12
+
13
+// `color-convert` models to exclude from the Chalk API due to conflicts and such
14
+const skipModels = new Set(['gray']);
15
+
16
+const styles = Object.create(null);
17
+
18
+function applyOptions(obj, options) {
19
+	options = options || {};
20
+
21
+	// Detect level if not set manually
22
+	const scLevel = stdoutColor ? stdoutColor.level : 0;
23
+	obj.level = options.level === undefined ? scLevel : options.level;
24
+	obj.enabled = 'enabled' in options ? options.enabled : obj.level > 0;
25
+}
26
+
27
+function Chalk(options) {
28
+	// We check for this.template here since calling `chalk.constructor()`
29
+	// by itself will have a `this` of a previously constructed chalk object
30
+	if (!this || !(this instanceof Chalk) || this.template) {
31
+		const chalk = {};
32
+		applyOptions(chalk, options);
33
+
34
+		chalk.template = function () {
35
+			const args = [].slice.call(arguments);
36
+			return chalkTag.apply(null, [chalk.template].concat(args));
37
+		};
38
+
39
+		Object.setPrototypeOf(chalk, Chalk.prototype);
40
+		Object.setPrototypeOf(chalk.template, chalk);
41
+
42
+		chalk.template.constructor = Chalk;
43
+
44
+		return chalk.template;
45
+	}
46
+
47
+	applyOptions(this, options);
48
+}
49
+
50
+// Use bright blue on Windows as the normal blue color is illegible
51
+if (isSimpleWindowsTerm) {
52
+	ansiStyles.blue.open = '\u001B[94m';
53
+}
54
+
55
+for (const key of Object.keys(ansiStyles)) {
56
+	ansiStyles[key].closeRe = new RegExp(escapeStringRegexp(ansiStyles[key].close), 'g');
57
+
58
+	styles[key] = {
59
+		get() {
60
+			const codes = ansiStyles[key];
61
+			return build.call(this, this._styles ? this._styles.concat(codes) : [codes], this._empty, key);
62
+		}
63
+	};
64
+}
65
+
66
+styles.visible = {
67
+	get() {
68
+		return build.call(this, this._styles || [], true, 'visible');
69
+	}
70
+};
71
+
72
+ansiStyles.color.closeRe = new RegExp(escapeStringRegexp(ansiStyles.color.close), 'g');
73
+for (const model of Object.keys(ansiStyles.color.ansi)) {
74
+	if (skipModels.has(model)) {
75
+		continue;
76
+	}
77
+
78
+	styles[model] = {
79
+		get() {
80
+			const level = this.level;
81
+			return function () {
82
+				const open = ansiStyles.color[levelMapping[level]][model].apply(null, arguments);
83
+				const codes = {
84
+					open,
85
+					close: ansiStyles.color.close,
86
+					closeRe: ansiStyles.color.closeRe
87
+				};
88
+				return build.call(this, this._styles ? this._styles.concat(codes) : [codes], this._empty, model);
89
+			};
90
+		}
91
+	};
92
+}
93
+
94
+ansiStyles.bgColor.closeRe = new RegExp(escapeStringRegexp(ansiStyles.bgColor.close), 'g');
95
+for (const model of Object.keys(ansiStyles.bgColor.ansi)) {
96
+	if (skipModels.has(model)) {
97
+		continue;
98
+	}
99
+
100
+	const bgModel = 'bg' + model[0].toUpperCase() + model.slice(1);
101
+	styles[bgModel] = {
102
+		get() {
103
+			const level = this.level;
104
+			return function () {
105
+				const open = ansiStyles.bgColor[levelMapping[level]][model].apply(null, arguments);
106
+				const codes = {
107
+					open,
108
+					close: ansiStyles.bgColor.close,
109
+					closeRe: ansiStyles.bgColor.closeRe
110
+				};
111
+				return build.call(this, this._styles ? this._styles.concat(codes) : [codes], this._empty, model);
112
+			};
113
+		}
114
+	};
115
+}
116
+
117
+const proto = Object.defineProperties(() => {}, styles);
118
+
119
+function build(_styles, _empty, key) {
120
+	const builder = function () {
121
+		return applyStyle.apply(builder, arguments);
122
+	};
123
+
124
+	builder._styles = _styles;
125
+	builder._empty = _empty;
126
+
127
+	const self = this;
128
+
129
+	Object.defineProperty(builder, 'level', {
130
+		enumerable: true,
131
+		get() {
132
+			return self.level;
133
+		},
134
+		set(level) {
135
+			self.level = level;
136
+		}
137
+	});
138
+
139
+	Object.defineProperty(builder, 'enabled', {
140
+		enumerable: true,
141
+		get() {
142
+			return self.enabled;
143
+		},
144
+		set(enabled) {
145
+			self.enabled = enabled;
146
+		}
147
+	});
148
+
149
+	// See below for fix regarding invisible grey/dim combination on Windows
150
+	builder.hasGrey = this.hasGrey || key === 'gray' || key === 'grey';
151
+
152
+	// `__proto__` is used because we must return a function, but there is
153
+	// no way to create a function with a different prototype
154
+	builder.__proto__ = proto; // eslint-disable-line no-proto
155
+
156
+	return builder;
157
+}
158
+
159
+function applyStyle() {
160
+	// Support varags, but simply cast to string in case there's only one arg
161
+	const args = arguments;
162
+	const argsLen = args.length;
163
+	let str = String(arguments[0]);
164
+
165
+	if (argsLen === 0) {
166
+		return '';
167
+	}
168
+
169
+	if (argsLen > 1) {
170
+		// Don't slice `arguments`, it prevents V8 optimizations
171
+		for (let a = 1; a < argsLen; a++) {
172
+			str += ' ' + args[a];
173
+		}
174
+	}
175
+
176
+	if (!this.enabled || this.level <= 0 || !str) {
177
+		return this._empty ? '' : str;
178
+	}
179
+
180
+	// Turns out that on Windows dimmed gray text becomes invisible in cmd.exe,
181
+	// see https://github.com/chalk/chalk/issues/58
182
+	// If we're on Windows and we're dealing with a gray color, temporarily make 'dim' a noop.
183
+	const originalDim = ansiStyles.dim.open;
184
+	if (isSimpleWindowsTerm && this.hasGrey) {
185
+		ansiStyles.dim.open = '';
186
+	}
187
+
188
+	for (const code of this._styles.slice().reverse()) {
189
+		// Replace any instances already present with a re-opening code
190
+		// otherwise only the part of the string until said closing code
191
+		// will be colored, and the rest will simply be 'plain'.
192
+		str = code.open + str.replace(code.closeRe, code.open) + code.close;
193
+
194
+		// Close the styling before a linebreak and reopen
195
+		// after next line to fix a bleed issue on macOS
196
+		// https://github.com/chalk/chalk/pull/92
197
+		str = str.replace(/\r?\n/g, `${code.close}$&${code.open}`);
198
+	}
199
+
200
+	// Reset the original `dim` if we changed it to work around the Windows dimmed gray issue
201
+	ansiStyles.dim.open = originalDim;
202
+
203
+	return str;
204
+}
205
+
206
+function chalkTag(chalk, strings) {
207
+	if (!Array.isArray(strings)) {
208
+		// If chalk() was called by itself or with a string,
209
+		// return the string itself as a string.
210
+		return [].slice.call(arguments, 1).join(' ');
211
+	}
212
+
213
+	const args = [].slice.call(arguments, 2);
214
+	const parts = [strings.raw[0]];
215
+
216
+	for (let i = 1; i < strings.length; i++) {
217
+		parts.push(String(args[i - 1]).replace(/[{}\\]/g, '\\$&'));
218
+		parts.push(String(strings.raw[i]));
219
+	}
220
+
221
+	return template(chalk, parts.join(''));
222
+}
223
+
224
+Object.defineProperties(Chalk.prototype, styles);
225
+
226
+module.exports = Chalk(); // eslint-disable-line new-cap
227
+module.exports.supportsColor = stdoutColor;
228
+module.exports.default = module.exports; // For TypeScript

+ 93
- 0
km0App/node_modules/chalk/index.js.flow Datei anzeigen

@@ -0,0 +1,93 @@
1
+// @flow strict
2
+
3
+type TemplateStringsArray = $ReadOnlyArray<string>;
4
+
5
+export type Level = $Values<{
6
+	None: 0,
7
+	Basic: 1,
8
+	Ansi256: 2,
9
+	TrueColor: 3
10
+}>;
11
+
12
+export type ChalkOptions = {|
13
+	enabled?: boolean,
14
+	level?: Level
15
+|};
16
+
17
+export type ColorSupport = {|
18
+	level: Level,
19
+	hasBasic: boolean,
20
+	has256: boolean,
21
+	has16m: boolean
22
+|};
23
+
24
+export interface Chalk {
25
+	(...text: string[]): string,
26
+	(text: TemplateStringsArray, ...placeholders: string[]): string,
27
+	constructor(options?: ChalkOptions): Chalk,
28
+	enabled: boolean,
29
+	level: Level,
30
+	rgb(r: number, g: number, b: number): Chalk,
31
+	hsl(h: number, s: number, l: number): Chalk,
32
+	hsv(h: number, s: number, v: number): Chalk,
33
+	hwb(h: number, w: number, b: number): Chalk,
34
+	bgHex(color: string): Chalk,
35
+	bgKeyword(color: string): Chalk,
36
+	bgRgb(r: number, g: number, b: number): Chalk,
37
+	bgHsl(h: number, s: number, l: number): Chalk,
38
+	bgHsv(h: number, s: number, v: number): Chalk,
39
+	bgHwb(h: number, w: number, b: number): Chalk,
40
+	hex(color: string): Chalk,
41
+	keyword(color: string): Chalk,
42
+
43
+	+reset: Chalk,
44
+	+bold: Chalk,
45
+	+dim: Chalk,
46
+	+italic: Chalk,
47
+	+underline: Chalk,
48
+	+inverse: Chalk,
49
+	+hidden: Chalk,
50
+	+strikethrough: Chalk,
51
+
52
+	+visible: Chalk,
53
+
54
+	+black: Chalk,
55
+	+red: Chalk,
56
+	+green: Chalk,
57
+	+yellow: Chalk,
58
+	+blue: Chalk,
59
+	+magenta: Chalk,
60
+	+cyan: Chalk,
61
+	+white: Chalk,
62
+	+gray: Chalk,
63
+	+grey: Chalk,
64
+	+blackBright: Chalk,
65
+	+redBright: Chalk,
66
+	+greenBright: Chalk,
67
+	+yellowBright: Chalk,
68
+	+blueBright: Chalk,
69
+	+magentaBright: Chalk,
70
+	+cyanBright: Chalk,
71
+	+whiteBright: Chalk,
72
+
73
+	+bgBlack: Chalk,
74
+	+bgRed: Chalk,
75
+	+bgGreen: Chalk,
76
+	+bgYellow: Chalk,
77
+	+bgBlue: Chalk,
78
+	+bgMagenta: Chalk,
79
+	+bgCyan: Chalk,
80
+	+bgWhite: Chalk,
81
+	+bgBlackBright: Chalk,
82
+	+bgRedBright: Chalk,
83
+	+bgGreenBright: Chalk,
84
+	+bgYellowBright: Chalk,
85
+	+bgBlueBright: Chalk,
86
+	+bgMagentaBright: Chalk,
87
+	+bgCyanBright: Chalk,
88
+	+bgWhiteBrigh: Chalk,
89
+
90
+	supportsColor: ColorSupport
91
+};
92
+
93
+declare module.exports: Chalk;

+ 9
- 0
km0App/node_modules/chalk/license Datei anzeigen

@@ -0,0 +1,9 @@
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.

+ 103
- 0
km0App/node_modules/chalk/package.json Datei anzeigen

@@ -0,0 +1,103 @@
1
+{
2
+  "_from": "chalk@^2.4.1",
3
+  "_id": "chalk@2.4.2",
4
+  "_inBundle": false,
5
+  "_integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==",
6
+  "_location": "/chalk",
7
+  "_phantomChildren": {},
8
+  "_requested": {
9
+    "type": "range",
10
+    "registry": true,
11
+    "raw": "chalk@^2.4.1",
12
+    "name": "chalk",
13
+    "escapedName": "chalk",
14
+    "rawSpec": "^2.4.1",
15
+    "saveSpec": null,
16
+    "fetchSpec": "^2.4.1"
17
+  },
18
+  "_requiredBy": [
19
+    "/cordova-serve"
20
+  ],
21
+  "_resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz",
22
+  "_shasum": "cd42541677a54333cf541a49108c1432b44c9424",
23
+  "_spec": "chalk@^2.4.1",
24
+  "_where": "/home/luis/Software/kilometro0/km0App/node_modules/cordova-serve",
25
+  "bugs": {
26
+    "url": "https://github.com/chalk/chalk/issues"
27
+  },
28
+  "bundleDependencies": false,
29
+  "dependencies": {
30
+    "ansi-styles": "^3.2.1",
31
+    "escape-string-regexp": "^1.0.5",
32
+    "supports-color": "^5.3.0"
33
+  },
34
+  "deprecated": false,
35
+  "description": "Terminal string styling done right",
36
+  "devDependencies": {
37
+    "ava": "*",
38
+    "coveralls": "^3.0.0",
39
+    "execa": "^0.9.0",
40
+    "flow-bin": "^0.68.0",
41
+    "import-fresh": "^2.0.0",
42
+    "matcha": "^0.7.0",
43
+    "nyc": "^11.0.2",
44
+    "resolve-from": "^4.0.0",
45
+    "typescript": "^2.5.3",
46
+    "xo": "*"
47
+  },
48
+  "engines": {
49
+    "node": ">=4"
50
+  },
51
+  "files": [
52
+    "index.js",
53
+    "templates.js",
54
+    "types/index.d.ts",
55
+    "index.js.flow"
56
+  ],
57
+  "homepage": "https://github.com/chalk/chalk#readme",
58
+  "keywords": [
59
+    "color",
60
+    "colour",
61
+    "colors",
62
+    "terminal",
63
+    "console",
64
+    "cli",
65
+    "string",
66
+    "str",
67
+    "ansi",
68
+    "style",
69
+    "styles",
70
+    "tty",
71
+    "formatting",
72
+    "rgb",
73
+    "256",
74
+    "shell",
75
+    "xterm",
76
+    "log",
77
+    "logging",
78
+    "command-line",
79
+    "text"
80
+  ],
81
+  "license": "MIT",
82
+  "name": "chalk",
83
+  "repository": {
84
+    "type": "git",
85
+    "url": "git+https://github.com/chalk/chalk.git"
86
+  },
87
+  "scripts": {
88
+    "bench": "matcha benchmark.js",
89
+    "coveralls": "nyc report --reporter=text-lcov | coveralls",
90
+    "test": "xo && tsc --project types && flow --max-warnings=0 && nyc ava"
91
+  },
92
+  "types": "types/index.d.ts",
93
+  "version": "2.4.2",
94
+  "xo": {
95
+    "envs": [
96
+      "node",
97
+      "mocha"
98
+    ],
99
+    "ignores": [
100
+      "test/_flow.js"
101
+    ]
102
+  }
103
+}

+ 314
- 0
km0App/node_modules/chalk/readme.md Datei anzeigen

@@ -0,0 +1,314 @@
1
+<h1 align="center">
2
+	<br>
3
+	<br>
4
+	<img width="320" src="media/logo.svg" alt="Chalk">
5
+	<br>
6
+	<br>
7
+	<br>
8
+</h1>
9
+
10
+> Terminal string styling done right
11
+
12
+[![Build Status](https://travis-ci.org/chalk/chalk.svg?branch=master)](https://travis-ci.org/chalk/chalk) [![Coverage Status](https://coveralls.io/repos/github/chalk/chalk/badge.svg?branch=master)](https://coveralls.io/github/chalk/chalk?branch=master) [![](https://img.shields.io/badge/unicorn-approved-ff69b4.svg)](https://www.youtube.com/watch?v=9auOCbH5Ns4) [![XO code style](https://img.shields.io/badge/code_style-XO-5ed9c7.svg)](https://github.com/xojs/xo) [![Mentioned in Awesome Node.js](https://awesome.re/mentioned-badge.svg)](https://github.com/sindresorhus/awesome-nodejs)
13
+
14
+### [See what's new in Chalk 2](https://github.com/chalk/chalk/releases/tag/v2.0.0)
15
+
16
+<img src="https://cdn.rawgit.com/chalk/ansi-styles/8261697c95bf34b6c7767e2cbe9941a851d59385/screenshot.svg" alt="" width="900">
17
+
18
+
19
+## Highlights
20
+
21
+- Expressive API
22
+- Highly performant
23
+- Ability to nest styles
24
+- [256/Truecolor color support](#256-and-truecolor-color-support)
25
+- Auto-detects color support
26
+- Doesn't extend `String.prototype`
27
+- Clean and focused
28
+- Actively maintained
29
+- [Used by ~23,000 packages](https://www.npmjs.com/browse/depended/chalk) as of December 31, 2017
30
+
31
+
32
+## Install
33
+
34
+```console
35
+$ npm install chalk
36
+```
37
+
38
+<a href="https://www.patreon.com/sindresorhus">
39
+	<img src="https://c5.patreon.com/external/logo/become_a_patron_button@2x.png" width="160">
40
+</a>
41
+
42
+
43
+## Usage
44
+
45
+```js
46
+const chalk = require('chalk');
47
+
48
+console.log(chalk.blue('Hello world!'));
49
+```
50
+
51
+Chalk comes with an easy to use composable API where you just chain and nest the styles you want.
52
+
53
+```js
54
+const chalk = require('chalk');
55
+const log = console.log;
56
+
57
+// Combine styled and normal strings
58
+log(chalk.blue('Hello') + ' World' + chalk.red('!'));
59
+
60
+// Compose multiple styles using the chainable API
61
+log(chalk.blue.bgRed.bold('Hello world!'));
62
+
63
+// Pass in multiple arguments
64
+log(chalk.blue('Hello', 'World!', 'Foo', 'bar', 'biz', 'baz'));
65
+
66
+// Nest styles
67
+log(chalk.red('Hello', chalk.underline.bgBlue('world') + '!'));
68
+
69
+// Nest styles of the same type even (color, underline, background)
70
+log(chalk.green(
71
+	'I am a green line ' +
72
+	chalk.blue.underline.bold('with a blue substring') +
73
+	' that becomes green again!'
74
+));
75
+
76
+// ES2015 template literal
77
+log(`
78
+CPU: ${chalk.red('90%')}
79
+RAM: ${chalk.green('40%')}
80
+DISK: ${chalk.yellow('70%')}
81
+`);
82
+
83
+// ES2015 tagged template literal
84
+log(chalk`
85
+CPU: {red ${cpu.totalPercent}%}
86
+RAM: {green ${ram.used / ram.total * 100}%}
87
+DISK: {rgb(255,131,0) ${disk.used / disk.total * 100}%}
88
+`);
89
+
90
+// Use RGB colors in terminal emulators that support it.
91
+log(chalk.keyword('orange')('Yay for orange colored text!'));
92
+log(chalk.rgb(123, 45, 67).underline('Underlined reddish color'));
93
+log(chalk.hex('#DEADED').bold('Bold gray!'));
94
+```
95
+
96
+Easily define your own themes:
97
+
98
+```js
99
+const chalk = require('chalk');
100
+
101
+const error = chalk.bold.red;
102
+const warning = chalk.keyword('orange');
103
+
104
+console.log(error('Error!'));
105
+console.log(warning('Warning!'));
106
+```
107
+
108
+Take advantage of console.log [string substitution](https://nodejs.org/docs/latest/api/console.html#console_console_log_data_args):
109
+
110
+```js
111
+const name = 'Sindre';
112
+console.log(chalk.green('Hello %s'), name);
113
+//=> 'Hello Sindre'
114
+```
115
+
116
+
117
+## API
118
+
119
+### chalk.`<style>[.<style>...](string, [string...])`
120
+
121
+Example: `chalk.red.bold.underline('Hello', 'world');`
122
+
123
+Chain [styles](#styles) and call the last one as a method with a string argument. Order doesn't matter, and later styles take precedent in case of a conflict. This simply means that `chalk.red.yellow.green` is equivalent to `chalk.green`.
124
+
125
+Multiple arguments will be separated by space.
126
+
127
+### chalk.enabled
128
+
129
+Color support is automatically detected, as is the level (see `chalk.level`). However, if you'd like to simply enable/disable Chalk, you can do so via the `.enabled` property.
130
+
131
+Chalk is enabled by default unless explicitly disabled via the constructor or `chalk.level` is `0`.
132
+
133
+If you need to change this in a reusable module, create a new instance:
134
+
135
+```js
136
+const ctx = new chalk.constructor({enabled: false});
137
+```
138
+
139
+### chalk.level
140
+
141
+Color support is automatically detected, but you can override it by setting the `level` property. You should however only do this in your own code as it applies globally to all Chalk consumers.
142
+
143
+If you need to change this in a reusable module, create a new instance:
144
+
145
+```js
146
+const ctx = new chalk.constructor({level: 0});
147
+```
148
+
149
+Levels are as follows:
150
+
151
+0. All colors disabled
152
+1. Basic color support (16 colors)
153
+2. 256 color support
154
+3. Truecolor support (16 million colors)
155
+
156
+### chalk.supportsColor
157
+
158
+Detect whether the terminal [supports color](https://github.com/chalk/supports-color). Used internally and handled for you, but exposed for convenience.
159
+
160
+Can be overridden by the user with the flags `--color` and `--no-color`. For situations where using `--color` is not possible, add the environment variable `FORCE_COLOR=1` to forcefully enable color or `FORCE_COLOR=0` to forcefully disable. The use of `FORCE_COLOR` overrides all other color support checks.
161
+
162
+Explicit 256/Truecolor mode can be enabled using the `--color=256` and `--color=16m` flags, respectively.
163
+
164
+
165
+## Styles
166
+
167
+### Modifiers
168
+
169
+- `reset`
170
+- `bold`
171
+- `dim`
172
+- `italic` *(Not widely supported)*
173
+- `underline`
174
+- `inverse`
175
+- `hidden`
176
+- `strikethrough` *(Not widely supported)*
177
+- `visible` (Text is emitted only if enabled)
178
+
179
+### Colors
180
+
181
+- `black`
182
+- `red`
183
+- `green`
184
+- `yellow`
185
+- `blue` *(On Windows the bright version is used since normal blue is illegible)*
186
+- `magenta`
187
+- `cyan`
188
+- `white`
189
+- `gray` ("bright black")
190
+- `redBright`
191
+- `greenBright`
192
+- `yellowBright`
193
+- `blueBright`
194
+- `magentaBright`
195
+- `cyanBright`
196
+- `whiteBright`
197
+
198
+### Background colors
199
+
200
+- `bgBlack`
201
+- `bgRed`
202
+- `bgGreen`
203
+- `bgYellow`
204
+- `bgBlue`
205
+- `bgMagenta`
206
+- `bgCyan`
207
+- `bgWhite`
208
+- `bgBlackBright`
209
+- `bgRedBright`
210
+- `bgGreenBright`
211
+- `bgYellowBright`
212
+- `bgBlueBright`
213
+- `bgMagentaBright`
214
+- `bgCyanBright`
215
+- `bgWhiteBright`
216
+
217
+
218
+## Tagged template literal
219
+
220
+Chalk can be used as a [tagged template literal](http://exploringjs.com/es6/ch_template-literals.html#_tagged-template-literals).
221
+
222
+```js
223
+const chalk = require('chalk');
224
+
225
+const miles = 18;
226
+const calculateFeet = miles => miles * 5280;
227
+
228
+console.log(chalk`
229
+  There are {bold 5280 feet} in a mile.
230
+  In {bold ${miles} miles}, there are {green.bold ${calculateFeet(miles)} feet}.
231
+`);
232
+```
233
+
234
+Blocks are delimited by an opening curly brace (`{`), a style, some content, and a closing curly brace (`}`).
235
+
236
+Template styles are chained exactly like normal Chalk styles. The following two statements are equivalent:
237
+
238
+```js
239
+console.log(chalk.bold.rgb(10, 100, 200)('Hello!'));
240
+console.log(chalk`{bold.rgb(10,100,200) Hello!}`);
241
+```
242
+
243
+Note that function styles (`rgb()`, `hsl()`, `keyword()`, etc.) may not contain spaces between parameters.
244
+
245
+All interpolated values (`` chalk`${foo}` ``) are converted to strings via the `.toString()` method. All curly braces (`{` and `}`) in interpolated value strings are escaped.
246
+
247
+
248
+## 256 and Truecolor color support
249
+
250
+Chalk supports 256 colors and [Truecolor](https://gist.github.com/XVilka/8346728) (16 million colors) on supported terminal apps.
251
+
252
+Colors are downsampled from 16 million RGB values to an ANSI color format that is supported by the terminal emulator (or by specifying `{level: n}` as a Chalk option). For example, Chalk configured to run at level 1 (basic color support) will downsample an RGB value of #FF0000 (red) to 31 (ANSI escape for red).
253
+
254
+Examples:
255
+
256
+- `chalk.hex('#DEADED').underline('Hello, world!')`
257
+- `chalk.keyword('orange')('Some orange text')`
258
+- `chalk.rgb(15, 100, 204).inverse('Hello!')`
259
+
260
+Background versions of these models are prefixed with `bg` and the first level of the module capitalized (e.g. `keyword` for foreground colors and `bgKeyword` for background colors).
261
+
262
+- `chalk.bgHex('#DEADED').underline('Hello, world!')`
263
+- `chalk.bgKeyword('orange')('Some orange text')`
264
+- `chalk.bgRgb(15, 100, 204).inverse('Hello!')`
265
+
266
+The following color models can be used:
267
+
268
+- [`rgb`](https://en.wikipedia.org/wiki/RGB_color_model) - Example: `chalk.rgb(255, 136, 0).bold('Orange!')`
269
+- [`hex`](https://en.wikipedia.org/wiki/Web_colors#Hex_triplet) - Example: `chalk.hex('#FF8800').bold('Orange!')`
270
+- [`keyword`](https://www.w3.org/wiki/CSS/Properties/color/keywords) (CSS keywords) - Example: `chalk.keyword('orange').bold('Orange!')`
271
+- [`hsl`](https://en.wikipedia.org/wiki/HSL_and_HSV) - Example: `chalk.hsl(32, 100, 50).bold('Orange!')`
272
+- [`hsv`](https://en.wikipedia.org/wiki/HSL_and_HSV) - Example: `chalk.hsv(32, 100, 100).bold('Orange!')`
273
+- [`hwb`](https://en.wikipedia.org/wiki/HWB_color_model)  - Example: `chalk.hwb(32, 0, 50).bold('Orange!')`
274
+- `ansi16`
275
+- `ansi256`
276
+
277
+
278
+## Windows
279
+
280
+If you're on Windows, do yourself a favor and use [`cmder`](http://cmder.net/) instead of `cmd.exe`.
281
+
282
+
283
+## Origin story
284
+
285
+[colors.js](https://github.com/Marak/colors.js) used to be the most popular string styling module, but it has serious deficiencies like extending `String.prototype` which causes all kinds of [problems](https://github.com/yeoman/yo/issues/68) and the package is unmaintained. Although there are other packages, they either do too much or not enough. Chalk is a clean and focused alternative.
286
+
287
+
288
+## Related
289
+
290
+- [chalk-cli](https://github.com/chalk/chalk-cli) - CLI for this module
291
+- [ansi-styles](https://github.com/chalk/ansi-styles) - ANSI escape codes for styling strings in the terminal
292
+- [supports-color](https://github.com/chalk/supports-color) - Detect whether a terminal supports color
293
+- [strip-ansi](https://github.com/chalk/strip-ansi) - Strip ANSI escape codes
294
+- [strip-ansi-stream](https://github.com/chalk/strip-ansi-stream) - Strip ANSI escape codes from a stream
295
+- [has-ansi](https://github.com/chalk/has-ansi) - Check if a string has ANSI escape codes
296
+- [ansi-regex](https://github.com/chalk/ansi-regex) - Regular expression for matching ANSI escape codes
297
+- [wrap-ansi](https://github.com/chalk/wrap-ansi) - Wordwrap a string with ANSI escape codes
298
+- [slice-ansi](https://github.com/chalk/slice-ansi) - Slice a string with ANSI escape codes
299
+- [color-convert](https://github.com/qix-/color-convert) - Converts colors between different models
300
+- [chalk-animation](https://github.com/bokub/chalk-animation) - Animate strings in the terminal
301
+- [gradient-string](https://github.com/bokub/gradient-string) - Apply color gradients to strings
302
+- [chalk-pipe](https://github.com/LitoMore/chalk-pipe) - Create chalk style schemes with simpler style strings
303
+- [terminal-link](https://github.com/sindresorhus/terminal-link) - Create clickable links in the terminal
304
+
305
+
306
+## Maintainers
307
+
308
+- [Sindre Sorhus](https://github.com/sindresorhus)
309
+- [Josh Junon](https://github.com/qix-)
310
+
311
+
312
+## License
313
+
314
+MIT

+ 128
- 0
km0App/node_modules/chalk/templates.js Datei anzeigen

@@ -0,0 +1,128 @@
1
+'use strict';
2
+const TEMPLATE_REGEX = /(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi;
3
+const STYLE_REGEX = /(?:^|\.)(\w+)(?:\(([^)]*)\))?/g;
4
+const STRING_REGEX = /^(['"])((?:\\.|(?!\1)[^\\])*)\1$/;
5
+const ESCAPE_REGEX = /\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi;
6
+
7
+const ESCAPES = new Map([
8
+	['n', '\n'],
9
+	['r', '\r'],
10
+	['t', '\t'],
11
+	['b', '\b'],
12
+	['f', '\f'],
13
+	['v', '\v'],
14
+	['0', '\0'],
15
+	['\\', '\\'],
16
+	['e', '\u001B'],
17
+	['a', '\u0007']
18
+]);
19
+
20
+function unescape(c) {
21
+	if ((c[0] === 'u' && c.length === 5) || (c[0] === 'x' && c.length === 3)) {
22
+		return String.fromCharCode(parseInt(c.slice(1), 16));
23
+	}
24
+
25
+	return ESCAPES.get(c) || c;
26
+}
27
+
28
+function parseArguments(name, args) {
29
+	const results = [];
30
+	const chunks = args.trim().split(/\s*,\s*/g);
31
+	let matches;
32
+
33
+	for (const chunk of chunks) {
34
+		if (!isNaN(chunk)) {
35
+			results.push(Number(chunk));
36
+		} else if ((matches = chunk.match(STRING_REGEX))) {
37
+			results.push(matches[2].replace(ESCAPE_REGEX, (m, escape, chr) => escape ? unescape(escape) : chr));
38
+		} else {
39
+			throw new Error(`Invalid Chalk template style argument: ${chunk} (in style '${name}')`);
40
+		}
41
+	}
42
+
43
+	return results;
44
+}
45
+
46
+function parseStyle(style) {
47
+	STYLE_REGEX.lastIndex = 0;
48
+
49
+	const results = [];
50
+	let matches;
51
+
52
+	while ((matches = STYLE_REGEX.exec(style)) !== null) {
53
+		const name = matches[1];
54
+
55
+		if (matches[2]) {
56
+			const args = parseArguments(name, matches[2]);
57
+			results.push([name].concat(args));
58
+		} else {
59
+			results.push([name]);
60
+		}
61
+	}
62
+
63
+	return results;
64
+}
65
+
66
+function buildStyle(chalk, styles) {
67
+	const enabled = {};
68
+
69
+	for (const layer of styles) {
70
+		for (const style of layer.styles) {
71
+			enabled[style[0]] = layer.inverse ? null : style.slice(1);
72
+		}
73
+	}
74
+
75
+	let current = chalk;
76
+	for (const styleName of Object.keys(enabled)) {
77
+		if (Array.isArray(enabled[styleName])) {
78
+			if (!(styleName in current)) {
79
+				throw new Error(`Unknown Chalk style: ${styleName}`);
80
+			}
81
+
82
+			if (enabled[styleName].length > 0) {
83
+				current = current[styleName].apply(current, enabled[styleName]);
84
+			} else {
85
+				current = current[styleName];
86
+			}
87
+		}
88
+	}
89
+
90
+	return current;
91
+}
92
+
93
+module.exports = (chalk, tmp) => {
94
+	const styles = [];
95
+	const chunks = [];
96
+	let chunk = [];
97
+
98
+	// eslint-disable-next-line max-params
99
+	tmp.replace(TEMPLATE_REGEX, (m, escapeChar, inverse, style, close, chr) => {
100
+		if (escapeChar) {
101
+			chunk.push(unescape(escapeChar));
102
+		} else if (style) {
103
+			const str = chunk.join('');
104
+			chunk = [];
105
+			chunks.push(styles.length === 0 ? str : buildStyle(chalk, styles)(str));
106
+			styles.push({inverse, styles: parseStyle(style)});
107
+		} else if (close) {
108
+			if (styles.length === 0) {
109
+				throw new Error('Found extraneous } in Chalk template literal');
110
+			}
111
+
112
+			chunks.push(buildStyle(chalk, styles)(chunk.join('')));
113
+			chunk = [];
114
+			styles.pop();
115
+		} else {
116
+			chunk.push(chr);
117
+		}
118
+	});
119
+
120
+	chunks.push(chunk.join(''));
121
+
122
+	if (styles.length > 0) {
123
+		const errMsg = `Chalk template literal is missing ${styles.length} closing bracket${styles.length === 1 ? '' : 's'} (\`}\`)`;
124
+		throw new Error(errMsg);
125
+	}
126
+
127
+	return chunks.join('');
128
+};

+ 97
- 0
km0App/node_modules/chalk/types/index.d.ts Datei anzeigen

@@ -0,0 +1,97 @@
1
+// Type definitions for Chalk
2
+// Definitions by: Thomas Sauer <https://github.com/t-sauer>
3
+
4
+export const enum Level {
5
+	None = 0,
6
+	Basic = 1,
7
+	Ansi256 = 2,
8
+	TrueColor = 3
9
+}
10
+
11
+export interface ChalkOptions {
12
+	enabled?: boolean;
13
+	level?: Level;
14
+}
15
+
16
+export interface ChalkConstructor {
17
+	new (options?: ChalkOptions): Chalk;
18
+	(options?: ChalkOptions): Chalk;
19
+}
20
+
21
+export interface ColorSupport {
22
+	level: Level;
23
+	hasBasic: boolean;
24
+	has256: boolean;
25
+	has16m: boolean;
26
+}
27
+
28
+export interface Chalk {
29
+	(...text: string[]): string;
30
+	(text: TemplateStringsArray, ...placeholders: string[]): string;
31
+	constructor: ChalkConstructor;
32
+	enabled: boolean;
33
+	level: Level;
34
+	rgb(r: number, g: number, b: number): this;
35
+	hsl(h: number, s: number, l: number): this;
36
+	hsv(h: number, s: number, v: number): this;
37
+	hwb(h: number, w: number, b: number): this;
38
+	bgHex(color: string): this;
39
+	bgKeyword(color: string): this;
40
+	bgRgb(r: number, g: number, b: number): this;
41
+	bgHsl(h: number, s: number, l: number): this;
42
+	bgHsv(h: number, s: number, v: number): this;
43
+	bgHwb(h: number, w: number, b: number): this;
44
+	hex(color: string): this;
45
+	keyword(color: string): this;
46
+
47
+	readonly reset: this;
48
+	readonly bold: this;
49
+	readonly dim: this;
50
+	readonly italic: this;
51
+	readonly underline: this;
52
+	readonly inverse: this;
53
+	readonly hidden: this;
54
+	readonly strikethrough: this;
55
+
56
+	readonly visible: this;
57
+
58
+	readonly black: this;
59
+	readonly red: this;
60
+	readonly green: this;
61
+	readonly yellow: this;
62
+	readonly blue: this;
63
+	readonly magenta: this;
64
+	readonly cyan: this;
65
+	readonly white: this;
66
+	readonly gray: this;
67
+	readonly grey: this;
68
+	readonly blackBright: this;
69
+	readonly redBright: this;
70
+	readonly greenBright: this;
71
+	readonly yellowBright: this;
72
+	readonly blueBright: this;
73
+	readonly magentaBright: this;
74
+	readonly cyanBright: this;
75
+	readonly whiteBright: this;
76
+
77
+	readonly bgBlack: this;
78
+	readonly bgRed: this;
79
+	readonly bgGreen: this;
80
+	readonly bgYellow: this;
81
+	readonly bgBlue: this;
82
+	readonly bgMagenta: this;
83
+	readonly bgCyan: this;
84
+	readonly bgWhite: this;
85
+	readonly bgBlackBright: this;
86
+	readonly bgRedBright: this;
87
+	readonly bgGreenBright: this;
88
+	readonly bgYellowBright: this;
89
+	readonly bgBlueBright: this;
90
+	readonly bgMagentaBright: this;
91
+	readonly bgCyanBright: this;
92
+	readonly bgWhiteBright: this;
93
+}
94
+
95
+declare const chalk: Chalk & { supportsColor: ColorSupport };
96
+
97
+export default chalk

+ 54
- 0
km0App/node_modules/color-convert/CHANGELOG.md Datei anzeigen

@@ -0,0 +1,54 @@
1
+# 1.0.0 - 2016-01-07
2
+
3
+- Removed: unused speed test
4
+- Added: Automatic routing between previously unsupported conversions
5
+([#27](https://github.com/Qix-/color-convert/pull/27))
6
+- Removed: `xxx2xxx()` and `xxx2xxxRaw()` functions
7
+([#27](https://github.com/Qix-/color-convert/pull/27))
8
+- Removed: `convert()` class
9
+([#27](https://github.com/Qix-/color-convert/pull/27))
10
+- Changed: all functions to lookup dictionary
11
+([#27](https://github.com/Qix-/color-convert/pull/27))
12
+- Changed: `ansi` to `ansi256`
13
+([#27](https://github.com/Qix-/color-convert/pull/27))
14
+- Fixed: argument grouping for functions requiring only one argument
15
+([#27](https://github.com/Qix-/color-convert/pull/27))
16
+
17
+# 0.6.0 - 2015-07-23
18
+
19
+- Added: methods to handle
20
+[ANSI](https://en.wikipedia.org/wiki/ANSI_escape_code#Colors) 16/256 colors:
21
+  - rgb2ansi16
22
+  - rgb2ansi
23
+  - hsl2ansi16
24
+  - hsl2ansi
25
+  - hsv2ansi16
26
+  - hsv2ansi
27
+  - hwb2ansi16
28
+  - hwb2ansi
29
+  - cmyk2ansi16
30
+  - cmyk2ansi
31
+  - keyword2ansi16
32
+  - keyword2ansi
33
+  - ansi162rgb
34
+  - ansi162hsl
35
+  - ansi162hsv
36
+  - ansi162hwb
37
+  - ansi162cmyk
38
+  - ansi162keyword
39
+  - ansi2rgb
40
+  - ansi2hsl
41
+  - ansi2hsv
42
+  - ansi2hwb
43
+  - ansi2cmyk
44
+  - ansi2keyword
45
+([#18](https://github.com/harthur/color-convert/pull/18))
46
+
47
+# 0.5.3 - 2015-06-02
48
+
49
+- Fixed: hsl2hsv does not return `NaN` anymore when using `[0,0,0]`
50
+([#15](https://github.com/harthur/color-convert/issues/15))
51
+
52
+---
53
+
54
+Check out commit logs for older releases

+ 21
- 0
km0App/node_modules/color-convert/LICENSE Datei anzeigen

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

+ 68
- 0
km0App/node_modules/color-convert/README.md Datei anzeigen

@@ -0,0 +1,68 @@
1
+# color-convert
2
+
3
+[![Build Status](https://travis-ci.org/Qix-/color-convert.svg?branch=master)](https://travis-ci.org/Qix-/color-convert)
4
+
5
+Color-convert is a color conversion library for JavaScript and node.
6
+It converts all ways between `rgb`, `hsl`, `hsv`, `hwb`, `cmyk`, `ansi`, `ansi16`, `hex` strings, and CSS `keyword`s (will round to closest):
7
+
8
+```js
9
+var convert = require('color-convert');
10
+
11
+convert.rgb.hsl(140, 200, 100);             // [96, 48, 59]
12
+convert.keyword.rgb('blue');                // [0, 0, 255]
13
+
14
+var rgbChannels = convert.rgb.channels;     // 3
15
+var cmykChannels = convert.cmyk.channels;   // 4
16
+var ansiChannels = convert.ansi16.channels; // 1
17
+```
18
+
19
+# Install
20
+
21
+```console
22
+$ npm install color-convert
23
+```
24
+
25
+# API
26
+
27
+Simply get the property of the _from_ and _to_ conversion that you're looking for.
28
+
29
+All functions have a rounded and unrounded variant. By default, return values are rounded. To get the unrounded (raw) results, simply tack on `.raw` to the function.
30
+
31
+All 'from' functions have a hidden property called `.channels` that indicates the number of channels the function expects (not including alpha).
32
+
33
+```js
34
+var convert = require('color-convert');
35
+
36
+// Hex to LAB
37
+convert.hex.lab('DEADBF');         // [ 76, 21, -2 ]
38
+convert.hex.lab.raw('DEADBF');     // [ 75.56213190997677, 20.653827952644754, -2.290532499330533 ]
39
+
40
+// RGB to CMYK
41
+convert.rgb.cmyk(167, 255, 4);     // [ 35, 0, 98, 0 ]
42
+convert.rgb.cmyk.raw(167, 255, 4); // [ 34.509803921568626, 0, 98.43137254901961, 0 ]
43
+```
44
+
45
+### Arrays
46
+All functions that accept multiple arguments also support passing an array.
47
+
48
+Note that this does **not** apply to functions that convert from a color that only requires one value (e.g. `keyword`, `ansi256`, `hex`, etc.)
49
+
50
+```js
51
+var convert = require('color-convert');
52
+
53
+convert.rgb.hex(123, 45, 67);      // '7B2D43'
54
+convert.rgb.hex([123, 45, 67]);    // '7B2D43'
55
+```
56
+
57
+## Routing
58
+
59
+Conversions that don't have an _explicitly_ defined conversion (in [conversions.js](conversions.js)), but can be converted by means of sub-conversions (e.g. XYZ -> **RGB** -> CMYK), are automatically routed together. This allows just about any color model supported by `color-convert` to be converted to any other model, so long as a sub-conversion path exists. This is also true for conversions requiring more than one step in between (e.g. LCH -> **LAB** -> **XYZ** -> **RGB** -> Hex).
60
+
61
+Keep in mind that extensive conversions _may_ result in a loss of precision, and exist only to be complete. For a list of "direct" (single-step) conversions, see [conversions.js](conversions.js).
62
+
63
+# Contribute
64
+
65
+If there is a new model you would like to support, or want to add a direct conversion between two existing models, please send us a pull request.
66
+
67
+# License
68
+Copyright &copy; 2011-2016, Heather Arthur and Josh Junon. Licensed under the [MIT License](LICENSE).

+ 868
- 0
km0App/node_modules/color-convert/conversions.js Datei anzeigen

@@ -0,0 +1,868 @@
1
+/* MIT license */
2
+var cssKeywords = require('color-name');
3
+
4
+// NOTE: conversions should only return primitive values (i.e. arrays, or
5
+//       values that give correct `typeof` results).
6
+//       do not use box values types (i.e. Number(), String(), etc.)
7
+
8
+var reverseKeywords = {};
9
+for (var key in cssKeywords) {
10
+	if (cssKeywords.hasOwnProperty(key)) {
11
+		reverseKeywords[cssKeywords[key]] = key;
12
+	}
13
+}
14
+
15
+var convert = module.exports = {
16
+	rgb: {channels: 3, labels: 'rgb'},
17
+	hsl: {channels: 3, labels: 'hsl'},
18
+	hsv: {channels: 3, labels: 'hsv'},
19
+	hwb: {channels: 3, labels: 'hwb'},
20
+	cmyk: {channels: 4, labels: 'cmyk'},
21
+	xyz: {channels: 3, labels: 'xyz'},
22
+	lab: {channels: 3, labels: 'lab'},
23
+	lch: {channels: 3, labels: 'lch'},
24
+	hex: {channels: 1, labels: ['hex']},
25
+	keyword: {channels: 1, labels: ['keyword']},
26
+	ansi16: {channels: 1, labels: ['ansi16']},
27
+	ansi256: {channels: 1, labels: ['ansi256']},
28
+	hcg: {channels: 3, labels: ['h', 'c', 'g']},
29
+	apple: {channels: 3, labels: ['r16', 'g16', 'b16']},
30
+	gray: {channels: 1, labels: ['gray']}
31
+};
32
+
33
+// hide .channels and .labels properties
34
+for (var model in convert) {
35
+	if (convert.hasOwnProperty(model)) {
36
+		if (!('channels' in convert[model])) {
37
+			throw new Error('missing channels property: ' + model);
38
+		}
39
+
40
+		if (!('labels' in convert[model])) {
41
+			throw new Error('missing channel labels property: ' + model);
42
+		}
43
+
44
+		if (convert[model].labels.length !== convert[model].channels) {
45
+			throw new Error('channel and label counts mismatch: ' + model);
46
+		}
47
+
48
+		var channels = convert[model].channels;
49
+		var labels = convert[model].labels;
50
+		delete convert[model].channels;
51
+		delete convert[model].labels;
52
+		Object.defineProperty(convert[model], 'channels', {value: channels});
53
+		Object.defineProperty(convert[model], 'labels', {value: labels});
54
+	}
55
+}
56
+
57
+convert.rgb.hsl = function (rgb) {
58
+	var r = rgb[0] / 255;
59
+	var g = rgb[1] / 255;
60
+	var b = rgb[2] / 255;
61
+	var min = Math.min(r, g, b);
62
+	var max = Math.max(r, g, b);
63
+	var delta = max - min;
64
+	var h;
65
+	var s;
66
+	var l;
67
+
68
+	if (max === min) {
69
+		h = 0;
70
+	} else if (r === max) {
71
+		h = (g - b) / delta;
72
+	} else if (g === max) {
73
+		h = 2 + (b - r) / delta;
74
+	} else if (b === max) {
75
+		h = 4 + (r - g) / delta;
76
+	}
77
+
78
+	h = Math.min(h * 60, 360);
79
+
80
+	if (h < 0) {
81
+		h += 360;
82
+	}
83
+
84
+	l = (min + max) / 2;
85
+
86
+	if (max === min) {
87
+		s = 0;
88
+	} else if (l <= 0.5) {
89
+		s = delta / (max + min);
90
+	} else {
91
+		s = delta / (2 - max - min);
92
+	}
93
+
94
+	return [h, s * 100, l * 100];
95
+};
96
+
97
+convert.rgb.hsv = function (rgb) {
98
+	var rdif;
99
+	var gdif;
100
+	var bdif;
101
+	var h;
102
+	var s;
103
+
104
+	var r = rgb[0] / 255;
105
+	var g = rgb[1] / 255;
106
+	var b = rgb[2] / 255;
107
+	var v = Math.max(r, g, b);
108
+	var diff = v - Math.min(r, g, b);
109
+	var diffc = function (c) {
110
+		return (v - c) / 6 / diff + 1 / 2;
111
+	};
112
+
113
+	if (diff === 0) {
114
+		h = s = 0;
115
+	} else {
116
+		s = diff / v;
117
+		rdif = diffc(r);
118
+		gdif = diffc(g);
119
+		bdif = diffc(b);
120
+
121
+		if (r === v) {
122
+			h = bdif - gdif;
123
+		} else if (g === v) {
124
+			h = (1 / 3) + rdif - bdif;
125
+		} else if (b === v) {
126
+			h = (2 / 3) + gdif - rdif;
127
+		}
128
+		if (h < 0) {
129
+			h += 1;
130
+		} else if (h > 1) {
131
+			h -= 1;
132
+		}
133
+	}
134
+
135
+	return [
136
+		h * 360,
137
+		s * 100,
138
+		v * 100
139
+	];
140
+};
141
+
142
+convert.rgb.hwb = function (rgb) {
143
+	var r = rgb[0];
144
+	var g = rgb[1];
145
+	var b = rgb[2];
146
+	var h = convert.rgb.hsl(rgb)[0];
147
+	var w = 1 / 255 * Math.min(r, Math.min(g, b));
148
+
149
+	b = 1 - 1 / 255 * Math.max(r, Math.max(g, b));
150
+
151
+	return [h, w * 100, b * 100];
152
+};
153
+
154
+convert.rgb.cmyk = function (rgb) {
155
+	var r = rgb[0] / 255;
156
+	var g = rgb[1] / 255;
157
+	var b = rgb[2] / 255;
158
+	var c;
159
+	var m;
160
+	var y;
161
+	var k;
162
+
163
+	k = Math.min(1 - r, 1 - g, 1 - b);
164
+	c = (1 - r - k) / (1 - k) || 0;
165
+	m = (1 - g - k) / (1 - k) || 0;
166
+	y = (1 - b - k) / (1 - k) || 0;
167
+
168
+	return [c * 100, m * 100, y * 100, k * 100];
169
+};
170
+
171
+/**
172
+ * See https://en.m.wikipedia.org/wiki/Euclidean_distance#Squared_Euclidean_distance
173
+ * */
174
+function comparativeDistance(x, y) {
175
+	return (
176
+		Math.pow(x[0] - y[0], 2) +
177
+		Math.pow(x[1] - y[1], 2) +
178
+		Math.pow(x[2] - y[2], 2)
179
+	);
180
+}
181
+
182
+convert.rgb.keyword = function (rgb) {
183
+	var reversed = reverseKeywords[rgb];
184
+	if (reversed) {
185
+		return reversed;
186
+	}
187
+
188
+	var currentClosestDistance = Infinity;
189
+	var currentClosestKeyword;
190
+
191
+	for (var keyword in cssKeywords) {
192
+		if (cssKeywords.hasOwnProperty(keyword)) {
193
+			var value = cssKeywords[keyword];
194
+
195
+			// Compute comparative distance
196
+			var distance = comparativeDistance(rgb, value);
197
+
198
+			// Check if its less, if so set as closest
199
+			if (distance < currentClosestDistance) {
200
+				currentClosestDistance = distance;
201
+				currentClosestKeyword = keyword;
202
+			}
203
+		}
204
+	}
205
+
206
+	return currentClosestKeyword;
207
+};
208
+
209
+convert.keyword.rgb = function (keyword) {
210
+	return cssKeywords[keyword];
211
+};
212
+
213
+convert.rgb.xyz = function (rgb) {
214
+	var r = rgb[0] / 255;
215
+	var g = rgb[1] / 255;
216
+	var b = rgb[2] / 255;
217
+
218
+	// assume sRGB
219
+	r = r > 0.04045 ? Math.pow(((r + 0.055) / 1.055), 2.4) : (r / 12.92);
220
+	g = g > 0.04045 ? Math.pow(((g + 0.055) / 1.055), 2.4) : (g / 12.92);
221
+	b = b > 0.04045 ? Math.pow(((b + 0.055) / 1.055), 2.4) : (b / 12.92);
222
+
223
+	var x = (r * 0.4124) + (g * 0.3576) + (b * 0.1805);
224
+	var y = (r * 0.2126) + (g * 0.7152) + (b * 0.0722);
225
+	var z = (r * 0.0193) + (g * 0.1192) + (b * 0.9505);
226
+
227
+	return [x * 100, y * 100, z * 100];
228
+};
229
+
230
+convert.rgb.lab = function (rgb) {
231
+	var xyz = convert.rgb.xyz(rgb);
232
+	var x = xyz[0];
233
+	var y = xyz[1];
234
+	var z = xyz[2];
235
+	var l;
236
+	var a;
237
+	var b;
238
+
239
+	x /= 95.047;
240
+	y /= 100;
241
+	z /= 108.883;
242
+
243
+	x = x > 0.008856 ? Math.pow(x, 1 / 3) : (7.787 * x) + (16 / 116);
244
+	y = y > 0.008856 ? Math.pow(y, 1 / 3) : (7.787 * y) + (16 / 116);
245
+	z = z > 0.008856 ? Math.pow(z, 1 / 3) : (7.787 * z) + (16 / 116);
246
+
247
+	l = (116 * y) - 16;
248
+	a = 500 * (x - y);
249
+	b = 200 * (y - z);
250
+
251
+	return [l, a, b];
252
+};
253
+
254
+convert.hsl.rgb = function (hsl) {
255
+	var h = hsl[0] / 360;
256
+	var s = hsl[1] / 100;
257
+	var l = hsl[2] / 100;
258
+	var t1;
259
+	var t2;
260
+	var t3;
261
+	var rgb;
262
+	var val;
263
+
264
+	if (s === 0) {
265
+		val = l * 255;
266
+		return [val, val, val];
267
+	}
268
+
269
+	if (l < 0.5) {
270
+		t2 = l * (1 + s);
271
+	} else {
272
+		t2 = l + s - l * s;
273
+	}
274
+
275
+	t1 = 2 * l - t2;
276
+
277
+	rgb = [0, 0, 0];
278
+	for (var i = 0; i < 3; i++) {
279
+		t3 = h + 1 / 3 * -(i - 1);
280
+		if (t3 < 0) {
281
+			t3++;
282
+		}
283
+		if (t3 > 1) {
284
+			t3--;
285
+		}
286
+
287
+		if (6 * t3 < 1) {
288
+			val = t1 + (t2 - t1) * 6 * t3;
289
+		} else if (2 * t3 < 1) {
290
+			val = t2;
291
+		} else if (3 * t3 < 2) {
292
+			val = t1 + (t2 - t1) * (2 / 3 - t3) * 6;
293
+		} else {
294
+			val = t1;
295
+		}
296
+
297
+		rgb[i] = val * 255;
298
+	}
299
+
300
+	return rgb;
301
+};
302
+
303
+convert.hsl.hsv = function (hsl) {
304
+	var h = hsl[0];
305
+	var s = hsl[1] / 100;
306
+	var l = hsl[2] / 100;
307
+	var smin = s;
308
+	var lmin = Math.max(l, 0.01);
309
+	var sv;
310
+	var v;
311
+
312
+	l *= 2;
313
+	s *= (l <= 1) ? l : 2 - l;
314
+	smin *= lmin <= 1 ? lmin : 2 - lmin;
315
+	v = (l + s) / 2;
316
+	sv = l === 0 ? (2 * smin) / (lmin + smin) : (2 * s) / (l + s);
317
+
318
+	return [h, sv * 100, v * 100];
319
+};
320
+
321
+convert.hsv.rgb = function (hsv) {
322
+	var h = hsv[0] / 60;
323
+	var s = hsv[1] / 100;
324
+	var v = hsv[2] / 100;
325
+	var hi = Math.floor(h) % 6;
326
+
327
+	var f = h - Math.floor(h);
328
+	var p = 255 * v * (1 - s);
329
+	var q = 255 * v * (1 - (s * f));
330
+	var t = 255 * v * (1 - (s * (1 - f)));
331
+	v *= 255;
332
+
333
+	switch (hi) {
334
+		case 0:
335
+			return [v, t, p];
336
+		case 1:
337
+			return [q, v, p];
338
+		case 2:
339
+			return [p, v, t];
340
+		case 3:
341
+			return [p, q, v];
342
+		case 4:
343
+			return [t, p, v];
344
+		case 5:
345
+			return [v, p, q];
346
+	}
347
+};
348
+
349
+convert.hsv.hsl = function (hsv) {
350
+	var h = hsv[0];
351
+	var s = hsv[1] / 100;
352
+	var v = hsv[2] / 100;
353
+	var vmin = Math.max(v, 0.01);
354
+	var lmin;
355
+	var sl;
356
+	var l;
357
+
358
+	l = (2 - s) * v;
359
+	lmin = (2 - s) * vmin;
360
+	sl = s * vmin;
361
+	sl /= (lmin <= 1) ? lmin : 2 - lmin;
362
+	sl = sl || 0;
363
+	l /= 2;
364
+
365
+	return [h, sl * 100, l * 100];
366
+};
367
+
368
+// http://dev.w3.org/csswg/css-color/#hwb-to-rgb
369
+convert.hwb.rgb = function (hwb) {
370
+	var h = hwb[0] / 360;
371
+	var wh = hwb[1] / 100;
372
+	var bl = hwb[2] / 100;
373
+	var ratio = wh + bl;
374
+	var i;
375
+	var v;
376
+	var f;
377
+	var n;
378
+
379
+	// wh + bl cant be > 1
380
+	if (ratio > 1) {
381
+		wh /= ratio;
382
+		bl /= ratio;
383
+	}
384
+
385
+	i = Math.floor(6 * h);
386
+	v = 1 - bl;
387
+	f = 6 * h - i;
388
+
389
+	if ((i & 0x01) !== 0) {
390
+		f = 1 - f;
391
+	}
392
+
393
+	n = wh + f * (v - wh); // linear interpolation
394
+
395
+	var r;
396
+	var g;
397
+	var b;
398
+	switch (i) {
399
+		default:
400
+		case 6:
401
+		case 0: r = v; g = n; b = wh; break;
402
+		case 1: r = n; g = v; b = wh; break;
403
+		case 2: r = wh; g = v; b = n; break;
404
+		case 3: r = wh; g = n; b = v; break;
405
+		case 4: r = n; g = wh; b = v; break;
406
+		case 5: r = v; g = wh; b = n; break;
407
+	}
408
+
409
+	return [r * 255, g * 255, b * 255];
410
+};
411
+
412
+convert.cmyk.rgb = function (cmyk) {
413
+	var c = cmyk[0] / 100;
414
+	var m = cmyk[1] / 100;
415
+	var y = cmyk[2] / 100;
416
+	var k = cmyk[3] / 100;
417
+	var r;
418
+	var g;
419
+	var b;
420
+
421
+	r = 1 - Math.min(1, c * (1 - k) + k);
422
+	g = 1 - Math.min(1, m * (1 - k) + k);
423
+	b = 1 - Math.min(1, y * (1 - k) + k);
424
+
425
+	return [r * 255, g * 255, b * 255];
426
+};
427
+
428
+convert.xyz.rgb = function (xyz) {
429
+	var x = xyz[0] / 100;
430
+	var y = xyz[1] / 100;
431
+	var z = xyz[2] / 100;
432
+	var r;
433
+	var g;
434
+	var b;
435
+
436
+	r = (x * 3.2406) + (y * -1.5372) + (z * -0.4986);
437
+	g = (x * -0.9689) + (y * 1.8758) + (z * 0.0415);
438
+	b = (x * 0.0557) + (y * -0.2040) + (z * 1.0570);
439
+
440
+	// assume sRGB
441
+	r = r > 0.0031308
442
+		? ((1.055 * Math.pow(r, 1.0 / 2.4)) - 0.055)
443
+		: r * 12.92;
444
+
445
+	g = g > 0.0031308
446
+		? ((1.055 * Math.pow(g, 1.0 / 2.4)) - 0.055)
447
+		: g * 12.92;
448
+
449
+	b = b > 0.0031308
450
+		? ((1.055 * Math.pow(b, 1.0 / 2.4)) - 0.055)
451
+		: b * 12.92;
452
+
453
+	r = Math.min(Math.max(0, r), 1);
454
+	g = Math.min(Math.max(0, g), 1);
455
+	b = Math.min(Math.max(0, b), 1);
456
+
457
+	return [r * 255, g * 255, b * 255];
458
+};
459
+
460
+convert.xyz.lab = function (xyz) {
461
+	var x = xyz[0];
462
+	var y = xyz[1];
463
+	var z = xyz[2];
464
+	var l;
465
+	var a;
466
+	var b;
467
+
468
+	x /= 95.047;
469
+	y /= 100;
470
+	z /= 108.883;
471
+
472
+	x = x > 0.008856 ? Math.pow(x, 1 / 3) : (7.787 * x) + (16 / 116);
473
+	y = y > 0.008856 ? Math.pow(y, 1 / 3) : (7.787 * y) + (16 / 116);
474
+	z = z > 0.008856 ? Math.pow(z, 1 / 3) : (7.787 * z) + (16 / 116);
475
+
476
+	l = (116 * y) - 16;
477
+	a = 500 * (x - y);
478
+	b = 200 * (y - z);
479
+
480
+	return [l, a, b];
481
+};
482
+
483
+convert.lab.xyz = function (lab) {
484
+	var l = lab[0];
485
+	var a = lab[1];
486
+	var b = lab[2];
487
+	var x;
488
+	var y;
489
+	var z;
490
+
491
+	y = (l + 16) / 116;
492
+	x = a / 500 + y;
493
+	z = y - b / 200;
494
+
495
+	var y2 = Math.pow(y, 3);
496
+	var x2 = Math.pow(x, 3);
497
+	var z2 = Math.pow(z, 3);
498
+	y = y2 > 0.008856 ? y2 : (y - 16 / 116) / 7.787;
499
+	x = x2 > 0.008856 ? x2 : (x - 16 / 116) / 7.787;
500
+	z = z2 > 0.008856 ? z2 : (z - 16 / 116) / 7.787;
501
+
502
+	x *= 95.047;
503
+	y *= 100;
504
+	z *= 108.883;
505
+
506
+	return [x, y, z];
507
+};
508
+
509
+convert.lab.lch = function (lab) {
510
+	var l = lab[0];
511
+	var a = lab[1];
512
+	var b = lab[2];
513
+	var hr;
514
+	var h;
515
+	var c;
516
+
517
+	hr = Math.atan2(b, a);
518
+	h = hr * 360 / 2 / Math.PI;
519
+
520
+	if (h < 0) {
521
+		h += 360;
522
+	}
523
+
524
+	c = Math.sqrt(a * a + b * b);
525
+
526
+	return [l, c, h];
527
+};
528
+
529
+convert.lch.lab = function (lch) {
530
+	var l = lch[0];
531
+	var c = lch[1];
532
+	var h = lch[2];
533
+	var a;
534
+	var b;
535
+	var hr;
536
+
537
+	hr = h / 360 * 2 * Math.PI;
538
+	a = c * Math.cos(hr);
539
+	b = c * Math.sin(hr);
540
+
541
+	return [l, a, b];
542
+};
543
+
544
+convert.rgb.ansi16 = function (args) {
545
+	var r = args[0];
546
+	var g = args[1];
547
+	var b = args[2];
548
+	var value = 1 in arguments ? arguments[1] : convert.rgb.hsv(args)[2]; // hsv -> ansi16 optimization
549
+
550
+	value = Math.round(value / 50);
551
+
552
+	if (value === 0) {
553
+		return 30;
554
+	}
555
+
556
+	var ansi = 30
557
+		+ ((Math.round(b / 255) << 2)
558
+		| (Math.round(g / 255) << 1)
559
+		| Math.round(r / 255));
560
+
561
+	if (value === 2) {
562
+		ansi += 60;
563
+	}
564
+
565
+	return ansi;
566
+};
567
+
568
+convert.hsv.ansi16 = function (args) {
569
+	// optimization here; we already know the value and don't need to get
570
+	// it converted for us.
571
+	return convert.rgb.ansi16(convert.hsv.rgb(args), args[2]);
572
+};
573
+
574
+convert.rgb.ansi256 = function (args) {
575
+	var r = args[0];
576
+	var g = args[1];
577
+	var b = args[2];
578
+
579
+	// we use the extended greyscale palette here, with the exception of
580
+	// black and white. normal palette only has 4 greyscale shades.
581
+	if (r === g && g === b) {
582
+		if (r < 8) {
583
+			return 16;
584
+		}
585
+
586
+		if (r > 248) {
587
+			return 231;
588
+		}
589
+
590
+		return Math.round(((r - 8) / 247) * 24) + 232;
591
+	}
592
+
593
+	var ansi = 16
594
+		+ (36 * Math.round(r / 255 * 5))
595
+		+ (6 * Math.round(g / 255 * 5))
596
+		+ Math.round(b / 255 * 5);
597
+
598
+	return ansi;
599
+};
600
+
601
+convert.ansi16.rgb = function (args) {
602
+	var color = args % 10;
603
+
604
+	// handle greyscale
605
+	if (color === 0 || color === 7) {
606
+		if (args > 50) {
607
+			color += 3.5;
608
+		}
609
+
610
+		color = color / 10.5 * 255;
611
+
612
+		return [color, color, color];
613
+	}
614
+
615
+	var mult = (~~(args > 50) + 1) * 0.5;
616
+	var r = ((color & 1) * mult) * 255;
617
+	var g = (((color >> 1) & 1) * mult) * 255;
618
+	var b = (((color >> 2) & 1) * mult) * 255;
619
+
620
+	return [r, g, b];
621
+};
622
+
623
+convert.ansi256.rgb = function (args) {
624
+	// handle greyscale
625
+	if (args >= 232) {
626
+		var c = (args - 232) * 10 + 8;
627
+		return [c, c, c];
628
+	}
629
+
630
+	args -= 16;
631
+
632
+	var rem;
633
+	var r = Math.floor(args / 36) / 5 * 255;
634
+	var g = Math.floor((rem = args % 36) / 6) / 5 * 255;
635
+	var b = (rem % 6) / 5 * 255;
636
+
637
+	return [r, g, b];
638
+};
639
+
640
+convert.rgb.hex = function (args) {
641
+	var integer = ((Math.round(args[0]) & 0xFF) << 16)
642
+		+ ((Math.round(args[1]) & 0xFF) << 8)
643
+		+ (Math.round(args[2]) & 0xFF);
644
+
645
+	var string = integer.toString(16).toUpperCase();
646
+	return '000000'.substring(string.length) + string;
647
+};
648
+
649
+convert.hex.rgb = function (args) {
650
+	var match = args.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);
651
+	if (!match) {
652
+		return [0, 0, 0];
653
+	}
654
+
655
+	var colorString = match[0];
656
+
657
+	if (match[0].length === 3) {
658
+		colorString = colorString.split('').map(function (char) {
659
+			return char + char;
660
+		}).join('');
661
+	}
662
+
663
+	var integer = parseInt(colorString, 16);
664
+	var r = (integer >> 16) & 0xFF;
665
+	var g = (integer >> 8) & 0xFF;
666
+	var b = integer & 0xFF;
667
+
668
+	return [r, g, b];
669
+};
670
+
671
+convert.rgb.hcg = function (rgb) {
672
+	var r = rgb[0] / 255;
673
+	var g = rgb[1] / 255;
674
+	var b = rgb[2] / 255;
675
+	var max = Math.max(Math.max(r, g), b);
676
+	var min = Math.min(Math.min(r, g), b);
677
+	var chroma = (max - min);
678
+	var grayscale;
679
+	var hue;
680
+
681
+	if (chroma < 1) {
682
+		grayscale = min / (1 - chroma);
683
+	} else {
684
+		grayscale = 0;
685
+	}
686
+
687
+	if (chroma <= 0) {
688
+		hue = 0;
689
+	} else
690
+	if (max === r) {
691
+		hue = ((g - b) / chroma) % 6;
692
+	} else
693
+	if (max === g) {
694
+		hue = 2 + (b - r) / chroma;
695
+	} else {
696
+		hue = 4 + (r - g) / chroma + 4;
697
+	}
698
+
699
+	hue /= 6;
700
+	hue %= 1;
701
+
702
+	return [hue * 360, chroma * 100, grayscale * 100];
703
+};
704
+
705
+convert.hsl.hcg = function (hsl) {
706
+	var s = hsl[1] / 100;
707
+	var l = hsl[2] / 100;
708
+	var c = 1;
709
+	var f = 0;
710
+
711
+	if (l < 0.5) {
712
+		c = 2.0 * s * l;
713
+	} else {
714
+		c = 2.0 * s * (1.0 - l);
715
+	}
716
+
717
+	if (c < 1.0) {
718
+		f = (l - 0.5 * c) / (1.0 - c);
719
+	}
720
+
721
+	return [hsl[0], c * 100, f * 100];
722
+};
723
+
724
+convert.hsv.hcg = function (hsv) {
725
+	var s = hsv[1] / 100;
726
+	var v = hsv[2] / 100;
727
+
728
+	var c = s * v;
729
+	var f = 0;
730
+
731
+	if (c < 1.0) {
732
+		f = (v - c) / (1 - c);
733
+	}
734
+
735
+	return [hsv[0], c * 100, f * 100];
736
+};
737
+
738
+convert.hcg.rgb = function (hcg) {
739
+	var h = hcg[0] / 360;
740
+	var c = hcg[1] / 100;
741
+	var g = hcg[2] / 100;
742
+
743
+	if (c === 0.0) {
744
+		return [g * 255, g * 255, g * 255];
745
+	}
746
+
747
+	var pure = [0, 0, 0];
748
+	var hi = (h % 1) * 6;
749
+	var v = hi % 1;
750
+	var w = 1 - v;
751
+	var mg = 0;
752
+
753
+	switch (Math.floor(hi)) {
754
+		case 0:
755
+			pure[0] = 1; pure[1] = v; pure[2] = 0; break;
756
+		case 1:
757
+			pure[0] = w; pure[1] = 1; pure[2] = 0; break;
758
+		case 2:
759
+			pure[0] = 0; pure[1] = 1; pure[2] = v; break;
760
+		case 3:
761
+			pure[0] = 0; pure[1] = w; pure[2] = 1; break;
762
+		case 4:
763
+			pure[0] = v; pure[1] = 0; pure[2] = 1; break;
764
+		default:
765
+			pure[0] = 1; pure[1] = 0; pure[2] = w;
766
+	}
767
+
768
+	mg = (1.0 - c) * g;
769
+
770
+	return [
771
+		(c * pure[0] + mg) * 255,
772
+		(c * pure[1] + mg) * 255,
773
+		(c * pure[2] + mg) * 255
774
+	];
775
+};
776
+
777
+convert.hcg.hsv = function (hcg) {
778
+	var c = hcg[1] / 100;
779
+	var g = hcg[2] / 100;
780
+
781
+	var v = c + g * (1.0 - c);
782
+	var f = 0;
783
+
784
+	if (v > 0.0) {
785
+		f = c / v;
786
+	}
787
+
788
+	return [hcg[0], f * 100, v * 100];
789
+};
790
+
791
+convert.hcg.hsl = function (hcg) {
792
+	var c = hcg[1] / 100;
793
+	var g = hcg[2] / 100;
794
+
795
+	var l = g * (1.0 - c) + 0.5 * c;
796
+	var s = 0;
797
+
798
+	if (l > 0.0 && l < 0.5) {
799
+		s = c / (2 * l);
800
+	} else
801
+	if (l >= 0.5 && l < 1.0) {
802
+		s = c / (2 * (1 - l));
803
+	}
804
+
805
+	return [hcg[0], s * 100, l * 100];
806
+};
807
+
808
+convert.hcg.hwb = function (hcg) {
809
+	var c = hcg[1] / 100;
810
+	var g = hcg[2] / 100;
811
+	var v = c + g * (1.0 - c);
812
+	return [hcg[0], (v - c) * 100, (1 - v) * 100];
813
+};
814
+
815
+convert.hwb.hcg = function (hwb) {
816
+	var w = hwb[1] / 100;
817
+	var b = hwb[2] / 100;
818
+	var v = 1 - b;
819
+	var c = v - w;
820
+	var g = 0;
821
+
822
+	if (c < 1) {
823
+		g = (v - c) / (1 - c);
824
+	}
825
+
826
+	return [hwb[0], c * 100, g * 100];
827
+};
828
+
829
+convert.apple.rgb = function (apple) {
830
+	return [(apple[0] / 65535) * 255, (apple[1] / 65535) * 255, (apple[2] / 65535) * 255];
831
+};
832
+
833
+convert.rgb.apple = function (rgb) {
834
+	return [(rgb[0] / 255) * 65535, (rgb[1] / 255) * 65535, (rgb[2] / 255) * 65535];
835
+};
836
+
837
+convert.gray.rgb = function (args) {
838
+	return [args[0] / 100 * 255, args[0] / 100 * 255, args[0] / 100 * 255];
839
+};
840
+
841
+convert.gray.hsl = convert.gray.hsv = function (args) {
842
+	return [0, 0, args[0]];
843
+};
844
+
845
+convert.gray.hwb = function (gray) {
846
+	return [0, 100, gray[0]];
847
+};
848
+
849
+convert.gray.cmyk = function (gray) {
850
+	return [0, 0, 0, gray[0]];
851
+};
852
+
853
+convert.gray.lab = function (gray) {
854
+	return [gray[0], 0, 0];
855
+};
856
+
857
+convert.gray.hex = function (gray) {
858
+	var val = Math.round(gray[0] / 100 * 255) & 0xFF;
859
+	var integer = (val << 16) + (val << 8) + val;
860
+
861
+	var string = integer.toString(16).toUpperCase();
862
+	return '000000'.substring(string.length) + string;
863
+};
864
+
865
+convert.rgb.gray = function (rgb) {
866
+	var val = (rgb[0] + rgb[1] + rgb[2]) / 3;
867
+	return [val / 255 * 100];
868
+};

+ 78
- 0
km0App/node_modules/color-convert/index.js Datei anzeigen

@@ -0,0 +1,78 @@
1
+var conversions = require('./conversions');
2
+var route = require('./route');
3
+
4
+var convert = {};
5
+
6
+var models = Object.keys(conversions);
7
+
8
+function wrapRaw(fn) {
9
+	var wrappedFn = function (args) {
10
+		if (args === undefined || args === null) {
11
+			return args;
12
+		}
13
+
14
+		if (arguments.length > 1) {
15
+			args = Array.prototype.slice.call(arguments);
16
+		}
17
+
18
+		return fn(args);
19
+	};
20
+
21
+	// preserve .conversion property if there is one
22
+	if ('conversion' in fn) {
23
+		wrappedFn.conversion = fn.conversion;
24
+	}
25
+
26
+	return wrappedFn;
27
+}
28
+
29
+function wrapRounded(fn) {
30
+	var wrappedFn = function (args) {
31
+		if (args === undefined || args === null) {
32
+			return args;
33
+		}
34
+
35
+		if (arguments.length > 1) {
36
+			args = Array.prototype.slice.call(arguments);
37
+		}
38
+
39
+		var result = fn(args);
40
+
41
+		// we're assuming the result is an array here.
42
+		// see notice in conversions.js; don't use box types
43
+		// in conversion functions.
44
+		if (typeof result === 'object') {
45
+			for (var len = result.length, i = 0; i < len; i++) {
46
+				result[i] = Math.round(result[i]);
47
+			}
48
+		}
49
+
50
+		return result;
51
+	};
52
+
53
+	// preserve .conversion property if there is one
54
+	if ('conversion' in fn) {
55
+		wrappedFn.conversion = fn.conversion;
56
+	}
57
+
58
+	return wrappedFn;
59
+}
60
+
61
+models.forEach(function (fromModel) {
62
+	convert[fromModel] = {};
63
+
64
+	Object.defineProperty(convert[fromModel], 'channels', {value: conversions[fromModel].channels});
65
+	Object.defineProperty(convert[fromModel], 'labels', {value: conversions[fromModel].labels});
66
+
67
+	var routes = route(fromModel);
68
+	var routeModels = Object.keys(routes);
69
+
70
+	routeModels.forEach(function (toModel) {
71
+		var fn = routes[toModel];
72
+
73
+		convert[fromModel][toModel] = wrapRounded(fn);
74
+		convert[fromModel][toModel].raw = wrapRaw(fn);
75
+	});
76
+});
77
+
78
+module.exports = convert;

+ 81
- 0
km0App/node_modules/color-convert/package.json Datei anzeigen

@@ -0,0 +1,81 @@
1
+{
2
+  "_from": "color-convert@^1.9.0",
3
+  "_id": "color-convert@1.9.3",
4
+  "_inBundle": false,
5
+  "_integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==",
6
+  "_location": "/color-convert",
7
+  "_phantomChildren": {},
8
+  "_requested": {
9
+    "type": "range",
10
+    "registry": true,
11
+    "raw": "color-convert@^1.9.0",
12
+    "name": "color-convert",
13
+    "escapedName": "color-convert",
14
+    "rawSpec": "^1.9.0",
15
+    "saveSpec": null,
16
+    "fetchSpec": "^1.9.0"
17
+  },
18
+  "_requiredBy": [
19
+    "/ansi-styles"
20
+  ],
21
+  "_resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz",
22
+  "_shasum": "bb71850690e1f136567de629d2d5471deda4c1e8",
23
+  "_spec": "color-convert@^1.9.0",
24
+  "_where": "/home/luis/Software/kilometro0/km0App/node_modules/ansi-styles",
25
+  "author": {
26
+    "name": "Heather Arthur",
27
+    "email": "fayearthur@gmail.com"
28
+  },
29
+  "bugs": {
30
+    "url": "https://github.com/Qix-/color-convert/issues"
31
+  },
32
+  "bundleDependencies": false,
33
+  "dependencies": {
34
+    "color-name": "1.1.3"
35
+  },
36
+  "deprecated": false,
37
+  "description": "Plain color conversion functions",
38
+  "devDependencies": {
39
+    "chalk": "1.1.1",
40
+    "xo": "0.11.2"
41
+  },
42
+  "files": [
43
+    "index.js",
44
+    "conversions.js",
45
+    "css-keywords.js",
46
+    "route.js"
47
+  ],
48
+  "homepage": "https://github.com/Qix-/color-convert#readme",
49
+  "keywords": [
50
+    "color",
51
+    "colour",
52
+    "convert",
53
+    "converter",
54
+    "conversion",
55
+    "rgb",
56
+    "hsl",
57
+    "hsv",
58
+    "hwb",
59
+    "cmyk",
60
+    "ansi",
61
+    "ansi16"
62
+  ],
63
+  "license": "MIT",
64
+  "name": "color-convert",
65
+  "repository": {
66
+    "type": "git",
67
+    "url": "git+https://github.com/Qix-/color-convert.git"
68
+  },
69
+  "scripts": {
70
+    "pretest": "xo",
71
+    "test": "node test/basic.js"
72
+  },
73
+  "version": "1.9.3",
74
+  "xo": {
75
+    "rules": {
76
+      "default-case": 0,
77
+      "no-inline-comments": 0,
78
+      "operator-linebreak": 0
79
+    }
80
+  }
81
+}

+ 97
- 0
km0App/node_modules/color-convert/route.js Datei anzeigen

@@ -0,0 +1,97 @@
1
+var conversions = require('./conversions');
2
+
3
+/*
4
+	this function routes a model to all other models.
5
+
6
+	all functions that are routed have a property `.conversion` attached
7
+	to the returned synthetic function. This property is an array
8
+	of strings, each with the steps in between the 'from' and 'to'
9
+	color models (inclusive).
10
+
11
+	conversions that are not possible simply are not included.
12
+*/
13
+
14
+function buildGraph() {
15
+	var graph = {};
16
+	// https://jsperf.com/object-keys-vs-for-in-with-closure/3
17
+	var models = Object.keys(conversions);
18
+
19
+	for (var len = models.length, i = 0; i < len; i++) {
20
+		graph[models[i]] = {
21
+			// http://jsperf.com/1-vs-infinity
22
+			// micro-opt, but this is simple.
23
+			distance: -1,
24
+			parent: null
25
+		};
26
+	}
27
+
28
+	return graph;
29
+}
30
+
31
+// https://en.wikipedia.org/wiki/Breadth-first_search
32
+function deriveBFS(fromModel) {
33
+	var graph = buildGraph();
34
+	var queue = [fromModel]; // unshift -> queue -> pop
35
+
36
+	graph[fromModel].distance = 0;
37
+
38
+	while (queue.length) {
39
+		var current = queue.pop();
40
+		var adjacents = Object.keys(conversions[current]);
41
+
42
+		for (var len = adjacents.length, i = 0; i < len; i++) {
43
+			var adjacent = adjacents[i];
44
+			var node = graph[adjacent];
45
+
46
+			if (node.distance === -1) {
47
+				node.distance = graph[current].distance + 1;
48
+				node.parent = current;
49
+				queue.unshift(adjacent);
50
+			}
51
+		}
52
+	}
53
+
54
+	return graph;
55
+}
56
+
57
+function link(from, to) {
58
+	return function (args) {
59
+		return to(from(args));
60
+	};
61
+}
62
+
63
+function wrapConversion(toModel, graph) {
64
+	var path = [graph[toModel].parent, toModel];
65
+	var fn = conversions[graph[toModel].parent][toModel];
66
+
67
+	var cur = graph[toModel].parent;
68
+	while (graph[cur].parent) {
69
+		path.unshift(graph[cur].parent);
70
+		fn = link(conversions[graph[cur].parent][cur], fn);
71
+		cur = graph[cur].parent;
72
+	}
73
+
74
+	fn.conversion = path;
75
+	return fn;
76
+}
77
+
78
+module.exports = function (fromModel) {
79
+	var graph = deriveBFS(fromModel);
80
+	var conversion = {};
81
+
82
+	var models = Object.keys(graph);
83
+	for (var len = models.length, i = 0; i < len; i++) {
84
+		var toModel = models[i];
85
+		var node = graph[toModel];
86
+
87
+		if (node.parent === null) {
88
+			// no possible conversion, or this node is the source model.
89
+			continue;
90
+		}
91
+
92
+		conversion[toModel] = wrapConversion(toModel, graph);
93
+	}
94
+
95
+	return conversion;
96
+};
97
+

+ 43
- 0
km0App/node_modules/color-name/.eslintrc.json Datei anzeigen

@@ -0,0 +1,43 @@
1
+{
2
+    "env": {
3
+        "browser": true,
4
+        "node": true,
5
+        "commonjs": true,
6
+        "es6": true
7
+    },
8
+    "extends": "eslint:recommended",
9
+    "rules": {
10
+        "strict": 2,
11
+        "indent": 0,
12
+        "linebreak-style": 0,
13
+        "quotes": 0,
14
+        "semi": 0,
15
+        "no-cond-assign": 1,
16
+        "no-constant-condition": 1,
17
+        "no-duplicate-case": 1,
18
+        "no-empty": 1,
19
+        "no-ex-assign": 1,
20
+        "no-extra-boolean-cast": 1,
21
+        "no-extra-semi": 1,
22
+        "no-fallthrough": 1,
23
+        "no-func-assign": 1,
24
+        "no-global-assign": 1,
25
+        "no-implicit-globals": 2,
26
+        "no-inner-declarations": ["error", "functions"],
27
+        "no-irregular-whitespace": 2,
28
+        "no-loop-func": 1,
29
+        "no-multi-str": 1,
30
+        "no-mixed-spaces-and-tabs": 1,
31
+        "no-proto": 1,
32
+        "no-sequences": 1,
33
+        "no-throw-literal": 1,
34
+        "no-unmodified-loop-condition": 1,
35
+        "no-useless-call": 1,
36
+        "no-void": 1,
37
+        "no-with": 2,
38
+        "wrap-iife": 1,
39
+        "no-redeclare": 1,
40
+        "no-unused-vars": ["error", { "vars": "all", "args": "none" }],
41
+        "no-sparse-arrays": 1
42
+    }
43
+}

+ 107
- 0
km0App/node_modules/color-name/.npmignore Datei anzeigen

@@ -0,0 +1,107 @@
1
+//this will affect all the git repos
2
+git config --global core.excludesfile ~/.gitignore
3
+
4
+
5
+//update files since .ignore won't if already tracked
6
+git rm --cached <file>
7
+
8
+# Compiled source #
9
+###################
10
+*.com
11
+*.class
12
+*.dll
13
+*.exe
14
+*.o
15
+*.so
16
+
17
+# Packages #
18
+############
19
+# it's better to unpack these files and commit the raw source
20
+# git has its own built in compression methods
21
+*.7z
22
+*.dmg
23
+*.gz
24
+*.iso
25
+*.jar
26
+*.rar
27
+*.tar
28
+*.zip
29
+
30
+# Logs and databases #
31
+######################
32
+*.log
33
+*.sql
34
+*.sqlite
35
+
36
+# OS generated files #
37
+######################
38
+.DS_Store
39
+.DS_Store?
40
+._*
41
+.Spotlight-V100
42
+.Trashes
43
+# Icon?
44
+ehthumbs.db
45
+Thumbs.db
46
+.cache
47
+.project
48
+.settings
49
+.tmproj
50
+*.esproj
51
+nbproject
52
+
53
+# Numerous always-ignore extensions #
54
+#####################################
55
+*.diff
56
+*.err
57
+*.orig
58
+*.rej
59
+*.swn
60
+*.swo
61
+*.swp
62
+*.vi
63
+*~
64
+*.sass-cache
65
+*.grunt
66
+*.tmp
67
+
68
+# Dreamweaver added files #
69
+###########################
70
+_notes
71
+dwsync.xml
72
+
73
+# Komodo #
74
+###########################
75
+*.komodoproject
76
+.komodotools
77
+
78
+# Node #
79
+#####################
80
+node_modules
81
+
82
+# Bower #
83
+#####################
84
+bower_components
85
+
86
+# Folders to ignore #
87
+#####################
88
+.hg
89
+.svn
90
+.CVS
91
+intermediate
92
+publish
93
+.idea
94
+.graphics
95
+_test
96
+_archive
97
+uploads
98
+tmp
99
+
100
+# Vim files to ignore #
101
+#######################
102
+.VimballRecord
103
+.netrwhist
104
+
105
+bundle.*
106
+
107
+_demo

+ 8
- 0
km0App/node_modules/color-name/LICENSE Datei anzeigen

@@ -0,0 +1,8 @@
1
+The MIT License (MIT)
2
+Copyright (c) 2015 Dmitry Ivanov
3
+
4
+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:
5
+
6
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
7
+
8
+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.

+ 11
- 0
km0App/node_modules/color-name/README.md Datei anzeigen

@@ -0,0 +1,11 @@
1
+A JSON with color names and its values. Based on http://dev.w3.org/csswg/css-color/#named-colors.
2
+
3
+[![NPM](https://nodei.co/npm/color-name.png?mini=true)](https://nodei.co/npm/color-name/)
4
+
5
+
6
+```js
7
+var colors = require('color-name');
8
+colors.red //[255,0,0]
9
+```
10
+
11
+<a href="LICENSE"><img src="https://upload.wikimedia.org/wikipedia/commons/0/0c/MIT_logo.svg" width="120"/></a>

+ 152
- 0
km0App/node_modules/color-name/index.js Datei anzeigen

@@ -0,0 +1,152 @@
1
+'use strict'
2
+
3
+module.exports = {
4
+	"aliceblue": [240, 248, 255],
5
+	"antiquewhite": [250, 235, 215],
6
+	"aqua": [0, 255, 255],
7
+	"aquamarine": [127, 255, 212],
8
+	"azure": [240, 255, 255],
9
+	"beige": [245, 245, 220],
10
+	"bisque": [255, 228, 196],
11
+	"black": [0, 0, 0],
12
+	"blanchedalmond": [255, 235, 205],
13
+	"blue": [0, 0, 255],
14
+	"blueviolet": [138, 43, 226],
15
+	"brown": [165, 42, 42],
16
+	"burlywood": [222, 184, 135],
17
+	"cadetblue": [95, 158, 160],
18
+	"chartreuse": [127, 255, 0],
19
+	"chocolate": [210, 105, 30],
20
+	"coral": [255, 127, 80],
21
+	"cornflowerblue": [100, 149, 237],
22
+	"cornsilk": [255, 248, 220],
23
+	"crimson": [220, 20, 60],
24
+	"cyan": [0, 255, 255],
25
+	"darkblue": [0, 0, 139],
26
+	"darkcyan": [0, 139, 139],
27
+	"darkgoldenrod": [184, 134, 11],
28
+	"darkgray": [169, 169, 169],
29
+	"darkgreen": [0, 100, 0],
30
+	"darkgrey": [169, 169, 169],
31
+	"darkkhaki": [189, 183, 107],
32
+	"darkmagenta": [139, 0, 139],
33
+	"darkolivegreen": [85, 107, 47],
34
+	"darkorange": [255, 140, 0],
35
+	"darkorchid": [153, 50, 204],
36
+	"darkred": [139, 0, 0],
37
+	"darksalmon": [233, 150, 122],
38
+	"darkseagreen": [143, 188, 143],
39
+	"darkslateblue": [72, 61, 139],
40
+	"darkslategray": [47, 79, 79],
41
+	"darkslategrey": [47, 79, 79],
42
+	"darkturquoise": [0, 206, 209],
43
+	"darkviolet": [148, 0, 211],
44
+	"deeppink": [255, 20, 147],
45
+	"deepskyblue": [0, 191, 255],
46
+	"dimgray": [105, 105, 105],
47
+	"dimgrey": [105, 105, 105],
48
+	"dodgerblue": [30, 144, 255],
49
+	"firebrick": [178, 34, 34],
50
+	"floralwhite": [255, 250, 240],
51
+	"forestgreen": [34, 139, 34],
52
+	"fuchsia": [255, 0, 255],
53
+	"gainsboro": [220, 220, 220],
54
+	"ghostwhite": [248, 248, 255],
55
+	"gold": [255, 215, 0],
56
+	"goldenrod": [218, 165, 32],
57
+	"gray": [128, 128, 128],
58
+	"green": [0, 128, 0],
59
+	"greenyellow": [173, 255, 47],
60
+	"grey": [128, 128, 128],
61
+	"honeydew": [240, 255, 240],
62
+	"hotpink": [255, 105, 180],
63
+	"indianred": [205, 92, 92],
64
+	"indigo": [75, 0, 130],
65
+	"ivory": [255, 255, 240],
66
+	"khaki": [240, 230, 140],
67
+	"lavender": [230, 230, 250],
68
+	"lavenderblush": [255, 240, 245],
69
+	"lawngreen": [124, 252, 0],
70
+	"lemonchiffon": [255, 250, 205],
71
+	"lightblue": [173, 216, 230],
72
+	"lightcoral": [240, 128, 128],
73
+	"lightcyan": [224, 255, 255],
74
+	"lightgoldenrodyellow": [250, 250, 210],
75
+	"lightgray": [211, 211, 211],
76
+	"lightgreen": [144, 238, 144],
77
+	"lightgrey": [211, 211, 211],
78
+	"lightpink": [255, 182, 193],
79
+	"lightsalmon": [255, 160, 122],
80
+	"lightseagreen": [32, 178, 170],
81
+	"lightskyblue": [135, 206, 250],
82
+	"lightslategray": [119, 136, 153],
83
+	"lightslategrey": [119, 136, 153],
84
+	"lightsteelblue": [176, 196, 222],
85
+	"lightyellow": [255, 255, 224],
86
+	"lime": [0, 255, 0],
87
+	"limegreen": [50, 205, 50],
88
+	"linen": [250, 240, 230],
89
+	"magenta": [255, 0, 255],
90
+	"maroon": [128, 0, 0],
91
+	"mediumaquamarine": [102, 205, 170],
92
+	"mediumblue": [0, 0, 205],
93
+	"mediumorchid": [186, 85, 211],
94
+	"mediumpurple": [147, 112, 219],
95
+	"mediumseagreen": [60, 179, 113],
96
+	"mediumslateblue": [123, 104, 238],
97
+	"mediumspringgreen": [0, 250, 154],
98
+	"mediumturquoise": [72, 209, 204],
99
+	"mediumvioletred": [199, 21, 133],
100
+	"midnightblue": [25, 25, 112],
101
+	"mintcream": [245, 255, 250],
102
+	"mistyrose": [255, 228, 225],
103
+	"moccasin": [255, 228, 181],
104
+	"navajowhite": [255, 222, 173],
105
+	"navy": [0, 0, 128],
106
+	"oldlace": [253, 245, 230],
107
+	"olive": [128, 128, 0],
108
+	"olivedrab": [107, 142, 35],
109
+	"orange": [255, 165, 0],
110
+	"orangered": [255, 69, 0],
111
+	"orchid": [218, 112, 214],
112
+	"palegoldenrod": [238, 232, 170],
113
+	"palegreen": [152, 251, 152],
114
+	"paleturquoise": [175, 238, 238],
115
+	"palevioletred": [219, 112, 147],
116
+	"papayawhip": [255, 239, 213],
117
+	"peachpuff": [255, 218, 185],
118
+	"peru": [205, 133, 63],
119
+	"pink": [255, 192, 203],
120
+	"plum": [221, 160, 221],
121
+	"powderblue": [176, 224, 230],
122
+	"purple": [128, 0, 128],
123
+	"rebeccapurple": [102, 51, 153],
124
+	"red": [255, 0, 0],
125
+	"rosybrown": [188, 143, 143],
126
+	"royalblue": [65, 105, 225],
127
+	"saddlebrown": [139, 69, 19],
128
+	"salmon": [250, 128, 114],
129
+	"sandybrown": [244, 164, 96],
130
+	"seagreen": [46, 139, 87],
131
+	"seashell": [255, 245, 238],
132
+	"sienna": [160, 82, 45],
133
+	"silver": [192, 192, 192],
134
+	"skyblue": [135, 206, 235],
135
+	"slateblue": [106, 90, 205],
136
+	"slategray": [112, 128, 144],
137
+	"slategrey": [112, 128, 144],
138
+	"snow": [255, 250, 250],
139
+	"springgreen": [0, 255, 127],
140
+	"steelblue": [70, 130, 180],
141
+	"tan": [210, 180, 140],
142
+	"teal": [0, 128, 128],
143
+	"thistle": [216, 191, 216],
144
+	"tomato": [255, 99, 71],
145
+	"turquoise": [64, 224, 208],
146
+	"violet": [238, 130, 238],
147
+	"wheat": [245, 222, 179],
148
+	"white": [255, 255, 255],
149
+	"whitesmoke": [245, 245, 245],
150
+	"yellow": [255, 255, 0],
151
+	"yellowgreen": [154, 205, 50]
152
+};

+ 53
- 0
km0App/node_modules/color-name/package.json Datei anzeigen

@@ -0,0 +1,53 @@
1
+{
2
+  "_from": "color-name@1.1.3",
3
+  "_id": "color-name@1.1.3",
4
+  "_inBundle": false,
5
+  "_integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=",
6
+  "_location": "/color-name",
7
+  "_phantomChildren": {},
8
+  "_requested": {
9
+    "type": "version",
10
+    "registry": true,
11
+    "raw": "color-name@1.1.3",
12
+    "name": "color-name",
13
+    "escapedName": "color-name",
14
+    "rawSpec": "1.1.3",
15
+    "saveSpec": null,
16
+    "fetchSpec": "1.1.3"
17
+  },
18
+  "_requiredBy": [
19
+    "/color-convert"
20
+  ],
21
+  "_resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz",
22
+  "_shasum": "a7d0558bd89c42f795dd42328f740831ca53bc25",
23
+  "_spec": "color-name@1.1.3",
24
+  "_where": "/home/luis/Software/kilometro0/km0App/node_modules/color-convert",
25
+  "author": {
26
+    "name": "DY",
27
+    "email": "dfcreative@gmail.com"
28
+  },
29
+  "bugs": {
30
+    "url": "https://github.com/dfcreative/color-name/issues"
31
+  },
32
+  "bundleDependencies": false,
33
+  "deprecated": false,
34
+  "description": "A list of color names and its values",
35
+  "homepage": "https://github.com/dfcreative/color-name",
36
+  "keywords": [
37
+    "color-name",
38
+    "color",
39
+    "color-keyword",
40
+    "keyword"
41
+  ],
42
+  "license": "MIT",
43
+  "main": "index.js",
44
+  "name": "color-name",
45
+  "repository": {
46
+    "type": "git",
47
+    "url": "git+ssh://git@github.com/dfcreative/color-name.git"
48
+  },
49
+  "scripts": {
50
+    "test": "node test.js"
51
+  },
52
+  "version": "1.1.3"
53
+}

+ 7
- 0
km0App/node_modules/color-name/test.js Datei anzeigen

@@ -0,0 +1,7 @@
1
+'use strict'
2
+
3
+var names = require('./');
4
+var assert = require('assert');
5
+
6
+assert.deepEqual(names.red, [255,0,0]);
7
+assert.deepEqual(names.aliceblue, [240,248,255]);

+ 104
- 0
km0App/node_modules/compressible/HISTORY.md Datei anzeigen

@@ -0,0 +1,104 @@
1
+2.0.17 / 2019-04-24
2
+===================
3
+
4
+  * deps: mime-db@'>= 1.40.0 < 2'
5
+
6
+2.0.16 / 2019-02-18
7
+===================
8
+
9
+  * deps: mime-db@'>= 1.38.0 < 2'
10
+    - Mark `text/less` as compressible
11
+
12
+2.0.15 / 2018-09-17
13
+===================
14
+
15
+  * deps: mime-db@'>= 1.36.0 < 2'
16
+
17
+2.0.14 / 2018-06-05
18
+===================
19
+
20
+  * deps: mime-db@'>= 1.34.0 < 2'
21
+    - Mark all XML-derived types as compressible
22
+
23
+2.0.13 / 2018-02-17
24
+===================
25
+
26
+  * deps: mime-db@'>= 1.33.0 < 2'
27
+
28
+2.0.12 / 2017-10-20
29
+===================
30
+
31
+  * deps: mime-db@'>= 1.30.0 < 2'
32
+
33
+2.0.11 / 2017-07-27
34
+===================
35
+
36
+  * deps: mime-db@'>= 1.29.0 < 2'
37
+
38
+2.0.10 / 2017-03-23
39
+===================
40
+
41
+  * deps: mime-db@'>= 1.27.0 < 2'
42
+
43
+2.0.9 / 2016-10-31
44
+==================
45
+
46
+  * Fix regex fallback to not override `compressible: false` in db
47
+  * deps: mime-db@'>= 1.24.0 < 2'
48
+
49
+2.0.8 / 2016-05-12
50
+==================
51
+
52
+  * deps: mime-db@'>= 1.23.0 < 2'
53
+
54
+2.0.7 / 2016-01-18
55
+==================
56
+
57
+  * deps: mime-db@'>= 1.21.0 < 2'
58
+
59
+2.0.6 / 2015-09-29
60
+==================
61
+
62
+  * deps: mime-db@'>= 1.19.0 < 2'
63
+
64
+2.0.5 / 2015-07-30
65
+==================
66
+
67
+  * deps: mime-db@'>= 1.16.0 < 2'
68
+
69
+2.0.4 / 2015-07-01
70
+==================
71
+
72
+  * deps: mime-db@'>= 1.14.0 < 2'
73
+  * perf: enable strict mode
74
+
75
+2.0.3 / 2015-06-08
76
+==================
77
+
78
+  * Fix regex fallback to work if type exists, but is undefined
79
+  * perf: hoist regex declaration
80
+  * perf: use regex to extract mime
81
+  * deps: mime-db@'>= 1.13.0 < 2'
82
+
83
+2.0.2 / 2015-01-31
84
+==================
85
+
86
+  * deps: mime-db@'>= 1.1.2 < 2'
87
+
88
+2.0.1 / 2014-09-28
89
+==================
90
+
91
+  * deps: mime-db@1.x
92
+    - Add new mime types
93
+    - Add additional compressible
94
+    - Update charsets
95
+
96
+
97
+2.0.0 / 2014-09-02
98
+==================
99
+
100
+  * use mime-db
101
+  * remove .get()
102
+  * specifications are now private
103
+  * regex is now private
104
+  * stricter regex

+ 24
- 0
km0App/node_modules/compressible/LICENSE Datei anzeigen

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

+ 61
- 0
km0App/node_modules/compressible/README.md Datei anzeigen

@@ -0,0 +1,61 @@
1
+# compressible
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
+Compressible `Content-Type` / `mime` checking.
10
+
11
+## Installation
12
+
13
+```sh
14
+$ npm install compressible
15
+```
16
+
17
+## API
18
+
19
+<!-- eslint-disable no-unused-vars -->
20
+
21
+```js
22
+var compressible = require('compressible')
23
+```
24
+
25
+### compressible(type)
26
+
27
+Checks if the given `Content-Type` is compressible. The `type` argument is expected
28
+to be a value MIME type or `Content-Type` string, though no validation is performed.
29
+
30
+The MIME is looked up in the [`mime-db`](https://www.npmjs.com/package/mime-db) and
31
+if there is compressible information in the database entry, that is returned. Otherwise,
32
+this module will fallback to `true` for the following types:
33
+
34
+  * `text/*`
35
+  * `*/*+json`
36
+  * `*/*+text`
37
+  * `*/*+xml`
38
+
39
+If this module is not sure if a type is specifically compressible or specifically
40
+uncompressible, `undefined` is returned.
41
+
42
+<!-- eslint-disable no-undef -->
43
+
44
+```js
45
+compressible('text/html') // => true
46
+compressible('image/png') // => false
47
+```
48
+
49
+## License
50
+
51
+[MIT](LICENSE)
52
+
53
+[coveralls-image]: https://badgen.net/coveralls/c/github/jshttp/compressible/master
54
+[coveralls-url]: https://coveralls.io/r/jshttp/compressible?branch=master
55
+[node-version-image]: https://badgen.net/npm/node/compressible
56
+[node-version-url]: https://nodejs.org/en/download
57
+[npm-downloads-image]: https://badgen.net/npm/dm/compressible
58
+[npm-url]: https://npmjs.org/package/compressible
59
+[npm-version-image]: https://badgen.net/npm/v/compressible
60
+[travis-image]: https://badgen.net/travis/jshttp/compressible/master
61
+[travis-url]: https://travis-ci.org/jshttp/compressible

+ 58
- 0
km0App/node_modules/compressible/index.js Datei anzeigen

@@ -0,0 +1,58 @@
1
+/*!
2
+ * compressible
3
+ * Copyright(c) 2013 Jonathan Ong
4
+ * Copyright(c) 2014 Jeremiah Senkpiel
5
+ * Copyright(c) 2015 Douglas Christopher Wilson
6
+ * MIT Licensed
7
+ */
8
+
9
+'use strict'
10
+
11
+/**
12
+ * Module dependencies.
13
+ * @private
14
+ */
15
+
16
+var db = require('mime-db')
17
+
18
+/**
19
+ * Module variables.
20
+ * @private
21
+ */
22
+
23
+var COMPRESSIBLE_TYPE_REGEXP = /^text\/|\+(?:json|text|xml)$/i
24
+var EXTRACT_TYPE_REGEXP = /^\s*([^;\s]*)(?:;|\s|$)/
25
+
26
+/**
27
+ * Module exports.
28
+ * @public
29
+ */
30
+
31
+module.exports = compressible
32
+
33
+/**
34
+ * Checks if a type is compressible.
35
+ *
36
+ * @param {string} type
37
+ * @return {Boolean} compressible
38
+ * @public
39
+ */
40
+
41
+function compressible (type) {
42
+  if (!type || typeof type !== 'string') {
43
+    return false
44
+  }
45
+
46
+  // strip parameters
47
+  var match = EXTRACT_TYPE_REGEXP.exec(type)
48
+  var mime = match && match[1].toLowerCase()
49
+  var data = db[mime]
50
+
51
+  // return database information
52
+  if (data && data.compressible !== undefined) {
53
+    return data.compressible
54
+  }
55
+
56
+  // fallback to regexp or unknown
57
+  return COMPRESSIBLE_TYPE_REGEXP.test(mime) || undefined
58
+}

+ 91
- 0
km0App/node_modules/compressible/package.json Datei anzeigen

@@ -0,0 +1,91 @@
1
+{
2
+  "_from": "compressible@~2.0.16",
3
+  "_id": "compressible@2.0.17",
4
+  "_inBundle": false,
5
+  "_integrity": "sha512-BGHeLCK1GV7j1bSmQQAi26X+GgWcTjLr/0tzSvMCl3LH1w1IJ4PFSPoV5316b30cneTziC+B1a+3OjoSUcQYmw==",
6
+  "_location": "/compressible",
7
+  "_phantomChildren": {},
8
+  "_requested": {
9
+    "type": "range",
10
+    "registry": true,
11
+    "raw": "compressible@~2.0.16",
12
+    "name": "compressible",
13
+    "escapedName": "compressible",
14
+    "rawSpec": "~2.0.16",
15
+    "saveSpec": null,
16
+    "fetchSpec": "~2.0.16"
17
+  },
18
+  "_requiredBy": [
19
+    "/compression"
20
+  ],
21
+  "_resolved": "https://registry.npmjs.org/compressible/-/compressible-2.0.17.tgz",
22
+  "_shasum": "6e8c108a16ad58384a977f3a482ca20bff2f38c1",
23
+  "_spec": "compressible@~2.0.16",
24
+  "_where": "/home/luis/Software/kilometro0/km0App/node_modules/compression",
25
+  "bugs": {
26
+    "url": "https://github.com/jshttp/compressible/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
+      "name": "Jeremiah Senkpiel",
41
+      "email": "fishrock123@rocketmail.com",
42
+      "url": "https://searchbeam.jit.su"
43
+    }
44
+  ],
45
+  "dependencies": {
46
+    "mime-db": ">= 1.40.0 < 2"
47
+  },
48
+  "deprecated": false,
49
+  "description": "Compressible Content-Type / mime checking",
50
+  "devDependencies": {
51
+    "eslint": "5.15.2",
52
+    "eslint-config-standard": "12.0.0",
53
+    "eslint-plugin-import": "2.16.0",
54
+    "eslint-plugin-markdown": "1.0.0",
55
+    "eslint-plugin-node": "8.0.1",
56
+    "eslint-plugin-promise": "4.0.1",
57
+    "eslint-plugin-standard": "4.0.0",
58
+    "mocha": "6.1.4",
59
+    "nyc": "14.0.0"
60
+  },
61
+  "engines": {
62
+    "node": ">= 0.6"
63
+  },
64
+  "files": [
65
+    "HISTORY.md",
66
+    "LICENSE",
67
+    "README.md",
68
+    "index.js"
69
+  ],
70
+  "homepage": "https://github.com/jshttp/compressible#readme",
71
+  "keywords": [
72
+    "compress",
73
+    "gzip",
74
+    "mime",
75
+    "content-type"
76
+  ],
77
+  "license": "MIT",
78
+  "name": "compressible",
79
+  "repository": {
80
+    "type": "git",
81
+    "url": "git+https://github.com/jshttp/compressible.git"
82
+  },
83
+  "scripts": {
84
+    "lint": "eslint --plugin markdown --ext js,md .",
85
+    "test": "mocha --reporter spec --bail --check-leaks test/",
86
+    "test-cov": "nyc --reporter=html --reporter=text npm test",
87
+    "test-travis": "nyc --reporter=text npm test",
88
+    "version": "node scripts/version-history.js && git add HISTORY.md"
89
+  },
90
+  "version": "2.0.17"
91
+}

+ 307
- 0
km0App/node_modules/compression/HISTORY.md Datei anzeigen

@@ -0,0 +1,307 @@
1
+1.7.4 / 2019-03-18
2
+==================
3
+
4
+  * deps: compressible@~2.0.16
5
+    - Mark `text/less` as compressible
6
+    - deps: mime-db@'>= 1.38.0 < 2'
7
+  * deps: on-headers@~1.0.2
8
+    - Fix `res.writeHead` patch missing return value
9
+  * perf: prevent unnecessary buffer copy
10
+
11
+1.7.3 / 2018-07-15
12
+==================
13
+
14
+  * deps: accepts@~1.3.5
15
+    - deps: mime-types@~2.1.18
16
+  * deps: compressible@~2.0.14
17
+    - Mark all XML-derived types as compressible
18
+    - deps: mime-db@'>= 1.34.0 < 2'
19
+  * deps: safe-buffer@5.1.2
20
+
21
+1.7.2 / 2018-02-18
22
+==================
23
+
24
+  * deps: compressible@~2.0.13
25
+    - deps: mime-db@'>= 1.33.0 < 2'
26
+
27
+1.7.1 / 2017-09-26
28
+==================
29
+
30
+  * deps: accepts@~1.3.4
31
+    - deps: mime-types@~2.1.16
32
+  * deps: bytes@3.0.0
33
+  * deps: compressible@~2.0.11
34
+    - deps: mime-db@'>= 1.29.0 < 2'
35
+  * deps: debug@2.6.9
36
+  * deps: vary@~1.1.2
37
+    - perf: improve header token parsing speed
38
+
39
+1.7.0 / 2017-07-10
40
+==================
41
+
42
+  * Use `safe-buffer` for improved Buffer API
43
+  * deps: bytes@2.5.0
44
+  * deps: compressible@~2.0.10
45
+    - Fix regex fallback to not override `compressible: false` in db
46
+    - deps: mime-db@'>= 1.27.0 < 2'
47
+  * deps: debug@2.6.8
48
+    - Allow colors in workers
49
+    - Deprecated `DEBUG_FD` environment variable set to `3` or higher
50
+    - Fix error when running under React Native
51
+    - Fix `DEBUG_MAX_ARRAY_LENGTH`
52
+    - Use same color for same namespace
53
+    - deps: ms@2.0.0
54
+  * deps: vary@~1.1.1
55
+    - perf: hoist regular expression
56
+
57
+1.6.2 / 2016-05-12
58
+==================
59
+
60
+  * deps: accepts@~1.3.3
61
+    - deps: mime-types@~2.1.11
62
+    - deps: negotiator@0.6.1
63
+  * deps: bytes@2.3.0
64
+    - Drop partial bytes on all parsed units
65
+    - Fix parsing byte string that looks like hex
66
+    - perf: hoist regular expressions
67
+  * deps: compressible@~2.0.8
68
+    - deps: mime-db@'>= 1.23.0 < 2'
69
+
70
+1.6.1 / 2016-01-19
71
+==================
72
+
73
+  * deps: bytes@2.2.0
74
+  * deps: compressible@~2.0.7
75
+    - deps: mime-db@'>= 1.21.0 < 2'
76
+  * deps: accepts@~1.3.1
77
+    - deps: mime-types@~2.1.9
78
+
79
+1.6.0 / 2015-09-29
80
+==================
81
+
82
+  * Skip compression when response has `Cache-Control: no-transform`
83
+  * deps: accepts@~1.3.0
84
+    - deps: mime-types@~2.1.7
85
+    - deps: negotiator@0.6.0
86
+  * deps: compressible@~2.0.6
87
+    - deps: mime-db@'>= 1.19.0 < 2'
88
+  * deps: on-headers@~1.0.1
89
+    - perf: enable strict mode
90
+  * deps: vary@~1.1.0
91
+    - Only accept valid field names in the `field` argument
92
+
93
+1.5.2 / 2015-07-30
94
+==================
95
+
96
+  * deps: accepts@~1.2.12
97
+    - deps: mime-types@~2.1.4
98
+  * deps: compressible@~2.0.5
99
+    - deps: mime-db@'>= 1.16.0 < 2'
100
+  * deps: vary@~1.0.1
101
+    - Fix setting empty header from empty `field`
102
+    - perf: enable strict mode
103
+    - perf: remove argument reassignments
104
+
105
+1.5.1 / 2015-07-05
106
+==================
107
+
108
+  * deps: accepts@~1.2.10
109
+    - deps: mime-types@~2.1.2
110
+  * deps: compressible@~2.0.4
111
+    - deps: mime-db@'>= 1.14.0 < 2'
112
+    - perf: enable strict mode
113
+
114
+1.5.0 / 2015-06-09
115
+==================
116
+
117
+  * Fix return value from `.end` and `.write` after end
118
+  * Improve detection of zero-length body without `Content-Length`
119
+  * deps: accepts@~1.2.9
120
+    - deps: mime-types@~2.1.1
121
+    - perf: avoid argument reassignment & argument slice
122
+    - perf: avoid negotiator recursive construction
123
+    - perf: enable strict mode
124
+    - perf: remove unnecessary bitwise operator
125
+  * deps: bytes@2.1.0
126
+    - Slight optimizations
127
+    - Units no longer case sensitive when parsing
128
+  * deps: compressible@~2.0.3
129
+    - Fix regex fallback to work if type exists, but is undefined
130
+    - deps: mime-db@'>= 1.13.0 < 2'
131
+    - perf: hoist regex declaration
132
+    - perf: use regex to extract mime
133
+  * perf: enable strict mode
134
+  * perf: remove flush reassignment
135
+  * perf: simplify threshold detection
136
+
137
+1.4.4 / 2015-05-11
138
+==================
139
+
140
+  * deps: accepts@~1.2.7
141
+    - deps: mime-types@~2.0.11
142
+    - deps: negotiator@0.5.3
143
+  * deps: debug@~2.2.0
144
+    - deps: ms@0.7.1
145
+
146
+1.4.3 / 2015-03-14
147
+==================
148
+
149
+  * deps: accepts@~1.2.5
150
+    - deps: mime-types@~2.0.10
151
+  * deps: debug@~2.1.3
152
+    - Fix high intensity foreground color for bold
153
+    - deps: ms@0.7.0
154
+
155
+1.4.2 / 2015-03-11
156
+==================
157
+
158
+  * Fix error when code calls `res.end(str, encoding)`
159
+    - Specific to Node.js 0.8
160
+  * deps: debug@~2.1.2
161
+    - deps: ms@0.7.0
162
+
163
+1.4.1 / 2015-02-15
164
+==================
165
+
166
+  * deps: accepts@~1.2.4
167
+    - deps: mime-types@~2.0.9
168
+    - deps: negotiator@0.5.1
169
+
170
+1.4.0 / 2015-02-01
171
+==================
172
+
173
+  * Prefer `gzip` over `deflate` on the server
174
+    - Not all clients agree on what "deflate" coding means
175
+
176
+1.3.1 / 2015-01-31
177
+==================
178
+
179
+  * deps: accepts@~1.2.3
180
+    - deps: mime-types@~2.0.8
181
+  * deps: compressible@~2.0.2
182
+    - deps: mime-db@'>= 1.1.2 < 2'
183
+
184
+1.3.0 / 2014-12-30
185
+==================
186
+
187
+  * Export the default `filter` function for wrapping
188
+  * deps: accepts@~1.2.2
189
+    - deps: mime-types@~2.0.7
190
+    - deps: negotiator@0.5.0
191
+  * deps: debug@~2.1.1
192
+
193
+1.2.2 / 2014-12-10
194
+==================
195
+
196
+  * Fix `.end` to only proxy to `.end`
197
+    - Fixes an issue with Node.js 0.11.14
198
+  * deps: accepts@~1.1.4
199
+    - deps: mime-types@~2.0.4
200
+
201
+1.2.1 / 2014-11-23
202
+==================
203
+
204
+  * deps: accepts@~1.1.3
205
+    - deps: mime-types@~2.0.3
206
+
207
+1.2.0 / 2014-10-16
208
+==================
209
+
210
+  * deps: debug@~2.1.0
211
+    - Implement `DEBUG_FD` env variable support
212
+
213
+1.1.2 / 2014-10-15
214
+==================
215
+
216
+  * deps: accepts@~1.1.2
217
+    - Fix error when media type has invalid parameter
218
+    - deps: negotiator@0.4.9
219
+
220
+1.1.1 / 2014-10-12
221
+==================
222
+
223
+  * deps: accepts@~1.1.1
224
+    - deps: mime-types@~2.0.2
225
+    - deps: negotiator@0.4.8
226
+  * deps: compressible@~2.0.1
227
+    - deps: mime-db@1.x
228
+
229
+1.1.0 / 2014-09-07
230
+==================
231
+
232
+  * deps: accepts@~1.1.0
233
+  * deps: compressible@~2.0.0
234
+  * deps: debug@~2.0.0
235
+
236
+1.0.11 / 2014-08-10
237
+===================
238
+
239
+  * deps: on-headers@~1.0.0
240
+  * deps: vary@~1.0.0
241
+
242
+1.0.10 / 2014-08-05
243
+===================
244
+
245
+  * deps: compressible@~1.1.1
246
+    - Fix upper-case Content-Type characters prevent compression
247
+
248
+1.0.9 / 2014-07-20
249
+==================
250
+
251
+  * Add `debug` messages
252
+  * deps: accepts@~1.0.7
253
+    - deps: negotiator@0.4.7
254
+
255
+1.0.8 / 2014-06-20
256
+==================
257
+
258
+  * deps: accepts@~1.0.5
259
+    - use `mime-types`
260
+
261
+1.0.7 / 2014-06-11
262
+==================
263
+
264
+ * use vary module for better `Vary` behavior
265
+ * deps: accepts@1.0.3
266
+ * deps: compressible@1.1.0
267
+
268
+1.0.6 / 2014-06-03
269
+==================
270
+
271
+ * fix regression when negotiation fails
272
+
273
+1.0.5 / 2014-06-03
274
+==================
275
+
276
+ * fix listeners for delayed stream creation
277
+   - fixes regression for certain `stream.pipe(res)` situations
278
+
279
+1.0.4 / 2014-06-03
280
+==================
281
+
282
+ * fix adding `Vary` when value stored as array
283
+ * fix back-pressure behavior
284
+ * fix length check for `res.end`
285
+
286
+1.0.3 / 2014-05-29
287
+==================
288
+
289
+ * use `accepts` for negotiation
290
+ * use `on-headers` to handle header checking
291
+ * deps: bytes@1.0.0
292
+
293
+1.0.2 / 2014-04-29
294
+==================
295
+
296
+ * only version compatible with node.js 0.8
297
+ * support headers given to `res.writeHead`
298
+ * deps: bytes@0.3.0
299
+ * deps: negotiator@0.4.3
300
+
301
+1.0.1 / 2014-03-08
302
+==================
303
+
304
+ * bump negotiator
305
+ * use compressible
306
+ * use .headersSent (drops 0.8 support)
307
+ * handle identity;q=0 case

+ 23
- 0
km0App/node_modules/compression/LICENSE Datei anzeigen

@@ -0,0 +1,23 @@
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.

+ 240
- 0
km0App/node_modules/compression/README.md Datei anzeigen

@@ -0,0 +1,240 @@
1
+# compression
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 compression middleware.
9
+
10
+The following compression codings are supported:
11
+
12
+  - deflate
13
+  - gzip
14
+
15
+## Install
16
+
17
+This is a [Node.js](https://nodejs.org/en/) module available through the
18
+[npm registry](https://www.npmjs.com/). Installation is done using the
19
+[`npm install` command](https://docs.npmjs.com/getting-started/installing-npm-packages-locally):
20
+
21
+```bash
22
+$ npm install compression
23
+```
24
+
25
+## API
26
+
27
+<!-- eslint-disable no-unused-vars -->
28
+
29
+```js
30
+var compression = require('compression')
31
+```
32
+
33
+### compression([options])
34
+
35
+Returns the compression middleware using the given `options`. The middleware
36
+will attempt to compress response bodies for all request that traverse through
37
+the middleware, based on the given `options`.
38
+
39
+This middleware will never compress responses that include a `Cache-Control`
40
+header with the [`no-transform` directive](https://tools.ietf.org/html/rfc7234#section-5.2.2.4),
41
+as compressing will transform the body.
42
+
43
+#### Options
44
+
45
+`compression()` accepts these properties in the options object. In addition to
46
+those listed below, [zlib](http://nodejs.org/api/zlib.html) options may be
47
+passed in to the options object.
48
+
49
+##### chunkSize
50
+
51
+The default value is `zlib.Z_DEFAULT_CHUNK`, or `16384`.
52
+
53
+See [Node.js documentation](http://nodejs.org/api/zlib.html#zlib_memory_usage_tuning)
54
+regarding the usage.
55
+
56
+##### filter
57
+
58
+A function to decide if the response should be considered for compression.
59
+This function is called as `filter(req, res)` and is expected to return
60
+`true` to consider the response for compression, or `false` to not compress
61
+the response.
62
+
63
+The default filter function uses the [compressible](https://www.npmjs.com/package/compressible)
64
+module to determine if `res.getHeader('Content-Type')` is compressible.
65
+
66
+##### level
67
+
68
+The level of zlib compression to apply to responses. A higher level will result
69
+in better compression, but will take longer to complete. A lower level will
70
+result in less compression, but will be much faster.
71
+
72
+This is an integer in the range of `0` (no compression) to `9` (maximum
73
+compression). The special value `-1` can be used to mean the "default
74
+compression level", which is a default compromise between speed and
75
+compression (currently equivalent to level 6).
76
+
77
+  - `-1` Default compression level (also `zlib.Z_DEFAULT_COMPRESSION`).
78
+  - `0` No compression (also `zlib.Z_NO_COMPRESSION`).
79
+  - `1` Fastest compression (also `zlib.Z_BEST_SPEED`).
80
+  - `2`
81
+  - `3`
82
+  - `4`
83
+  - `5`
84
+  - `6` (currently what `zlib.Z_DEFAULT_COMPRESSION` points to).
85
+  - `7`
86
+  - `8`
87
+  - `9` Best compression (also `zlib.Z_BEST_COMPRESSION`).
88
+
89
+The default value is `zlib.Z_DEFAULT_COMPRESSION`, or `-1`.
90
+
91
+**Note** in the list above, `zlib` is from `zlib = require('zlib')`.
92
+
93
+##### memLevel
94
+
95
+This specifies how much memory should be allocated for the internal compression
96
+state and is an integer in the range of `1` (minimum level) and `9` (maximum
97
+level).
98
+
99
+The default value is `zlib.Z_DEFAULT_MEMLEVEL`, or `8`.
100
+
101
+See [Node.js documentation](http://nodejs.org/api/zlib.html#zlib_memory_usage_tuning)
102
+regarding the usage.
103
+
104
+##### strategy
105
+
106
+This is used to tune the compression algorithm. This value only affects the
107
+compression ratio, not the correctness of the compressed output, even if it
108
+is not set appropriately.
109
+
110
+  - `zlib.Z_DEFAULT_STRATEGY` Use for normal data.
111
+  - `zlib.Z_FILTERED` Use for data produced by a filter (or predictor).
112
+    Filtered data consists mostly of small values with a somewhat random
113
+    distribution. In this case, the compression algorithm is tuned to
114
+    compress them better. The effect is to force more Huffman coding and less
115
+    string matching; it is somewhat intermediate between `zlib.Z_DEFAULT_STRATEGY`
116
+    and `zlib.Z_HUFFMAN_ONLY`.
117
+  - `zlib.Z_FIXED` Use to prevent the use of dynamic Huffman codes, allowing
118
+    for a simpler decoder for special applications.
119
+  - `zlib.Z_HUFFMAN_ONLY` Use to force Huffman encoding only (no string match).
120
+  - `zlib.Z_RLE` Use to limit match distances to one (run-length encoding).
121
+    This is designed to be almost as fast as `zlib.Z_HUFFMAN_ONLY`, but give
122
+    better compression for PNG image data.
123
+
124
+**Note** in the list above, `zlib` is from `zlib = require('zlib')`.
125
+
126
+##### threshold
127
+
128
+The byte threshold for the response body size before compression is considered
129
+for the response, defaults to `1kb`. This is a number of bytes or any string
130
+accepted by the [bytes](https://www.npmjs.com/package/bytes) module.
131
+
132
+**Note** this is only an advisory setting; if the response size cannot be determined
133
+at the time the response headers are written, then it is assumed the response is
134
+_over_ the threshold. To guarantee the response size can be determined, be sure
135
+set a `Content-Length` response header.
136
+
137
+##### windowBits
138
+
139
+The default value is `zlib.Z_DEFAULT_WINDOWBITS`, or `15`.
140
+
141
+See [Node.js documentation](http://nodejs.org/api/zlib.html#zlib_memory_usage_tuning)
142
+regarding the usage.
143
+
144
+#### .filter
145
+
146
+The default `filter` function. This is used to construct a custom filter
147
+function that is an extension of the default function.
148
+
149
+```js
150
+var compression = require('compression')
151
+var express = require('express')
152
+
153
+var app = express()
154
+app.use(compression({ filter: shouldCompress }))
155
+
156
+function shouldCompress (req, res) {
157
+  if (req.headers['x-no-compression']) {
158
+    // don't compress responses with this request header
159
+    return false
160
+  }
161
+
162
+  // fallback to standard filter function
163
+  return compression.filter(req, res)
164
+}
165
+```
166
+
167
+### res.flush
168
+
169
+This module adds a `res.flush()` method to force the partially-compressed
170
+response to be flushed to the client.
171
+
172
+## Examples
173
+
174
+### express/connect
175
+
176
+When using this module with express or connect, simply `app.use` the module as
177
+high as you like. Requests that pass through the middleware will be compressed.
178
+
179
+```js
180
+var compression = require('compression')
181
+var express = require('express')
182
+
183
+var app = express()
184
+
185
+// compress all responses
186
+app.use(compression())
187
+
188
+// add all routes
189
+```
190
+
191
+### Server-Sent Events
192
+
193
+Because of the nature of compression this module does not work out of the box
194
+with server-sent events. To compress content, a window of the output needs to
195
+be buffered up in order to get good compression. Typically when using server-sent
196
+events, there are certain block of data that need to reach the client.
197
+
198
+You can achieve this by calling `res.flush()` when you need the data written to
199
+actually make it to the client.
200
+
201
+```js
202
+var compression = require('compression')
203
+var express = require('express')
204
+
205
+var app = express()
206
+
207
+// compress responses
208
+app.use(compression())
209
+
210
+// server-sent event stream
211
+app.get('/events', function (req, res) {
212
+  res.setHeader('Content-Type', 'text/event-stream')
213
+  res.setHeader('Cache-Control', 'no-cache')
214
+
215
+  // send a ping approx every 2 seconds
216
+  var timer = setInterval(function () {
217
+    res.write('data: ping\n\n')
218
+
219
+    // !!! this is the important part
220
+    res.flush()
221
+  }, 2000)
222
+
223
+  res.on('close', function () {
224
+    clearInterval(timer)
225
+  })
226
+})
227
+```
228
+
229
+## License
230
+
231
+[MIT](LICENSE)
232
+
233
+[npm-image]: https://img.shields.io/npm/v/compression.svg
234
+[npm-url]: https://npmjs.org/package/compression
235
+[travis-image]: https://img.shields.io/travis/expressjs/compression/master.svg
236
+[travis-url]: https://travis-ci.org/expressjs/compression
237
+[coveralls-image]: https://img.shields.io/coveralls/expressjs/compression/master.svg
238
+[coveralls-url]: https://coveralls.io/r/expressjs/compression?branch=master
239
+[downloads-image]: https://img.shields.io/npm/dm/compression.svg
240
+[downloads-url]: https://npmjs.org/package/compression

+ 288
- 0
km0App/node_modules/compression/index.js Datei anzeigen

@@ -0,0 +1,288 @@
1
+/*!
2
+ * compression
3
+ * Copyright(c) 2010 Sencha Inc.
4
+ * Copyright(c) 2011 TJ Holowaychuk
5
+ * Copyright(c) 2014 Jonathan Ong
6
+ * Copyright(c) 2014-2015 Douglas Christopher Wilson
7
+ * MIT Licensed
8
+ */
9
+
10
+'use strict'
11
+
12
+/**
13
+ * Module dependencies.
14
+ * @private
15
+ */
16
+
17
+var accepts = require('accepts')
18
+var Buffer = require('safe-buffer').Buffer
19
+var bytes = require('bytes')
20
+var compressible = require('compressible')
21
+var debug = require('debug')('compression')
22
+var onHeaders = require('on-headers')
23
+var vary = require('vary')
24
+var zlib = require('zlib')
25
+
26
+/**
27
+ * Module exports.
28
+ */
29
+
30
+module.exports = compression
31
+module.exports.filter = shouldCompress
32
+
33
+/**
34
+ * Module variables.
35
+ * @private
36
+ */
37
+
38
+var cacheControlNoTransformRegExp = /(?:^|,)\s*?no-transform\s*?(?:,|$)/
39
+
40
+/**
41
+ * Compress response data with gzip / deflate.
42
+ *
43
+ * @param {Object} [options]
44
+ * @return {Function} middleware
45
+ * @public
46
+ */
47
+
48
+function compression (options) {
49
+  var opts = options || {}
50
+
51
+  // options
52
+  var filter = opts.filter || shouldCompress
53
+  var threshold = bytes.parse(opts.threshold)
54
+
55
+  if (threshold == null) {
56
+    threshold = 1024
57
+  }
58
+
59
+  return function compression (req, res, next) {
60
+    var ended = false
61
+    var length
62
+    var listeners = []
63
+    var stream
64
+
65
+    var _end = res.end
66
+    var _on = res.on
67
+    var _write = res.write
68
+
69
+    // flush
70
+    res.flush = function flush () {
71
+      if (stream) {
72
+        stream.flush()
73
+      }
74
+    }
75
+
76
+    // proxy
77
+
78
+    res.write = function write (chunk, encoding) {
79
+      if (ended) {
80
+        return false
81
+      }
82
+
83
+      if (!this._header) {
84
+        this._implicitHeader()
85
+      }
86
+
87
+      return stream
88
+        ? stream.write(toBuffer(chunk, encoding))
89
+        : _write.call(this, chunk, encoding)
90
+    }
91
+
92
+    res.end = function end (chunk, encoding) {
93
+      if (ended) {
94
+        return false
95
+      }
96
+
97
+      if (!this._header) {
98
+        // estimate the length
99
+        if (!this.getHeader('Content-Length')) {
100
+          length = chunkLength(chunk, encoding)
101
+        }
102
+
103
+        this._implicitHeader()
104
+      }
105
+
106
+      if (!stream) {
107
+        return _end.call(this, chunk, encoding)
108
+      }
109
+
110
+      // mark ended
111
+      ended = true
112
+
113
+      // write Buffer for Node.js 0.8
114
+      return chunk
115
+        ? stream.end(toBuffer(chunk, encoding))
116
+        : stream.end()
117
+    }
118
+
119
+    res.on = function on (type, listener) {
120
+      if (!listeners || type !== 'drain') {
121
+        return _on.call(this, type, listener)
122
+      }
123
+
124
+      if (stream) {
125
+        return stream.on(type, listener)
126
+      }
127
+
128
+      // buffer listeners for future stream
129
+      listeners.push([type, listener])
130
+
131
+      return this
132
+    }
133
+
134
+    function nocompress (msg) {
135
+      debug('no compression: %s', msg)
136
+      addListeners(res, _on, listeners)
137
+      listeners = null
138
+    }
139
+
140
+    onHeaders(res, function onResponseHeaders () {
141
+      // determine if request is filtered
142
+      if (!filter(req, res)) {
143
+        nocompress('filtered')
144
+        return
145
+      }
146
+
147
+      // determine if the entity should be transformed
148
+      if (!shouldTransform(req, res)) {
149
+        nocompress('no transform')
150
+        return
151
+      }
152
+
153
+      // vary
154
+      vary(res, 'Accept-Encoding')
155
+
156
+      // content-length below threshold
157
+      if (Number(res.getHeader('Content-Length')) < threshold || length < threshold) {
158
+        nocompress('size below threshold')
159
+        return
160
+      }
161
+
162
+      var encoding = res.getHeader('Content-Encoding') || 'identity'
163
+
164
+      // already encoded
165
+      if (encoding !== 'identity') {
166
+        nocompress('already encoded')
167
+        return
168
+      }
169
+
170
+      // head
171
+      if (req.method === 'HEAD') {
172
+        nocompress('HEAD request')
173
+        return
174
+      }
175
+
176
+      // compression method
177
+      var accept = accepts(req)
178
+      var method = accept.encoding(['gzip', 'deflate', 'identity'])
179
+
180
+      // we really don't prefer deflate
181
+      if (method === 'deflate' && accept.encoding(['gzip'])) {
182
+        method = accept.encoding(['gzip', 'identity'])
183
+      }
184
+
185
+      // negotiation failed
186
+      if (!method || method === 'identity') {
187
+        nocompress('not acceptable')
188
+        return
189
+      }
190
+
191
+      // compression stream
192
+      debug('%s compression', method)
193
+      stream = method === 'gzip'
194
+        ? zlib.createGzip(opts)
195
+        : zlib.createDeflate(opts)
196
+
197
+      // add buffered listeners to stream
198
+      addListeners(stream, stream.on, listeners)
199
+
200
+      // header fields
201
+      res.setHeader('Content-Encoding', method)
202
+      res.removeHeader('Content-Length')
203
+
204
+      // compression
205
+      stream.on('data', function onStreamData (chunk) {
206
+        if (_write.call(res, chunk) === false) {
207
+          stream.pause()
208
+        }
209
+      })
210
+
211
+      stream.on('end', function onStreamEnd () {
212
+        _end.call(res)
213
+      })
214
+
215
+      _on.call(res, 'drain', function onResponseDrain () {
216
+        stream.resume()
217
+      })
218
+    })
219
+
220
+    next()
221
+  }
222
+}
223
+
224
+/**
225
+ * Add bufferred listeners to stream
226
+ * @private
227
+ */
228
+
229
+function addListeners (stream, on, listeners) {
230
+  for (var i = 0; i < listeners.length; i++) {
231
+    on.apply(stream, listeners[i])
232
+  }
233
+}
234
+
235
+/**
236
+ * Get the length of a given chunk
237
+ */
238
+
239
+function chunkLength (chunk, encoding) {
240
+  if (!chunk) {
241
+    return 0
242
+  }
243
+
244
+  return !Buffer.isBuffer(chunk)
245
+    ? Buffer.byteLength(chunk, encoding)
246
+    : chunk.length
247
+}
248
+
249
+/**
250
+ * Default filter function.
251
+ * @private
252
+ */
253
+
254
+function shouldCompress (req, res) {
255
+  var type = res.getHeader('Content-Type')
256
+
257
+  if (type === undefined || !compressible(type)) {
258
+    debug('%s not compressible', type)
259
+    return false
260
+  }
261
+
262
+  return true
263
+}
264
+
265
+/**
266
+ * Determine if the entity should be transformed.
267
+ * @private
268
+ */
269
+
270
+function shouldTransform (req, res) {
271
+  var cacheControl = res.getHeader('Cache-Control')
272
+
273
+  // Don't compress for Cache-Control: no-transform
274
+  // https://tools.ietf.org/html/rfc7234#section-5.2.2.4
275
+  return !cacheControl ||
276
+    !cacheControlNoTransformRegExp.test(cacheControl)
277
+}
278
+
279
+/**
280
+ * Coerce arguments to Buffer
281
+ * @private
282
+ */
283
+
284
+function toBuffer (chunk, encoding) {
285
+  return !Buffer.isBuffer(chunk)
286
+    ? Buffer.from(chunk, encoding)
287
+    : chunk
288
+}

+ 86
- 0
km0App/node_modules/compression/package.json Datei anzeigen

@@ -0,0 +1,86 @@
1
+{
2
+  "_from": "compression@^1.6.0",
3
+  "_id": "compression@1.7.4",
4
+  "_inBundle": false,
5
+  "_integrity": "sha512-jaSIDzP9pZVS4ZfQ+TzvtiWhdpFhE2RDHz8QJkpX9SIpLq88VueF5jJw6t+6CUQcAoA6t+x89MLrWAqpfDE8iQ==",
6
+  "_location": "/compression",
7
+  "_phantomChildren": {},
8
+  "_requested": {
9
+    "type": "range",
10
+    "registry": true,
11
+    "raw": "compression@^1.6.0",
12
+    "name": "compression",
13
+    "escapedName": "compression",
14
+    "rawSpec": "^1.6.0",
15
+    "saveSpec": null,
16
+    "fetchSpec": "^1.6.0"
17
+  },
18
+  "_requiredBy": [
19
+    "/cordova-serve"
20
+  ],
21
+  "_resolved": "https://registry.npmjs.org/compression/-/compression-1.7.4.tgz",
22
+  "_shasum": "95523eff170ca57c29a0ca41e6fe131f41e5bb8f",
23
+  "_spec": "compression@^1.6.0",
24
+  "_where": "/home/luis/Software/kilometro0/km0App/node_modules/cordova-serve",
25
+  "bugs": {
26
+    "url": "https://github.com/expressjs/compression/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
+    "accepts": "~1.3.5",
42
+    "bytes": "3.0.0",
43
+    "compressible": "~2.0.16",
44
+    "debug": "2.6.9",
45
+    "on-headers": "~1.0.2",
46
+    "safe-buffer": "5.1.2",
47
+    "vary": "~1.1.2"
48
+  },
49
+  "deprecated": false,
50
+  "description": "Node.js compression middleware",
51
+  "devDependencies": {
52
+    "after": "0.8.2",
53
+    "eslint": "5.15.1",
54
+    "eslint-config-standard": "12.0.0",
55
+    "eslint-plugin-import": "2.16.0",
56
+    "eslint-plugin-markdown": "1.0.0",
57
+    "eslint-plugin-node": "7.0.1",
58
+    "eslint-plugin-promise": "4.0.1",
59
+    "eslint-plugin-standard": "4.0.0",
60
+    "istanbul": "0.4.5",
61
+    "mocha": "6.0.2",
62
+    "supertest": "4.0.0"
63
+  },
64
+  "engines": {
65
+    "node": ">= 0.8.0"
66
+  },
67
+  "files": [
68
+    "LICENSE",
69
+    "HISTORY.md",
70
+    "index.js"
71
+  ],
72
+  "homepage": "https://github.com/expressjs/compression#readme",
73
+  "license": "MIT",
74
+  "name": "compression",
75
+  "repository": {
76
+    "type": "git",
77
+    "url": "git+https://github.com/expressjs/compression.git"
78
+  },
79
+  "scripts": {
80
+    "lint": "eslint --plugin markdown --ext js,md .",
81
+    "test": "mocha --check-leaks --reporter spec --bail",
82
+    "test-cov": "istanbul cover node_modules/mocha/bin/_mocha -- --check-leaks --reporter dot",
83
+    "test-travis": "istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --check-leaks --reporter spec"
84
+  },
85
+  "version": "1.7.4"
86
+}

+ 55
- 0
km0App/node_modules/content-disposition/HISTORY.md Datei anzeigen

@@ -0,0 +1,55 @@
1
+0.5.3 / 2018-12-17
2
+==================
3
+
4
+  * Use `safe-buffer` for improved Buffer API
5
+
6
+0.5.2 / 2016-12-08
7
+==================
8
+
9
+  * Fix `parse` to accept any linear whitespace character
10
+
11
+0.5.1 / 2016-01-17
12
+==================
13
+
14
+  * perf: enable strict mode
15
+
16
+0.5.0 / 2014-10-11
17
+==================
18
+
19
+  * Add `parse` function
20
+
21
+0.4.0 / 2014-09-21
22
+==================
23
+
24
+  * Expand non-Unicode `filename` to the full ISO-8859-1 charset
25
+
26
+0.3.0 / 2014-09-20
27
+==================
28
+
29
+  * Add `fallback` option
30
+  * Add `type` option
31
+
32
+0.2.0 / 2014-09-19
33
+==================
34
+
35
+  * Reduce ambiguity of file names with hex escape in buggy browsers
36
+
37
+0.1.2 / 2014-09-19
38
+==================
39
+
40
+  * Fix periodic invalid Unicode filename header
41
+
42
+0.1.1 / 2014-09-19
43
+==================
44
+
45
+  * Fix invalid characters appearing in `filename*` parameter
46
+
47
+0.1.0 / 2014-09-18
48
+==================
49
+
50
+  * Make the `filename` argument optional
51
+
52
+0.0.0 / 2014-09-18
53
+==================
54
+
55
+  * Initial release

+ 22
- 0
km0App/node_modules/content-disposition/LICENSE Datei anzeigen

@@ -0,0 +1,22 @@
1
+(The MIT License)
2
+
3
+Copyright (c) 2014-2017 Douglas Christopher Wilson
4
+
5
+Permission is hereby granted, free of charge, to any person obtaining
6
+a copy of this software and associated documentation files (the
7
+'Software'), to deal in the Software without restriction, including
8
+without limitation the rights to use, copy, modify, merge, publish,
9
+distribute, sublicense, and/or sell copies of the Software, and to
10
+permit persons to whom the Software is furnished to do so, subject to
11
+the following conditions:
12
+
13
+The above copyright notice and this permission notice shall be
14
+included in all copies or substantial portions of the Software.
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 OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
20
+CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
21
+TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
22
+SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

+ 148
- 0
km0App/node_modules/content-disposition/README.md Datei anzeigen

@@ -0,0 +1,148 @@
1
+# content-disposition
2
+
3
+[![NPM Version][npm-image]][npm-url]
4
+[![NPM Downloads][downloads-image]][downloads-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
+Create and parse HTTP `Content-Disposition` header
10
+
11
+## Installation
12
+
13
+```sh
14
+$ npm install content-disposition
15
+```
16
+
17
+## API
18
+
19
+<!-- eslint-disable no-unused-vars -->
20
+
21
+```js
22
+var contentDisposition = require('content-disposition')
23
+```
24
+
25
+### contentDisposition(filename, options)
26
+
27
+Create an attachment `Content-Disposition` header value using the given file name,
28
+if supplied. The `filename` is optional and if no file name is desired, but you
29
+want to specify `options`, set `filename` to `undefined`.
30
+
31
+<!-- eslint-disable no-undef -->
32
+
33
+```js
34
+res.setHeader('Content-Disposition', contentDisposition('∫ maths.pdf'))
35
+```
36
+
37
+**note** HTTP headers are of the ISO-8859-1 character set. If you are writing this
38
+header through a means different from `setHeader` in Node.js, you'll want to specify
39
+the `'binary'` encoding in Node.js.
40
+
41
+#### Options
42
+
43
+`contentDisposition` accepts these properties in the options object.
44
+
45
+##### fallback
46
+
47
+If the `filename` option is outside ISO-8859-1, then the file name is actually
48
+stored in a supplemental field for clients that support Unicode file names and
49
+a ISO-8859-1 version of the file name is automatically generated.
50
+
51
+This specifies the ISO-8859-1 file name to override the automatic generation or
52
+disables the generation all together, defaults to `true`.
53
+
54
+  - A string will specify the ISO-8859-1 file name to use in place of automatic
55
+    generation.
56
+  - `false` will disable including a ISO-8859-1 file name and only include the
57
+    Unicode version (unless the file name is already ISO-8859-1).
58
+  - `true` will enable automatic generation if the file name is outside ISO-8859-1.
59
+
60
+If the `filename` option is ISO-8859-1 and this option is specified and has a
61
+different value, then the `filename` option is encoded in the extended field
62
+and this set as the fallback field, even though they are both ISO-8859-1.
63
+
64
+##### type
65
+
66
+Specifies the disposition type, defaults to `"attachment"`. This can also be
67
+`"inline"`, or any other value (all values except inline are treated like
68
+`attachment`, but can convey additional information if both parties agree to
69
+it). The type is normalized to lower-case.
70
+
71
+### contentDisposition.parse(string)
72
+
73
+<!-- eslint-disable no-undef, no-unused-vars -->
74
+
75
+```js
76
+var disposition = contentDisposition.parse('attachment; filename="EURO rates.txt"; filename*=UTF-8\'\'%e2%82%ac%20rates.txt')
77
+```
78
+
79
+Parse a `Content-Disposition` header string. This automatically handles extended
80
+("Unicode") parameters by decoding them and providing them under the standard
81
+parameter name. This will return an object with the following properties (examples
82
+are shown for the string `'attachment; filename="EURO rates.txt"; filename*=UTF-8\'\'%e2%82%ac%20rates.txt'`):
83
+
84
+ - `type`: The disposition type (always lower case). Example: `'attachment'`
85
+
86
+ - `parameters`: An object of the parameters in the disposition (name of parameter
87
+   always lower case and extended versions replace non-extended versions). Example:
88
+   `{filename: "€ rates.txt"}`
89
+
90
+## Examples
91
+
92
+### Send a file for download
93
+
94
+```js
95
+var contentDisposition = require('content-disposition')
96
+var destroy = require('destroy')
97
+var fs = require('fs')
98
+var http = require('http')
99
+var onFinished = require('on-finished')
100
+
101
+var filePath = '/path/to/public/plans.pdf'
102
+
103
+http.createServer(function onRequest (req, res) {
104
+  // set headers
105
+  res.setHeader('Content-Type', 'application/pdf')
106
+  res.setHeader('Content-Disposition', contentDisposition(filePath))
107
+
108
+  // send file
109
+  var stream = fs.createReadStream(filePath)
110
+  stream.pipe(res)
111
+  onFinished(res, function () {
112
+    destroy(stream)
113
+  })
114
+})
115
+```
116
+
117
+## Testing
118
+
119
+```sh
120
+$ npm test
121
+```
122
+
123
+## References
124
+
125
+- [RFC 2616: Hypertext Transfer Protocol -- HTTP/1.1][rfc-2616]
126
+- [RFC 5987: Character Set and Language Encoding for Hypertext Transfer Protocol (HTTP) Header Field Parameters][rfc-5987]
127
+- [RFC 6266: Use of the Content-Disposition Header Field in the Hypertext Transfer Protocol (HTTP)][rfc-6266]
128
+- [Test Cases for HTTP Content-Disposition header field (RFC 6266) and the Encodings defined in RFCs 2047, 2231 and 5987][tc-2231]
129
+
130
+[rfc-2616]: https://tools.ietf.org/html/rfc2616
131
+[rfc-5987]: https://tools.ietf.org/html/rfc5987
132
+[rfc-6266]: https://tools.ietf.org/html/rfc6266
133
+[tc-2231]: http://greenbytes.de/tech/tc2231/
134
+
135
+## License
136
+
137
+[MIT](LICENSE)
138
+
139
+[npm-image]: https://img.shields.io/npm/v/content-disposition.svg
140
+[npm-url]: https://npmjs.org/package/content-disposition
141
+[node-version-image]: https://img.shields.io/node/v/content-disposition.svg
142
+[node-version-url]: https://nodejs.org/en/download
143
+[travis-image]: https://img.shields.io/travis/jshttp/content-disposition.svg
144
+[travis-url]: https://travis-ci.org/jshttp/content-disposition
145
+[coveralls-image]: https://img.shields.io/coveralls/jshttp/content-disposition.svg
146
+[coveralls-url]: https://coveralls.io/r/jshttp/content-disposition?branch=master
147
+[downloads-image]: https://img.shields.io/npm/dm/content-disposition.svg
148
+[downloads-url]: https://npmjs.org/package/content-disposition

+ 458
- 0
km0App/node_modules/content-disposition/index.js Datei anzeigen

@@ -0,0 +1,458 @@
1
+/*!
2
+ * content-disposition
3
+ * Copyright(c) 2014-2017 Douglas Christopher Wilson
4
+ * MIT Licensed
5
+ */
6
+
7
+'use strict'
8
+
9
+/**
10
+ * Module exports.
11
+ * @public
12
+ */
13
+
14
+module.exports = contentDisposition
15
+module.exports.parse = parse
16
+
17
+/**
18
+ * Module dependencies.
19
+ * @private
20
+ */
21
+
22
+var basename = require('path').basename
23
+var Buffer = require('safe-buffer').Buffer
24
+
25
+/**
26
+ * RegExp to match non attr-char, *after* encodeURIComponent (i.e. not including "%")
27
+ * @private
28
+ */
29
+
30
+var ENCODE_URL_ATTR_CHAR_REGEXP = /[\x00-\x20"'()*,/:;<=>?@[\\\]{}\x7f]/g // eslint-disable-line no-control-regex
31
+
32
+/**
33
+ * RegExp to match percent encoding escape.
34
+ * @private
35
+ */
36
+
37
+var HEX_ESCAPE_REGEXP = /%[0-9A-Fa-f]{2}/
38
+var HEX_ESCAPE_REPLACE_REGEXP = /%([0-9A-Fa-f]{2})/g
39
+
40
+/**
41
+ * RegExp to match non-latin1 characters.
42
+ * @private
43
+ */
44
+
45
+var NON_LATIN1_REGEXP = /[^\x20-\x7e\xa0-\xff]/g
46
+
47
+/**
48
+ * RegExp to match quoted-pair in RFC 2616
49
+ *
50
+ * quoted-pair = "\" CHAR
51
+ * CHAR        = <any US-ASCII character (octets 0 - 127)>
52
+ * @private
53
+ */
54
+
55
+var QESC_REGEXP = /\\([\u0000-\u007f])/g // eslint-disable-line no-control-regex
56
+
57
+/**
58
+ * RegExp to match chars that must be quoted-pair in RFC 2616
59
+ * @private
60
+ */
61
+
62
+var QUOTE_REGEXP = /([\\"])/g
63
+
64
+/**
65
+ * RegExp for various RFC 2616 grammar
66
+ *
67
+ * parameter     = token "=" ( token | quoted-string )
68
+ * token         = 1*<any CHAR except CTLs or separators>
69
+ * separators    = "(" | ")" | "<" | ">" | "@"
70
+ *               | "," | ";" | ":" | "\" | <">
71
+ *               | "/" | "[" | "]" | "?" | "="
72
+ *               | "{" | "}" | SP | HT
73
+ * quoted-string = ( <"> *(qdtext | quoted-pair ) <"> )
74
+ * qdtext        = <any TEXT except <">>
75
+ * quoted-pair   = "\" CHAR
76
+ * CHAR          = <any US-ASCII character (octets 0 - 127)>
77
+ * TEXT          = <any OCTET except CTLs, but including LWS>
78
+ * LWS           = [CRLF] 1*( SP | HT )
79
+ * CRLF          = CR LF
80
+ * CR            = <US-ASCII CR, carriage return (13)>
81
+ * LF            = <US-ASCII LF, linefeed (10)>
82
+ * SP            = <US-ASCII SP, space (32)>
83
+ * HT            = <US-ASCII HT, horizontal-tab (9)>
84
+ * CTL           = <any US-ASCII control character (octets 0 - 31) and DEL (127)>
85
+ * OCTET         = <any 8-bit sequence of data>
86
+ * @private
87
+ */
88
+
89
+var PARAM_REGEXP = /;[\x09\x20]*([!#$%&'*+.0-9A-Z^_`a-z|~-]+)[\x09\x20]*=[\x09\x20]*("(?:[\x20!\x23-\x5b\x5d-\x7e\x80-\xff]|\\[\x20-\x7e])*"|[!#$%&'*+.0-9A-Z^_`a-z|~-]+)[\x09\x20]*/g // eslint-disable-line no-control-regex
90
+var TEXT_REGEXP = /^[\x20-\x7e\x80-\xff]+$/
91
+var TOKEN_REGEXP = /^[!#$%&'*+.0-9A-Z^_`a-z|~-]+$/
92
+
93
+/**
94
+ * RegExp for various RFC 5987 grammar
95
+ *
96
+ * ext-value     = charset  "'" [ language ] "'" value-chars
97
+ * charset       = "UTF-8" / "ISO-8859-1" / mime-charset
98
+ * mime-charset  = 1*mime-charsetc
99
+ * mime-charsetc = ALPHA / DIGIT
100
+ *               / "!" / "#" / "$" / "%" / "&"
101
+ *               / "+" / "-" / "^" / "_" / "`"
102
+ *               / "{" / "}" / "~"
103
+ * language      = ( 2*3ALPHA [ extlang ] )
104
+ *               / 4ALPHA
105
+ *               / 5*8ALPHA
106
+ * extlang       = *3( "-" 3ALPHA )
107
+ * value-chars   = *( pct-encoded / attr-char )
108
+ * pct-encoded   = "%" HEXDIG HEXDIG
109
+ * attr-char     = ALPHA / DIGIT
110
+ *               / "!" / "#" / "$" / "&" / "+" / "-" / "."
111
+ *               / "^" / "_" / "`" / "|" / "~"
112
+ * @private
113
+ */
114
+
115
+var EXT_VALUE_REGEXP = /^([A-Za-z0-9!#$%&+\-^_`{}~]+)'(?:[A-Za-z]{2,3}(?:-[A-Za-z]{3}){0,3}|[A-Za-z]{4,8}|)'((?:%[0-9A-Fa-f]{2}|[A-Za-z0-9!#$&+.^_`|~-])+)$/
116
+
117
+/**
118
+ * RegExp for various RFC 6266 grammar
119
+ *
120
+ * disposition-type = "inline" | "attachment" | disp-ext-type
121
+ * disp-ext-type    = token
122
+ * disposition-parm = filename-parm | disp-ext-parm
123
+ * filename-parm    = "filename" "=" value
124
+ *                  | "filename*" "=" ext-value
125
+ * disp-ext-parm    = token "=" value
126
+ *                  | ext-token "=" ext-value
127
+ * ext-token        = <the characters in token, followed by "*">
128
+ * @private
129
+ */
130
+
131
+var DISPOSITION_TYPE_REGEXP = /^([!#$%&'*+.0-9A-Z^_`a-z|~-]+)[\x09\x20]*(?:$|;)/ // eslint-disable-line no-control-regex
132
+
133
+/**
134
+ * Create an attachment Content-Disposition header.
135
+ *
136
+ * @param {string} [filename]
137
+ * @param {object} [options]
138
+ * @param {string} [options.type=attachment]
139
+ * @param {string|boolean} [options.fallback=true]
140
+ * @return {string}
141
+ * @public
142
+ */
143
+
144
+function contentDisposition (filename, options) {
145
+  var opts = options || {}
146
+
147
+  // get type
148
+  var type = opts.type || 'attachment'
149
+
150
+  // get parameters
151
+  var params = createparams(filename, opts.fallback)
152
+
153
+  // format into string
154
+  return format(new ContentDisposition(type, params))
155
+}
156
+
157
+/**
158
+ * Create parameters object from filename and fallback.
159
+ *
160
+ * @param {string} [filename]
161
+ * @param {string|boolean} [fallback=true]
162
+ * @return {object}
163
+ * @private
164
+ */
165
+
166
+function createparams (filename, fallback) {
167
+  if (filename === undefined) {
168
+    return
169
+  }
170
+
171
+  var params = {}
172
+
173
+  if (typeof filename !== 'string') {
174
+    throw new TypeError('filename must be a string')
175
+  }
176
+
177
+  // fallback defaults to true
178
+  if (fallback === undefined) {
179
+    fallback = true
180
+  }
181
+
182
+  if (typeof fallback !== 'string' && typeof fallback !== 'boolean') {
183
+    throw new TypeError('fallback must be a string or boolean')
184
+  }
185
+
186
+  if (typeof fallback === 'string' && NON_LATIN1_REGEXP.test(fallback)) {
187
+    throw new TypeError('fallback must be ISO-8859-1 string')
188
+  }
189
+
190
+  // restrict to file base name
191
+  var name = basename(filename)
192
+
193
+  // determine if name is suitable for quoted string
194
+  var isQuotedString = TEXT_REGEXP.test(name)
195
+
196
+  // generate fallback name
197
+  var fallbackName = typeof fallback !== 'string'
198
+    ? fallback && getlatin1(name)
199
+    : basename(fallback)
200
+  var hasFallback = typeof fallbackName === 'string' && fallbackName !== name
201
+
202
+  // set extended filename parameter
203
+  if (hasFallback || !isQuotedString || HEX_ESCAPE_REGEXP.test(name)) {
204
+    params['filename*'] = name
205
+  }
206
+
207
+  // set filename parameter
208
+  if (isQuotedString || hasFallback) {
209
+    params.filename = hasFallback
210
+      ? fallbackName
211
+      : name
212
+  }
213
+
214
+  return params
215
+}
216
+
217
+/**
218
+ * Format object to Content-Disposition header.
219
+ *
220
+ * @param {object} obj
221
+ * @param {string} obj.type
222
+ * @param {object} [obj.parameters]
223
+ * @return {string}
224
+ * @private
225
+ */
226
+
227
+function format (obj) {
228
+  var parameters = obj.parameters
229
+  var type = obj.type
230
+
231
+  if (!type || typeof type !== 'string' || !TOKEN_REGEXP.test(type)) {
232
+    throw new TypeError('invalid type')
233
+  }
234
+
235
+  // start with normalized type
236
+  var string = String(type).toLowerCase()
237
+
238
+  // append parameters
239
+  if (parameters && typeof parameters === 'object') {
240
+    var param
241
+    var params = Object.keys(parameters).sort()
242
+
243
+    for (var i = 0; i < params.length; i++) {
244
+      param = params[i]
245
+
246
+      var val = param.substr(-1) === '*'
247
+        ? ustring(parameters[param])
248
+        : qstring(parameters[param])
249
+
250
+      string += '; ' + param + '=' + val
251
+    }
252
+  }
253
+
254
+  return string
255
+}
256
+
257
+/**
258
+ * Decode a RFC 6987 field value (gracefully).
259
+ *
260
+ * @param {string} str
261
+ * @return {string}
262
+ * @private
263
+ */
264
+
265
+function decodefield (str) {
266
+  var match = EXT_VALUE_REGEXP.exec(str)
267
+
268
+  if (!match) {
269
+    throw new TypeError('invalid extended field value')
270
+  }
271
+
272
+  var charset = match[1].toLowerCase()
273
+  var encoded = match[2]
274
+  var value
275
+
276
+  // to binary string
277
+  var binary = encoded.replace(HEX_ESCAPE_REPLACE_REGEXP, pdecode)
278
+
279
+  switch (charset) {
280
+    case 'iso-8859-1':
281
+      value = getlatin1(binary)
282
+      break
283
+    case 'utf-8':
284
+      value = Buffer.from(binary, 'binary').toString('utf8')
285
+      break
286
+    default:
287
+      throw new TypeError('unsupported charset in extended field')
288
+  }
289
+
290
+  return value
291
+}
292
+
293
+/**
294
+ * Get ISO-8859-1 version of string.
295
+ *
296
+ * @param {string} val
297
+ * @return {string}
298
+ * @private
299
+ */
300
+
301
+function getlatin1 (val) {
302
+  // simple Unicode -> ISO-8859-1 transformation
303
+  return String(val).replace(NON_LATIN1_REGEXP, '?')
304
+}
305
+
306
+/**
307
+ * Parse Content-Disposition header string.
308
+ *
309
+ * @param {string} string
310
+ * @return {object}
311
+ * @public
312
+ */
313
+
314
+function parse (string) {
315
+  if (!string || typeof string !== 'string') {
316
+    throw new TypeError('argument string is required')
317
+  }
318
+
319
+  var match = DISPOSITION_TYPE_REGEXP.exec(string)
320
+
321
+  if (!match) {
322
+    throw new TypeError('invalid type format')
323
+  }
324
+
325
+  // normalize type
326
+  var index = match[0].length
327
+  var type = match[1].toLowerCase()
328
+
329
+  var key
330
+  var names = []
331
+  var params = {}
332
+  var value
333
+
334
+  // calculate index to start at
335
+  index = PARAM_REGEXP.lastIndex = match[0].substr(-1) === ';'
336
+    ? index - 1
337
+    : index
338
+
339
+  // match parameters
340
+  while ((match = PARAM_REGEXP.exec(string))) {
341
+    if (match.index !== index) {
342
+      throw new TypeError('invalid parameter format')
343
+    }
344
+
345
+    index += match[0].length
346
+    key = match[1].toLowerCase()
347
+    value = match[2]
348
+
349
+    if (names.indexOf(key) !== -1) {
350
+      throw new TypeError('invalid duplicate parameter')
351
+    }
352
+
353
+    names.push(key)
354
+
355
+    if (key.indexOf('*') + 1 === key.length) {
356
+      // decode extended value
357
+      key = key.slice(0, -1)
358
+      value = decodefield(value)
359
+
360
+      // overwrite existing value
361
+      params[key] = value
362
+      continue
363
+    }
364
+
365
+    if (typeof params[key] === 'string') {
366
+      continue
367
+    }
368
+
369
+    if (value[0] === '"') {
370
+      // remove quotes and escapes
371
+      value = value
372
+        .substr(1, value.length - 2)
373
+        .replace(QESC_REGEXP, '$1')
374
+    }
375
+
376
+    params[key] = value
377
+  }
378
+
379
+  if (index !== -1 && index !== string.length) {
380
+    throw new TypeError('invalid parameter format')
381
+  }
382
+
383
+  return new ContentDisposition(type, params)
384
+}
385
+
386
+/**
387
+ * Percent decode a single character.
388
+ *
389
+ * @param {string} str
390
+ * @param {string} hex
391
+ * @return {string}
392
+ * @private
393
+ */
394
+
395
+function pdecode (str, hex) {
396
+  return String.fromCharCode(parseInt(hex, 16))
397
+}
398
+
399
+/**
400
+ * Percent encode a single character.
401
+ *
402
+ * @param {string} char
403
+ * @return {string}
404
+ * @private
405
+ */
406
+
407
+function pencode (char) {
408
+  return '%' + String(char)
409
+    .charCodeAt(0)
410
+    .toString(16)
411
+    .toUpperCase()
412
+}
413
+
414
+/**
415
+ * Quote a string for HTTP.
416
+ *
417
+ * @param {string} val
418
+ * @return {string}
419
+ * @private
420
+ */
421
+
422
+function qstring (val) {
423
+  var str = String(val)
424
+
425
+  return '"' + str.replace(QUOTE_REGEXP, '\\$1') + '"'
426
+}
427
+
428
+/**
429
+ * Encode a Unicode string for HTTP (RFC 5987).
430
+ *
431
+ * @param {string} val
432
+ * @return {string}
433
+ * @private
434
+ */
435
+
436
+function ustring (val) {
437
+  var str = String(val)
438
+
439
+  // percent encode as UTF-8
440
+  var encoded = encodeURIComponent(str)
441
+    .replace(ENCODE_URL_ATTR_CHAR_REGEXP, pencode)
442
+
443
+  return 'UTF-8\'\'' + encoded
444
+}
445
+
446
+/**
447
+ * Class for parsed Content-Disposition header for v8 optimization
448
+ *
449
+ * @public
450
+ * @param {string} type
451
+ * @param {object} parameters
452
+ * @constructor
453
+ */
454
+
455
+function ContentDisposition (type, parameters) {
456
+  this.type = type
457
+  this.parameters = parameters
458
+}

+ 79
- 0
km0App/node_modules/content-disposition/package.json Datei anzeigen

@@ -0,0 +1,79 @@
1
+{
2
+  "_from": "content-disposition@0.5.3",
3
+  "_id": "content-disposition@0.5.3",
4
+  "_inBundle": false,
5
+  "_integrity": "sha512-ExO0774ikEObIAEV9kDo50o+79VCUdEB6n6lzKgGwupcVeRlhrj3qGAfwq8G6uBJjkqLrhT0qEYFcWng8z1z0g==",
6
+  "_location": "/content-disposition",
7
+  "_phantomChildren": {},
8
+  "_requested": {
9
+    "type": "version",
10
+    "registry": true,
11
+    "raw": "content-disposition@0.5.3",
12
+    "name": "content-disposition",
13
+    "escapedName": "content-disposition",
14
+    "rawSpec": "0.5.3",
15
+    "saveSpec": null,
16
+    "fetchSpec": "0.5.3"
17
+  },
18
+  "_requiredBy": [
19
+    "/express"
20
+  ],
21
+  "_resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.3.tgz",
22
+  "_shasum": "e130caf7e7279087c5616c2007d0485698984fbd",
23
+  "_spec": "content-disposition@0.5.3",
24
+  "_where": "/home/luis/Software/kilometro0/km0App/node_modules/express",
25
+  "author": {
26
+    "name": "Douglas Christopher Wilson",
27
+    "email": "doug@somethingdoug.com"
28
+  },
29
+  "bugs": {
30
+    "url": "https://github.com/jshttp/content-disposition/issues"
31
+  },
32
+  "bundleDependencies": false,
33
+  "dependencies": {
34
+    "safe-buffer": "5.1.2"
35
+  },
36
+  "deprecated": false,
37
+  "description": "Create and parse Content-Disposition header",
38
+  "devDependencies": {
39
+    "deep-equal": "1.0.1",
40
+    "eslint": "5.10.0",
41
+    "eslint-config-standard": "12.0.0",
42
+    "eslint-plugin-import": "2.14.0",
43
+    "eslint-plugin-markdown": "1.0.0-rc.1",
44
+    "eslint-plugin-node": "7.0.1",
45
+    "eslint-plugin-promise": "4.0.1",
46
+    "eslint-plugin-standard": "4.0.0",
47
+    "istanbul": "0.4.5",
48
+    "mocha": "5.2.0"
49
+  },
50
+  "engines": {
51
+    "node": ">= 0.6"
52
+  },
53
+  "files": [
54
+    "LICENSE",
55
+    "HISTORY.md",
56
+    "README.md",
57
+    "index.js"
58
+  ],
59
+  "homepage": "https://github.com/jshttp/content-disposition#readme",
60
+  "keywords": [
61
+    "content-disposition",
62
+    "http",
63
+    "rfc6266",
64
+    "res"
65
+  ],
66
+  "license": "MIT",
67
+  "name": "content-disposition",
68
+  "repository": {
69
+    "type": "git",
70
+    "url": "git+https://github.com/jshttp/content-disposition.git"
71
+  },
72
+  "scripts": {
73
+    "lint": "eslint --plugin markdown --ext js,md .",
74
+    "test": "mocha --reporter spec --bail --check-leaks test/",
75
+    "test-cov": "istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot --check-leaks test/",
76
+    "test-travis": "istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter spec --check-leaks test/"
77
+  },
78
+  "version": "0.5.3"
79
+}

+ 24
- 0
km0App/node_modules/content-type/HISTORY.md Datei anzeigen

@@ -0,0 +1,24 @@
1
+1.0.4 / 2017-09-11
2
+==================
3
+
4
+  * perf: skip parameter parsing when no parameters
5
+
6
+1.0.3 / 2017-09-10
7
+==================
8
+
9
+  * perf: remove argument reassignment
10
+
11
+1.0.2 / 2016-05-09
12
+==================
13
+
14
+  * perf: enable strict mode
15
+
16
+1.0.1 / 2015-02-13
17
+==================
18
+
19
+  * Improve missing `Content-Type` header error message
20
+
21
+1.0.0 / 2015-02-01
22
+==================
23
+
24
+  * Initial implementation, derived from `media-typer@0.3.0`

+ 22
- 0
km0App/node_modules/content-type/LICENSE Datei anzeigen

@@ -0,0 +1,22 @@
1
+(The MIT License)
2
+
3
+Copyright (c) 2015 Douglas Christopher Wilson
4
+
5
+Permission is hereby granted, free of charge, to any person obtaining
6
+a copy of this software and associated documentation files (the
7
+'Software'), to deal in the Software without restriction, including
8
+without limitation the rights to use, copy, modify, merge, publish,
9
+distribute, sublicense, and/or sell copies of the Software, and to
10
+permit persons to whom the Software is furnished to do so, subject to
11
+the following conditions:
12
+
13
+The above copyright notice and this permission notice shall be
14
+included in all copies or substantial portions of the Software.
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 OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
20
+CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
21
+TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
22
+SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

+ 92
- 0
km0App/node_modules/content-type/README.md Datei anzeigen

@@ -0,0 +1,92 @@
1
+# content-type
2
+
3
+[![NPM Version][npm-image]][npm-url]
4
+[![NPM Downloads][downloads-image]][downloads-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
+Create and parse HTTP Content-Type header according to RFC 7231
10
+
11
+## Installation
12
+
13
+```sh
14
+$ npm install content-type
15
+```
16
+
17
+## API
18
+
19
+```js
20
+var contentType = require('content-type')
21
+```
22
+
23
+### contentType.parse(string)
24
+
25
+```js
26
+var obj = contentType.parse('image/svg+xml; charset=utf-8')
27
+```
28
+
29
+Parse a content type string. This will return an object with the following
30
+properties (examples are shown for the string `'image/svg+xml; charset=utf-8'`):
31
+
32
+ - `type`: The media type (the type and subtype, always lower case).
33
+   Example: `'image/svg+xml'`
34
+
35
+ - `parameters`: An object of the parameters in the media type (name of parameter
36
+   always lower case). Example: `{charset: 'utf-8'}`
37
+
38
+Throws a `TypeError` if the string is missing or invalid.
39
+
40
+### contentType.parse(req)
41
+
42
+```js
43
+var obj = contentType.parse(req)
44
+```
45
+
46
+Parse the `content-type` header from the given `req`. Short-cut for
47
+`contentType.parse(req.headers['content-type'])`.
48
+
49
+Throws a `TypeError` if the `Content-Type` header is missing or invalid.
50
+
51
+### contentType.parse(res)
52
+
53
+```js
54
+var obj = contentType.parse(res)
55
+```
56
+
57
+Parse the `content-type` header set on the given `res`. Short-cut for
58
+`contentType.parse(res.getHeader('content-type'))`.
59
+
60
+Throws a `TypeError` if the `Content-Type` header is missing or invalid.
61
+
62
+### contentType.format(obj)
63
+
64
+```js
65
+var str = contentType.format({type: 'image/svg+xml'})
66
+```
67
+
68
+Format an object into a content type string. This will return a string of the
69
+content type for the given object with the following properties (examples are
70
+shown that produce the string `'image/svg+xml; charset=utf-8'`):
71
+
72
+ - `type`: The media type (will be lower-cased). Example: `'image/svg+xml'`
73
+
74
+ - `parameters`: An object of the parameters in the media type (name of the
75
+   parameter will be lower-cased). Example: `{charset: 'utf-8'}`
76
+
77
+Throws a `TypeError` if the object contains an invalid type or parameter names.
78
+
79
+## License
80
+
81
+[MIT](LICENSE)
82
+
83
+[npm-image]: https://img.shields.io/npm/v/content-type.svg
84
+[npm-url]: https://npmjs.org/package/content-type
85
+[node-version-image]: https://img.shields.io/node/v/content-type.svg
86
+[node-version-url]: http://nodejs.org/download/
87
+[travis-image]: https://img.shields.io/travis/jshttp/content-type/master.svg
88
+[travis-url]: https://travis-ci.org/jshttp/content-type
89
+[coveralls-image]: https://img.shields.io/coveralls/jshttp/content-type/master.svg
90
+[coveralls-url]: https://coveralls.io/r/jshttp/content-type
91
+[downloads-image]: https://img.shields.io/npm/dm/content-type.svg
92
+[downloads-url]: https://npmjs.org/package/content-type

+ 222
- 0
km0App/node_modules/content-type/index.js Datei anzeigen

@@ -0,0 +1,222 @@
1
+/*!
2
+ * content-type
3
+ * Copyright(c) 2015 Douglas Christopher Wilson
4
+ * MIT Licensed
5
+ */
6
+
7
+'use strict'
8
+
9
+/**
10
+ * RegExp to match *( ";" parameter ) in RFC 7231 sec 3.1.1.1
11
+ *
12
+ * parameter     = token "=" ( token / quoted-string )
13
+ * token         = 1*tchar
14
+ * tchar         = "!" / "#" / "$" / "%" / "&" / "'" / "*"
15
+ *               / "+" / "-" / "." / "^" / "_" / "`" / "|" / "~"
16
+ *               / DIGIT / ALPHA
17
+ *               ; any VCHAR, except delimiters
18
+ * quoted-string = DQUOTE *( qdtext / quoted-pair ) DQUOTE
19
+ * qdtext        = HTAB / SP / %x21 / %x23-5B / %x5D-7E / obs-text
20
+ * obs-text      = %x80-FF
21
+ * quoted-pair   = "\" ( HTAB / SP / VCHAR / obs-text )
22
+ */
23
+var PARAM_REGEXP = /; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g
24
+var TEXT_REGEXP = /^[\u000b\u0020-\u007e\u0080-\u00ff]+$/
25
+var TOKEN_REGEXP = /^[!#$%&'*+.^_`|~0-9A-Za-z-]+$/
26
+
27
+/**
28
+ * RegExp to match quoted-pair in RFC 7230 sec 3.2.6
29
+ *
30
+ * quoted-pair = "\" ( HTAB / SP / VCHAR / obs-text )
31
+ * obs-text    = %x80-FF
32
+ */
33
+var QESC_REGEXP = /\\([\u000b\u0020-\u00ff])/g
34
+
35
+/**
36
+ * RegExp to match chars that must be quoted-pair in RFC 7230 sec 3.2.6
37
+ */
38
+var QUOTE_REGEXP = /([\\"])/g
39
+
40
+/**
41
+ * RegExp to match type in RFC 7231 sec 3.1.1.1
42
+ *
43
+ * media-type = type "/" subtype
44
+ * type       = token
45
+ * subtype    = token
46
+ */
47
+var TYPE_REGEXP = /^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/
48
+
49
+/**
50
+ * Module exports.
51
+ * @public
52
+ */
53
+
54
+exports.format = format
55
+exports.parse = parse
56
+
57
+/**
58
+ * Format object to media type.
59
+ *
60
+ * @param {object} obj
61
+ * @return {string}
62
+ * @public
63
+ */
64
+
65
+function format (obj) {
66
+  if (!obj || typeof obj !== 'object') {
67
+    throw new TypeError('argument obj is required')
68
+  }
69
+
70
+  var parameters = obj.parameters
71
+  var type = obj.type
72
+
73
+  if (!type || !TYPE_REGEXP.test(type)) {
74
+    throw new TypeError('invalid type')
75
+  }
76
+
77
+  var string = type
78
+
79
+  // append parameters
80
+  if (parameters && typeof parameters === 'object') {
81
+    var param
82
+    var params = Object.keys(parameters).sort()
83
+
84
+    for (var i = 0; i < params.length; i++) {
85
+      param = params[i]
86
+
87
+      if (!TOKEN_REGEXP.test(param)) {
88
+        throw new TypeError('invalid parameter name')
89
+      }
90
+
91
+      string += '; ' + param + '=' + qstring(parameters[param])
92
+    }
93
+  }
94
+
95
+  return string
96
+}
97
+
98
+/**
99
+ * Parse media type to object.
100
+ *
101
+ * @param {string|object} string
102
+ * @return {Object}
103
+ * @public
104
+ */
105
+
106
+function parse (string) {
107
+  if (!string) {
108
+    throw new TypeError('argument string is required')
109
+  }
110
+
111
+  // support req/res-like objects as argument
112
+  var header = typeof string === 'object'
113
+    ? getcontenttype(string)
114
+    : string
115
+
116
+  if (typeof header !== 'string') {
117
+    throw new TypeError('argument string is required to be a string')
118
+  }
119
+
120
+  var index = header.indexOf(';')
121
+  var type = index !== -1
122
+    ? header.substr(0, index).trim()
123
+    : header.trim()
124
+
125
+  if (!TYPE_REGEXP.test(type)) {
126
+    throw new TypeError('invalid media type')
127
+  }
128
+
129
+  var obj = new ContentType(type.toLowerCase())
130
+
131
+  // parse parameters
132
+  if (index !== -1) {
133
+    var key
134
+    var match
135
+    var value
136
+
137
+    PARAM_REGEXP.lastIndex = index
138
+
139
+    while ((match = PARAM_REGEXP.exec(header))) {
140
+      if (match.index !== index) {
141
+        throw new TypeError('invalid parameter format')
142
+      }
143
+
144
+      index += match[0].length
145
+      key = match[1].toLowerCase()
146
+      value = match[2]
147
+
148
+      if (value[0] === '"') {
149
+        // remove quotes and escapes
150
+        value = value
151
+          .substr(1, value.length - 2)
152
+          .replace(QESC_REGEXP, '$1')
153
+      }
154
+
155
+      obj.parameters[key] = value
156
+    }
157
+
158
+    if (index !== header.length) {
159
+      throw new TypeError('invalid parameter format')
160
+    }
161
+  }
162
+
163
+  return obj
164
+}
165
+
166
+/**
167
+ * Get content-type from req/res objects.
168
+ *
169
+ * @param {object}
170
+ * @return {Object}
171
+ * @private
172
+ */
173
+
174
+function getcontenttype (obj) {
175
+  var header
176
+
177
+  if (typeof obj.getHeader === 'function') {
178
+    // res-like
179
+    header = obj.getHeader('content-type')
180
+  } else if (typeof obj.headers === 'object') {
181
+    // req-like
182
+    header = obj.headers && obj.headers['content-type']
183
+  }
184
+
185
+  if (typeof header !== 'string') {
186
+    throw new TypeError('content-type header is missing from object')
187
+  }
188
+
189
+  return header
190
+}
191
+
192
+/**
193
+ * Quote a string if necessary.
194
+ *
195
+ * @param {string} val
196
+ * @return {string}
197
+ * @private
198
+ */
199
+
200
+function qstring (val) {
201
+  var str = String(val)
202
+
203
+  // no need to quote tokens
204
+  if (TOKEN_REGEXP.test(str)) {
205
+    return str
206
+  }
207
+
208
+  if (str.length > 0 && !TEXT_REGEXP.test(str)) {
209
+    throw new TypeError('invalid parameter value')
210
+  }
211
+
212
+  return '"' + str.replace(QUOTE_REGEXP, '\\$1') + '"'
213
+}
214
+
215
+/**
216
+ * Class to represent a content type.
217
+ * @private
218
+ */
219
+function ContentType (type) {
220
+  this.parameters = Object.create(null)
221
+  this.type = type
222
+}

+ 76
- 0
km0App/node_modules/content-type/package.json Datei anzeigen

@@ -0,0 +1,76 @@
1
+{
2
+  "_from": "content-type@~1.0.4",
3
+  "_id": "content-type@1.0.4",
4
+  "_inBundle": false,
5
+  "_integrity": "sha512-hIP3EEPs8tB9AT1L+NUqtwOAps4mk2Zob89MWXMHjHWg9milF/j4osnnQLXBCBFBk/tvIG/tUc9mOUJiPBhPXA==",
6
+  "_location": "/content-type",
7
+  "_phantomChildren": {},
8
+  "_requested": {
9
+    "type": "range",
10
+    "registry": true,
11
+    "raw": "content-type@~1.0.4",
12
+    "name": "content-type",
13
+    "escapedName": "content-type",
14
+    "rawSpec": "~1.0.4",
15
+    "saveSpec": null,
16
+    "fetchSpec": "~1.0.4"
17
+  },
18
+  "_requiredBy": [
19
+    "/body-parser",
20
+    "/express"
21
+  ],
22
+  "_resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.4.tgz",
23
+  "_shasum": "e138cc75e040c727b1966fe5e5f8c9aee256fe3b",
24
+  "_spec": "content-type@~1.0.4",
25
+  "_where": "/home/luis/Software/kilometro0/km0App/node_modules/express",
26
+  "author": {
27
+    "name": "Douglas Christopher Wilson",
28
+    "email": "doug@somethingdoug.com"
29
+  },
30
+  "bugs": {
31
+    "url": "https://github.com/jshttp/content-type/issues"
32
+  },
33
+  "bundleDependencies": false,
34
+  "deprecated": false,
35
+  "description": "Create and parse HTTP Content-Type header",
36
+  "devDependencies": {
37
+    "eslint": "3.19.0",
38
+    "eslint-config-standard": "10.2.1",
39
+    "eslint-plugin-import": "2.7.0",
40
+    "eslint-plugin-node": "5.1.1",
41
+    "eslint-plugin-promise": "3.5.0",
42
+    "eslint-plugin-standard": "3.0.1",
43
+    "istanbul": "0.4.5",
44
+    "mocha": "~1.21.5"
45
+  },
46
+  "engines": {
47
+    "node": ">= 0.6"
48
+  },
49
+  "files": [
50
+    "LICENSE",
51
+    "HISTORY.md",
52
+    "README.md",
53
+    "index.js"
54
+  ],
55
+  "homepage": "https://github.com/jshttp/content-type#readme",
56
+  "keywords": [
57
+    "content-type",
58
+    "http",
59
+    "req",
60
+    "res",
61
+    "rfc7231"
62
+  ],
63
+  "license": "MIT",
64
+  "name": "content-type",
65
+  "repository": {
66
+    "type": "git",
67
+    "url": "git+https://github.com/jshttp/content-type.git"
68
+  },
69
+  "scripts": {
70
+    "lint": "eslint .",
71
+    "test": "mocha --reporter spec --check-leaks --bail test/",
72
+    "test-ci": "istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter spec --check-leaks test/",
73
+    "test-cov": "istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot --check-leaks test/"
74
+  },
75
+  "version": "1.0.4"
76
+}

+ 4
- 0
km0App/node_modules/cookie-signature/.npmignore Datei anzeigen

@@ -0,0 +1,4 @@
1
+support
2
+test
3
+examples
4
+*.sock

+ 38
- 0
km0App/node_modules/cookie-signature/History.md Datei anzeigen

@@ -0,0 +1,38 @@
1
+1.0.6 / 2015-02-03
2
+==================
3
+
4
+* use `npm test` instead of `make test` to run tests
5
+* clearer assertion messages when checking input
6
+
7
+
8
+1.0.5 / 2014-09-05
9
+==================
10
+
11
+* add license to package.json
12
+
13
+1.0.4 / 2014-06-25
14
+==================
15
+
16
+ * corrected avoidance of timing attacks (thanks @tenbits!)
17
+
18
+1.0.3 / 2014-01-28
19
+==================
20
+
21
+ * [incorrect] fix for timing attacks
22
+
23
+1.0.2 / 2014-01-28
24
+==================
25
+
26
+ * fix missing repository warning
27
+ * fix typo in test
28
+
29
+1.0.1 / 2013-04-15
30
+==================
31
+
32
+  * Revert "Changed underlying HMAC algo. to sha512."
33
+  * Revert "Fix for timing attacks on MAC verification."
34
+
35
+0.0.1 / 2010-01-03
36
+==================
37
+
38
+  * Initial release

+ 42
- 0
km0App/node_modules/cookie-signature/Readme.md Datei anzeigen

@@ -0,0 +1,42 @@
1
+
2
+# cookie-signature
3
+
4
+  Sign and unsign cookies.
5
+
6
+## Example
7
+
8
+```js
9
+var cookie = require('cookie-signature');
10
+
11
+var val = cookie.sign('hello', 'tobiiscool');
12
+val.should.equal('hello.DGDUkGlIkCzPz+C0B064FNgHdEjox7ch8tOBGslZ5QI');
13
+
14
+var val = cookie.sign('hello', 'tobiiscool');
15
+cookie.unsign(val, 'tobiiscool').should.equal('hello');
16
+cookie.unsign(val, 'luna').should.be.false;
17
+```
18
+
19
+## License 
20
+
21
+(The MIT License)
22
+
23
+Copyright (c) 2012 LearnBoost &lt;tj@learnboost.com&gt;
24
+
25
+Permission is hereby granted, free of charge, to any person obtaining
26
+a copy of this software and associated documentation files (the
27
+'Software'), to deal in the Software without restriction, including
28
+without limitation the rights to use, copy, modify, merge, publish,
29
+distribute, sublicense, and/or sell copies of the Software, and to
30
+permit persons to whom the Software is furnished to do so, subject to
31
+the following conditions:
32
+
33
+The above copyright notice and this permission notice shall be
34
+included in all copies or substantial portions of the Software.
35
+
36
+THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
37
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
38
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
39
+IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
40
+CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
41
+TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
42
+SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

+ 51
- 0
km0App/node_modules/cookie-signature/index.js Datei anzeigen

@@ -0,0 +1,51 @@
1
+/**
2
+ * Module dependencies.
3
+ */
4
+
5
+var crypto = require('crypto');
6
+
7
+/**
8
+ * Sign the given `val` with `secret`.
9
+ *
10
+ * @param {String} val
11
+ * @param {String} secret
12
+ * @return {String}
13
+ * @api private
14
+ */
15
+
16
+exports.sign = function(val, secret){
17
+  if ('string' != typeof val) throw new TypeError("Cookie value must be provided as a string.");
18
+  if ('string' != typeof secret) throw new TypeError("Secret string must be provided.");
19
+  return val + '.' + crypto
20
+    .createHmac('sha256', secret)
21
+    .update(val)
22
+    .digest('base64')
23
+    .replace(/\=+$/, '');
24
+};
25
+
26
+/**
27
+ * Unsign and decode the given `val` with `secret`,
28
+ * returning `false` if the signature is invalid.
29
+ *
30
+ * @param {String} val
31
+ * @param {String} secret
32
+ * @return {String|Boolean}
33
+ * @api private
34
+ */
35
+
36
+exports.unsign = function(val, secret){
37
+  if ('string' != typeof val) throw new TypeError("Signed cookie string must be provided.");
38
+  if ('string' != typeof secret) throw new TypeError("Secret string must be provided.");
39
+  var str = val.slice(0, val.lastIndexOf('.'))
40
+    , mac = exports.sign(str, secret);
41
+  
42
+  return sha1(mac) == sha1(val) ? str : false;
43
+};
44
+
45
+/**
46
+ * Private
47
+ */
48
+
49
+function sha1(str){
50
+  return crypto.createHash('sha1').update(str).digest('hex');
51
+}

+ 57
- 0
km0App/node_modules/cookie-signature/package.json Datei anzeigen

@@ -0,0 +1,57 @@
1
+{
2
+  "_from": "cookie-signature@1.0.6",
3
+  "_id": "cookie-signature@1.0.6",
4
+  "_inBundle": false,
5
+  "_integrity": "sha1-4wOogrNCzD7oylE6eZmXNNqzriw=",
6
+  "_location": "/cookie-signature",
7
+  "_phantomChildren": {},
8
+  "_requested": {
9
+    "type": "version",
10
+    "registry": true,
11
+    "raw": "cookie-signature@1.0.6",
12
+    "name": "cookie-signature",
13
+    "escapedName": "cookie-signature",
14
+    "rawSpec": "1.0.6",
15
+    "saveSpec": null,
16
+    "fetchSpec": "1.0.6"
17
+  },
18
+  "_requiredBy": [
19
+    "/express"
20
+  ],
21
+  "_resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz",
22
+  "_shasum": "e303a882b342cc3ee8ca513a79999734dab3ae2c",
23
+  "_spec": "cookie-signature@1.0.6",
24
+  "_where": "/home/luis/Software/kilometro0/km0App/node_modules/express",
25
+  "author": {
26
+    "name": "TJ Holowaychuk",
27
+    "email": "tj@learnboost.com"
28
+  },
29
+  "bugs": {
30
+    "url": "https://github.com/visionmedia/node-cookie-signature/issues"
31
+  },
32
+  "bundleDependencies": false,
33
+  "dependencies": {},
34
+  "deprecated": false,
35
+  "description": "Sign and unsign cookies",
36
+  "devDependencies": {
37
+    "mocha": "*",
38
+    "should": "*"
39
+  },
40
+  "homepage": "https://github.com/visionmedia/node-cookie-signature#readme",
41
+  "keywords": [
42
+    "cookie",
43
+    "sign",
44
+    "unsign"
45
+  ],
46
+  "license": "MIT",
47
+  "main": "index",
48
+  "name": "cookie-signature",
49
+  "repository": {
50
+    "type": "git",
51
+    "url": "git+https://github.com/visionmedia/node-cookie-signature.git"
52
+  },
53
+  "scripts": {
54
+    "test": "mocha --require should --reporter spec"
55
+  },
56
+  "version": "1.0.6"
57
+}

+ 123
- 0
km0App/node_modules/cookie/HISTORY.md Datei anzeigen

@@ -0,0 +1,123 @@
1
+0.4.0 / 2019-05-15
2
+==================
3
+
4
+  * Add `SameSite=None` support
5
+
6
+0.3.1 / 2016-05-26
7
+==================
8
+
9
+  * Fix `sameSite: true` to work with draft-7 clients
10
+    - `true` now sends `SameSite=Strict` instead of `SameSite`
11
+
12
+0.3.0 / 2016-05-26
13
+==================
14
+
15
+  * Add `sameSite` option
16
+    - Replaces `firstPartyOnly` option, never implemented by browsers
17
+  * Improve error message when `encode` is not a function
18
+  * Improve error message when `expires` is not a `Date`
19
+
20
+0.2.4 / 2016-05-20
21
+==================
22
+
23
+  * perf: enable strict mode
24
+  * perf: use for loop in parse
25
+  * perf: use string concatination for serialization
26
+
27
+0.2.3 / 2015-10-25
28
+==================
29
+
30
+  * Fix cookie `Max-Age` to never be a floating point number
31
+
32
+0.2.2 / 2015-09-17
33
+==================
34
+
35
+  * Fix regression when setting empty cookie value
36
+    - Ease the new restriction, which is just basic header-level validation
37
+  * Fix typo in invalid value errors
38
+
39
+0.2.1 / 2015-09-17
40
+==================
41
+
42
+  * Throw on invalid values provided to `serialize`
43
+    - Ensures the resulting string is a valid HTTP header value
44
+
45
+0.2.0 / 2015-08-13
46
+==================
47
+
48
+  * Add `firstPartyOnly` option
49
+  * Throw better error for invalid argument to parse
50
+  * perf: hoist regular expression
51
+
52
+0.1.5 / 2015-09-17
53
+==================
54
+
55
+  * Fix regression when setting empty cookie value
56
+    - Ease the new restriction, which is just basic header-level validation
57
+  * Fix typo in invalid value errors
58
+
59
+0.1.4 / 2015-09-17
60
+==================
61
+
62
+  * Throw better error for invalid argument to parse
63
+  * Throw on invalid values provided to `serialize`
64
+    - Ensures the resulting string is a valid HTTP header value
65
+
66
+0.1.3 / 2015-05-19
67
+==================
68
+
69
+  * Reduce the scope of try-catch deopt
70
+  * Remove argument reassignments
71
+
72
+0.1.2 / 2014-04-16
73
+==================
74
+
75
+  * Remove unnecessary files from npm package
76
+
77
+0.1.1 / 2014-02-23
78
+==================
79
+
80
+  * Fix bad parse when cookie value contained a comma
81
+  * Fix support for `maxAge` of `0`
82
+
83
+0.1.0 / 2013-05-01
84
+==================
85
+
86
+  * Add `decode` option
87
+  * Add `encode` option
88
+
89
+0.0.6 / 2013-04-08
90
+==================
91
+
92
+  * Ignore cookie parts missing `=`
93
+
94
+0.0.5 / 2012-10-29
95
+==================
96
+
97
+  * Return raw cookie value if value unescape errors
98
+
99
+0.0.4 / 2012-06-21
100
+==================
101
+
102
+  * Use encode/decodeURIComponent for cookie encoding/decoding
103
+    - Improve server/client interoperability
104
+
105
+0.0.3 / 2012-06-06
106
+==================
107
+
108
+  * Only escape special characters per the cookie RFC
109
+
110
+0.0.2 / 2012-06-01
111
+==================
112
+
113
+  * Fix `maxAge` option to not throw error
114
+
115
+0.0.1 / 2012-05-28
116
+==================
117
+
118
+  * Add more tests
119
+
120
+0.0.0 / 2012-05-28
121
+==================
122
+
123
+  * Initial release

+ 24
- 0
km0App/node_modules/cookie/LICENSE Datei anzeigen

@@ -0,0 +1,24 @@
1
+(The MIT License)
2
+
3
+Copyright (c) 2012-2014 Roman Shtylman <shtylman@gmail.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.
24
+

+ 253
- 0
km0App/node_modules/cookie/README.md Datei anzeigen

@@ -0,0 +1,253 @@
1
+# cookie
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
+Basic HTTP cookie parser and serializer for HTTP servers.
10
+
11
+## Installation
12
+
13
+```sh
14
+$ npm install cookie
15
+```
16
+
17
+## API
18
+
19
+```js
20
+var cookie = require('cookie');
21
+```
22
+
23
+### cookie.parse(str, options)
24
+
25
+Parse an HTTP `Cookie` header string and returning an object of all cookie name-value pairs.
26
+The `str` argument is the string representing a `Cookie` header value and `options` is an
27
+optional object containing additional parsing options.
28
+
29
+```js
30
+var cookies = cookie.parse('foo=bar; equation=E%3Dmc%5E2');
31
+// { foo: 'bar', equation: 'E=mc^2' }
32
+```
33
+
34
+#### Options
35
+
36
+`cookie.parse` accepts these properties in the options object.
37
+
38
+##### decode
39
+
40
+Specifies a function that will be used to decode a cookie's value. Since the value of a cookie
41
+has a limited character set (and must be a simple string), this function can be used to decode
42
+a previously-encoded cookie value into a JavaScript string or other object.
43
+
44
+The default function is the global `decodeURIComponent`, which will decode any URL-encoded
45
+sequences into their byte representations.
46
+
47
+**note** if an error is thrown from this function, the original, non-decoded cookie value will
48
+be returned as the cookie's value.
49
+
50
+### cookie.serialize(name, value, options)
51
+
52
+Serialize a cookie name-value pair into a `Set-Cookie` header string. The `name` argument is the
53
+name for the cookie, the `value` argument is the value to set the cookie to, and the `options`
54
+argument is an optional object containing additional serialization options.
55
+
56
+```js
57
+var setCookie = cookie.serialize('foo', 'bar');
58
+// foo=bar
59
+```
60
+
61
+#### Options
62
+
63
+`cookie.serialize` accepts these properties in the options object.
64
+
65
+##### domain
66
+
67
+Specifies the value for the [`Domain` `Set-Cookie` attribute][rfc-6265-5.2.3]. By default, no
68
+domain is set, and most clients will consider the cookie to apply to only the current domain.
69
+
70
+##### encode
71
+
72
+Specifies a function that will be used to encode a cookie's value. Since value of a cookie
73
+has a limited character set (and must be a simple string), this function can be used to encode
74
+a value into a string suited for a cookie's value.
75
+
76
+The default function is the global `encodeURIComponent`, which will encode a JavaScript string
77
+into UTF-8 byte sequences and then URL-encode any that fall outside of the cookie range.
78
+
79
+##### expires
80
+
81
+Specifies the `Date` object to be the value for the [`Expires` `Set-Cookie` attribute][rfc-6265-5.2.1].
82
+By default, no expiration is set, and most clients will consider this a "non-persistent cookie" and
83
+will delete it on a condition like exiting a web browser application.
84
+
85
+**note** the [cookie storage model specification][rfc-6265-5.3] states that if both `expires` and
86
+`maxAge` are set, then `maxAge` takes precedence, but it is possible not all clients by obey this,
87
+so if both are set, they should point to the same date and time.
88
+
89
+##### httpOnly
90
+
91
+Specifies the `boolean` value for the [`HttpOnly` `Set-Cookie` attribute][rfc-6265-5.2.6]. When truthy,
92
+the `HttpOnly` attribute is set, otherwise it is not. By default, the `HttpOnly` attribute is not set.
93
+
94
+**note** be careful when setting this to `true`, as compliant clients will not allow client-side
95
+JavaScript to see the cookie in `document.cookie`.
96
+
97
+##### maxAge
98
+
99
+Specifies the `number` (in seconds) to be the value for the [`Max-Age` `Set-Cookie` attribute][rfc-6265-5.2.2].
100
+The given number will be converted to an integer by rounding down. By default, no maximum age is set.
101
+
102
+**note** the [cookie storage model specification][rfc-6265-5.3] states that if both `expires` and
103
+`maxAge` are set, then `maxAge` takes precedence, but it is possible not all clients by obey this,
104
+so if both are set, they should point to the same date and time.
105
+
106
+##### path
107
+
108
+Specifies the value for the [`Path` `Set-Cookie` attribute][rfc-6265-5.2.4]. By default, the path
109
+is considered the ["default path"][rfc-6265-5.1.4].
110
+
111
+##### sameSite
112
+
113
+Specifies the `boolean` or `string` to be the value for the [`SameSite` `Set-Cookie` attribute][rfc-6265bis-03-4.1.2.7].
114
+
115
+  - `true` will set the `SameSite` attribute to `Strict` for strict same site enforcement.
116
+  - `false` will not set the `SameSite` attribute.
117
+  - `'lax'` will set the `SameSite` attribute to `Lax` for lax same site enforcement.
118
+  - `'none'` will set the `SameSite` attribute to `None` for an explicit cross-site cookie.
119
+  - `'strict'` will set the `SameSite` attribute to `Strict` for strict same site enforcement.
120
+
121
+More information about the different enforcement levels can be found in
122
+[the specification][rfc-6265bis-03-4.1.2.7].
123
+
124
+**note** This is an attribute that has not yet been fully standardized, and may change in the future.
125
+This also means many clients may ignore this attribute until they understand it.
126
+
127
+##### secure
128
+
129
+Specifies the `boolean` value for the [`Secure` `Set-Cookie` attribute][rfc-6265-5.2.5]. When truthy,
130
+the `Secure` attribute is set, otherwise it is not. By default, the `Secure` attribute is not set.
131
+
132
+**note** be careful when setting this to `true`, as compliant clients will not send the cookie back to
133
+the server in the future if the browser does not have an HTTPS connection.
134
+
135
+## Example
136
+
137
+The following example uses this module in conjunction with the Node.js core HTTP server
138
+to prompt a user for their name and display it back on future visits.
139
+
140
+```js
141
+var cookie = require('cookie');
142
+var escapeHtml = require('escape-html');
143
+var http = require('http');
144
+var url = require('url');
145
+
146
+function onRequest(req, res) {
147
+  // Parse the query string
148
+  var query = url.parse(req.url, true, true).query;
149
+
150
+  if (query && query.name) {
151
+    // Set a new cookie with the name
152
+    res.setHeader('Set-Cookie', cookie.serialize('name', String(query.name), {
153
+      httpOnly: true,
154
+      maxAge: 60 * 60 * 24 * 7 // 1 week
155
+    }));
156
+
157
+    // Redirect back after setting cookie
158
+    res.statusCode = 302;
159
+    res.setHeader('Location', req.headers.referer || '/');
160
+    res.end();
161
+    return;
162
+  }
163
+
164
+  // Parse the cookies on the request
165
+  var cookies = cookie.parse(req.headers.cookie || '');
166
+
167
+  // Get the visitor name set in the cookie
168
+  var name = cookies.name;
169
+
170
+  res.setHeader('Content-Type', 'text/html; charset=UTF-8');
171
+
172
+  if (name) {
173
+    res.write('<p>Welcome back, <b>' + escapeHtml(name) + '</b>!</p>');
174
+  } else {
175
+    res.write('<p>Hello, new visitor!</p>');
176
+  }
177
+
178
+  res.write('<form method="GET">');
179
+  res.write('<input placeholder="enter your name" name="name"> <input type="submit" value="Set Name">');
180
+  res.end('</form>');
181
+}
182
+
183
+http.createServer(onRequest).listen(3000);
184
+```
185
+
186
+## Testing
187
+
188
+```sh
189
+$ npm test
190
+```
191
+
192
+## Benchmark
193
+
194
+```
195
+$ npm run bench
196
+
197
+> cookie@0.3.1 bench cookie
198
+> node benchmark/index.js
199
+
200
+  http_parser@2.8.0
201
+  node@6.14.2
202
+  v8@5.1.281.111
203
+  uv@1.16.1
204
+  zlib@1.2.11
205
+  ares@1.10.1-DEV
206
+  icu@58.2
207
+  modules@48
208
+  napi@3
209
+  openssl@1.0.2o
210
+
211
+> node benchmark/parse.js
212
+
213
+  cookie.parse
214
+
215
+  6 tests completed.
216
+
217
+  simple      x 1,200,691 ops/sec ±1.12% (189 runs sampled)
218
+  decode      x 1,012,994 ops/sec ±0.97% (186 runs sampled)
219
+  unquote     x 1,074,174 ops/sec ±2.43% (186 runs sampled)
220
+  duplicates  x   438,424 ops/sec ±2.17% (184 runs sampled)
221
+  10 cookies  x   147,154 ops/sec ±1.01% (186 runs sampled)
222
+  100 cookies x    14,274 ops/sec ±1.07% (187 runs sampled)
223
+```
224
+
225
+## References
226
+
227
+- [RFC 6265: HTTP State Management Mechanism][rfc-6265]
228
+- [Same-site Cookies][rfc-6265bis-03-4.1.2.7]
229
+
230
+[rfc-6265bis-03-4.1.2.7]: https://tools.ietf.org/html/draft-ietf-httpbis-rfc6265bis-03#section-4.1.2.7
231
+[rfc-6265]: https://tools.ietf.org/html/rfc6265
232
+[rfc-6265-5.1.4]: https://tools.ietf.org/html/rfc6265#section-5.1.4
233
+[rfc-6265-5.2.1]: https://tools.ietf.org/html/rfc6265#section-5.2.1
234
+[rfc-6265-5.2.2]: https://tools.ietf.org/html/rfc6265#section-5.2.2
235
+[rfc-6265-5.2.3]: https://tools.ietf.org/html/rfc6265#section-5.2.3
236
+[rfc-6265-5.2.4]: https://tools.ietf.org/html/rfc6265#section-5.2.4
237
+[rfc-6265-5.2.5]: https://tools.ietf.org/html/rfc6265#section-5.2.5
238
+[rfc-6265-5.2.6]: https://tools.ietf.org/html/rfc6265#section-5.2.6
239
+[rfc-6265-5.3]: https://tools.ietf.org/html/rfc6265#section-5.3
240
+
241
+## License
242
+
243
+[MIT](LICENSE)
244
+
245
+[coveralls-image]: https://badgen.net/coveralls/c/github/jshttp/cookie/master
246
+[coveralls-url]: https://coveralls.io/r/jshttp/cookie?branch=master
247
+[node-version-image]: https://badgen.net/npm/node/cookie
248
+[node-version-url]: https://nodejs.org/en/download
249
+[npm-downloads-image]: https://badgen.net/npm/dm/cookie
250
+[npm-url]: https://npmjs.org/package/cookie
251
+[npm-version-image]: https://badgen.net/npm/v/cookie
252
+[travis-image]: https://badgen.net/travis/jshttp/cookie/master
253
+[travis-url]: https://travis-ci.org/jshttp/cookie

+ 198
- 0
km0App/node_modules/cookie/index.js Datei anzeigen

@@ -0,0 +1,198 @@
1
+/*!
2
+ * cookie
3
+ * Copyright(c) 2012-2014 Roman Shtylman
4
+ * Copyright(c) 2015 Douglas Christopher Wilson
5
+ * MIT Licensed
6
+ */
7
+
8
+'use strict';
9
+
10
+/**
11
+ * Module exports.
12
+ * @public
13
+ */
14
+
15
+exports.parse = parse;
16
+exports.serialize = serialize;
17
+
18
+/**
19
+ * Module variables.
20
+ * @private
21
+ */
22
+
23
+var decode = decodeURIComponent;
24
+var encode = encodeURIComponent;
25
+var pairSplitRegExp = /; */;
26
+
27
+/**
28
+ * RegExp to match field-content in RFC 7230 sec 3.2
29
+ *
30
+ * field-content = field-vchar [ 1*( SP / HTAB ) field-vchar ]
31
+ * field-vchar   = VCHAR / obs-text
32
+ * obs-text      = %x80-FF
33
+ */
34
+
35
+var fieldContentRegExp = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;
36
+
37
+/**
38
+ * Parse a cookie header.
39
+ *
40
+ * Parse the given cookie header string into an object
41
+ * The object has the various cookies as keys(names) => values
42
+ *
43
+ * @param {string} str
44
+ * @param {object} [options]
45
+ * @return {object}
46
+ * @public
47
+ */
48
+
49
+function parse(str, options) {
50
+  if (typeof str !== 'string') {
51
+    throw new TypeError('argument str must be a string');
52
+  }
53
+
54
+  var obj = {}
55
+  var opt = options || {};
56
+  var pairs = str.split(pairSplitRegExp);
57
+  var dec = opt.decode || decode;
58
+
59
+  for (var i = 0; i < pairs.length; i++) {
60
+    var pair = pairs[i];
61
+    var eq_idx = pair.indexOf('=');
62
+
63
+    // skip things that don't look like key=value
64
+    if (eq_idx < 0) {
65
+      continue;
66
+    }
67
+
68
+    var key = pair.substr(0, eq_idx).trim()
69
+    var val = pair.substr(++eq_idx, pair.length).trim();
70
+
71
+    // quoted values
72
+    if ('"' == val[0]) {
73
+      val = val.slice(1, -1);
74
+    }
75
+
76
+    // only assign once
77
+    if (undefined == obj[key]) {
78
+      obj[key] = tryDecode(val, dec);
79
+    }
80
+  }
81
+
82
+  return obj;
83
+}
84
+
85
+/**
86
+ * Serialize data into a cookie header.
87
+ *
88
+ * Serialize the a name value pair into a cookie string suitable for
89
+ * http headers. An optional options object specified cookie parameters.
90
+ *
91
+ * serialize('foo', 'bar', { httpOnly: true })
92
+ *   => "foo=bar; httpOnly"
93
+ *
94
+ * @param {string} name
95
+ * @param {string} val
96
+ * @param {object} [options]
97
+ * @return {string}
98
+ * @public
99
+ */
100
+
101
+function serialize(name, val, options) {
102
+  var opt = options || {};
103
+  var enc = opt.encode || encode;
104
+
105
+  if (typeof enc !== 'function') {
106
+    throw new TypeError('option encode is invalid');
107
+  }
108
+
109
+  if (!fieldContentRegExp.test(name)) {
110
+    throw new TypeError('argument name is invalid');
111
+  }
112
+
113
+  var value = enc(val);
114
+
115
+  if (value && !fieldContentRegExp.test(value)) {
116
+    throw new TypeError('argument val is invalid');
117
+  }
118
+
119
+  var str = name + '=' + value;
120
+
121
+  if (null != opt.maxAge) {
122
+    var maxAge = opt.maxAge - 0;
123
+    if (isNaN(maxAge)) throw new Error('maxAge should be a Number');
124
+    str += '; Max-Age=' + Math.floor(maxAge);
125
+  }
126
+
127
+  if (opt.domain) {
128
+    if (!fieldContentRegExp.test(opt.domain)) {
129
+      throw new TypeError('option domain is invalid');
130
+    }
131
+
132
+    str += '; Domain=' + opt.domain;
133
+  }
134
+
135
+  if (opt.path) {
136
+    if (!fieldContentRegExp.test(opt.path)) {
137
+      throw new TypeError('option path is invalid');
138
+    }
139
+
140
+    str += '; Path=' + opt.path;
141
+  }
142
+
143
+  if (opt.expires) {
144
+    if (typeof opt.expires.toUTCString !== 'function') {
145
+      throw new TypeError('option expires is invalid');
146
+    }
147
+
148
+    str += '; Expires=' + opt.expires.toUTCString();
149
+  }
150
+
151
+  if (opt.httpOnly) {
152
+    str += '; HttpOnly';
153
+  }
154
+
155
+  if (opt.secure) {
156
+    str += '; Secure';
157
+  }
158
+
159
+  if (opt.sameSite) {
160
+    var sameSite = typeof opt.sameSite === 'string'
161
+      ? opt.sameSite.toLowerCase() : opt.sameSite;
162
+
163
+    switch (sameSite) {
164
+      case true:
165
+        str += '; SameSite=Strict';
166
+        break;
167
+      case 'lax':
168
+        str += '; SameSite=Lax';
169
+        break;
170
+      case 'strict':
171
+        str += '; SameSite=Strict';
172
+        break;
173
+      case 'none':
174
+        str += '; SameSite=None';
175
+        break;
176
+      default:
177
+        throw new TypeError('option sameSite is invalid');
178
+    }
179
+  }
180
+
181
+  return str;
182
+}
183
+
184
+/**
185
+ * Try decoding a string using a decoding function.
186
+ *
187
+ * @param {string} str
188
+ * @param {function} decode
189
+ * @private
190
+ */
191
+
192
+function tryDecode(str, decode) {
193
+  try {
194
+    return decode(str);
195
+  } catch (e) {
196
+    return str;
197
+  }
198
+}

+ 78
- 0
km0App/node_modules/cookie/package.json Datei anzeigen

@@ -0,0 +1,78 @@
1
+{
2
+  "_from": "cookie@0.4.0",
3
+  "_id": "cookie@0.4.0",
4
+  "_inBundle": false,
5
+  "_integrity": "sha512-+Hp8fLp57wnUSt0tY0tHEXh4voZRDnoIrZPqlo3DPiI4y9lwg/jqx+1Om94/W6ZaPDOUbnjOt/99w66zk+l1Xg==",
6
+  "_location": "/cookie",
7
+  "_phantomChildren": {},
8
+  "_requested": {
9
+    "type": "version",
10
+    "registry": true,
11
+    "raw": "cookie@0.4.0",
12
+    "name": "cookie",
13
+    "escapedName": "cookie",
14
+    "rawSpec": "0.4.0",
15
+    "saveSpec": null,
16
+    "fetchSpec": "0.4.0"
17
+  },
18
+  "_requiredBy": [
19
+    "/express"
20
+  ],
21
+  "_resolved": "https://registry.npmjs.org/cookie/-/cookie-0.4.0.tgz",
22
+  "_shasum": "beb437e7022b3b6d49019d088665303ebe9c14ba",
23
+  "_spec": "cookie@0.4.0",
24
+  "_where": "/home/luis/Software/kilometro0/km0App/node_modules/express",
25
+  "author": {
26
+    "name": "Roman Shtylman",
27
+    "email": "shtylman@gmail.com"
28
+  },
29
+  "bugs": {
30
+    "url": "https://github.com/jshttp/cookie/issues"
31
+  },
32
+  "bundleDependencies": false,
33
+  "contributors": [
34
+    {
35
+      "name": "Douglas Christopher Wilson",
36
+      "email": "doug@somethingdoug.com"
37
+    }
38
+  ],
39
+  "deprecated": false,
40
+  "description": "HTTP server cookie parsing and serialization",
41
+  "devDependencies": {
42
+    "beautify-benchmark": "0.2.4",
43
+    "benchmark": "2.1.4",
44
+    "eslint": "5.16.0",
45
+    "eslint-plugin-markdown": "1.0.0",
46
+    "istanbul": "0.4.5",
47
+    "mocha": "6.1.4"
48
+  },
49
+  "engines": {
50
+    "node": ">= 0.6"
51
+  },
52
+  "files": [
53
+    "HISTORY.md",
54
+    "LICENSE",
55
+    "README.md",
56
+    "index.js"
57
+  ],
58
+  "homepage": "https://github.com/jshttp/cookie#readme",
59
+  "keywords": [
60
+    "cookie",
61
+    "cookies"
62
+  ],
63
+  "license": "MIT",
64
+  "name": "cookie",
65
+  "repository": {
66
+    "type": "git",
67
+    "url": "git+https://github.com/jshttp/cookie.git"
68
+  },
69
+  "scripts": {
70
+    "bench": "node benchmark/index.js",
71
+    "lint": "eslint --plugin markdown --ext js,md .",
72
+    "test": "mocha --reporter spec --bail --check-leaks test/",
73
+    "test-ci": "istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter spec --check-leaks test/",
74
+    "test-cov": "istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot --check-leaks test/",
75
+    "version": "node scripts/version-history.js && git add HISTORY.md"
76
+  },
77
+  "version": "0.4.0"
78
+}

+ 1
- 0
km0App/node_modules/cordova-browser/.eslintignore Datei anzeigen

@@ -0,0 +1 @@
1
+cordova-lib/cordova.js

+ 10
- 0
km0App/node_modules/cordova-browser/.eslintrc.yml Datei anzeigen

@@ -0,0 +1,10 @@
1
+root: true
2
+extends: semistandard
3
+rules:
4
+  indent:
5
+    - error
6
+    - 4
7
+  camelcase: off
8
+  padded-blocks: off
9
+  operator-linebreak: off
10
+  no-throw-literal: off

+ 94
- 0
km0App/node_modules/cordova-browser/.gitattributes Datei anzeigen

@@ -0,0 +1,94 @@
1
+* text eol=lf
2
+
3
+# source code
4
+*.php text
5
+*.css text
6
+*.sass text
7
+*.scss text
8
+*.less text
9
+*.styl text
10
+*.js text
11
+*.coffee text
12
+*.json text
13
+*.htm text
14
+*.html text
15
+*.xml text
16
+*.svg text
17
+*.txt text
18
+*.ini text
19
+*.inc text
20
+*.pl text
21
+*.rb text
22
+*.py text
23
+*.scm text
24
+*.sql text
25
+*.sh text
26
+*.bat text
27
+
28
+# templates
29
+*.ejs text
30
+*.hbt text
31
+*.jade text
32
+*.haml text
33
+*.hbs text
34
+*.dot text
35
+*.tmpl text
36
+*.phtml text
37
+
38
+# server config
39
+.htaccess text
40
+
41
+# git config
42
+.gitattributes text
43
+.gitignore text
44
+.gitconfig text
45
+
46
+# code analysis config
47
+.jshintrc text
48
+.jscsrc text
49
+.jshintignore text
50
+.csslintrc text
51
+
52
+# misc config
53
+*.yaml text
54
+*.yml text
55
+.editorconfig text
56
+
57
+# build config
58
+*.npmignore text
59
+*.bowerrc text
60
+
61
+# Heroku
62
+Procfile text
63
+.slugignore text
64
+
65
+# Documentation
66
+*.md text
67
+LICENSE text
68
+AUTHORS text
69
+
70
+
71
+#
72
+## These files are binary and should be left untouched
73
+#
74
+
75
+# (binary is a macro for -text -diff)
76
+*.png binary
77
+*.jpg binary
78
+*.jpeg binary
79
+*.gif binary
80
+*.ico binary
81
+*.mov binary
82
+*.mp4 binary
83
+*.mp3 binary
84
+*.flv binary
85
+*.fla binary
86
+*.swf binary
87
+*.gz binary
88
+*.zip binary
89
+*.7z binary
90
+*.ttf binary
91
+*.eot binary
92
+*.woff binary
93
+*.pyc binary
94
+*.pdf binary

+ 22
- 0
km0App/node_modules/cordova-browser/.github/PULL_REQUEST_TEMPLATE.md Datei anzeigen

@@ -0,0 +1,22 @@
1
+<!--
2
+Please make sure the checklist boxes are all checked before submitting the PR. The checklist
3
+is intended as a quick reference, for complete details please see our Contributor Guidelines:
4
+
5
+http://cordova.apache.org/contribute/contribute_guidelines.html
6
+
7
+Thanks!
8
+-->
9
+
10
+### Platforms affected
11
+
12
+
13
+### What does this PR do?
14
+
15
+
16
+### What testing has been done on this change?
17
+
18
+
19
+### Checklist
20
+- [ ] [Reported an issue](http://cordova.apache.org/contribute/issues.html) in the JIRA database
21
+- [ ] Commit message follows the format: "CB-3232: (android) Fix bug with resolving file paths", where CB-xxxx is the JIRA ID & "android" is the platform affected.
22
+- [ ] Added automated test coverage as appropriate for this change.

+ 9
- 0
km0App/node_modules/cordova-browser/.npmignore Datei anzeigen

@@ -0,0 +1,9 @@
1
+npm-debug.log
2
+temp
3
+.DS_Store
4
+.gitcore
5
+*.jar
6
+.vscode
7
+node_modules/
8
+coverage/
9
+.nyc_output/

+ 3
- 0
km0App/node_modules/cordova-browser/.ratignore Datei anzeigen

@@ -0,0 +1,3 @@
1
+manifest.webapp
2
+jasmine.json
3
+manifest.json

+ 15
- 0
km0App/node_modules/cordova-browser/.travis.yml Datei anzeigen

@@ -0,0 +1,15 @@
1
+language: node_js
2
+sudo: false
3
+
4
+node_js:
5
+  - "6"
6
+  - "8"
7
+  - "10"
8
+
9
+install:
10
+  - npm install
11
+
12
+script:
13
+  - node --version
14
+  - npm --version
15
+  - npm test

+ 37
- 0
km0App/node_modules/cordova-browser/CONTRIBUTING.md Datei anzeigen

@@ -0,0 +1,37 @@
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
+
22
+# Contributing to Apache Cordova
23
+
24
+Anyone can contribute to Cordova. And we need your contributions.
25
+
26
+There are multiple ways to contribute: report bugs, improve the docs, and
27
+contribute code.
28
+
29
+For instructions on this, start with the 
30
+[contribution overview](http://cordova.apache.org/#contribute).
31
+
32
+The details are explained there, but the important items are:
33
+ - Sign and submit an Apache ICLA (Contributor License Agreement).
34
+ - Have a Jira issue open that corresponds to your contribution.
35
+ - Run the tests so your patch doesn't break existing functionality.
36
+
37
+We look forward to your contributions!

+ 317
- 0
km0App/node_modules/cordova-browser/LICENSE Datei anzeigen

@@ -0,0 +1,317 @@
1
+
2
+                                 Apache License
3
+                           Version 2.0, January 2004
4
+                        http://www.apache.org/licenses/
5
+
6
+   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+   1. Definitions.
9
+
10
+      "License" shall mean the terms and conditions for use, reproduction,
11
+      and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+      "Licensor" shall mean the copyright owner or entity authorized by
14
+      the copyright owner that is granting the License.
15
+
16
+      "Legal Entity" shall mean the union of the acting entity and all
17
+      other entities that control, are controlled by, or are under common
18
+      control with that entity. For the purposes of this definition,
19
+      "control" means (i) the power, direct or indirect, to cause the
20
+      direction or management of such entity, whether by contract or
21
+      otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+      outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+      "You" (or "Your") shall mean an individual or Legal Entity
25
+      exercising permissions granted by this License.
26
+
27
+      "Source" form shall mean the preferred form for making modifications,
28
+      including but not limited to software source code, documentation
29
+      source, and configuration files.
30
+
31
+      "Object" form shall mean any form resulting from mechanical
32
+      transformation or translation of a Source form, including but
33
+      not limited to compiled object code, generated documentation,
34
+      and conversions to other media types.
35
+
36
+      "Work" shall mean the work of authorship, whether in Source or
37
+      Object form, made available under the License, as indicated by a
38
+      copyright notice that is included in or attached to the work
39
+      (an example is provided in the Appendix below).
40
+
41
+      "Derivative Works" shall mean any work, whether in Source or Object
42
+      form, that is based on (or derived from) the Work and for which the
43
+      editorial revisions, annotations, elaborations, or other modifications
44
+      represent, as a whole, an original work of authorship. For the purposes
45
+      of this License, Derivative Works shall not include works that remain
46
+      separable from, or merely link (or bind by name) to the interfaces of,
47
+      the Work and Derivative Works thereof.
48
+
49
+      "Contribution" shall mean any work of authorship, including
50
+      the original version of the Work and any modifications or additions
51
+      to that Work or Derivative Works thereof, that is intentionally
52
+      submitted to Licensor for inclusion in the Work by the copyright owner
53
+      or by an individual or Legal Entity authorized to submit on behalf of
54
+      the copyright owner. For the purposes of this definition, "submitted"
55
+      means any form of electronic, verbal, or written communication sent
56
+      to the Licensor or its representatives, including but not limited to
57
+      communication on electronic mailing lists, source code control systems,
58
+      and issue tracking systems that are managed by, or on behalf of, the
59
+      Licensor for the purpose of discussing and improving the Work, but
60
+      excluding communication that is conspicuously marked or otherwise
61
+      designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+      "Contributor" shall mean Licensor and any individual or Legal Entity
64
+      on behalf of whom a Contribution has been received by Licensor and
65
+      subsequently incorporated within the Work.
66
+
67
+   2. Grant of Copyright License. Subject to the terms and conditions of
68
+      this License, each Contributor hereby grants to You a perpetual,
69
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+      copyright license to reproduce, prepare Derivative Works of,
71
+      publicly display, publicly perform, sublicense, and distribute the
72
+      Work and such Derivative Works in Source or Object form.
73
+
74
+   3. Grant of Patent License. Subject to the terms and conditions of
75
+      this License, each Contributor hereby grants to You a perpetual,
76
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+      (except as stated in this section) patent license to make, have made,
78
+      use, offer to sell, sell, import, and otherwise transfer the Work,
79
+      where such license applies only to those patent claims licensable
80
+      by such Contributor that are necessarily infringed by their
81
+      Contribution(s) alone or by combination of their Contribution(s)
82
+      with the Work to which such Contribution(s) was submitted. If You
83
+      institute patent litigation against any entity (including a
84
+      cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+      or a Contribution incorporated within the Work constitutes direct
86
+      or contributory patent infringement, then any patent licenses
87
+      granted to You under this License for that Work shall terminate
88
+      as of the date such litigation is filed.
89
+
90
+   4. Redistribution. You may reproduce and distribute copies of the
91
+      Work or Derivative Works thereof in any medium, with or without
92
+      modifications, and in Source or Object form, provided that You
93
+      meet the following conditions:
94
+
95
+      (a) You must give any other recipients of the Work or
96
+          Derivative Works a copy of this License; and
97
+
98
+      (b) You must cause any modified files to carry prominent notices
99
+          stating that You changed the files; and
100
+
101
+      (c) You must retain, in the Source form of any Derivative Works
102
+          that You distribute, all copyright, patent, trademark, and
103
+          attribution notices from the Source form of the Work,
104
+          excluding those notices that do not pertain to any part of
105
+          the Derivative Works; and
106
+
107
+      (d) If the Work includes a "NOTICE" text file as part of its
108
+          distribution, then any Derivative Works that You distribute must
109
+          include a readable copy of the attribution notices contained
110
+          within such NOTICE file, excluding those notices that do not
111
+          pertain to any part of the Derivative Works, in at least one
112
+          of the following places: within a NOTICE text file distributed
113
+          as part of the Derivative Works; within the Source form or
114
+          documentation, if provided along with the Derivative Works; or,
115
+          within a display generated by the Derivative Works, if and
116
+          wherever such third-party notices normally appear. The contents
117
+          of the NOTICE file are for informational purposes only and
118
+          do not modify the License. You may add Your own attribution
119
+          notices within Derivative Works that You distribute, alongside
120
+          or as an addendum to the NOTICE text from the Work, provided
121
+          that such additional attribution notices cannot be construed
122
+          as modifying the License.
123
+
124
+      You may add Your own copyright statement to Your modifications and
125
+      may provide additional or different license terms and conditions
126
+      for use, reproduction, or distribution of Your modifications, or
127
+      for any such Derivative Works as a whole, provided Your use,
128
+      reproduction, and distribution of the Work otherwise complies with
129
+      the conditions stated in this License.
130
+
131
+   5. Submission of Contributions. Unless You explicitly state otherwise,
132
+      any Contribution intentionally submitted for inclusion in the Work
133
+      by You to the Licensor shall be under the terms and conditions of
134
+      this License, without any additional terms or conditions.
135
+      Notwithstanding the above, nothing herein shall supersede or modify
136
+      the terms of any separate license agreement you may have executed
137
+      with Licensor regarding such Contributions.
138
+
139
+   6. Trademarks. This License does not grant permission to use the trade
140
+      names, trademarks, service marks, or product names of the Licensor,
141
+      except as required for reasonable and customary use in describing the
142
+      origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+   7. Disclaimer of Warranty. Unless required by applicable law or
145
+      agreed to in writing, Licensor provides the Work (and each
146
+      Contributor provides its Contributions) on an "AS IS" BASIS,
147
+      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+      implied, including, without limitation, any warranties or conditions
149
+      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+      PARTICULAR PURPOSE. You are solely responsible for determining the
151
+      appropriateness of using or redistributing the Work and assume any
152
+      risks associated with Your exercise of permissions under this License.
153
+
154
+   8. Limitation of Liability. In no event and under no legal theory,
155
+      whether in tort (including negligence), contract, or otherwise,
156
+      unless required by applicable law (such as deliberate and grossly
157
+      negligent acts) or agreed to in writing, shall any Contributor be
158
+      liable to You for damages, including any direct, indirect, special,
159
+      incidental, or consequential damages of any character arising as a
160
+      result of this License or out of the use or inability to use the
161
+      Work (including but not limited to damages for loss of goodwill,
162
+      work stoppage, computer failure or malfunction, or any and all
163
+      other commercial damages or losses), even if such Contributor
164
+      has been advised of the possibility of such damages.
165
+
166
+   9. Accepting Warranty or Additional Liability. While redistributing
167
+      the Work or Derivative Works thereof, You may choose to offer,
168
+      and charge a fee for, acceptance of support, warranty, indemnity,
169
+      or other liability obligations and/or rights consistent with this
170
+      License. However, in accepting such obligations, You may act only
171
+      on Your own behalf and on Your sole responsibility, not on behalf
172
+      of any other Contributor, and only if You agree to indemnify,
173
+      defend, and hold each Contributor harmless for any liability
174
+      incurred by, or claims asserted against, such Contributor by reason
175
+      of your accepting any such warranty or additional liability.
176
+
177
+   END OF TERMS AND CONDITIONS
178
+
179
+   APPENDIX: How to apply the Apache License to your work.
180
+
181
+      To apply the Apache License to your work, attach the following
182
+      boilerplate notice, with the fields enclosed by brackets "[]"
183
+      replaced with your own identifying information. (Don't include
184
+      the brackets!)  The text should be enclosed in the appropriate
185
+      comment syntax for the file format. We also recommend that a
186
+      file or class name and description of purpose be included on the
187
+      same "printed page" as the copyright notice for easier
188
+      identification within third-party archives.
189
+
190
+   Copyright [yyyy] [name of copyright owner]
191
+
192
+   Licensed under the Apache License, Version 2.0 (the "License");
193
+   you may not use this file except in compliance with the License.
194
+   You may obtain a copy of the License at
195
+
196
+       http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+   Unless required by applicable law or agreed to in writing, software
199
+   distributed under the License is distributed on an "AS IS" BASIS,
200
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+   See the License for the specific language governing permissions and
202
+   limitations under the License.
203
+
204
+ ADDITIONAL LICENSES:
205
+
206
+================================================================================
207
+node_modules/adm-zip
208
+================================================================================
209
+
210
+Copyright (c) 2012 Another-D-Mention Software and other contributors,
211
+http://www.another-d-mention.ro/
212
+
213
+Permission is hereby granted, free of charge, to any person obtaining
214
+a copy of this software and associated documentation files (the
215
+"Software"), to deal in the Software without restriction, including
216
+without limitation the rights to use, copy, modify, merge, publish,
217
+distribute, sublicense, and/or sell copies of the Software, and to
218
+permit persons to whom the Software is furnished to do so, subject to
219
+the following conditions:
220
+
221
+The above copyright notice and this permission notice shall be
222
+included in all copies or substantial portions of the Software.
223
+
224
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
225
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
226
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
227
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
228
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
229
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
230
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
231
+
232
+================================================================================
233
+node_modules/shelljs
234
+================================================================================
235
+
236
+Copyright (c) 2012, Artur Adib <aadib@mozilla.com>
237
+All rights reserved.
238
+
239
+You may use this project under the terms of the New BSD license as follows:
240
+
241
+Redistribution and use in source and binary forms, with or without
242
+modification, are permitted provided that the following conditions are met:
243
+    * Redistributions of source code must retain the above copyright
244
+      notice, this list of conditions and the following disclaimer.
245
+    * Redistributions in binary form must reproduce the above copyright
246
+      notice, this list of conditions and the following disclaimer in the
247
+      documentation and/or other materials provided with the distribution.
248
+    * Neither the name of Artur Adib nor the
249
+      names of the contributors may be used to endorse or promote products
250
+      derived from this software without specific prior written permission.
251
+
252
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
253
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
254
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
255
+ARE DISCLAIMED. IN NO EVENT SHALL ARTUR ADIB BE LIABLE FOR ANY
256
+DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
257
+(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
258
+LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
259
+ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
260
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
261
+THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
262
+
263
+================================================================================
264
+node_modules/nopt
265
+================================================================================
266
+
267
+Copyright 2009, 2010, 2011 Isaac Z. Schlueter.
268
+All rights reserved.
269
+
270
+Permission is hereby granted, free of charge, to any person
271
+obtaining a copy of this software and associated documentation
272
+files (the "Software"), to deal in the Software without
273
+restriction, including without limitation the rights to use,
274
+copy, modify, merge, publish, distribute, sublicense, and/or sell
275
+copies of the Software, and to permit persons to whom the
276
+Software is furnished to do so, subject to the following
277
+conditions:
278
+
279
+The above copyright notice and this permission notice shall be
280
+included in all copies or substantial portions of the Software.
281
+
282
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
283
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
284
+OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
285
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
286
+HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
287
+WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
288
+FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
289
+OTHER DEALINGS IN THE SOFTWARE.
290
+
291
+================================================================================
292
+node_modules/nopt/node_modules/abbrev
293
+================================================================================
294
+
295
+Copyright 2009, 2010, 2011 Isaac Z. Schlueter.
296
+All rights reserved.
297
+
298
+Permission is hereby granted, free of charge, to any person
299
+obtaining a copy of this software and associated documentation
300
+files (the "Software"), to deal in the Software without
301
+restriction, including without limitation the rights to use,
302
+copy, modify, merge, publish, distribute, sublicense, and/or sell
303
+copies of the Software, and to permit persons to whom the
304
+Software is furnished to do so, subject to the following
305
+conditions:
306
+
307
+The above copyright notice and this permission notice shall be
308
+included in all copies or substantial portions of the Software.
309
+
310
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
311
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
312
+OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
313
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
314
+HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
315
+WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
316
+FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
317
+OTHER DEALINGS IN THE SOFTWARE.

+ 5
- 0
km0App/node_modules/cordova-browser/NOTICE Datei anzeigen

@@ -0,0 +1,5 @@
1
+Apache Cordova
2
+Copyright 2012-2015 The Apache Software Foundation
3
+
4
+This product includes software developed at
5
+The Apache Software Foundation (http://www.apache.org/).

+ 42
- 0
km0App/node_modules/cordova-browser/README.md Datei anzeigen

@@ -0,0 +1,42 @@
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
+
22
+[![Build status](https://travis-ci.org/apache/cordova-browser.svg?branch=master )](https://travis-ci.org/apache/cordova-browser.svg?branch=master )
23
+[![Build Status](https://ci.appveyor.com/api/projects/status/4oan2jjn7nlgfay3/branch/master?svg=true)](https://ci.appveyor.com/api/projects/status/4oan2jjn7nlgfay3/branch/master?svg=true)
24
+
25
+# Cordova Browser
26
+
27
+Target modern web browsers to build Apache Cordova based applications.
28
+
29
+# Goals
30
+
31
+- Browser targeted deployment
32
+- Surfacing native platform incompatibilities from the open web platform
33
+
34
+# PWA support
35
+
36
+## cordova-browser now includes support for progressive web apps (PWAs)
37
+
38
+- if your project supplies a `manifest.json` in the `www/` dir, it will be used
39
+    - a `manifest.json` will be generated otherwise
40
+- if your js code registers a service worker, it will also be used
41
+
42
+

+ 98
- 0
km0App/node_modules/cordova-browser/RELEASENOTES.md Datei anzeigen

@@ -0,0 +1,98 @@
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
+## Release Notes for Cordova Browser ##
22
+
23
+### 6.0.0 (Feb 01, 2019)
24
+* [GH-70](https://github.com/apache/cordova-browser/pull/70) Browser Platform Release Preparation (Cordova 9)
25
+* [GH-68](https://github.com/apache/cordova-browser/pull/68) Copy node_modules if the directory exists
26
+* [GH-63](https://github.com/apache/cordova-browser/pull/63) Dependency bump cordova-common@^3.0.0
27
+* [CB-13740](https://issues.apache.org/jira/browse/CB-13740) Return expected promise resolving with array
28
+* [GH-59](https://github.com/apache/cordova-browser/pull/59) Remove Bundled Dependencies
29
+* [CB-14073](https://issues.apache.org/jira/browse/CB-14073) **Browser**: Drop Node 4, Added Node 10
30
+* [CB-14252](https://issues.apache.org/jira/browse/CB-14252) Allow to send --silent arg to run command to disable output (#57)
31
+* [CB-13999](https://issues.apache.org/jira/browse/CB-13999) (browser) - Reading `config.xml` respects base href (#52)
32
+* [GH-50](https://github.com/apache/cordova-browser/pull/50) corrected path for `config.xml`
33
+* [CB-13689](https://issues.apache.org/jira/browse/CB-13689) Updated RELEASENOTES and Version for release 5.0.3
34
+
35
+### 5.0.2 (Dec 18, 2017)
36
+* [CB-13689](https://issues.apache.org/jira/browse/CB-13689): Updated checked-in node_modules
37
+* [CB-13562](https://issues.apache.org/jira/browse/CB-13562): fixed asset tag when adding push plugin to **Browser**
38
+
39
+### 5.0.1 (Oct 16, 2017)
40
+* [CB-13444](https://issues.apache.org/jira/browse/CB-13444) Updated checked-in `node_modules`
41
+* [CB-13435](https://issues.apache.org/jira/browse/CB-13435) fix merges directory support for **Browser**
42
+* [CB-12895](https://issues.apache.org/jira/browse/CB-12895) ignoring `cordova.js` for `eslint`
43
+
44
+### 5.0.0 (Aug 24, 2017)
45
+* [CB-13214](https://issues.apache.org/jira/browse/CB-13214) Updated `cordova-serve` dependnecy to 2.0.0. `cordova serve` command now opens system default browser instead of a new instance of `chrome`. A specific target can still be passed in. 
46
+* [CB-13214](https://issues.apache.org/jira/browse/CB-13214) Updated checked-in `node_modules`
47
+* [CB-13188](https://issues.apache.org/jira/browse/CB-13188) fixed issues with run and build scripts. 
48
+* [CB-12895](https://issues.apache.org/jira/browse/CB-12895): set up `eslint` and remove `jshint`
49
+* [CB-11181](https://issues.apache.org/jira/browse/CB-11181) add default favicon
50
+* [CB-11710](https://issues.apache.org/jira/browse/CB-11710) Add missing 'clean.bat' file
51
+* remove old `xhr-activex` **Windows** code, update to use `pagevisibility` instead of `webkitpagevisibility`
52
+* [CB-12804](https://issues.apache.org/jira/browse/CB-12804): `manifest.json` added to **Browser** during create. Adding basic PWA support
53
+* [CB-12762](https://issues.apache.org/jira/browse/CB-12762) Point repo items to github mirrors
54
+* Clean up PRs. Closes #2. Closes #25
55
+* [CB-12617](https://issues.apache.org/jira/browse/CB-12617) : removed node 0.x support and added engineStrict. This closes #27
56
+* [CB-12847](https://issues.apache.org/jira/browse/CB-12847) added `bugs` entry to `package.json`.
57
+* [CB-12527](https://issues.apache.org/jira/browse/CB-12527) large refactor. Implemented `PlatformApi`
58
+* [CB-12114](https://issues.apache.org/jira/browse/CB-12114) added travis and appveyor files
59
+* Add github pull request template
60
+
61
+### 4.0.0 (Aug 13, 2015)
62
+* updated version in version script
63
+* added `.ratignore` and added missing AL header to readme
64
+* removed other platform screens from template
65
+* updated to 4.0.0-dev
66
+* [CB-8965](https://issues.apache.org/jira/browse/CB-8965) Copy `cordova-js-src` directory to platform folder during create
67
+* Adds LICENSE and NOTICE files.
68
+* [CB-9350](https://issues.apache.org/jira/browse/CB-9350) 'cordova run browser' throws an exception.
69
+* Update 'cordova run browser' command to use cordova-serve module.
70
+* [CB-8417](https://issues.apache.org/jira/browse/CB-8417) update platform specific js from cordovajs
71
+* [CB-8760](https://issues.apache.org/jira/browse/CB-8760) platform list shows wrong version for browser platform.
72
+* [CB-8182](https://issues.apache.org/jira/browse/CB-8182) port `cordova serve` to `cordova run browser`
73
+* [CB-8182](https://issues.apache.org/jira/browse/CB-8182) add dependency on `mime` library
74
+* [CB-8196](https://issues.apache.org/jira/browse/CB-8196) Browser platform `run` should default source file to index.html even if it's missing in the config.xml
75
+* [CB-8223](https://issues.apache.org/jira/browse/CB-8223) Expose config.xml in the Browser platform
76
+* [CB-8417](https://issues.apache.org/jira/browse/CB-8417) renamed platform_modules into cordova-js-src
77
+* [CB-8417](https://issues.apache.org/jira/browse/CB-8417) moved platform specific js into platform
78
+* [CB-8224](https://issues.apache.org/jira/browse/CB-8224) Add support to launch a specified browser using --target switch. Support for multiple browsers on Windows, Mac and Linux
79
+* Add Windows specific shim wrappers for shjs - auto-generated by npm install
80
+* [CB-8206](https://issues.apache.org/jira/browse/CB-8206) Browser platform: Add support for update
81
+* --user-data-dir working on windows
82
+* [CB-7978](https://issues.apache.org/jira/browse/CB-7978) Cleaning code and creating temporary dir - Using path.resolve and path.join instead of concatenating paths - Fixing error when temporary dir already exists by using shelljs instead of fs
83
+* [CB-7978](https://issues.apache.org/jira/browse/CB-7978) Cleaning code and creating temporary dir - Cleaning code - Declaring variables only when needed - Creating chrome for Cordova temp dir prior using it by std and err
84
+* [CB-7978](https://issues.apache.org/jira/browse/CB-7978) Fixed launching chrome in Linux
85
+
86
+### 3.6.0 ###
87
+* Update JS snapshot to version 3.6.0 (via coho)
88
+* Set VERSION to 3.6.0 (via coho)
89
+* added run.bat file
90
+* added windows run support, still a few issues
91
+* No longer need to kill Chrome for mac
92
+* added create.bat for windows support
93
+* Removed old dependency from source
94
+* Fixed issue with npm cache when adding browser
95
+* Fixed directory structure
96
+* Creating browser project
97
+* [CB-6818](https://issues.apache.org/jira/browse/CB-6818) Add license for CONTRIBUTING.md
98
+* [CB-6491](https://issues.apache.org/jira/browse/CB-6491) add CONTRIBUTING.md

+ 1
- 0
km0App/node_modules/cordova-browser/VERSION Datei anzeigen

@@ -0,0 +1 @@
1
+6.0.0

+ 0
- 0
km0App/node_modules/cordova-browser/appveyor.yml Datei anzeigen


Einige Dateien werden nicht angezeigt, da zu viele Dateien in diesem Diff geändert wurden.