node-red-contrib-web-worldmap 2.32.2 → 2.33.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.
Files changed (117) hide show
  1. package/CHANGELOG.md +3 -1
  2. package/README.md +2 -0
  3. package/node_modules/@turf/bezier-spline/package.json +39 -70
  4. package/node_modules/@turf/helpers/package.json +38 -82
  5. package/node_modules/@turf/invariant/package.json +36 -73
  6. package/node_modules/accepts/package.json +15 -55
  7. package/node_modules/array-flatten/package.json +22 -47
  8. package/node_modules/body-parser/HISTORY.md +6 -0
  9. package/node_modules/body-parser/README.md +1 -1
  10. package/node_modules/body-parser/index.js +8 -9
  11. package/node_modules/body-parser/node_modules/bytes/package.json +20 -62
  12. package/node_modules/body-parser/package.json +18 -57
  13. package/node_modules/bufferjs/package.json +17 -65
  14. package/node_modules/bufferlist/package.json +15 -51
  15. package/node_modules/{compression/node_modules/bytes → bytes}/History.md +0 -0
  16. package/node_modules/{compression/node_modules/bytes → bytes}/LICENSE +0 -0
  17. package/node_modules/{compression/node_modules/bytes → bytes}/Readme.md +0 -0
  18. package/node_modules/{compression/node_modules/bytes → bytes}/index.js +0 -0
  19. package/node_modules/bytes/package.json +39 -0
  20. package/node_modules/call-bind/package.json +78 -106
  21. package/node_modules/cgi/package.json +10 -46
  22. package/node_modules/compressible/package.json +15 -58
  23. package/node_modules/compression/package.json +10 -52
  24. package/node_modules/content-disposition/node_modules/safe-buffer/package.json +18 -43
  25. package/node_modules/content-disposition/package.json +14 -49
  26. package/node_modules/content-type/package.json +15 -54
  27. package/node_modules/cookie/package.json +14 -52
  28. package/node_modules/cookie-signature/package.json +8 -47
  29. package/node_modules/debug/package.json +21 -68
  30. package/node_modules/depd/package.json +13 -51
  31. package/node_modules/destroy/package.json +15 -50
  32. package/node_modules/ee-first/package.json +9 -43
  33. package/node_modules/encodeurl/package.json +14 -52
  34. package/node_modules/escape-html/package.json +12 -47
  35. package/node_modules/etag/package.json +15 -54
  36. package/node_modules/express/History.md +9 -0
  37. package/node_modules/express/Readme.md +2 -2
  38. package/node_modules/express/lib/router/route.js +8 -8
  39. package/node_modules/express/node_modules/safe-buffer/package.json +18 -43
  40. package/node_modules/express/package.json +33 -88
  41. package/node_modules/extend/package.json +42 -78
  42. package/node_modules/faye-websocket/package.json +33 -64
  43. package/node_modules/finalhandler/package.json +9 -44
  44. package/node_modules/forwarded/package.json +14 -49
  45. package/node_modules/fresh/package.json +17 -61
  46. package/node_modules/function-bind/package.json +23 -56
  47. package/node_modules/get-intrinsic/package.json +89 -118
  48. package/node_modules/has/package.json +21 -46
  49. package/node_modules/has-symbols/package.json +99 -124
  50. package/node_modules/header-stack/package.json +14 -48
  51. package/node_modules/http-errors/package.json +18 -63
  52. package/node_modules/{websocket-driver/node_modules/http-parser-js → http-parser-js}/LICENSE.md +0 -0
  53. package/node_modules/http-parser-js/README.md +43 -0
  54. package/node_modules/http-parser-js/http-parser.d.ts +175 -0
  55. package/node_modules/{websocket-driver/node_modules/http-parser-js → http-parser-js}/http-parser.js +12 -7
  56. package/node_modules/http-parser-js/package.json +30 -0
  57. package/node_modules/iconv-lite/package.json +43 -77
  58. package/node_modules/inherits/package.json +12 -44
  59. package/node_modules/ipaddr.js/package.json +13 -48
  60. package/node_modules/media-typer/package.json +8 -43
  61. package/node_modules/merge-descriptors/package.json +10 -47
  62. package/node_modules/methods/package.json +17 -60
  63. package/node_modules/mime/package.json +13 -45
  64. package/node_modules/mime-db/HISTORY.md +8 -0
  65. package/node_modules/mime-db/LICENSE +19 -18
  66. package/node_modules/mime-db/README.md +1 -1
  67. package/node_modules/mime-db/db.json +54 -6
  68. package/node_modules/mime-db/index.js +1 -0
  69. package/node_modules/mime-db/package.json +24 -67
  70. package/node_modules/mime-types/HISTORY.md +9 -0
  71. package/node_modules/mime-types/README.md +1 -1
  72. package/node_modules/mime-types/package.json +19 -63
  73. package/node_modules/ms/package.json +19 -54
  74. package/node_modules/negotiator/package.json +19 -61
  75. package/node_modules/object-inspect/package.json +48 -76
  76. package/node_modules/on-finished/package.json +8 -50
  77. package/node_modules/on-headers/package.json +14 -52
  78. package/node_modules/parseurl/package.json +10 -54
  79. package/node_modules/path-to-regexp/package.json +15 -44
  80. package/node_modules/proxy-addr/package.json +14 -49
  81. package/node_modules/qs/.editorconfig +3 -0
  82. package/node_modules/qs/.eslintrc +5 -5
  83. package/node_modules/qs/CHANGELOG.md +158 -0
  84. package/node_modules/qs/README.md +3 -1
  85. package/node_modules/qs/dist/qs.js +19 -9
  86. package/node_modules/qs/lib/stringify.js +12 -3
  87. package/node_modules/qs/package.json +73 -98
  88. package/node_modules/qs/test/parse.js +14 -0
  89. package/node_modules/qs/test/stringify.js +54 -10
  90. package/node_modules/range-parser/package.json +18 -68
  91. package/node_modules/raw-body/node_modules/bytes/package.json +20 -62
  92. package/node_modules/raw-body/package.json +9 -51
  93. package/node_modules/safe-buffer/package.json +5 -36
  94. package/node_modules/safer-buffer/package.json +13 -42
  95. package/node_modules/send/node_modules/ms/package.json +20 -52
  96. package/node_modules/send/package.json +17 -62
  97. package/node_modules/serve-static/package.json +9 -44
  98. package/node_modules/setprototypeof/package.json +27 -55
  99. package/node_modules/side-channel/package.json +65 -93
  100. package/node_modules/sockjs/package.json +43 -70
  101. package/node_modules/statuses/package.json +19 -61
  102. package/node_modules/stream-stack/package.json +11 -43
  103. package/node_modules/toidentifier/package.json +9 -51
  104. package/node_modules/type-is/package.json +12 -55
  105. package/node_modules/unpipe/package.json +8 -45
  106. package/node_modules/utils-merge/package.json +19 -45
  107. package/node_modules/uuid/package.json +70 -99
  108. package/node_modules/vary/package.json +13 -52
  109. package/node_modules/websocket-driver/package.json +33 -68
  110. package/node_modules/websocket-extensions/package.json +27 -61
  111. package/package.json +1 -1
  112. package/worldmap/worldmap.js +14 -8
  113. package/worldmap.html +0 -1
  114. package/node_modules/compression/node_modules/bytes/package.json +0 -84
  115. package/node_modules/websocket-driver/node_modules/http-parser-js/CHANGELOG.md +0 -14
  116. package/node_modules/websocket-driver/node_modules/http-parser-js/README.md +0 -31
  117. package/node_modules/websocket-driver/node_modules/http-parser-js/package.json +0 -75
@@ -1,56 +1,26 @@
1
1
  {
2
- "_from": "has@^1.0.3",
3
- "_id": "has@1.0.3",
4
- "_inBundle": false,
5
- "_integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==",
6
- "_location": "/has",
7
- "_phantomChildren": {},
8
- "_requested": {
9
- "type": "range",
10
- "registry": true,
11
- "raw": "has@^1.0.3",
12
- "name": "has",
13
- "escapedName": "has",
14
- "rawSpec": "^1.0.3",
15
- "saveSpec": null,
16
- "fetchSpec": "^1.0.3"
17
- },
18
- "_requiredBy": [
19
- "/get-intrinsic"
20
- ],
21
- "_resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz",
22
- "_shasum": "722d7cbfc1f6aa8241f16dd814e011e1f41e8796",
23
- "_spec": "has@^1.0.3",
24
- "_where": "/Users/conway/Projects/worldmap/node_modules/get-intrinsic",
2
+ "name": "has",
3
+ "description": "Object.prototype.hasOwnProperty.call shortcut",
4
+ "version": "1.0.3",
5
+ "homepage": "https://github.com/tarruda/has",
25
6
  "author": {
26
7
  "name": "Thiago de Arruda",
27
8
  "email": "tpadilha84@gmail.com"
28
9
  },
29
- "bugs": {
30
- "url": "https://github.com/tarruda/has/issues"
31
- },
32
- "bundleDependencies": false,
33
- "contributors": [
10
+ "contributors": [
34
11
  {
35
12
  "name": "Jordan Harband",
36
13
  "email": "ljharb@gmail.com",
37
14
  "url": "http://ljharb.codes"
38
15
  }
39
16
  ],
40
- "dependencies": {
41
- "function-bind": "^1.1.1"
42
- },
43
- "deprecated": false,
44
- "description": "Object.prototype.hasOwnProperty.call shortcut",
45
- "devDependencies": {
46
- "@ljharb/eslint-config": "^12.2.1",
47
- "eslint": "^4.19.1",
48
- "tape": "^4.9.0"
17
+ "repository": {
18
+ "type": "git",
19
+ "url": "git://github.com/tarruda/has.git"
49
20
  },
50
- "engines": {
51
- "node": ">= 0.4.0"
21
+ "bugs": {
22
+ "url": "https://github.com/tarruda/has/issues"
52
23
  },
53
- "homepage": "https://github.com/tarruda/has",
54
24
  "license": "MIT",
55
25
  "licenses": [
56
26
  {
@@ -59,15 +29,20 @@
59
29
  }
60
30
  ],
61
31
  "main": "./src",
62
- "name": "has",
63
- "repository": {
64
- "type": "git",
65
- "url": "git://github.com/tarruda/has.git"
32
+ "dependencies": {
33
+ "function-bind": "^1.1.1"
34
+ },
35
+ "devDependencies": {
36
+ "@ljharb/eslint-config": "^12.2.1",
37
+ "eslint": "^4.19.1",
38
+ "tape": "^4.9.0"
39
+ },
40
+ "engines": {
41
+ "node": ">= 0.4.0"
66
42
  },
67
43
  "scripts": {
68
44
  "lint": "eslint .",
69
45
  "pretest": "npm run lint",
70
46
  "test": "tape test"
71
- },
72
- "version": "1.0.3"
47
+ }
73
48
  }
@@ -1,126 +1,101 @@
1
1
  {
2
- "_from": "has-symbols@^1.0.3",
3
- "_id": "has-symbols@1.0.3",
4
- "_inBundle": false,
5
- "_integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==",
6
- "_location": "/has-symbols",
7
- "_phantomChildren": {},
8
- "_requested": {
9
- "type": "range",
10
- "registry": true,
11
- "raw": "has-symbols@^1.0.3",
12
- "name": "has-symbols",
13
- "escapedName": "has-symbols",
14
- "rawSpec": "^1.0.3",
15
- "saveSpec": null,
16
- "fetchSpec": "^1.0.3"
17
- },
18
- "_requiredBy": [
19
- "/get-intrinsic"
20
- ],
21
- "_resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz",
22
- "_shasum": "bb7b2c4349251dce87b125f7bdf874aa7c8b39f8",
23
- "_spec": "has-symbols@^1.0.3",
24
- "_where": "/Users/conway/Projects/worldmap/node_modules/get-intrinsic",
25
- "author": {
26
- "name": "Jordan Harband",
27
- "email": "ljharb@gmail.com",
28
- "url": "http://ljharb.codes"
29
- },
30
- "auto-changelog": {
31
- "output": "CHANGELOG.md",
32
- "template": "keepachangelog",
33
- "unreleased": false,
34
- "commitLimit": false,
35
- "backfillLimit": false,
36
- "hideCredit": true
37
- },
38
- "bugs": {
39
- "url": "https://github.com/ljharb/has-symbols/issues"
40
- },
41
- "bundleDependencies": false,
42
- "contributors": [
43
- {
44
- "name": "Jordan Harband",
45
- "email": "ljharb@gmail.com",
46
- "url": "http://ljharb.codes"
47
- }
48
- ],
49
- "deprecated": false,
50
- "description": "Determine if the JS environment has Symbol support. Supports spec, or shams.",
51
- "devDependencies": {
52
- "@ljharb/eslint-config": "^20.2.3",
53
- "aud": "^2.0.0",
54
- "auto-changelog": "^2.4.0",
55
- "core-js": "^2.6.12",
56
- "eslint": "=8.8.0",
57
- "get-own-property-symbols": "^0.9.5",
58
- "nyc": "^10.3.2",
59
- "safe-publish-latest": "^2.0.0",
60
- "tape": "^5.5.2"
61
- },
62
- "engines": {
63
- "node": ">= 0.4"
64
- },
65
- "funding": {
66
- "url": "https://github.com/sponsors/ljharb"
67
- },
68
- "greenkeeper": {
69
- "ignore": [
70
- "core-js"
71
- ]
72
- },
73
- "homepage": "https://github.com/ljharb/has-symbols#readme",
74
- "keywords": [
75
- "Symbol",
76
- "symbols",
77
- "typeof",
78
- "sham",
79
- "polyfill",
80
- "native",
81
- "core-js",
82
- "ES6"
83
- ],
84
- "license": "MIT",
85
- "main": "index.js",
86
- "name": "has-symbols",
87
- "repository": {
88
- "type": "git",
89
- "url": "git://github.com/inspect-js/has-symbols.git"
90
- },
91
- "scripts": {
92
- "lint": "eslint --ext=js,mjs .",
93
- "posttest": "aud --production",
94
- "postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\"",
95
- "prepublish": "not-in-publish || npm run prepublishOnly",
96
- "prepublishOnly": "safe-publish-latest",
97
- "pretest": "npm run --silent lint",
98
- "test": "npm run tests-only",
99
- "test:shams": "npm run --silent test:shams:getownpropertysymbols && npm run --silent test:shams:corejs",
100
- "test:shams:corejs": "nyc node test/shams/core-js.js",
101
- "test:shams:getownpropertysymbols": "nyc node test/shams/get-own-property-symbols.js",
102
- "test:staging": "nyc node --harmony --es-staging test",
103
- "test:stock": "nyc node test",
104
- "tests-only": "npm run test:stock && npm run test:staging && npm run test:shams",
105
- "version": "auto-changelog && git add CHANGELOG.md"
106
- },
107
- "testling": {
108
- "files": "test/index.js",
109
- "browsers": [
110
- "iexplore/6.0..latest",
111
- "firefox/3.0..6.0",
112
- "firefox/15.0..latest",
113
- "firefox/nightly",
114
- "chrome/4.0..10.0",
115
- "chrome/20.0..latest",
116
- "chrome/canary",
117
- "opera/10.0..latest",
118
- "opera/next",
119
- "safari/4.0..latest",
120
- "ipad/6.0..latest",
121
- "iphone/6.0..latest",
122
- "android-browser/4.2"
123
- ]
124
- },
125
- "version": "1.0.3"
2
+ "name": "has-symbols",
3
+ "version": "1.0.3",
4
+ "description": "Determine if the JS environment has Symbol support. Supports spec, or shams.",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "prepublishOnly": "safe-publish-latest",
8
+ "prepublish": "not-in-publish || npm run prepublishOnly",
9
+ "pretest": "npm run --silent lint",
10
+ "test": "npm run tests-only",
11
+ "posttest": "aud --production",
12
+ "tests-only": "npm run test:stock && npm run test:staging && npm run test:shams",
13
+ "test:stock": "nyc node test",
14
+ "test:staging": "nyc node --harmony --es-staging test",
15
+ "test:shams": "npm run --silent test:shams:getownpropertysymbols && npm run --silent test:shams:corejs",
16
+ "test:shams:corejs": "nyc node test/shams/core-js.js",
17
+ "test:shams:getownpropertysymbols": "nyc node test/shams/get-own-property-symbols.js",
18
+ "lint": "eslint --ext=js,mjs .",
19
+ "version": "auto-changelog && git add CHANGELOG.md",
20
+ "postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\""
21
+ },
22
+ "repository": {
23
+ "type": "git",
24
+ "url": "git://github.com/inspect-js/has-symbols.git"
25
+ },
26
+ "keywords": [
27
+ "Symbol",
28
+ "symbols",
29
+ "typeof",
30
+ "sham",
31
+ "polyfill",
32
+ "native",
33
+ "core-js",
34
+ "ES6"
35
+ ],
36
+ "author": {
37
+ "name": "Jordan Harband",
38
+ "email": "ljharb@gmail.com",
39
+ "url": "http://ljharb.codes"
40
+ },
41
+ "contributors": [
42
+ {
43
+ "name": "Jordan Harband",
44
+ "email": "ljharb@gmail.com",
45
+ "url": "http://ljharb.codes"
46
+ }
47
+ ],
48
+ "funding": {
49
+ "url": "https://github.com/sponsors/ljharb"
50
+ },
51
+ "license": "MIT",
52
+ "bugs": {
53
+ "url": "https://github.com/ljharb/has-symbols/issues"
54
+ },
55
+ "homepage": "https://github.com/ljharb/has-symbols#readme",
56
+ "devDependencies": {
57
+ "@ljharb/eslint-config": "^20.2.3",
58
+ "aud": "^2.0.0",
59
+ "auto-changelog": "^2.4.0",
60
+ "core-js": "^2.6.12",
61
+ "eslint": "=8.8.0",
62
+ "get-own-property-symbols": "^0.9.5",
63
+ "nyc": "^10.3.2",
64
+ "safe-publish-latest": "^2.0.0",
65
+ "tape": "^5.5.2"
66
+ },
67
+ "testling": {
68
+ "files": "test/index.js",
69
+ "browsers": [
70
+ "iexplore/6.0..latest",
71
+ "firefox/3.0..6.0",
72
+ "firefox/15.0..latest",
73
+ "firefox/nightly",
74
+ "chrome/4.0..10.0",
75
+ "chrome/20.0..latest",
76
+ "chrome/canary",
77
+ "opera/10.0..latest",
78
+ "opera/next",
79
+ "safari/4.0..latest",
80
+ "ipad/6.0..latest",
81
+ "iphone/6.0..latest",
82
+ "android-browser/4.2"
83
+ ]
84
+ },
85
+ "engines": {
86
+ "node": ">= 0.4"
87
+ },
88
+ "auto-changelog": {
89
+ "output": "CHANGELOG.md",
90
+ "template": "keepachangelog",
91
+ "unreleased": false,
92
+ "commitLimit": false,
93
+ "backfillLimit": false,
94
+ "hideCredit": true
95
+ },
96
+ "greenkeeper": {
97
+ "ignore": [
98
+ "core-js"
99
+ ]
100
+ }
126
101
  }
@@ -1,59 +1,25 @@
1
1
  {
2
- "_args": [
3
- [
4
- "header-stack@0.0.2",
5
- "/Users/conway/Projects/worldmap"
6
- ]
7
- ],
8
- "_from": "header-stack@0.0.2",
9
- "_id": "header-stack@0.0.2",
10
- "_inBundle": false,
11
- "_integrity": "sha1-Rg1ysW04ZSzkUeIyU2lxsx6E1g8=",
12
- "_location": "/header-stack",
13
- "_phantomChildren": {},
14
- "_requested": {
15
- "type": "version",
16
- "registry": true,
17
- "raw": "header-stack@0.0.2",
18
- "name": "header-stack",
19
- "escapedName": "header-stack",
20
- "rawSpec": "0.0.2",
21
- "saveSpec": null,
22
- "fetchSpec": "0.0.2"
23
- },
24
- "_requiredBy": [
25
- "/cgi"
26
- ],
27
- "_resolved": "https://registry.npmjs.org/header-stack/-/header-stack-0.0.2.tgz",
28
- "_spec": "0.0.2",
29
- "_where": "/Users/conway/Projects/worldmap",
30
- "author": {
31
- "name": "Nathan Rajlich",
32
- "email": "nathan@tootallnate.net",
33
- "url": "http://tootallnate.net"
34
- },
35
- "bugs": {
36
- "url": "https://github.com/TooTallNate/node-header-stack/issues"
2
+ "name": "header-stack",
3
+ "description": "A `StreamStack` subclass that parses headers until an emtpy line is found.",
4
+ "version": "0.0.2",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "git://github.com/TooTallNate/node-header-stack.git"
37
8
  },
9
+ "author": "Nathan Rajlich <nathan@tootallnate.net> (http://tootallnate.net)",
10
+ "main": "./index.js",
38
11
  "dependencies": {
39
- "bufferjs": ">= 0.2.3",
12
+ "stream-stack": ">= 1.1.1",
40
13
  "bufferlist": ">= 0.0.6",
41
- "stream-stack": ">= 1.1.1"
14
+ "bufferjs": ">= 0.2.3"
42
15
  },
43
- "description": "A `StreamStack` subclass that parses headers until an emtpy line is found.",
44
16
  "directories": {
45
17
  "lib": "."
46
18
  },
47
19
  "engines": {
48
20
  "node": ">= 0.4.0"
49
21
  },
50
- "files": [],
51
- "homepage": "https://github.com/TooTallNate/node-header-stack#readme",
52
- "main": "./index.js",
53
- "name": "header-stack",
54
- "repository": {
55
- "type": "git",
56
- "url": "git://github.com/TooTallNate/node-header-stack.git"
57
- },
58
- "version": "0.0.2"
59
- }
22
+ "files": [
23
+ ""
24
+ ]
25
+ }
@@ -1,49 +1,14 @@
1
1
  {
2
- "_from": "http-errors@2.0.0",
3
- "_id": "http-errors@2.0.0",
4
- "_inBundle": false,
5
- "_integrity": "sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ==",
6
- "_location": "/http-errors",
7
- "_phantomChildren": {},
8
- "_requested": {
9
- "type": "version",
10
- "registry": true,
11
- "raw": "http-errors@2.0.0",
12
- "name": "http-errors",
13
- "escapedName": "http-errors",
14
- "rawSpec": "2.0.0",
15
- "saveSpec": null,
16
- "fetchSpec": "2.0.0"
17
- },
18
- "_requiredBy": [
19
- "/body-parser",
20
- "/express",
21
- "/raw-body",
22
- "/send"
23
- ],
24
- "_resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.0.tgz",
25
- "_shasum": "b7774a1486ef73cf7667ac9ae0858c012c57b9d3",
26
- "_spec": "http-errors@2.0.0",
27
- "_where": "/Users/conway/Projects/worldmap/node_modules/express",
28
- "author": {
29
- "name": "Jonathan Ong",
30
- "email": "me@jongleberry.com",
31
- "url": "http://jongleberry.com"
32
- },
33
- "bugs": {
34
- "url": "https://github.com/jshttp/http-errors/issues"
35
- },
36
- "bundleDependencies": false,
2
+ "name": "http-errors",
3
+ "description": "Create HTTP error objects",
4
+ "version": "2.0.0",
5
+ "author": "Jonathan Ong <me@jongleberry.com> (http://jongleberry.com)",
37
6
  "contributors": [
38
- {
39
- "name": "Alan Plum",
40
- "email": "me@pluma.io"
41
- },
42
- {
43
- "name": "Douglas Christopher Wilson",
44
- "email": "doug@somethingdoug.com"
45
- }
7
+ "Alan Plum <me@pluma.io>",
8
+ "Douglas Christopher Wilson <doug@somethingdoug.com>"
46
9
  ],
10
+ "license": "MIT",
11
+ "repository": "jshttp/http-errors",
47
12
  "dependencies": {
48
13
  "depd": "2.0.0",
49
14
  "inherits": "2.0.4",
@@ -51,8 +16,6 @@
51
16
  "statuses": "2.0.1",
52
17
  "toidentifier": "1.0.1"
53
18
  },
54
- "deprecated": false,
55
- "description": "Create HTTP error objects",
56
19
  "devDependencies": {
57
20
  "eslint": "7.32.0",
58
21
  "eslint-config-standard": "14.1.1",
@@ -67,23 +30,6 @@
67
30
  "engines": {
68
31
  "node": ">= 0.8"
69
32
  },
70
- "files": [
71
- "index.js",
72
- "HISTORY.md",
73
- "LICENSE",
74
- "README.md"
75
- ],
76
- "homepage": "https://github.com/jshttp/http-errors#readme",
77
- "keywords": [
78
- "http",
79
- "error"
80
- ],
81
- "license": "MIT",
82
- "name": "http-errors",
83
- "repository": {
84
- "type": "git",
85
- "url": "git+https://github.com/jshttp/http-errors.git"
86
- },
87
33
  "scripts": {
88
34
  "lint": "eslint . && node ./scripts/lint-readme-list.js",
89
35
  "test": "mocha --reporter spec --bail",
@@ -91,5 +37,14 @@
91
37
  "test-cov": "nyc --reporter=html --reporter=text npm test",
92
38
  "version": "node scripts/version-history.js && git add HISTORY.md"
93
39
  },
94
- "version": "2.0.0"
40
+ "keywords": [
41
+ "http",
42
+ "error"
43
+ ],
44
+ "files": [
45
+ "index.js",
46
+ "HISTORY.md",
47
+ "LICENSE",
48
+ "README.md"
49
+ ]
95
50
  }
@@ -0,0 +1,43 @@
1
+ ![Node](https://github.com/creationix/http-parser-js/workflows/Node/badge.svg)
2
+ ![Node-v12](https://github.com/creationix/http-parser-js/workflows/Node-v12/badge.svg)
3
+
4
+ # HTTP Parser
5
+
6
+ This library parses HTTP protocol for requests and responses.
7
+ It was created to replace `http_parser.c` since calling C++ functions from JS is really slow in V8.
8
+ 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.
9
+
10
+ This is packaged as a standalone npm module.
11
+ To use in node, monkeypatch HTTPParser.
12
+
13
+ ```js
14
+ // Monkey patch before you require http for the first time.
15
+ process.binding('http_parser').HTTPParser = require('http-parser-js').HTTPParser;
16
+
17
+ var http = require('http');
18
+ // ...
19
+ ```
20
+
21
+ ## Testing
22
+
23
+ Simply run `npm test`.
24
+ The tests are copied from node and mscedex/io.js, with some modifcations.
25
+
26
+ ## Status
27
+
28
+ 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.
29
+
30
+ ### Node versions
31
+
32
+ `http-parser-js` should work via monkey-patching on Node v6-v11, and v13-14.
33
+
34
+ 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.
35
+
36
+ ## Standalone usage
37
+
38
+ While this module is intended to be used as a replacement for the internal Node.js parser, it can be used as a standalone parser. The [`standalone-example.js`](standalone-example.js) demonstrates how to use the somewhat awkward API (coming from compatibility with the Node.js internals) to parse HTTP from raw Buffers.
39
+
40
+ ## License
41
+
42
+ MIT.
43
+ See [LICENSE.md](LICENSE.md)