node-red-contrib-web-worldmap 2.34.0 → 2.35.0
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 +1 -0
- package/README.md +2 -0
- package/node_modules/@turf/bezier-spline/package.json +70 -39
- package/node_modules/@turf/helpers/package.json +82 -38
- package/node_modules/@turf/invariant/package.json +73 -36
- package/node_modules/accepts/package.json +55 -15
- package/node_modules/array-flatten/package.json +47 -22
- package/node_modules/body-parser/HISTORY.md +0 -6
- package/node_modules/body-parser/README.md +1 -1
- package/node_modules/body-parser/index.js +9 -8
- package/node_modules/body-parser/node_modules/bytes/package.json +62 -20
- package/node_modules/body-parser/package.json +57 -18
- package/node_modules/bufferjs/package.json +65 -17
- package/node_modules/bufferlist/package.json +51 -15
- package/node_modules/call-bind/package.json +106 -78
- package/node_modules/cgi/package.json +46 -10
- package/node_modules/compressible/package.json +58 -15
- package/node_modules/compression/node_modules/bytes/package.json +84 -0
- package/node_modules/compression/package.json +52 -10
- package/node_modules/content-disposition/node_modules/safe-buffer/package.json +43 -18
- package/node_modules/content-disposition/package.json +49 -14
- package/node_modules/content-type/package.json +54 -15
- package/node_modules/cookie/package.json +52 -14
- package/node_modules/cookie-signature/package.json +47 -8
- package/node_modules/debug/package.json +68 -21
- package/node_modules/depd/package.json +51 -13
- package/node_modules/destroy/package.json +50 -15
- package/node_modules/ee-first/package.json +43 -9
- package/node_modules/encodeurl/package.json +52 -14
- package/node_modules/escape-html/package.json +47 -12
- package/node_modules/etag/package.json +54 -15
- package/node_modules/express/History.md +0 -9
- package/node_modules/express/Readme.md +2 -2
- package/node_modules/express/lib/router/route.js +8 -8
- package/node_modules/express/node_modules/safe-buffer/package.json +43 -18
- package/node_modules/express/package.json +88 -33
- package/node_modules/extend/package.json +78 -42
- package/node_modules/faye-websocket/package.json +64 -33
- package/node_modules/finalhandler/package.json +44 -9
- package/node_modules/forwarded/package.json +49 -14
- package/node_modules/fresh/package.json +61 -17
- package/node_modules/function-bind/package.json +56 -23
- package/node_modules/get-intrinsic/package.json +118 -89
- package/node_modules/has/package.json +46 -21
- package/node_modules/has-symbols/package.json +124 -99
- package/node_modules/header-stack/package.json +48 -14
- package/node_modules/http-errors/package.json +63 -18
- package/node_modules/iconv-lite/package.json +77 -43
- package/node_modules/inherits/package.json +44 -12
- package/node_modules/ipaddr.js/package.json +48 -13
- package/node_modules/media-typer/package.json +43 -8
- package/node_modules/merge-descriptors/package.json +47 -10
- package/node_modules/methods/package.json +60 -17
- package/node_modules/mime/package.json +45 -13
- package/node_modules/mime-db/HISTORY.md +0 -8
- package/node_modules/mime-db/LICENSE +18 -19
- package/node_modules/mime-db/README.md +1 -1
- package/node_modules/mime-db/db.json +6 -54
- package/node_modules/mime-db/index.js +0 -1
- package/node_modules/mime-db/package.json +67 -24
- package/node_modules/mime-types/HISTORY.md +0 -9
- package/node_modules/mime-types/README.md +1 -1
- package/node_modules/mime-types/package.json +63 -19
- package/node_modules/ms/package.json +54 -19
- package/node_modules/negotiator/package.json +61 -19
- package/node_modules/object-inspect/package.json +76 -48
- package/node_modules/on-finished/package.json +50 -8
- package/node_modules/on-headers/package.json +52 -14
- package/node_modules/parseurl/package.json +54 -10
- package/node_modules/path-to-regexp/package.json +44 -15
- package/node_modules/proxy-addr/package.json +49 -14
- package/node_modules/qs/.editorconfig +0 -3
- package/node_modules/qs/.eslintrc +5 -5
- package/node_modules/qs/CHANGELOG.md +0 -158
- package/node_modules/qs/README.md +1 -3
- package/node_modules/qs/dist/qs.js +9 -19
- package/node_modules/qs/lib/stringify.js +3 -12
- package/node_modules/qs/package.json +98 -73
- package/node_modules/qs/test/parse.js +0 -14
- package/node_modules/qs/test/stringify.js +10 -54
- package/node_modules/range-parser/package.json +68 -18
- package/node_modules/raw-body/node_modules/bytes/package.json +62 -20
- package/node_modules/raw-body/package.json +51 -9
- package/node_modules/safe-buffer/package.json +36 -5
- package/node_modules/safer-buffer/package.json +42 -13
- package/node_modules/send/node_modules/ms/package.json +52 -20
- package/node_modules/send/package.json +62 -17
- package/node_modules/serve-static/package.json +44 -9
- package/node_modules/setprototypeof/package.json +55 -27
- package/node_modules/side-channel/package.json +93 -65
- package/node_modules/sockjs/package.json +70 -43
- package/node_modules/statuses/package.json +61 -19
- package/node_modules/stream-stack/package.json +43 -11
- package/node_modules/toidentifier/package.json +51 -9
- package/node_modules/type-is/package.json +55 -12
- package/node_modules/unpipe/package.json +45 -8
- package/node_modules/utils-merge/package.json +45 -19
- package/node_modules/uuid/package.json +99 -70
- package/node_modules/vary/package.json +52 -13
- package/node_modules/websocket-driver/node_modules/http-parser-js/README.md +31 -0
- package/node_modules/{http-parser-js → websocket-driver/node_modules/http-parser-js}/http-parser.js +7 -12
- package/node_modules/websocket-driver/node_modules/http-parser-js/package.json +75 -0
- package/node_modules/websocket-driver/package.json +68 -33
- package/node_modules/websocket-extensions/package.json +61 -27
- package/package.json +1 -1
- package/worldmap/worldmap.js +5 -4
- package/node_modules/bytes/package.json +0 -39
- package/node_modules/faye-websocket/CHANGELOG.md +0 -139
- package/node_modules/header-stack/headers.js +0 -33
- package/node_modules/header-stack/index.js +0 -2
- package/node_modules/header-stack/parser.js +0 -131
- package/node_modules/header-stack/tests/dumps/multipart-folded-headers.eml +0 -27
- package/node_modules/header-stack/tests/dumps/simple-curl-get.dump +0 -5
- package/node_modules/header-stack/tests/test-empty.js +0 -15
- package/node_modules/header-stack/tests/test-multipart-folded-headers.js +0 -21
- package/node_modules/header-stack/tests/test-simple-curl-get.js +0 -32
- package/node_modules/http-parser-js/README.md +0 -43
- package/node_modules/http-parser-js/http-parser.d.ts +0 -175
- package/node_modules/http-parser-js/package.json +0 -30
- package/node_modules/path-to-regexp/History.md +0 -36
- package/node_modules/websocket-driver/CHANGELOG.md +0 -142
- package/node_modules/websocket-extensions/CHANGELOG.md +0 -28
- /package/node_modules/{bytes → compression/node_modules/bytes}/History.md +0 -0
- /package/node_modules/{bytes → compression/node_modules/bytes}/LICENSE +0 -0
- /package/node_modules/{bytes → compression/node_modules/bytes}/Readme.md +0 -0
- /package/node_modules/{bytes → compression/node_modules/bytes}/index.js +0 -0
- /package/node_modules/{http-parser-js → websocket-driver/node_modules/http-parser-js}/LICENSE.md +0 -0
|
@@ -1,49 +1,47 @@
|
|
|
1
1
|
{
|
|
2
|
-
"
|
|
3
|
-
"
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
2
|
+
"_from": "uuid@^8.3.2",
|
|
3
|
+
"_id": "uuid@8.3.2",
|
|
4
|
+
"_inBundle": false,
|
|
5
|
+
"_integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==",
|
|
6
|
+
"_location": "/node-red-contrib-web-worldmap/uuid",
|
|
7
|
+
"_phantomChildren": {},
|
|
8
|
+
"_requested": {
|
|
9
|
+
"type": "range",
|
|
10
|
+
"registry": true,
|
|
11
|
+
"raw": "uuid@^8.3.2",
|
|
12
|
+
"name": "uuid",
|
|
13
|
+
"escapedName": "uuid",
|
|
14
|
+
"rawSpec": "^8.3.2",
|
|
15
|
+
"saveSpec": null,
|
|
16
|
+
"fetchSpec": "^8.3.2"
|
|
9
17
|
},
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
-
"guid",
|
|
13
|
-
"rfc4122"
|
|
18
|
+
"_requiredBy": [
|
|
19
|
+
"/node-red-contrib-web-worldmap/sockjs"
|
|
14
20
|
],
|
|
15
|
-
"
|
|
21
|
+
"_resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz",
|
|
22
|
+
"_shasum": "80d5b5ced271bb9af6c445f21a1a04c606cefbe2",
|
|
23
|
+
"_spec": "uuid@^8.3.2",
|
|
24
|
+
"_where": "/Users/conway/Projects/worldmap/node_modules/sockjs",
|
|
16
25
|
"bin": {
|
|
17
|
-
"uuid": "
|
|
26
|
+
"uuid": "dist/bin/uuid"
|
|
18
27
|
},
|
|
19
|
-
"sideEffects": false,
|
|
20
|
-
"main": "./dist/index.js",
|
|
21
|
-
"exports": {
|
|
22
|
-
".": {
|
|
23
|
-
"node": {
|
|
24
|
-
"module": "./dist/esm-node/index.js",
|
|
25
|
-
"require": "./dist/index.js",
|
|
26
|
-
"import": "./wrapper.mjs"
|
|
27
|
-
},
|
|
28
|
-
"default": "./dist/esm-browser/index.js"
|
|
29
|
-
},
|
|
30
|
-
"./package.json": "./package.json"
|
|
31
|
-
},
|
|
32
|
-
"module": "./dist/esm-node/index.js",
|
|
33
28
|
"browser": {
|
|
34
29
|
"./dist/md5.js": "./dist/md5-browser.js",
|
|
35
30
|
"./dist/rng.js": "./dist/rng-browser.js",
|
|
36
31
|
"./dist/sha1.js": "./dist/sha1-browser.js",
|
|
37
32
|
"./dist/esm-node/index.js": "./dist/esm-browser/index.js"
|
|
38
33
|
},
|
|
39
|
-
"
|
|
40
|
-
"
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
"
|
|
45
|
-
|
|
46
|
-
|
|
34
|
+
"bugs": {
|
|
35
|
+
"url": "https://github.com/uuidjs/uuid/issues"
|
|
36
|
+
},
|
|
37
|
+
"bundleDependencies": false,
|
|
38
|
+
"commitlint": {
|
|
39
|
+
"extends": [
|
|
40
|
+
"@commitlint/config-conventional"
|
|
41
|
+
]
|
|
42
|
+
},
|
|
43
|
+
"deprecated": false,
|
|
44
|
+
"description": "RFC4122 (v1, v4, and v5) UUIDs",
|
|
47
45
|
"devDependencies": {
|
|
48
46
|
"@babel/cli": "7.11.6",
|
|
49
47
|
"@babel/core": "7.11.6",
|
|
@@ -73,6 +71,49 @@
|
|
|
73
71
|
"runmd": "1.3.2",
|
|
74
72
|
"standard-version": "9.0.0"
|
|
75
73
|
},
|
|
74
|
+
"exports": {
|
|
75
|
+
".": {
|
|
76
|
+
"node": {
|
|
77
|
+
"module": "./dist/esm-node/index.js",
|
|
78
|
+
"require": "./dist/index.js",
|
|
79
|
+
"import": "./wrapper.mjs"
|
|
80
|
+
},
|
|
81
|
+
"default": "./dist/esm-browser/index.js"
|
|
82
|
+
},
|
|
83
|
+
"./package.json": "./package.json"
|
|
84
|
+
},
|
|
85
|
+
"files": [
|
|
86
|
+
"CHANGELOG.md",
|
|
87
|
+
"CONTRIBUTING.md",
|
|
88
|
+
"LICENSE.md",
|
|
89
|
+
"README.md",
|
|
90
|
+
"dist",
|
|
91
|
+
"wrapper.mjs"
|
|
92
|
+
],
|
|
93
|
+
"homepage": "https://github.com/uuidjs/uuid#readme",
|
|
94
|
+
"husky": {
|
|
95
|
+
"hooks": {
|
|
96
|
+
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
|
|
97
|
+
"pre-commit": "lint-staged"
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
"keywords": [
|
|
101
|
+
"uuid",
|
|
102
|
+
"guid",
|
|
103
|
+
"rfc4122"
|
|
104
|
+
],
|
|
105
|
+
"license": "MIT",
|
|
106
|
+
"lint-staged": {
|
|
107
|
+
"*.{js,jsx,json,md}": [
|
|
108
|
+
"prettier --write"
|
|
109
|
+
],
|
|
110
|
+
"*.{js,jsx}": [
|
|
111
|
+
"eslint --fix"
|
|
112
|
+
]
|
|
113
|
+
},
|
|
114
|
+
"main": "./dist/index.js",
|
|
115
|
+
"module": "./dist/esm-node/index.js",
|
|
116
|
+
"name": "uuid",
|
|
76
117
|
"optionalDevDependencies": {
|
|
77
118
|
"@wdio/browserstack-service": "6.4.0",
|
|
78
119
|
"@wdio/cli": "6.4.0",
|
|
@@ -82,54 +123,42 @@
|
|
|
82
123
|
"@wdio/static-server-service": "6.4.0",
|
|
83
124
|
"@wdio/sync": "6.4.0"
|
|
84
125
|
},
|
|
126
|
+
"repository": {
|
|
127
|
+
"type": "git",
|
|
128
|
+
"url": "git+https://github.com/uuidjs/uuid.git"
|
|
129
|
+
},
|
|
85
130
|
"scripts": {
|
|
86
|
-
"
|
|
131
|
+
"build": "./scripts/build.sh",
|
|
132
|
+
"bundlewatch": "npm run pretest:browser && bundlewatch --config bundlewatch.config.json",
|
|
133
|
+
"docs": "( node --version | grep -q 'v12' ) && ( npm run build && runmd --output=README.md README_js.md )",
|
|
134
|
+
"docs:diff": "npm run docs && git diff --quiet README.md",
|
|
135
|
+
"eslint:check": "eslint src/ test/ examples/ *.js",
|
|
136
|
+
"eslint:fix": "eslint --fix src/ test/ examples/ *.js",
|
|
87
137
|
"examples:browser:rollup:build": "cd examples/browser-rollup && npm install && npm run build",
|
|
138
|
+
"examples:browser:webpack:build": "cd examples/browser-webpack && npm install && npm run build",
|
|
88
139
|
"examples:node:commonjs:test": "cd examples/node-commonjs && npm install && npm test",
|
|
89
140
|
"examples:node:esmodules:test": "cd examples/node-esmodules && npm install && npm test",
|
|
90
141
|
"lint": "npm run eslint:check && npm run prettier:check",
|
|
91
|
-
"
|
|
92
|
-
"
|
|
142
|
+
"md": "runmd --watch --output=README.md README_js.md",
|
|
143
|
+
"prepack": "npm run build",
|
|
93
144
|
"pretest": "[ -n $CI ] || npm run build",
|
|
94
|
-
"
|
|
145
|
+
"pretest:benchmark": "npm run build",
|
|
95
146
|
"pretest:browser": "optional-dev-dependency && npm run build && npm-run-all --parallel examples:browser:**",
|
|
96
|
-
"test:browser": "wdio run ./wdio.conf.js",
|
|
97
147
|
"pretest:node": "npm run build",
|
|
98
|
-
"test:node": "npm-run-all --parallel examples:node:**",
|
|
99
|
-
"test:pack": "./scripts/testpack.sh",
|
|
100
|
-
"pretest:benchmark": "npm run build",
|
|
101
|
-
"test:benchmark": "cd examples/benchmark && npm install && npm test",
|
|
102
148
|
"prettier:check": "prettier --ignore-path .prettierignore --check '**/*.{js,jsx,json,md}'",
|
|
103
149
|
"prettier:fix": "prettier --ignore-path .prettierignore --write '**/*.{js,jsx,json,md}'",
|
|
104
|
-
"
|
|
105
|
-
"
|
|
106
|
-
"
|
|
107
|
-
"
|
|
108
|
-
"
|
|
109
|
-
"
|
|
110
|
-
"release": "standard-version --no-verify"
|
|
111
|
-
},
|
|
112
|
-
"repository": {
|
|
113
|
-
"type": "git",
|
|
114
|
-
"url": "https://github.com/uuidjs/uuid.git"
|
|
115
|
-
},
|
|
116
|
-
"husky": {
|
|
117
|
-
"hooks": {
|
|
118
|
-
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
|
|
119
|
-
"pre-commit": "lint-staged"
|
|
120
|
-
}
|
|
121
|
-
},
|
|
122
|
-
"lint-staged": {
|
|
123
|
-
"*.{js,jsx,json,md}": [
|
|
124
|
-
"prettier --write"
|
|
125
|
-
],
|
|
126
|
-
"*.{js,jsx}": [
|
|
127
|
-
"eslint --fix"
|
|
128
|
-
]
|
|
150
|
+
"release": "standard-version --no-verify",
|
|
151
|
+
"test": "BABEL_ENV=commonjs node --throw-deprecation node_modules/.bin/jest test/unit/",
|
|
152
|
+
"test:benchmark": "cd examples/benchmark && npm install && npm test",
|
|
153
|
+
"test:browser": "wdio run ./wdio.conf.js",
|
|
154
|
+
"test:node": "npm-run-all --parallel examples:node:**",
|
|
155
|
+
"test:pack": "./scripts/testpack.sh"
|
|
129
156
|
},
|
|
157
|
+
"sideEffects": false,
|
|
130
158
|
"standard-version": {
|
|
131
159
|
"scripts": {
|
|
132
160
|
"postchangelog": "prettier --write CHANGELOG.md"
|
|
133
161
|
}
|
|
134
|
-
}
|
|
162
|
+
},
|
|
163
|
+
"version": "8.3.2"
|
|
135
164
|
}
|
|
@@ -1,15 +1,41 @@
|
|
|
1
1
|
{
|
|
2
|
-
"
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
"keywords": [
|
|
8
|
-
"http",
|
|
9
|
-
"res",
|
|
10
|
-
"vary"
|
|
2
|
+
"_args": [
|
|
3
|
+
[
|
|
4
|
+
"vary@1.1.2",
|
|
5
|
+
"/Users/conway/Projects/worldmap"
|
|
6
|
+
]
|
|
11
7
|
],
|
|
12
|
-
"
|
|
8
|
+
"_from": "vary@1.1.2",
|
|
9
|
+
"_id": "vary@1.1.2",
|
|
10
|
+
"_inBundle": false,
|
|
11
|
+
"_integrity": "sha1-IpnwLG3tMNSllhsLn3RSShj2NPw=",
|
|
12
|
+
"_location": "/vary",
|
|
13
|
+
"_phantomChildren": {},
|
|
14
|
+
"_requested": {
|
|
15
|
+
"type": "version",
|
|
16
|
+
"registry": true,
|
|
17
|
+
"raw": "vary@1.1.2",
|
|
18
|
+
"name": "vary",
|
|
19
|
+
"escapedName": "vary",
|
|
20
|
+
"rawSpec": "1.1.2",
|
|
21
|
+
"saveSpec": null,
|
|
22
|
+
"fetchSpec": "1.1.2"
|
|
23
|
+
},
|
|
24
|
+
"_requiredBy": [
|
|
25
|
+
"/compression",
|
|
26
|
+
"/express"
|
|
27
|
+
],
|
|
28
|
+
"_resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz",
|
|
29
|
+
"_spec": "1.1.2",
|
|
30
|
+
"_where": "/Users/conway/Projects/worldmap",
|
|
31
|
+
"author": {
|
|
32
|
+
"name": "Douglas Christopher Wilson",
|
|
33
|
+
"email": "doug@somethingdoug.com"
|
|
34
|
+
},
|
|
35
|
+
"bugs": {
|
|
36
|
+
"url": "https://github.com/jshttp/vary/issues"
|
|
37
|
+
},
|
|
38
|
+
"description": "Manipulate the HTTP Vary header",
|
|
13
39
|
"devDependencies": {
|
|
14
40
|
"beautify-benchmark": "0.2.4",
|
|
15
41
|
"benchmark": "2.1.4",
|
|
@@ -24,14 +50,26 @@
|
|
|
24
50
|
"mocha": "2.5.3",
|
|
25
51
|
"supertest": "1.1.0"
|
|
26
52
|
},
|
|
53
|
+
"engines": {
|
|
54
|
+
"node": ">= 0.8"
|
|
55
|
+
},
|
|
27
56
|
"files": [
|
|
28
57
|
"HISTORY.md",
|
|
29
58
|
"LICENSE",
|
|
30
59
|
"README.md",
|
|
31
60
|
"index.js"
|
|
32
61
|
],
|
|
33
|
-
"
|
|
34
|
-
|
|
62
|
+
"homepage": "https://github.com/jshttp/vary#readme",
|
|
63
|
+
"keywords": [
|
|
64
|
+
"http",
|
|
65
|
+
"res",
|
|
66
|
+
"vary"
|
|
67
|
+
],
|
|
68
|
+
"license": "MIT",
|
|
69
|
+
"name": "vary",
|
|
70
|
+
"repository": {
|
|
71
|
+
"type": "git",
|
|
72
|
+
"url": "git+https://github.com/jshttp/vary.git"
|
|
35
73
|
},
|
|
36
74
|
"scripts": {
|
|
37
75
|
"bench": "node benchmark/index.js",
|
|
@@ -39,5 +77,6 @@
|
|
|
39
77
|
"test": "mocha --reporter spec --bail --check-leaks test/",
|
|
40
78
|
"test-cov": "istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot --check-leaks test/",
|
|
41
79
|
"test-travis": "istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter spec --check-leaks test/"
|
|
42
|
-
}
|
|
80
|
+
},
|
|
81
|
+
"version": "1.1.2"
|
|
43
82
|
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# HTTP Parser
|
|
2
|
+
|
|
3
|
+
This library parses HTTP protocol for requests and responses. It was created to replace `http_parser.c` since calling C++ function from JS is really slow in V8. However, it is now primarily useful in having a more flexible/tolerant HTTP parser when dealing with legacy services that do not meet the strict HTTP parsing rules Node's parser follows.
|
|
4
|
+
|
|
5
|
+
This is packaged as a standalone npm module. To use in node, monkeypatch HTTPParser.
|
|
6
|
+
|
|
7
|
+
```js
|
|
8
|
+
// Monkey patch before you require http for the first time.
|
|
9
|
+
process.binding('http_parser').HTTPParser = require('http-parser-js').HTTPParser;
|
|
10
|
+
|
|
11
|
+
var http = require('http');
|
|
12
|
+
// ...
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Testing
|
|
16
|
+
|
|
17
|
+
Simply do `npm test`. The tests are copied from node and mscedex/io.js, with some modifcations.
|
|
18
|
+
|
|
19
|
+
## Status
|
|
20
|
+
|
|
21
|
+
This should now be usable in any node application, it now supports (nearly) everything `http_parser.c` does while still being tolerant with corrupted headers, and other kinds of malformed data.
|
|
22
|
+
|
|
23
|
+
### Node Versions
|
|
24
|
+
|
|
25
|
+
`http-parser-js` should work via monkey-patching on Node v6-v11, and v13.
|
|
26
|
+
|
|
27
|
+
Node v12.x renamed the internal http parser, and did not expose it for monkey-patching, so to be able to monkey-patch on Node v12, you must run `node --http-parser=legacy file.js` to opt in to the old, monkey-patchable http_parser binding.
|
|
28
|
+
|
|
29
|
+
## License
|
|
30
|
+
|
|
31
|
+
MIT. See LICENSE.md
|
package/node_modules/{http-parser-js → websocket-driver/node_modules/http-parser-js}/http-parser.js
RENAMED
|
@@ -10,7 +10,6 @@ function HTTPParser(type) {
|
|
|
10
10
|
} else {
|
|
11
11
|
this.initialize(type);
|
|
12
12
|
}
|
|
13
|
-
this.maxHeaderSize=HTTPParser.maxHeaderSize
|
|
14
13
|
}
|
|
15
14
|
HTTPParser.prototype.initialize = function (type, async_resource) {
|
|
16
15
|
assert.ok(type === HTTPParser.REQUEST || type === HTTPParser.RESPONSE);
|
|
@@ -34,13 +33,10 @@ HTTPParser.encoding = 'ascii';
|
|
|
34
33
|
HTTPParser.maxHeaderSize = 80 * 1024; // maxHeaderSize (in bytes) is configurable, but 80kb by default;
|
|
35
34
|
HTTPParser.REQUEST = 'REQUEST';
|
|
36
35
|
HTTPParser.RESPONSE = 'RESPONSE';
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
var
|
|
41
|
-
var kOnHeadersComplete = HTTPParser.kOnHeadersComplete = 2;
|
|
42
|
-
var kOnBody = HTTPParser.kOnBody = 3;
|
|
43
|
-
var kOnMessageComplete = HTTPParser.kOnMessageComplete = 4;
|
|
36
|
+
var kOnHeaders = HTTPParser.kOnHeaders = 0;
|
|
37
|
+
var kOnHeadersComplete = HTTPParser.kOnHeadersComplete = 1;
|
|
38
|
+
var kOnBody = HTTPParser.kOnBody = 2;
|
|
39
|
+
var kOnMessageComplete = HTTPParser.kOnMessageComplete = 3;
|
|
44
40
|
|
|
45
41
|
// Some handler stubs, needed for compatibility
|
|
46
42
|
HTTPParser.prototype[kOnHeaders] =
|
|
@@ -53,7 +49,7 @@ Object.defineProperty(HTTPParser, 'kOnExecute', {
|
|
|
53
49
|
get: function () {
|
|
54
50
|
// hack for backward compatibility
|
|
55
51
|
compatMode0_12 = false;
|
|
56
|
-
return
|
|
52
|
+
return 4;
|
|
57
53
|
}
|
|
58
54
|
});
|
|
59
55
|
|
|
@@ -90,8 +86,7 @@ var methods = exports.methods = HTTPParser.methods = [
|
|
|
90
86
|
'PURGE',
|
|
91
87
|
'MKCALENDAR',
|
|
92
88
|
'LINK',
|
|
93
|
-
'UNLINK'
|
|
94
|
-
'SOURCE',
|
|
89
|
+
'UNLINK'
|
|
95
90
|
];
|
|
96
91
|
var method_connect = methods.indexOf('CONNECT');
|
|
97
92
|
HTTPParser.prototype.reinitialize = HTTPParser;
|
|
@@ -137,7 +132,7 @@ HTTPParser.prototype.execute = function (chunk, start, length) {
|
|
|
137
132
|
length = this.offset - start;
|
|
138
133
|
if (headerState[this.state]) {
|
|
139
134
|
this.headerSize += length;
|
|
140
|
-
if (this.headerSize >
|
|
135
|
+
if (this.headerSize > HTTPParser.maxHeaderSize) {
|
|
141
136
|
return new Error('max header size exceeded');
|
|
142
137
|
}
|
|
143
138
|
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_args": [
|
|
3
|
+
[
|
|
4
|
+
"http-parser-js@0.5.2",
|
|
5
|
+
"/Users/conway/.node-red"
|
|
6
|
+
]
|
|
7
|
+
],
|
|
8
|
+
"_from": "http-parser-js@0.5.2",
|
|
9
|
+
"_id": "http-parser-js@0.5.2",
|
|
10
|
+
"_inBundle": false,
|
|
11
|
+
"_integrity": "sha512-opCO9ASqg5Wy2FNo7A0sxy71yGbbkJJXLdgMK04Tcypw9jr2MgWbyubb0+WdmDmGnFflO7fRbqbaihh/ENDlRQ==",
|
|
12
|
+
"_location": "/node-red-contrib-web-worldmap/websocket-driver/http-parser-js",
|
|
13
|
+
"_phantomChildren": {},
|
|
14
|
+
"_requested": {
|
|
15
|
+
"type": "version",
|
|
16
|
+
"registry": true,
|
|
17
|
+
"raw": "http-parser-js@0.5.2",
|
|
18
|
+
"name": "http-parser-js",
|
|
19
|
+
"escapedName": "http-parser-js",
|
|
20
|
+
"rawSpec": "0.5.2",
|
|
21
|
+
"saveSpec": null,
|
|
22
|
+
"fetchSpec": "0.5.2"
|
|
23
|
+
},
|
|
24
|
+
"_requiredBy": [
|
|
25
|
+
"/node-red-contrib-web-worldmap/websocket-driver"
|
|
26
|
+
],
|
|
27
|
+
"_resolved": "https://registry.npmjs.org/http-parser-js/-/http-parser-js-0.5.2.tgz",
|
|
28
|
+
"_spec": "0.5.2",
|
|
29
|
+
"_where": "/Users/conway/.node-red",
|
|
30
|
+
"author": {
|
|
31
|
+
"name": "Tim Caswell",
|
|
32
|
+
"url": "https://github.com/creationix"
|
|
33
|
+
},
|
|
34
|
+
"bugs": {
|
|
35
|
+
"url": "https://github.com/creationix/http-parser-js/issues"
|
|
36
|
+
},
|
|
37
|
+
"contributors": [
|
|
38
|
+
{
|
|
39
|
+
"name": "Jimb Esser",
|
|
40
|
+
"url": "https://github.com/Jimbly"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"name": "Lawrence Rowe",
|
|
44
|
+
"url": "https://github.com/lrowe"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"name": "Jan Schär",
|
|
48
|
+
"url": "https://github.com/jscissr"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"name": "Paul Rütter",
|
|
52
|
+
"url": "https://github.com/paulrutter"
|
|
53
|
+
}
|
|
54
|
+
],
|
|
55
|
+
"description": "A pure JS HTTP parser for node.",
|
|
56
|
+
"files": [
|
|
57
|
+
"http-parser.js"
|
|
58
|
+
],
|
|
59
|
+
"homepage": "https://github.com/creationix/http-parser-js#readme",
|
|
60
|
+
"keywords": [
|
|
61
|
+
"http"
|
|
62
|
+
],
|
|
63
|
+
"license": "MIT",
|
|
64
|
+
"main": "http-parser.js",
|
|
65
|
+
"name": "http-parser-js",
|
|
66
|
+
"repository": {
|
|
67
|
+
"type": "git",
|
|
68
|
+
"url": "git://github.com/creationix/http-parser-js.git"
|
|
69
|
+
},
|
|
70
|
+
"scripts": {
|
|
71
|
+
"test": "python tests/test.py && node tests/iojs/test-http-parser-durability.js",
|
|
72
|
+
"testv12": "python tests/test.py --node-args=\"--http-parser=legacy\" && node --http-parser=legacy tests/iojs/test-http-parser-durability.js"
|
|
73
|
+
},
|
|
74
|
+
"version": "0.5.2"
|
|
75
|
+
}
|
|
@@ -1,35 +1,70 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
2
|
+
"_args": [
|
|
3
|
+
[
|
|
4
|
+
"websocket-driver@0.7.4",
|
|
5
|
+
"/Users/conway/Projects/worldmap"
|
|
6
|
+
]
|
|
7
|
+
],
|
|
8
|
+
"_from": "websocket-driver@0.7.4",
|
|
9
|
+
"_id": "websocket-driver@0.7.4",
|
|
10
|
+
"_inBundle": false,
|
|
11
|
+
"_integrity": "sha512-b17KeDIQVjvb0ssuSDF2cYXSg2iztliJ4B9WdsuB6J952qCPKmnVq4DyW5motImXHDC1cBT/1UezrJVsKw5zjg==",
|
|
12
|
+
"_location": "/websocket-driver",
|
|
13
|
+
"_phantomChildren": {},
|
|
14
|
+
"_requested": {
|
|
15
|
+
"type": "version",
|
|
16
|
+
"registry": true,
|
|
17
|
+
"raw": "websocket-driver@0.7.4",
|
|
18
|
+
"name": "websocket-driver",
|
|
19
|
+
"escapedName": "websocket-driver",
|
|
20
|
+
"rawSpec": "0.7.4",
|
|
21
|
+
"saveSpec": null,
|
|
22
|
+
"fetchSpec": "0.7.4"
|
|
23
|
+
},
|
|
24
|
+
"_requiredBy": [
|
|
25
|
+
"/faye-websocket",
|
|
26
|
+
"/sockjs"
|
|
27
|
+
],
|
|
28
|
+
"_resolved": "https://registry.npmjs.org/websocket-driver/-/websocket-driver-0.7.4.tgz",
|
|
29
|
+
"_spec": "0.7.4",
|
|
30
|
+
"_where": "/Users/conway/Projects/worldmap",
|
|
31
|
+
"author": {
|
|
32
|
+
"name": "James Coglan",
|
|
33
|
+
"email": "jcoglan@gmail.com",
|
|
34
|
+
"url": "http://jcoglan.com/"
|
|
35
|
+
},
|
|
36
|
+
"bugs": {
|
|
37
|
+
"url": "https://github.com/faye/websocket-driver-node/issues"
|
|
38
|
+
},
|
|
39
|
+
"dependencies": {
|
|
40
|
+
"http-parser-js": ">=0.5.1",
|
|
41
|
+
"safe-buffer": ">=5.1.0",
|
|
42
|
+
"websocket-extensions": ">=0.1.1"
|
|
43
|
+
},
|
|
44
|
+
"description": "WebSocket protocol handler with pluggable I/O",
|
|
45
|
+
"devDependencies": {
|
|
46
|
+
"jstest": "*",
|
|
47
|
+
"permessage-deflate": "*"
|
|
48
|
+
},
|
|
49
|
+
"engines": {
|
|
50
|
+
"node": ">=0.8.0"
|
|
51
|
+
},
|
|
52
|
+
"files": [
|
|
53
|
+
"lib"
|
|
54
|
+
],
|
|
55
|
+
"homepage": "https://github.com/faye/websocket-driver-node",
|
|
56
|
+
"keywords": [
|
|
57
|
+
"websocket"
|
|
58
|
+
],
|
|
59
|
+
"license": "Apache-2.0",
|
|
60
|
+
"main": "./lib/websocket/driver",
|
|
61
|
+
"name": "websocket-driver",
|
|
62
|
+
"repository": {
|
|
63
|
+
"type": "git",
|
|
64
|
+
"url": "git://github.com/faye/websocket-driver-node.git"
|
|
65
|
+
},
|
|
66
|
+
"scripts": {
|
|
67
|
+
"test": "jstest spec/runner.js"
|
|
68
|
+
},
|
|
69
|
+
"version": "0.7.4"
|
|
35
70
|
}
|
|
@@ -1,29 +1,63 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
2
|
+
"_args": [
|
|
3
|
+
[
|
|
4
|
+
"websocket-extensions@0.1.4",
|
|
5
|
+
"/Users/conway/Projects/worldmap"
|
|
6
|
+
]
|
|
7
|
+
],
|
|
8
|
+
"_from": "websocket-extensions@0.1.4",
|
|
9
|
+
"_id": "websocket-extensions@0.1.4",
|
|
10
|
+
"_inBundle": false,
|
|
11
|
+
"_integrity": "sha512-OqedPIGOfsDlo31UNwYbCFMSaO9m9G/0faIHj5/dZFDMFqPTcx6UwqyOy3COEaEOg/9VsGIpdqn62W5KhoKSpg==",
|
|
12
|
+
"_location": "/websocket-extensions",
|
|
13
|
+
"_phantomChildren": {},
|
|
14
|
+
"_requested": {
|
|
15
|
+
"type": "version",
|
|
16
|
+
"registry": true,
|
|
17
|
+
"raw": "websocket-extensions@0.1.4",
|
|
18
|
+
"name": "websocket-extensions",
|
|
19
|
+
"escapedName": "websocket-extensions",
|
|
20
|
+
"rawSpec": "0.1.4",
|
|
21
|
+
"saveSpec": null,
|
|
22
|
+
"fetchSpec": "0.1.4"
|
|
23
|
+
},
|
|
24
|
+
"_requiredBy": [
|
|
25
|
+
"/websocket-driver"
|
|
26
|
+
],
|
|
27
|
+
"_resolved": "https://registry.npmjs.org/websocket-extensions/-/websocket-extensions-0.1.4.tgz",
|
|
28
|
+
"_spec": "0.1.4",
|
|
29
|
+
"_where": "/Users/conway/Projects/worldmap",
|
|
30
|
+
"author": {
|
|
31
|
+
"name": "James Coglan",
|
|
32
|
+
"email": "jcoglan@gmail.com",
|
|
33
|
+
"url": "http://jcoglan.com/"
|
|
34
|
+
},
|
|
35
|
+
"bugs": {
|
|
36
|
+
"url": "http://github.com/faye/websocket-extensions-node/issues"
|
|
37
|
+
},
|
|
38
|
+
"description": "Generic extension manager for WebSocket connections",
|
|
39
|
+
"devDependencies": {
|
|
40
|
+
"jstest": "*"
|
|
41
|
+
},
|
|
42
|
+
"engines": {
|
|
43
|
+
"node": ">=0.8.0"
|
|
44
|
+
},
|
|
45
|
+
"files": [
|
|
46
|
+
"lib"
|
|
47
|
+
],
|
|
48
|
+
"homepage": "http://github.com/faye/websocket-extensions-node",
|
|
49
|
+
"keywords": [
|
|
50
|
+
"websocket"
|
|
51
|
+
],
|
|
52
|
+
"license": "Apache-2.0",
|
|
53
|
+
"main": "./lib/websocket_extensions",
|
|
54
|
+
"name": "websocket-extensions",
|
|
55
|
+
"repository": {
|
|
56
|
+
"type": "git",
|
|
57
|
+
"url": "git://github.com/faye/websocket-extensions-node.git"
|
|
58
|
+
},
|
|
59
|
+
"scripts": {
|
|
60
|
+
"test": "jstest spec/runner.js"
|
|
61
|
+
},
|
|
62
|
+
"version": "0.1.4"
|
|
29
63
|
}
|