step-node-agent 3.24.1 → 3.24.3

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 (94) hide show
  1. package/node_modules/call-bind/CHANGELOG.md +16 -0
  2. package/node_modules/call-bind/index.js +2 -11
  3. package/node_modules/call-bind/package.json +11 -6
  4. package/node_modules/define-data-property/CHANGELOG.md +29 -0
  5. package/node_modules/define-data-property/index.d.ts +12 -3
  6. package/node_modules/define-data-property/index.js +4 -16
  7. package/node_modules/define-data-property/package.json +26 -33
  8. package/node_modules/define-data-property/test/index.js +10 -10
  9. package/node_modules/es-define-property/.eslintrc +13 -0
  10. package/node_modules/es-define-property/.github/FUNDING.yml +12 -0
  11. package/node_modules/es-define-property/.nycrc +9 -0
  12. package/node_modules/es-define-property/CHANGELOG.md +15 -0
  13. package/node_modules/{express/node_modules/raw-body → es-define-property}/LICENSE +6 -7
  14. package/node_modules/es-define-property/README.md +49 -0
  15. package/node_modules/es-define-property/index.d.ts +3 -0
  16. package/node_modules/es-define-property/index.js +16 -0
  17. package/node_modules/es-define-property/package.json +81 -0
  18. package/node_modules/es-define-property/test/index.js +55 -0
  19. package/node_modules/es-define-property/tsconfig.json +50 -0
  20. package/node_modules/es-errors/.eslintrc +5 -0
  21. package/node_modules/es-errors/.github/FUNDING.yml +12 -0
  22. package/node_modules/es-errors/CHANGELOG.md +40 -0
  23. package/node_modules/es-errors/LICENSE +21 -0
  24. package/node_modules/es-errors/README.md +55 -0
  25. package/node_modules/es-errors/eval.d.ts +3 -0
  26. package/node_modules/es-errors/eval.js +4 -0
  27. package/node_modules/es-errors/index.d.ts +3 -0
  28. package/node_modules/es-errors/index.js +4 -0
  29. package/node_modules/es-errors/package.json +80 -0
  30. package/node_modules/es-errors/range.d.ts +3 -0
  31. package/node_modules/es-errors/range.js +4 -0
  32. package/node_modules/es-errors/ref.d.ts +3 -0
  33. package/node_modules/es-errors/ref.js +4 -0
  34. package/node_modules/es-errors/syntax.d.ts +3 -0
  35. package/node_modules/es-errors/syntax.js +4 -0
  36. package/node_modules/es-errors/test/index.js +19 -0
  37. package/node_modules/es-errors/tsconfig.json +49 -0
  38. package/node_modules/es-errors/type.d.ts +3 -0
  39. package/node_modules/es-errors/type.js +4 -0
  40. package/node_modules/es-errors/uri.d.ts +3 -0
  41. package/node_modules/es-errors/uri.js +4 -0
  42. package/node_modules/express/History.md +14 -5
  43. package/node_modules/express/Readme.md +1 -1
  44. package/node_modules/express/lib/router/index.js +1 -1
  45. package/node_modules/express/lib/router/route.js +7 -2
  46. package/node_modules/express/lib/utils.js +3 -4
  47. package/node_modules/express/package.json +5 -6
  48. package/node_modules/get-intrinsic/CHANGELOG.md +18 -0
  49. package/node_modules/get-intrinsic/index.js +15 -7
  50. package/node_modules/get-intrinsic/package.json +12 -12
  51. package/node_modules/has-property-descriptors/CHANGELOG.md +8 -0
  52. package/node_modules/has-property-descriptors/index.js +3 -14
  53. package/node_modules/has-property-descriptors/package.json +5 -5
  54. package/node_modules/has-proto/CHANGELOG.md +15 -0
  55. package/node_modules/has-proto/index.d.ts +3 -0
  56. package/node_modules/has-proto/index.js +5 -1
  57. package/node_modules/has-proto/package.json +9 -5
  58. package/node_modules/has-proto/tsconfig.json +49 -0
  59. package/node_modules/hasown/CHANGELOG.md +8 -0
  60. package/node_modules/hasown/index.d.ts +3 -3
  61. package/node_modules/hasown/index.js +1 -1
  62. package/node_modules/hasown/package.json +13 -15
  63. package/node_modules/set-function-length/CHANGELOG.md +8 -0
  64. package/node_modules/set-function-length/index.js +1 -1
  65. package/node_modules/set-function-length/package.json +7 -6
  66. package/node_modules/side-channel/.editorconfig +9 -0
  67. package/node_modules/side-channel/.eslintrc +1 -1
  68. package/node_modules/side-channel/CHANGELOG.md +30 -0
  69. package/node_modules/side-channel/index.d.ts +27 -0
  70. package/node_modules/side-channel/index.js +25 -20
  71. package/node_modules/side-channel/package.json +36 -19
  72. package/node_modules/side-channel/test/index.js +6 -1
  73. package/node_modules/side-channel/tsconfig.json +50 -0
  74. package/package.json +1 -1
  75. package/node_modules/define-data-property/index.d.ts.map +0 -1
  76. package/node_modules/express/node_modules/body-parser/HISTORY.md +0 -657
  77. package/node_modules/express/node_modules/body-parser/LICENSE +0 -23
  78. package/node_modules/express/node_modules/body-parser/README.md +0 -464
  79. package/node_modules/express/node_modules/body-parser/SECURITY.md +0 -25
  80. package/node_modules/express/node_modules/body-parser/index.js +0 -156
  81. package/node_modules/express/node_modules/body-parser/lib/read.js +0 -205
  82. package/node_modules/express/node_modules/body-parser/lib/types/json.js +0 -236
  83. package/node_modules/express/node_modules/body-parser/lib/types/raw.js +0 -101
  84. package/node_modules/express/node_modules/body-parser/lib/types/text.js +0 -121
  85. package/node_modules/express/node_modules/body-parser/lib/types/urlencoded.js +0 -284
  86. package/node_modules/express/node_modules/body-parser/package.json +0 -56
  87. package/node_modules/express/node_modules/raw-body/HISTORY.md +0 -303
  88. package/node_modules/express/node_modules/raw-body/README.md +0 -223
  89. package/node_modules/express/node_modules/raw-body/SECURITY.md +0 -24
  90. package/node_modules/express/node_modules/raw-body/index.d.ts +0 -87
  91. package/node_modules/express/node_modules/raw-body/index.js +0 -329
  92. package/node_modules/express/node_modules/raw-body/package.json +0 -49
  93. package/node_modules/hasown/index.d.ts.map +0 -1
  94. package/node_modules/side-channel/.eslintignore +0 -1
@@ -0,0 +1,50 @@
1
+ {
2
+ "compilerOptions": {
3
+ /* Visit https://aka.ms/tsconfig.json to read more about this file */
4
+
5
+ /* Projects */
6
+
7
+ /* Language and Environment */
8
+ "target": "es2022", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
9
+ // "lib": [], /* Specify a set of bundled library declaration files that describe the target runtime environment. */
10
+ // "noLib": true, /* Disable including any library files, including the default lib.d.ts. */
11
+ "useDefineForClassFields": true, /* Emit ECMAScript-standard-compliant class fields. */
12
+ // "moduleDetection": "auto", /* Control what method is used to detect module-format JS files. */
13
+
14
+ /* Modules */
15
+ "module": "commonjs", /* Specify what module code is generated. */
16
+ // "rootDir": "./", /* Specify the root folder within your source files. */
17
+ // "moduleResolution": "node", /* Specify how TypeScript looks up a file from a given module specifier. */
18
+ // "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */
19
+ // "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */
20
+ // "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */
21
+ // "typeRoots": ["types"], /* Specify multiple folders that act like `./node_modules/@types`. */
22
+ "resolveJsonModule": true, /* Enable importing .json files. */
23
+ // "allowArbitraryExtensions": true, /* Enable importing files with any extension, provided a declaration file is present. */
24
+
25
+ /* JavaScript Support */
26
+ "allowJs": true, /* Allow JavaScript files to be a part of your program. Use the `checkJS` option to get errors from these files. */
27
+ "checkJs": true, /* Enable error reporting in type-checked JavaScript files. */
28
+ "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from `node_modules`. Only applicable with `allowJs`. */
29
+
30
+ /* Emit */
31
+ "declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */
32
+ "declarationMap": true, /* Create sourcemaps for d.ts files. */
33
+ "noEmit": true, /* Disable emitting files from a compilation. */
34
+
35
+ /* Interop Constraints */
36
+ "allowSyntheticDefaultImports": true, /* Allow `import x from y` when a module doesn't have a default export. */
37
+ "esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables `allowSyntheticDefaultImports` for type compatibility. */
38
+ "forceConsistentCasingInFileNames": true, /* Ensure that casing is correct in imports. */
39
+
40
+ /* Type Checking */
41
+ "strict": true, /* Enable all strict type-checking options. */
42
+
43
+ /* Completeness */
44
+ // "skipLibCheck": true /* Skip type checking all .d.ts files. */
45
+ },
46
+ "exclude": [
47
+ "coverage",
48
+ "test/list-exports"
49
+ ],
50
+ }
@@ -0,0 +1,5 @@
1
+ {
2
+ "root": true,
3
+
4
+ "extends": "@ljharb",
5
+ }
@@ -0,0 +1,12 @@
1
+ # These are supported funding model platforms
2
+
3
+ github: [ljharb]
4
+ patreon: # Replace with a single Patreon username
5
+ open_collective: # Replace with a single Open Collective username
6
+ ko_fi: # Replace with a single Ko-fi username
7
+ tidelift: npm/es-errors
8
+ community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9
+ liberapay: # Replace with a single Liberapay username
10
+ issuehunt: # Replace with a single IssueHunt username
11
+ otechie: # Replace with a single Otechie username
12
+ custom: # Replace with a single custom sponsorship URL
@@ -0,0 +1,40 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
6
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
+
8
+ ## [v1.3.0](https://github.com/ljharb/es-errors/compare/v1.2.1...v1.3.0) - 2024-02-05
9
+
10
+ ### Commits
11
+
12
+ - [New] add `EvalError` and `URIError` [`1927627`](https://github.com/ljharb/es-errors/commit/1927627ba68cb6c829d307231376c967db53acdf)
13
+
14
+ ## [v1.2.1](https://github.com/ljharb/es-errors/compare/v1.2.0...v1.2.1) - 2024-02-04
15
+
16
+ ### Commits
17
+
18
+ - [Fix] add missing `exports` entry [`5bb5f28`](https://github.com/ljharb/es-errors/commit/5bb5f280f98922701109d6ebb82eea2257cecc7e)
19
+
20
+ ## [v1.2.0](https://github.com/ljharb/es-errors/compare/v1.1.0...v1.2.0) - 2024-02-04
21
+
22
+ ### Commits
23
+
24
+ - [New] add `ReferenceError` [`6d8cf5b`](https://github.com/ljharb/es-errors/commit/6d8cf5bbb6f3f598d02cf6f30e468ba2caa8e143)
25
+
26
+ ## [v1.1.0](https://github.com/ljharb/es-errors/compare/v1.0.0...v1.1.0) - 2024-02-04
27
+
28
+ ### Commits
29
+
30
+ - [New] add base Error [`2983ab6`](https://github.com/ljharb/es-errors/commit/2983ab65f7bc5441276cb021dc3aa03c78881698)
31
+
32
+ ## v1.0.0 - 2024-02-03
33
+
34
+ ### Commits
35
+
36
+ - Initial implementation, tests, readme, type [`8f47631`](https://github.com/ljharb/es-errors/commit/8f476317e9ad76f40ad648081829b1a1a3a1288b)
37
+ - Initial commit [`ea5d099`](https://github.com/ljharb/es-errors/commit/ea5d099ef18e550509ab9e2be000526afd81c385)
38
+ - npm init [`6f5ebf9`](https://github.com/ljharb/es-errors/commit/6f5ebf9cead474dadd72b9e63dad315820a089ae)
39
+ - Only apps should have lockfiles [`e1a0aeb`](https://github.com/ljharb/es-errors/commit/e1a0aeb7b80f5cfc56be54d6b2100e915d47def8)
40
+ - [meta] add `sideEffects` flag [`a9c7d46`](https://github.com/ljharb/es-errors/commit/a9c7d460a492f1d8a241c836bc25a322a19cc043)
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024 Jordan Harband
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 all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,55 @@
1
+ # es-errors <sup>[![Version Badge][npm-version-svg]][package-url]</sup>
2
+
3
+ [![github actions][actions-image]][actions-url]
4
+ [![coverage][codecov-image]][codecov-url]
5
+ [![License][license-image]][license-url]
6
+ [![Downloads][downloads-image]][downloads-url]
7
+
8
+ [![npm badge][npm-badge-png]][package-url]
9
+
10
+ A simple cache for a few of the JS Error constructors.
11
+
12
+ ## Example
13
+
14
+ ```js
15
+ const assert = require('assert');
16
+
17
+ const Base = require('es-errors');
18
+ const Eval = require('es-errors/eval');
19
+ const Range = require('es-errors/range');
20
+ const Ref = require('es-errors/ref');
21
+ const Syntax = require('es-errors/syntax');
22
+ const Type = require('es-errors/type');
23
+ const URI = require('es-errors/uri');
24
+
25
+ assert.equal(Base, Error);
26
+ assert.equal(Eval, EvalError);
27
+ assert.equal(Range, RangeError);
28
+ assert.equal(Ref, ReferenceError);
29
+ assert.equal(Syntax, SyntaxError);
30
+ assert.equal(Type, TypeError);
31
+ assert.equal(URI, URIError);
32
+ ```
33
+
34
+ ## Tests
35
+ Simply clone the repo, `npm install`, and run `npm test`
36
+
37
+ ## Security
38
+
39
+ Please email [@ljharb](https://github.com/ljharb) or see https://tidelift.com/security if you have a potential security vulnerability to report.
40
+
41
+ [package-url]: https://npmjs.org/package/es-errors
42
+ [npm-version-svg]: https://versionbadg.es/ljharb/es-errors.svg
43
+ [deps-svg]: https://david-dm.org/ljharb/es-errors.svg
44
+ [deps-url]: https://david-dm.org/ljharb/es-errors
45
+ [dev-deps-svg]: https://david-dm.org/ljharb/es-errors/dev-status.svg
46
+ [dev-deps-url]: https://david-dm.org/ljharb/es-errors#info=devDependencies
47
+ [npm-badge-png]: https://nodei.co/npm/es-errors.png?downloads=true&stars=true
48
+ [license-image]: https://img.shields.io/npm/l/es-errors.svg
49
+ [license-url]: LICENSE
50
+ [downloads-image]: https://img.shields.io/npm/dm/es-errors.svg
51
+ [downloads-url]: https://npm-stat.com/charts.html?package=es-errors
52
+ [codecov-image]: https://codecov.io/gh/ljharb/es-errors/branch/main/graphs/badge.svg
53
+ [codecov-url]: https://app.codecov.io/gh/ljharb/es-errors/
54
+ [actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/ljharb/es-errors
55
+ [actions-url]: https://github.com/ljharb/es-errors/actions
@@ -0,0 +1,3 @@
1
+ declare const EvalError: EvalErrorConstructor;
2
+
3
+ export = EvalError;
@@ -0,0 +1,4 @@
1
+ 'use strict';
2
+
3
+ /** @type {import('./eval')} */
4
+ module.exports = EvalError;
@@ -0,0 +1,3 @@
1
+ declare const Error: ErrorConstructor;
2
+
3
+ export = Error;
@@ -0,0 +1,4 @@
1
+ 'use strict';
2
+
3
+ /** @type {import('.')} */
4
+ module.exports = Error;
@@ -0,0 +1,80 @@
1
+ {
2
+ "name": "es-errors",
3
+ "version": "1.3.0",
4
+ "description": "A simple cache for a few of the JS Error constructors.",
5
+ "main": "index.js",
6
+ "exports": {
7
+ ".": "./index.js",
8
+ "./eval": "./eval.js",
9
+ "./range": "./range.js",
10
+ "./ref": "./ref.js",
11
+ "./syntax": "./syntax.js",
12
+ "./type": "./type.js",
13
+ "./uri": "./uri.js",
14
+ "./package.json": "./package.json"
15
+ },
16
+ "sideEffects": false,
17
+ "scripts": {
18
+ "prepack": "npmignore --auto --commentLines=autogenerated",
19
+ "prepublishOnly": "safe-publish-latest",
20
+ "prepublish": "not-in-publish || npm run prepublishOnly",
21
+ "pretest": "npm run lint",
22
+ "test": "npm run tests-only",
23
+ "tests-only": "nyc tape 'test/**/*.js'",
24
+ "posttest": "aud --production",
25
+ "prelint": "evalmd README.md",
26
+ "lint": "eslint --ext=js,mjs .",
27
+ "postlint": "tsc -p . && eclint check $(git ls-files | xargs find 2> /dev/null | grep -vE 'node_modules|\\.git' | grep -v dist/)",
28
+ "version": "auto-changelog && git add CHANGELOG.md",
29
+ "postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\""
30
+ },
31
+ "repository": {
32
+ "type": "git",
33
+ "url": "git+https://github.com/ljharb/es-errors.git"
34
+ },
35
+ "keywords": [
36
+ "javascript",
37
+ "ecmascript",
38
+ "error",
39
+ "typeerror",
40
+ "syntaxerror",
41
+ "rangeerror"
42
+ ],
43
+ "author": "Jordan Harband <ljharb@gmail.com>",
44
+ "license": "MIT",
45
+ "bugs": {
46
+ "url": "https://github.com/ljharb/es-errors/issues"
47
+ },
48
+ "homepage": "https://github.com/ljharb/es-errors#readme",
49
+ "devDependencies": {
50
+ "@ljharb/eslint-config": "^21.1.0",
51
+ "@types/tape": "^5.6.4",
52
+ "aud": "^2.0.4",
53
+ "auto-changelog": "^2.4.0",
54
+ "eclint": "^2.8.1",
55
+ "eslint": "^8.8.0",
56
+ "evalmd": "^0.0.19",
57
+ "in-publish": "^2.0.1",
58
+ "npmignore": "^0.3.1",
59
+ "nyc": "^10.3.2",
60
+ "safe-publish-latest": "^2.0.0",
61
+ "tape": "^5.7.4",
62
+ "typescript": "next"
63
+ },
64
+ "auto-changelog": {
65
+ "output": "CHANGELOG.md",
66
+ "template": "keepachangelog",
67
+ "unreleased": false,
68
+ "commitLimit": false,
69
+ "backfillLimit": false,
70
+ "hideCredit": true
71
+ },
72
+ "publishConfig": {
73
+ "ignore": [
74
+ ".github/workflows"
75
+ ]
76
+ },
77
+ "engines": {
78
+ "node": ">= 0.4"
79
+ }
80
+ }
@@ -0,0 +1,3 @@
1
+ declare const RangeError: RangeErrorConstructor;
2
+
3
+ export = RangeError;
@@ -0,0 +1,4 @@
1
+ 'use strict';
2
+
3
+ /** @type {import('./range')} */
4
+ module.exports = RangeError;
@@ -0,0 +1,3 @@
1
+ declare const ReferenceError: ReferenceErrorConstructor;
2
+
3
+ export = ReferenceError;
@@ -0,0 +1,4 @@
1
+ 'use strict';
2
+
3
+ /** @type {import('./ref')} */
4
+ module.exports = ReferenceError;
@@ -0,0 +1,3 @@
1
+ declare const SyntaxError: SyntaxErrorConstructor;
2
+
3
+ export = SyntaxError;
@@ -0,0 +1,4 @@
1
+ 'use strict';
2
+
3
+ /** @type {import('./syntax')} */
4
+ module.exports = SyntaxError;
@@ -0,0 +1,19 @@
1
+ 'use strict';
2
+
3
+ var test = require('tape');
4
+
5
+ var E = require('../');
6
+ var R = require('../range');
7
+ var Ref = require('../ref');
8
+ var S = require('../syntax');
9
+ var T = require('../type');
10
+
11
+ test('errors', function (t) {
12
+ t.equal(E, Error);
13
+ t.equal(R, RangeError);
14
+ t.equal(Ref, ReferenceError);
15
+ t.equal(S, SyntaxError);
16
+ t.equal(T, TypeError);
17
+
18
+ t.end();
19
+ });
@@ -0,0 +1,49 @@
1
+ {
2
+ "compilerOptions": {
3
+ /* Visit https://aka.ms/tsconfig.json to read more about this file */
4
+
5
+ /* Projects */
6
+
7
+ /* Language and Environment */
8
+ "target": "es5", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
9
+ // "lib": [], /* Specify a set of bundled library declaration files that describe the target runtime environment. */
10
+ // "noLib": true, /* Disable including any library files, including the default lib.d.ts. */
11
+ "useDefineForClassFields": true, /* Emit ECMAScript-standard-compliant class fields. */
12
+ // "moduleDetection": "auto", /* Control what method is used to detect module-format JS files. */
13
+
14
+ /* Modules */
15
+ "module": "commonjs", /* Specify what module code is generated. */
16
+ // "rootDir": "./", /* Specify the root folder within your source files. */
17
+ // "moduleResolution": "node", /* Specify how TypeScript looks up a file from a given module specifier. */
18
+ // "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */
19
+ // "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */
20
+ // "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */
21
+ // "typeRoots": ["types"], /* Specify multiple folders that act like `./node_modules/@types`. */
22
+ "resolveJsonModule": true, /* Enable importing .json files. */
23
+ // "allowArbitraryExtensions": true, /* Enable importing files with any extension, provided a declaration file is present. */
24
+
25
+ /* JavaScript Support */
26
+ "allowJs": true, /* Allow JavaScript files to be a part of your program. Use the `checkJS` option to get errors from these files. */
27
+ "checkJs": true, /* Enable error reporting in type-checked JavaScript files. */
28
+ "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from `node_modules`. Only applicable with `allowJs`. */
29
+
30
+ /* Emit */
31
+ "declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */
32
+ "declarationMap": true, /* Create sourcemaps for d.ts files. */
33
+ "noEmit": true, /* Disable emitting files from a compilation. */
34
+
35
+ /* Interop Constraints */
36
+ "allowSyntheticDefaultImports": true, /* Allow `import x from y` when a module doesn't have a default export. */
37
+ "esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables `allowSyntheticDefaultImports` for type compatibility. */
38
+ "forceConsistentCasingInFileNames": true, /* Ensure that casing is correct in imports. */
39
+
40
+ /* Type Checking */
41
+ "strict": true, /* Enable all strict type-checking options. */
42
+
43
+ /* Completeness */
44
+ // "skipLibCheck": true /* Skip type checking all .d.ts files. */
45
+ },
46
+ "exclude": [
47
+ "coverage",
48
+ ],
49
+ }
@@ -0,0 +1,3 @@
1
+ declare const TypeError: TypeErrorConstructor
2
+
3
+ export = TypeError;
@@ -0,0 +1,4 @@
1
+ 'use strict';
2
+
3
+ /** @type {import('./type')} */
4
+ module.exports = TypeError;
@@ -0,0 +1,3 @@
1
+ declare const URIError: URIErrorConstructor;
2
+
3
+ export = URIError;
@@ -0,0 +1,4 @@
1
+ 'use strict';
2
+
3
+ /** @type {import('./uri')} */
4
+ module.exports = URIError;
@@ -1,3 +1,12 @@
1
+ 4.18.3 / 2024-02-26
2
+ ==========
3
+
4
+ * Fix routing requests without method
5
+ * deps: body-parser@1.20.2
6
+ - Fix strict json error message on Node.js 19+
7
+ - deps: content-type@~1.0.5
8
+ - deps: raw-body@2.5.2
9
+
1
10
  4.18.2 / 2022-10-08
2
11
  ===================
3
12
 
@@ -2111,7 +2120,7 @@
2111
2120
  * deps: connect@2.21.0
2112
2121
  - deprecate `connect(middleware)` -- use `app.use(middleware)` instead
2113
2122
  - deprecate `connect.createServer()` -- use `connect()` instead
2114
- - fix `res.setHeader()` patch to work with with get -> append -> set pattern
2123
+ - fix `res.setHeader()` patch to work with get -> append -> set pattern
2115
2124
  - deps: compression@~1.0.8
2116
2125
  - deps: errorhandler@~1.1.1
2117
2126
  - deps: express-session@~1.5.0
@@ -3322,8 +3331,8 @@ Shaw]
3322
3331
  * Added node v0.1.97 compatibility
3323
3332
  * Added support for deleting cookies via Request#cookie('key', null)
3324
3333
  * Updated haml submodule
3325
- * Fixed not-found page, now using using charset utf-8
3326
- * Fixed show-exceptions page, now using using charset utf-8
3334
+ * Fixed not-found page, now using charset utf-8
3335
+ * Fixed show-exceptions page, now using charset utf-8
3327
3336
  * Fixed view support due to fs.readFile Buffers
3328
3337
  * Changed; mime.type() no longer accepts ".type" due to node extname() changes
3329
3338
 
@@ -3358,7 +3367,7 @@ Shaw]
3358
3367
  ==================
3359
3368
 
3360
3369
  * Added charset support via Request#charset (automatically assigned to 'UTF-8' when respond()'s
3361
- encoding is set to 'utf8' or 'utf-8'.
3370
+ encoding is set to 'utf8' or 'utf-8').
3362
3371
  * Added "encoding" option to Request#render(). Closes #299
3363
3372
  * Added "dump exceptions" setting, which is enabled by default.
3364
3373
  * Added simple ejs template engine support
@@ -3397,7 +3406,7 @@ Shaw]
3397
3406
  * Added [haml.js](http://github.com/visionmedia/haml.js) submodule; removed haml-js
3398
3407
  * Added callback function support to Request#halt() as 3rd/4th arg
3399
3408
  * Added preprocessing of route param wildcards using param(). Closes #251
3400
- * Added view partial support (with collections etc)
3409
+ * Added view partial support (with collections etc.)
3401
3410
  * Fixed bug preventing falsey params (such as ?page=0). Closes #286
3402
3411
  * Fixed setting of multiple cookies. Closes #199
3403
3412
  * Changed; view naming convention is now NAME.TYPE.ENGINE (for example page.html.haml)
@@ -104,7 +104,7 @@ $ npm start
104
104
  To view the examples, clone the Express repo and install the dependencies:
105
105
 
106
106
  ```console
107
- $ git clone git://github.com/expressjs/express.git --depth 1
107
+ $ git clone https://github.com/expressjs/express.git --depth 1
108
108
  $ cd express
109
109
  $ npm install
110
110
  ```
@@ -36,7 +36,7 @@ var toString = Object.prototype.toString;
36
36
  * Initialize a new `Router` with the given `options`.
37
37
  *
38
38
  * @param {Object} [options]
39
- * @return {Router} which is an callable function
39
+ * @return {Router} which is a callable function
40
40
  * @public
41
41
  */
42
42
 
@@ -60,7 +60,10 @@ Route.prototype._handles_method = function _handles_method(method) {
60
60
  return true;
61
61
  }
62
62
 
63
- var name = method.toLowerCase();
63
+ // normalize name
64
+ var name = typeof method === 'string'
65
+ ? method.toLowerCase()
66
+ : method
64
67
 
65
68
  if (name === 'head' && !this.methods['head']) {
66
69
  name = 'get';
@@ -103,8 +106,10 @@ Route.prototype.dispatch = function dispatch(req, res, done) {
103
106
  if (stack.length === 0) {
104
107
  return done();
105
108
  }
109
+ var method = typeof req.method === 'string'
110
+ ? req.method.toLowerCase()
111
+ : req.method
106
112
 
107
- var method = req.method.toLowerCase();
108
113
  if (method === 'head' && !this.methods['head']) {
109
114
  method = 'get';
110
115
  }
@@ -117,17 +117,15 @@ exports.contentDisposition = deprecate.function(contentDisposition,
117
117
  /**
118
118
  * Parse accept params `str` returning an
119
119
  * object with `.value`, `.quality` and `.params`.
120
- * also includes `.originalIndex` for stable sorting
121
120
  *
122
121
  * @param {String} str
123
- * @param {Number} index
124
122
  * @return {Object}
125
123
  * @api private
126
124
  */
127
125
 
128
- function acceptParams(str, index) {
126
+ function acceptParams (str) {
129
127
  var parts = str.split(/ *; */);
130
- var ret = { value: parts[0], quality: 1, params: {}, originalIndex: index };
128
+ var ret = { value: parts[0], quality: 1, params: {} }
131
129
 
132
130
  for (var i = 1; i < parts.length; ++i) {
133
131
  var pms = parts[i].split(/ *= */);
@@ -282,6 +280,7 @@ function createETagGenerator (options) {
282
280
  /**
283
281
  * Parse an extended query string with qs.
284
282
  *
283
+ * @param {String} str
285
284
  * @return {Object}
286
285
  * @private
287
286
  */
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "express",
3
3
  "description": "Fast, unopinionated, minimalist web framework",
4
- "version": "4.18.2",
4
+ "version": "4.18.3",
5
5
  "author": "TJ Holowaychuk <tj@vision-media.ca>",
6
6
  "contributors": [
7
7
  "Aaron Heckmann <aaron.heckmann+github@gmail.com>",
@@ -30,7 +30,7 @@
30
30
  "dependencies": {
31
31
  "accepts": "~1.3.8",
32
32
  "array-flatten": "1.1.1",
33
- "body-parser": "1.20.1",
33
+ "body-parser": "1.20.2",
34
34
  "content-disposition": "0.5.4",
35
35
  "content-type": "~1.0.4",
36
36
  "cookie": "0.5.0",
@@ -65,15 +65,14 @@
65
65
  "connect-redis": "3.4.2",
66
66
  "cookie-parser": "1.4.6",
67
67
  "cookie-session": "2.0.0",
68
- "ejs": "3.1.8",
69
- "eslint": "8.24.0",
68
+ "ejs": "3.1.9",
69
+ "eslint": "8.47.0",
70
70
  "express-session": "1.17.2",
71
71
  "hbs": "4.2.0",
72
72
  "marked": "0.7.0",
73
73
  "method-override": "3.0.0",
74
- "mocha": "10.0.0",
74
+ "mocha": "10.2.0",
75
75
  "morgan": "1.10.0",
76
- "multiparty": "4.2.3",
77
76
  "nyc": "15.1.0",
78
77
  "pbkdf2-password": "1.2.1",
79
78
  "supertest": "6.3.0",
@@ -5,6 +5,24 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [v1.2.4](https://github.com/ljharb/get-intrinsic/compare/v1.2.3...v1.2.4) - 2024-02-05
9
+
10
+ ### Commits
11
+
12
+ - [Refactor] use all 7 &lt;+ ES6 Errors from `es-errors` [`bcac811`](https://github.com/ljharb/get-intrinsic/commit/bcac811abdc1c982e12abf848a410d6aae148d14)
13
+
14
+ ## [v1.2.3](https://github.com/ljharb/get-intrinsic/compare/v1.2.2...v1.2.3) - 2024-02-03
15
+
16
+ ### Commits
17
+
18
+ - [Refactor] use `es-errors`, so things that only need those do not need `get-intrinsic` [`f11db9c`](https://github.com/ljharb/get-intrinsic/commit/f11db9c4fb97d87bbd53d3c73ac6b3db3613ad3b)
19
+ - [Dev Deps] update `aud`, `es-abstract`, `mock-property`, `npmignore` [`b7ac7d1`](https://github.com/ljharb/get-intrinsic/commit/b7ac7d1616fefb03877b1aed0c8f8d61aad32b6c)
20
+ - [meta] simplify `exports` [`faa0cc6`](https://github.com/ljharb/get-intrinsic/commit/faa0cc618e2830ffb51a8202490b0c215d965cbc)
21
+ - [meta] add missing `engines.node` [`774dd0b`](https://github.com/ljharb/get-intrinsic/commit/774dd0b3e8f741c3f05a6322d124d6087f146af1)
22
+ - [Dev Deps] update `tape` [`5828e8e`](https://github.com/ljharb/get-intrinsic/commit/5828e8e4a04e69312e87a36c0ea39428a7a4c3d8)
23
+ - [Robustness] use null objects for lookups [`eb9a11f`](https://github.com/ljharb/get-intrinsic/commit/eb9a11fa9eb3e13b193fcc05a7fb814341b1a7b7)
24
+ - [meta] add `sideEffects` flag [`89bcc7a`](https://github.com/ljharb/get-intrinsic/commit/89bcc7a42e19bf07b7c21e3094d5ab177109e6d2)
25
+
8
26
  ## [v1.2.2](https://github.com/ljharb/get-intrinsic/compare/v1.2.1...v1.2.2) - 2023-10-20
9
27
 
10
28
  ### Commits