node-red-contrib-web-worldmap 4.9.0 → 5.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +2 -0
- package/README.md +7 -3
- package/examples/{feedback.json → Feedback.json} +1 -9
- package/examples/MouseCoordinates.json +159 -0
- package/examples/sidcEdgeIcon.json +158 -0
- package/node_modules/@turf/bezier-spline/README.md +15 -21
- package/node_modules/@turf/bezier-spline/dist/cjs/index.cjs +165 -0
- package/node_modules/@turf/bezier-spline/dist/cjs/index.cjs.map +1 -0
- package/node_modules/@turf/bezier-spline/dist/{es/index.js → cjs/index.d.cts} +9 -30
- package/node_modules/@turf/bezier-spline/dist/{js → esm}/index.d.ts +5 -3
- package/node_modules/@turf/bezier-spline/dist/esm/index.js +165 -0
- package/node_modules/@turf/bezier-spline/dist/esm/index.js.map +1 -0
- package/node_modules/@turf/bezier-spline/package.json +33 -25
- package/node_modules/@turf/helpers/README.md +231 -219
- package/node_modules/@turf/helpers/dist/cjs/index.cjs +308 -0
- package/node_modules/@turf/helpers/dist/cjs/index.cjs.map +1 -0
- package/node_modules/@turf/helpers/dist/{es/index.js → cjs/index.d.cts} +103 -303
- package/node_modules/@turf/helpers/dist/{js → esm}/index.d.ts +67 -53
- package/node_modules/@turf/helpers/dist/esm/index.js +308 -0
- package/node_modules/@turf/helpers/dist/esm/index.js.map +1 -0
- package/node_modules/@turf/helpers/package.json +32 -22
- package/node_modules/@turf/invariant/README.md +47 -58
- package/node_modules/@turf/invariant/dist/cjs/index.cjs +127 -0
- package/node_modules/@turf/invariant/dist/cjs/index.cjs.map +1 -0
- package/node_modules/@turf/invariant/dist/cjs/index.d.cts +108 -0
- package/node_modules/@turf/invariant/dist/{js → esm}/index.d.ts +12 -9
- package/node_modules/@turf/invariant/dist/esm/index.js +127 -0
- package/node_modules/@turf/invariant/dist/esm/index.js.map +1 -0
- package/node_modules/@turf/invariant/package.json +31 -22
- package/node_modules/@types/geojson/LICENSE +21 -0
- package/node_modules/@types/geojson/README.md +15 -0
- package/node_modules/@types/geojson/index.d.ts +165 -0
- package/node_modules/@types/geojson/package.json +45 -0
- package/node_modules/body-parser/HISTORY.md +7 -0
- package/node_modules/body-parser/README.md +11 -0
- package/node_modules/body-parser/lib/types/urlencoded.js +30 -7
- package/node_modules/body-parser/package.json +2 -2
- package/node_modules/encodeurl/README.md +19 -38
- package/node_modules/encodeurl/index.js +1 -1
- package/node_modules/encodeurl/package.json +7 -7
- package/node_modules/express/History.md +27 -0
- package/node_modules/express/Readme.md +100 -6
- package/node_modules/express/lib/response.js +11 -10
- package/node_modules/express/package.json +11 -11
- package/node_modules/finalhandler/HISTORY.md +15 -0
- package/node_modules/finalhandler/README.md +2 -2
- package/node_modules/finalhandler/index.js +7 -2
- package/node_modules/finalhandler/package.json +8 -7
- package/node_modules/merge-descriptors/README.md +4 -3
- package/node_modules/merge-descriptors/index.js +3 -3
- package/node_modules/merge-descriptors/package.json +14 -7
- package/node_modules/mime-db/HISTORY.md +14 -0
- package/node_modules/mime-db/README.md +27 -24
- package/node_modules/mime-db/db.json +646 -62
- package/node_modules/mime-db/package.json +9 -13
- package/node_modules/mime-types/node_modules/mime-db/HISTORY.md +507 -0
- package/node_modules/mime-types/node_modules/mime-db/LICENSE +23 -0
- package/node_modules/mime-types/node_modules/mime-db/README.md +100 -0
- package/node_modules/mime-types/node_modules/mime-db/db.json +8519 -0
- package/node_modules/mime-types/node_modules/mime-db/index.js +12 -0
- package/node_modules/mime-types/node_modules/mime-db/package.json +60 -0
- package/node_modules/object-inspect/CHANGELOG.md +15 -0
- package/node_modules/object-inspect/index.js +4 -1
- package/node_modules/object-inspect/package.json +14 -9
- package/node_modules/object-inspect/readme.markdown +9 -11
- package/node_modules/path-to-regexp/index.js +57 -40
- package/node_modules/path-to-regexp/package.json +2 -2
- package/node_modules/qs/.editorconfig +3 -0
- package/node_modules/qs/.eslintrc +2 -2
- package/node_modules/qs/CHANGELOG.md +59 -5
- package/node_modules/qs/README.md +133 -49
- package/node_modules/qs/dist/qs.js +56 -2020
- package/node_modules/qs/lib/parse.js +46 -13
- package/node_modules/qs/lib/stringify.js +53 -28
- package/node_modules/qs/lib/utils.js +47 -34
- package/node_modules/qs/package.json +26 -12
- package/node_modules/qs/test/empty-keys-cases.js +267 -0
- package/node_modules/qs/test/parse.js +347 -32
- package/node_modules/qs/test/stringify.js +436 -47
- package/node_modules/send/HISTORY.md +5 -0
- package/node_modules/send/index.js +1 -2
- package/node_modules/send/node_modules/encodeurl/LICENSE +22 -0
- package/node_modules/send/node_modules/encodeurl/README.md +128 -0
- package/node_modules/send/node_modules/encodeurl/index.js +60 -0
- package/node_modules/send/node_modules/encodeurl/package.json +40 -0
- package/node_modules/send/package.json +1 -1
- package/node_modules/serve-static/HISTORY.md +16 -0
- package/node_modules/serve-static/index.js +1 -2
- package/node_modules/serve-static/package.json +3 -3
- package/node_modules/tslib/CopyrightNotice.txt +15 -0
- package/node_modules/tslib/LICENSE.txt +12 -0
- package/node_modules/tslib/README.md +164 -0
- package/node_modules/tslib/SECURITY.md +41 -0
- package/node_modules/tslib/modules/index.d.ts +37 -0
- package/node_modules/tslib/modules/index.js +68 -0
- package/node_modules/tslib/modules/package.json +3 -0
- package/node_modules/tslib/package.json +47 -0
- package/node_modules/tslib/tslib.d.ts +453 -0
- package/node_modules/tslib/tslib.es6.html +1 -0
- package/node_modules/tslib/tslib.es6.js +379 -0
- package/node_modules/tslib/tslib.es6.mjs +378 -0
- package/node_modules/tslib/tslib.html +1 -0
- package/node_modules/tslib/tslib.js +429 -0
- package/package.json +5 -5
- package/worldmap/index.html +1 -1
- package/worldmap/leaflet/leaflet.mousecoordinate.js +3 -3
- package/worldmap/worldmap.js +123 -36
- package/worldmap.html +1 -1
- package/worldmap.js +23 -4
- package/node_modules/@turf/bezier-spline/dist/es/lib/spline.js +0 -158
- package/node_modules/@turf/bezier-spline/dist/es/package.json +0 -1
- package/node_modules/@turf/bezier-spline/dist/js/index.js +0 -65
- package/node_modules/@turf/bezier-spline/dist/js/lib/spline.d.ts +0 -62
- package/node_modules/@turf/bezier-spline/dist/js/lib/spline.js +0 -160
- package/node_modules/@turf/helpers/dist/es/lib/geojson.js +0 -7
- package/node_modules/@turf/helpers/dist/es/package.json +0 -1
- package/node_modules/@turf/helpers/dist/js/index.js +0 -724
- package/node_modules/@turf/helpers/dist/js/lib/geojson.d.ts +0 -193
- package/node_modules/@turf/helpers/dist/js/lib/geojson.js +0 -9
- package/node_modules/@turf/invariant/dist/es/index.js +0 -223
- package/node_modules/@turf/invariant/dist/es/package.json +0 -1
- package/node_modules/@turf/invariant/dist/js/index.js +0 -233
- package/node_modules/path-to-regexp/History.md +0 -36
- /package/node_modules/{encodeurl → send/node_modules/encodeurl}/HISTORY.md +0 -0
|
@@ -482,8 +482,7 @@ SendStream.prototype.redirect = function redirect (path) {
|
|
|
482
482
|
}
|
|
483
483
|
|
|
484
484
|
var loc = encodeUrl(collapseLeadingSlashes(this.path + '/'))
|
|
485
|
-
var doc = createHtmlDocument('Redirecting', 'Redirecting to
|
|
486
|
-
escapeHtml(loc) + '</a>')
|
|
485
|
+
var doc = createHtmlDocument('Redirecting', 'Redirecting to ' + escapeHtml(loc))
|
|
487
486
|
|
|
488
487
|
// redirect
|
|
489
488
|
res.statusCode = 301
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
(The MIT License)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2016 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.
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
# encodeurl
|
|
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
|
+
Encode a URL to a percent-encoded form, excluding already-encoded sequences
|
|
10
|
+
|
|
11
|
+
## Installation
|
|
12
|
+
|
|
13
|
+
This is a [Node.js](https://nodejs.org/en/) module available through the
|
|
14
|
+
[npm registry](https://www.npmjs.com/). Installation is done using the
|
|
15
|
+
[`npm install` command](https://docs.npmjs.com/getting-started/installing-npm-packages-locally):
|
|
16
|
+
|
|
17
|
+
```sh
|
|
18
|
+
$ npm install encodeurl
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
## API
|
|
22
|
+
|
|
23
|
+
```js
|
|
24
|
+
var encodeUrl = require('encodeurl')
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
### encodeUrl(url)
|
|
28
|
+
|
|
29
|
+
Encode a URL to a percent-encoded form, excluding already-encoded sequences.
|
|
30
|
+
|
|
31
|
+
This function will take an already-encoded URL and encode all the non-URL
|
|
32
|
+
code points (as UTF-8 byte sequences). This function will not encode the
|
|
33
|
+
"%" character unless it is not part of a valid sequence (`%20` will be
|
|
34
|
+
left as-is, but `%foo` will be encoded as `%25foo`).
|
|
35
|
+
|
|
36
|
+
This encode is meant to be "safe" and does not throw errors. It will try as
|
|
37
|
+
hard as it can to properly encode the given URL, including replacing any raw,
|
|
38
|
+
unpaired surrogate pairs with the Unicode replacement character prior to
|
|
39
|
+
encoding.
|
|
40
|
+
|
|
41
|
+
This function is _similar_ to the intrinsic function `encodeURI`, except it
|
|
42
|
+
will not encode the `%` character if that is part of a valid sequence, will
|
|
43
|
+
not encode `[` and `]` (for IPv6 hostnames) and will replace raw, unpaired
|
|
44
|
+
surrogate pairs with the Unicode replacement character (instead of throwing).
|
|
45
|
+
|
|
46
|
+
## Examples
|
|
47
|
+
|
|
48
|
+
### Encode a URL containing user-controled data
|
|
49
|
+
|
|
50
|
+
```js
|
|
51
|
+
var encodeUrl = require('encodeurl')
|
|
52
|
+
var escapeHtml = require('escape-html')
|
|
53
|
+
|
|
54
|
+
http.createServer(function onRequest (req, res) {
|
|
55
|
+
// get encoded form of inbound url
|
|
56
|
+
var url = encodeUrl(req.url)
|
|
57
|
+
|
|
58
|
+
// create html message
|
|
59
|
+
var body = '<p>Location ' + escapeHtml(url) + ' not found</p>'
|
|
60
|
+
|
|
61
|
+
// send a 404
|
|
62
|
+
res.statusCode = 404
|
|
63
|
+
res.setHeader('Content-Type', 'text/html; charset=UTF-8')
|
|
64
|
+
res.setHeader('Content-Length', String(Buffer.byteLength(body, 'utf-8')))
|
|
65
|
+
res.end(body, 'utf-8')
|
|
66
|
+
})
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
### Encode a URL for use in a header field
|
|
70
|
+
|
|
71
|
+
```js
|
|
72
|
+
var encodeUrl = require('encodeurl')
|
|
73
|
+
var escapeHtml = require('escape-html')
|
|
74
|
+
var url = require('url')
|
|
75
|
+
|
|
76
|
+
http.createServer(function onRequest (req, res) {
|
|
77
|
+
// parse inbound url
|
|
78
|
+
var href = url.parse(req)
|
|
79
|
+
|
|
80
|
+
// set new host for redirect
|
|
81
|
+
href.host = 'localhost'
|
|
82
|
+
href.protocol = 'https:'
|
|
83
|
+
href.slashes = true
|
|
84
|
+
|
|
85
|
+
// create location header
|
|
86
|
+
var location = encodeUrl(url.format(href))
|
|
87
|
+
|
|
88
|
+
// create html message
|
|
89
|
+
var body = '<p>Redirecting to new site: ' + escapeHtml(location) + '</p>'
|
|
90
|
+
|
|
91
|
+
// send a 301
|
|
92
|
+
res.statusCode = 301
|
|
93
|
+
res.setHeader('Content-Type', 'text/html; charset=UTF-8')
|
|
94
|
+
res.setHeader('Content-Length', String(Buffer.byteLength(body, 'utf-8')))
|
|
95
|
+
res.setHeader('Location', location)
|
|
96
|
+
res.end(body, 'utf-8')
|
|
97
|
+
})
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
## Testing
|
|
101
|
+
|
|
102
|
+
```sh
|
|
103
|
+
$ npm test
|
|
104
|
+
$ npm run lint
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
## References
|
|
108
|
+
|
|
109
|
+
- [RFC 3986: Uniform Resource Identifier (URI): Generic Syntax][rfc-3986]
|
|
110
|
+
- [WHATWG URL Living Standard][whatwg-url]
|
|
111
|
+
|
|
112
|
+
[rfc-3986]: https://tools.ietf.org/html/rfc3986
|
|
113
|
+
[whatwg-url]: https://url.spec.whatwg.org/
|
|
114
|
+
|
|
115
|
+
## License
|
|
116
|
+
|
|
117
|
+
[MIT](LICENSE)
|
|
118
|
+
|
|
119
|
+
[npm-image]: https://img.shields.io/npm/v/encodeurl.svg
|
|
120
|
+
[npm-url]: https://npmjs.org/package/encodeurl
|
|
121
|
+
[node-version-image]: https://img.shields.io/node/v/encodeurl.svg
|
|
122
|
+
[node-version-url]: https://nodejs.org/en/download
|
|
123
|
+
[travis-image]: https://img.shields.io/travis/pillarjs/encodeurl.svg
|
|
124
|
+
[travis-url]: https://travis-ci.org/pillarjs/encodeurl
|
|
125
|
+
[coveralls-image]: https://img.shields.io/coveralls/pillarjs/encodeurl.svg
|
|
126
|
+
[coveralls-url]: https://coveralls.io/r/pillarjs/encodeurl?branch=master
|
|
127
|
+
[downloads-image]: https://img.shields.io/npm/dm/encodeurl.svg
|
|
128
|
+
[downloads-url]: https://npmjs.org/package/encodeurl
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* encodeurl
|
|
3
|
+
* Copyright(c) 2016 Douglas Christopher Wilson
|
|
4
|
+
* MIT Licensed
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
'use strict'
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Module exports.
|
|
11
|
+
* @public
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
module.exports = encodeUrl
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* RegExp to match non-URL code points, *after* encoding (i.e. not including "%")
|
|
18
|
+
* and including invalid escape sequences.
|
|
19
|
+
* @private
|
|
20
|
+
*/
|
|
21
|
+
|
|
22
|
+
var ENCODE_CHARS_REGEXP = /(?:[^\x21\x25\x26-\x3B\x3D\x3F-\x5B\x5D\x5F\x61-\x7A\x7E]|%(?:[^0-9A-Fa-f]|[0-9A-Fa-f][^0-9A-Fa-f]|$))+/g
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* RegExp to match unmatched surrogate pair.
|
|
26
|
+
* @private
|
|
27
|
+
*/
|
|
28
|
+
|
|
29
|
+
var UNMATCHED_SURROGATE_PAIR_REGEXP = /(^|[^\uD800-\uDBFF])[\uDC00-\uDFFF]|[\uD800-\uDBFF]([^\uDC00-\uDFFF]|$)/g
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* String to replace unmatched surrogate pair with.
|
|
33
|
+
* @private
|
|
34
|
+
*/
|
|
35
|
+
|
|
36
|
+
var UNMATCHED_SURROGATE_PAIR_REPLACE = '$1\uFFFD$2'
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Encode a URL to a percent-encoded form, excluding already-encoded sequences.
|
|
40
|
+
*
|
|
41
|
+
* This function will take an already-encoded URL and encode all the non-URL
|
|
42
|
+
* code points. This function will not encode the "%" character unless it is
|
|
43
|
+
* not part of a valid sequence (`%20` will be left as-is, but `%foo` will
|
|
44
|
+
* be encoded as `%25foo`).
|
|
45
|
+
*
|
|
46
|
+
* This encode is meant to be "safe" and does not throw errors. It will try as
|
|
47
|
+
* hard as it can to properly encode the given URL, including replacing any raw,
|
|
48
|
+
* unpaired surrogate pairs with the Unicode replacement character prior to
|
|
49
|
+
* encoding.
|
|
50
|
+
*
|
|
51
|
+
* @param {string} url
|
|
52
|
+
* @return {string}
|
|
53
|
+
* @public
|
|
54
|
+
*/
|
|
55
|
+
|
|
56
|
+
function encodeUrl (url) {
|
|
57
|
+
return String(url)
|
|
58
|
+
.replace(UNMATCHED_SURROGATE_PAIR_REGEXP, UNMATCHED_SURROGATE_PAIR_REPLACE)
|
|
59
|
+
.replace(ENCODE_CHARS_REGEXP, encodeURI)
|
|
60
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "encodeurl",
|
|
3
|
+
"description": "Encode a URL to a percent-encoded form, excluding already-encoded sequences",
|
|
4
|
+
"version": "1.0.2",
|
|
5
|
+
"contributors": [
|
|
6
|
+
"Douglas Christopher Wilson <doug@somethingdoug.com>"
|
|
7
|
+
],
|
|
8
|
+
"license": "MIT",
|
|
9
|
+
"keywords": [
|
|
10
|
+
"encode",
|
|
11
|
+
"encodeurl",
|
|
12
|
+
"url"
|
|
13
|
+
],
|
|
14
|
+
"repository": "pillarjs/encodeurl",
|
|
15
|
+
"devDependencies": {
|
|
16
|
+
"eslint": "3.19.0",
|
|
17
|
+
"eslint-config-standard": "10.2.1",
|
|
18
|
+
"eslint-plugin-import": "2.8.0",
|
|
19
|
+
"eslint-plugin-node": "5.2.1",
|
|
20
|
+
"eslint-plugin-promise": "3.6.0",
|
|
21
|
+
"eslint-plugin-standard": "3.0.1",
|
|
22
|
+
"istanbul": "0.4.5",
|
|
23
|
+
"mocha": "2.5.3"
|
|
24
|
+
},
|
|
25
|
+
"files": [
|
|
26
|
+
"LICENSE",
|
|
27
|
+
"HISTORY.md",
|
|
28
|
+
"README.md",
|
|
29
|
+
"index.js"
|
|
30
|
+
],
|
|
31
|
+
"engines": {
|
|
32
|
+
"node": ">= 0.8"
|
|
33
|
+
},
|
|
34
|
+
"scripts": {
|
|
35
|
+
"lint": "eslint .",
|
|
36
|
+
"test": "mocha --reporter spec --bail --check-leaks test/",
|
|
37
|
+
"test-cov": "istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot --check-leaks test/",
|
|
38
|
+
"test-travis": "istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter spec --check-leaks test/"
|
|
39
|
+
}
|
|
40
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "send",
|
|
3
3
|
"description": "Better streaming static file server with Range and conditional-GET support",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.19.0",
|
|
5
5
|
"author": "TJ Holowaychuk <tj@vision-media.ca>",
|
|
6
6
|
"contributors": [
|
|
7
7
|
"Douglas Christopher Wilson <doug@somethingdoug.com>",
|
|
@@ -1,3 +1,19 @@
|
|
|
1
|
+
1.16.2 / 2024-09-11
|
|
2
|
+
===================
|
|
3
|
+
|
|
4
|
+
* deps: encodeurl@~2.0.0
|
|
5
|
+
|
|
6
|
+
1.16.1 / 2024-09-11
|
|
7
|
+
===================
|
|
8
|
+
|
|
9
|
+
* deps: send@0.19.0
|
|
10
|
+
|
|
11
|
+
1.16.0 / 2024-09-10
|
|
12
|
+
===================
|
|
13
|
+
|
|
14
|
+
* Remove link renderization in html while redirecting
|
|
15
|
+
|
|
16
|
+
|
|
1
17
|
1.15.0 / 2022-03-24
|
|
2
18
|
===================
|
|
3
19
|
|
|
@@ -195,8 +195,7 @@ function createRedirectDirectoryListener () {
|
|
|
195
195
|
|
|
196
196
|
// reformat the URL
|
|
197
197
|
var loc = encodeUrl(url.format(originalUrl))
|
|
198
|
-
var doc = createHtmlDocument('Redirecting', 'Redirecting to
|
|
199
|
-
escapeHtml(loc) + '</a>')
|
|
198
|
+
var doc = createHtmlDocument('Redirecting', 'Redirecting to ' + escapeHtml(loc))
|
|
200
199
|
|
|
201
200
|
// send redirect response
|
|
202
201
|
res.statusCode = 301
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "serve-static",
|
|
3
3
|
"description": "Serve static files",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.16.2",
|
|
5
5
|
"author": "Douglas Christopher Wilson <doug@somethingdoug.com>",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": "expressjs/serve-static",
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"encodeurl": "~
|
|
9
|
+
"encodeurl": "~2.0.0",
|
|
10
10
|
"escape-html": "~1.0.3",
|
|
11
11
|
"parseurl": "~1.3.3",
|
|
12
|
-
"send": "0.
|
|
12
|
+
"send": "0.19.0"
|
|
13
13
|
},
|
|
14
14
|
"devDependencies": {
|
|
15
15
|
"eslint": "7.32.0",
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/******************************************************************************
|
|
2
|
+
Copyright (c) Microsoft Corporation.
|
|
3
|
+
|
|
4
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
5
|
+
purpose with or without fee is hereby granted.
|
|
6
|
+
|
|
7
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
8
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
9
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
10
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
11
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
12
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
13
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
14
|
+
***************************************************************************** */
|
|
15
|
+
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
Copyright (c) Microsoft Corporation.
|
|
2
|
+
|
|
3
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
4
|
+
purpose with or without fee is hereby granted.
|
|
5
|
+
|
|
6
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
7
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
8
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
9
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
10
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
11
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
12
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
# tslib
|
|
2
|
+
|
|
3
|
+
This is a runtime library for [TypeScript](https://www.typescriptlang.org/) that contains all of the TypeScript helper functions.
|
|
4
|
+
|
|
5
|
+
This library is primarily used by the `--importHelpers` flag in TypeScript.
|
|
6
|
+
When using `--importHelpers`, a module that uses helper functions like `__extends` and `__assign` in the following emitted file:
|
|
7
|
+
|
|
8
|
+
```ts
|
|
9
|
+
var __assign = (this && this.__assign) || Object.assign || function(t) {
|
|
10
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
11
|
+
s = arguments[i];
|
|
12
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
13
|
+
t[p] = s[p];
|
|
14
|
+
}
|
|
15
|
+
return t;
|
|
16
|
+
};
|
|
17
|
+
exports.x = {};
|
|
18
|
+
exports.y = __assign({}, exports.x);
|
|
19
|
+
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
will instead be emitted as something like the following:
|
|
23
|
+
|
|
24
|
+
```ts
|
|
25
|
+
var tslib_1 = require("tslib");
|
|
26
|
+
exports.x = {};
|
|
27
|
+
exports.y = tslib_1.__assign({}, exports.x);
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
Because this can avoid duplicate declarations of things like `__extends`, `__assign`, etc., this means delivering users smaller files on average, as well as less runtime overhead.
|
|
31
|
+
For optimized bundles with TypeScript, you should absolutely consider using `tslib` and `--importHelpers`.
|
|
32
|
+
|
|
33
|
+
# Installing
|
|
34
|
+
|
|
35
|
+
For the latest stable version, run:
|
|
36
|
+
|
|
37
|
+
## npm
|
|
38
|
+
|
|
39
|
+
```sh
|
|
40
|
+
# TypeScript 3.9.2 or later
|
|
41
|
+
npm install tslib
|
|
42
|
+
|
|
43
|
+
# TypeScript 3.8.4 or earlier
|
|
44
|
+
npm install tslib@^1
|
|
45
|
+
|
|
46
|
+
# TypeScript 2.3.2 or earlier
|
|
47
|
+
npm install tslib@1.6.1
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
## yarn
|
|
51
|
+
|
|
52
|
+
```sh
|
|
53
|
+
# TypeScript 3.9.2 or later
|
|
54
|
+
yarn add tslib
|
|
55
|
+
|
|
56
|
+
# TypeScript 3.8.4 or earlier
|
|
57
|
+
yarn add tslib@^1
|
|
58
|
+
|
|
59
|
+
# TypeScript 2.3.2 or earlier
|
|
60
|
+
yarn add tslib@1.6.1
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
## bower
|
|
64
|
+
|
|
65
|
+
```sh
|
|
66
|
+
# TypeScript 3.9.2 or later
|
|
67
|
+
bower install tslib
|
|
68
|
+
|
|
69
|
+
# TypeScript 3.8.4 or earlier
|
|
70
|
+
bower install tslib@^1
|
|
71
|
+
|
|
72
|
+
# TypeScript 2.3.2 or earlier
|
|
73
|
+
bower install tslib@1.6.1
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
## JSPM
|
|
77
|
+
|
|
78
|
+
```sh
|
|
79
|
+
# TypeScript 3.9.2 or later
|
|
80
|
+
jspm install tslib
|
|
81
|
+
|
|
82
|
+
# TypeScript 3.8.4 or earlier
|
|
83
|
+
jspm install tslib@^1
|
|
84
|
+
|
|
85
|
+
# TypeScript 2.3.2 or earlier
|
|
86
|
+
jspm install tslib@1.6.1
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
# Usage
|
|
90
|
+
|
|
91
|
+
Set the `importHelpers` compiler option on the command line:
|
|
92
|
+
|
|
93
|
+
```
|
|
94
|
+
tsc --importHelpers file.ts
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
or in your tsconfig.json:
|
|
98
|
+
|
|
99
|
+
```json
|
|
100
|
+
{
|
|
101
|
+
"compilerOptions": {
|
|
102
|
+
"importHelpers": true
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
#### For bower and JSPM users
|
|
108
|
+
|
|
109
|
+
You will need to add a `paths` mapping for `tslib`, e.g. For Bower users:
|
|
110
|
+
|
|
111
|
+
```json
|
|
112
|
+
{
|
|
113
|
+
"compilerOptions": {
|
|
114
|
+
"module": "amd",
|
|
115
|
+
"importHelpers": true,
|
|
116
|
+
"baseUrl": "./",
|
|
117
|
+
"paths": {
|
|
118
|
+
"tslib" : ["bower_components/tslib/tslib.d.ts"]
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
For JSPM users:
|
|
125
|
+
|
|
126
|
+
```json
|
|
127
|
+
{
|
|
128
|
+
"compilerOptions": {
|
|
129
|
+
"module": "system",
|
|
130
|
+
"importHelpers": true,
|
|
131
|
+
"baseUrl": "./",
|
|
132
|
+
"paths": {
|
|
133
|
+
"tslib" : ["jspm_packages/npm/tslib@2.x.y/tslib.d.ts"]
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
## Deployment
|
|
140
|
+
|
|
141
|
+
- Choose your new version number
|
|
142
|
+
- Set it in `package.json` and `bower.json`
|
|
143
|
+
- Create a tag: `git tag [version]`
|
|
144
|
+
- Push the tag: `git push --tags`
|
|
145
|
+
- Create a [release in GitHub](https://github.com/microsoft/tslib/releases)
|
|
146
|
+
- Run the [publish to npm](https://github.com/microsoft/tslib/actions?query=workflow%3A%22Publish+to+NPM%22) workflow
|
|
147
|
+
|
|
148
|
+
Done.
|
|
149
|
+
|
|
150
|
+
# Contribute
|
|
151
|
+
|
|
152
|
+
There are many ways to [contribute](https://github.com/Microsoft/TypeScript/blob/master/CONTRIBUTING.md) to TypeScript.
|
|
153
|
+
|
|
154
|
+
* [Submit bugs](https://github.com/Microsoft/TypeScript/issues) and help us verify fixes as they are checked in.
|
|
155
|
+
* Review the [source code changes](https://github.com/Microsoft/TypeScript/pulls).
|
|
156
|
+
* Engage with other TypeScript users and developers on [StackOverflow](http://stackoverflow.com/questions/tagged/typescript).
|
|
157
|
+
* Join the [#typescript](http://twitter.com/#!/search/realtime/%23typescript) discussion on Twitter.
|
|
158
|
+
* [Contribute bug fixes](https://github.com/Microsoft/TypeScript/blob/master/CONTRIBUTING.md).
|
|
159
|
+
|
|
160
|
+
# Documentation
|
|
161
|
+
|
|
162
|
+
* [Quick tutorial](http://www.typescriptlang.org/Tutorial)
|
|
163
|
+
* [Programming handbook](http://www.typescriptlang.org/Handbook)
|
|
164
|
+
* [Homepage](http://www.typescriptlang.org/)
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
<!-- BEGIN MICROSOFT SECURITY.MD V0.0.7 BLOCK -->
|
|
2
|
+
|
|
3
|
+
## Security
|
|
4
|
+
|
|
5
|
+
Microsoft takes the security of our software products and services seriously, which includes all source code repositories managed through our GitHub organizations, which include [Microsoft](https://github.com/Microsoft), [Azure](https://github.com/Azure), [DotNet](https://github.com/dotnet), [AspNet](https://github.com/aspnet), [Xamarin](https://github.com/xamarin), and [our GitHub organizations](https://opensource.microsoft.com/).
|
|
6
|
+
|
|
7
|
+
If you believe you have found a security vulnerability in any Microsoft-owned repository that meets [Microsoft's definition of a security vulnerability](https://aka.ms/opensource/security/definition), please report it to us as described below.
|
|
8
|
+
|
|
9
|
+
## Reporting Security Issues
|
|
10
|
+
|
|
11
|
+
**Please do not report security vulnerabilities through public GitHub issues.**
|
|
12
|
+
|
|
13
|
+
Instead, please report them to the Microsoft Security Response Center (MSRC) at [https://msrc.microsoft.com/create-report](https://aka.ms/opensource/security/create-report).
|
|
14
|
+
|
|
15
|
+
If you prefer to submit without logging in, send email to [secure@microsoft.com](mailto:secure@microsoft.com). If possible, encrypt your message with our PGP key; please download it from the [Microsoft Security Response Center PGP Key page](https://aka.ms/opensource/security/pgpkey).
|
|
16
|
+
|
|
17
|
+
You should receive a response within 24 hours. If for some reason you do not, please follow up via email to ensure we received your original message. Additional information can be found at [microsoft.com/msrc](https://aka.ms/opensource/security/msrc).
|
|
18
|
+
|
|
19
|
+
Please include the requested information listed below (as much as you can provide) to help us better understand the nature and scope of the possible issue:
|
|
20
|
+
|
|
21
|
+
* Type of issue (e.g. buffer overflow, SQL injection, cross-site scripting, etc.)
|
|
22
|
+
* Full paths of source file(s) related to the manifestation of the issue
|
|
23
|
+
* The location of the affected source code (tag/branch/commit or direct URL)
|
|
24
|
+
* Any special configuration required to reproduce the issue
|
|
25
|
+
* Step-by-step instructions to reproduce the issue
|
|
26
|
+
* Proof-of-concept or exploit code (if possible)
|
|
27
|
+
* Impact of the issue, including how an attacker might exploit the issue
|
|
28
|
+
|
|
29
|
+
This information will help us triage your report more quickly.
|
|
30
|
+
|
|
31
|
+
If you are reporting for a bug bounty, more complete reports can contribute to a higher bounty award. Please visit our [Microsoft Bug Bounty Program](https://aka.ms/opensource/security/bounty) page for more details about our active programs.
|
|
32
|
+
|
|
33
|
+
## Preferred Languages
|
|
34
|
+
|
|
35
|
+
We prefer all communications to be in English.
|
|
36
|
+
|
|
37
|
+
## Policy
|
|
38
|
+
|
|
39
|
+
Microsoft follows the principle of [Coordinated Vulnerability Disclosure](https://aka.ms/opensource/security/cvd).
|
|
40
|
+
|
|
41
|
+
<!-- END MICROSOFT SECURITY.MD BLOCK -->
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
// Note: named reexports are used instead of `export *` because
|
|
2
|
+
// TypeScript itself doesn't resolve the `export *` when checking
|
|
3
|
+
// if a particular helper exists.
|
|
4
|
+
export {
|
|
5
|
+
__extends,
|
|
6
|
+
__assign,
|
|
7
|
+
__rest,
|
|
8
|
+
__decorate,
|
|
9
|
+
__param,
|
|
10
|
+
__esDecorate,
|
|
11
|
+
__runInitializers,
|
|
12
|
+
__propKey,
|
|
13
|
+
__setFunctionName,
|
|
14
|
+
__metadata,
|
|
15
|
+
__awaiter,
|
|
16
|
+
__generator,
|
|
17
|
+
__exportStar,
|
|
18
|
+
__values,
|
|
19
|
+
__read,
|
|
20
|
+
__spread,
|
|
21
|
+
__spreadArrays,
|
|
22
|
+
__spreadArray,
|
|
23
|
+
__await,
|
|
24
|
+
__asyncGenerator,
|
|
25
|
+
__asyncDelegator,
|
|
26
|
+
__asyncValues,
|
|
27
|
+
__makeTemplateObject,
|
|
28
|
+
__importStar,
|
|
29
|
+
__importDefault,
|
|
30
|
+
__classPrivateFieldGet,
|
|
31
|
+
__classPrivateFieldSet,
|
|
32
|
+
__classPrivateFieldIn,
|
|
33
|
+
__createBinding,
|
|
34
|
+
__addDisposableResource,
|
|
35
|
+
__disposeResources,
|
|
36
|
+
} from '../tslib.js';
|
|
37
|
+
export * as default from '../tslib.js';
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import tslib from '../tslib.js';
|
|
2
|
+
const {
|
|
3
|
+
__extends,
|
|
4
|
+
__assign,
|
|
5
|
+
__rest,
|
|
6
|
+
__decorate,
|
|
7
|
+
__param,
|
|
8
|
+
__esDecorate,
|
|
9
|
+
__runInitializers,
|
|
10
|
+
__propKey,
|
|
11
|
+
__setFunctionName,
|
|
12
|
+
__metadata,
|
|
13
|
+
__awaiter,
|
|
14
|
+
__generator,
|
|
15
|
+
__exportStar,
|
|
16
|
+
__createBinding,
|
|
17
|
+
__values,
|
|
18
|
+
__read,
|
|
19
|
+
__spread,
|
|
20
|
+
__spreadArrays,
|
|
21
|
+
__spreadArray,
|
|
22
|
+
__await,
|
|
23
|
+
__asyncGenerator,
|
|
24
|
+
__asyncDelegator,
|
|
25
|
+
__asyncValues,
|
|
26
|
+
__makeTemplateObject,
|
|
27
|
+
__importStar,
|
|
28
|
+
__importDefault,
|
|
29
|
+
__classPrivateFieldGet,
|
|
30
|
+
__classPrivateFieldSet,
|
|
31
|
+
__classPrivateFieldIn,
|
|
32
|
+
__addDisposableResource,
|
|
33
|
+
__disposeResources,
|
|
34
|
+
} = tslib;
|
|
35
|
+
export {
|
|
36
|
+
__extends,
|
|
37
|
+
__assign,
|
|
38
|
+
__rest,
|
|
39
|
+
__decorate,
|
|
40
|
+
__param,
|
|
41
|
+
__esDecorate,
|
|
42
|
+
__runInitializers,
|
|
43
|
+
__propKey,
|
|
44
|
+
__setFunctionName,
|
|
45
|
+
__metadata,
|
|
46
|
+
__awaiter,
|
|
47
|
+
__generator,
|
|
48
|
+
__exportStar,
|
|
49
|
+
__createBinding,
|
|
50
|
+
__values,
|
|
51
|
+
__read,
|
|
52
|
+
__spread,
|
|
53
|
+
__spreadArrays,
|
|
54
|
+
__spreadArray,
|
|
55
|
+
__await,
|
|
56
|
+
__asyncGenerator,
|
|
57
|
+
__asyncDelegator,
|
|
58
|
+
__asyncValues,
|
|
59
|
+
__makeTemplateObject,
|
|
60
|
+
__importStar,
|
|
61
|
+
__importDefault,
|
|
62
|
+
__classPrivateFieldGet,
|
|
63
|
+
__classPrivateFieldSet,
|
|
64
|
+
__classPrivateFieldIn,
|
|
65
|
+
__addDisposableResource,
|
|
66
|
+
__disposeResources,
|
|
67
|
+
};
|
|
68
|
+
export default tslib;
|