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.
- package/node_modules/call-bind/CHANGELOG.md +16 -0
- package/node_modules/call-bind/index.js +2 -11
- package/node_modules/call-bind/package.json +11 -6
- package/node_modules/define-data-property/CHANGELOG.md +29 -0
- package/node_modules/define-data-property/index.d.ts +12 -3
- package/node_modules/define-data-property/index.js +4 -16
- package/node_modules/define-data-property/package.json +26 -33
- package/node_modules/define-data-property/test/index.js +10 -10
- package/node_modules/es-define-property/.eslintrc +13 -0
- package/node_modules/es-define-property/.github/FUNDING.yml +12 -0
- package/node_modules/es-define-property/.nycrc +9 -0
- package/node_modules/es-define-property/CHANGELOG.md +15 -0
- package/node_modules/{express/node_modules/raw-body → es-define-property}/LICENSE +6 -7
- package/node_modules/es-define-property/README.md +49 -0
- package/node_modules/es-define-property/index.d.ts +3 -0
- package/node_modules/es-define-property/index.js +16 -0
- package/node_modules/es-define-property/package.json +81 -0
- package/node_modules/es-define-property/test/index.js +55 -0
- package/node_modules/es-define-property/tsconfig.json +50 -0
- package/node_modules/es-errors/.eslintrc +5 -0
- package/node_modules/es-errors/.github/FUNDING.yml +12 -0
- package/node_modules/es-errors/CHANGELOG.md +40 -0
- package/node_modules/es-errors/LICENSE +21 -0
- package/node_modules/es-errors/README.md +55 -0
- package/node_modules/es-errors/eval.d.ts +3 -0
- package/node_modules/es-errors/eval.js +4 -0
- package/node_modules/es-errors/index.d.ts +3 -0
- package/node_modules/es-errors/index.js +4 -0
- package/node_modules/es-errors/package.json +80 -0
- package/node_modules/es-errors/range.d.ts +3 -0
- package/node_modules/es-errors/range.js +4 -0
- package/node_modules/es-errors/ref.d.ts +3 -0
- package/node_modules/es-errors/ref.js +4 -0
- package/node_modules/es-errors/syntax.d.ts +3 -0
- package/node_modules/es-errors/syntax.js +4 -0
- package/node_modules/es-errors/test/index.js +19 -0
- package/node_modules/es-errors/tsconfig.json +49 -0
- package/node_modules/es-errors/type.d.ts +3 -0
- package/node_modules/es-errors/type.js +4 -0
- package/node_modules/es-errors/uri.d.ts +3 -0
- package/node_modules/es-errors/uri.js +4 -0
- package/node_modules/express/History.md +14 -5
- package/node_modules/express/Readme.md +1 -1
- package/node_modules/express/lib/router/index.js +1 -1
- package/node_modules/express/lib/router/route.js +7 -2
- package/node_modules/express/lib/utils.js +3 -4
- package/node_modules/express/package.json +5 -6
- package/node_modules/get-intrinsic/CHANGELOG.md +18 -0
- package/node_modules/get-intrinsic/index.js +15 -7
- package/node_modules/get-intrinsic/package.json +12 -12
- package/node_modules/has-property-descriptors/CHANGELOG.md +8 -0
- package/node_modules/has-property-descriptors/index.js +3 -14
- package/node_modules/has-property-descriptors/package.json +5 -5
- package/node_modules/has-proto/CHANGELOG.md +15 -0
- package/node_modules/has-proto/index.d.ts +3 -0
- package/node_modules/has-proto/index.js +5 -1
- package/node_modules/has-proto/package.json +9 -5
- package/node_modules/has-proto/tsconfig.json +49 -0
- package/node_modules/hasown/CHANGELOG.md +8 -0
- package/node_modules/hasown/index.d.ts +3 -3
- package/node_modules/hasown/index.js +1 -1
- package/node_modules/hasown/package.json +13 -15
- package/node_modules/set-function-length/CHANGELOG.md +8 -0
- package/node_modules/set-function-length/index.js +1 -1
- package/node_modules/set-function-length/package.json +7 -6
- package/node_modules/side-channel/.editorconfig +9 -0
- package/node_modules/side-channel/.eslintrc +1 -1
- package/node_modules/side-channel/CHANGELOG.md +30 -0
- package/node_modules/side-channel/index.d.ts +27 -0
- package/node_modules/side-channel/index.js +25 -20
- package/node_modules/side-channel/package.json +36 -19
- package/node_modules/side-channel/test/index.js +6 -1
- package/node_modules/side-channel/tsconfig.json +50 -0
- package/package.json +1 -1
- package/node_modules/define-data-property/index.d.ts.map +0 -1
- package/node_modules/express/node_modules/body-parser/HISTORY.md +0 -657
- package/node_modules/express/node_modules/body-parser/LICENSE +0 -23
- package/node_modules/express/node_modules/body-parser/README.md +0 -464
- package/node_modules/express/node_modules/body-parser/SECURITY.md +0 -25
- package/node_modules/express/node_modules/body-parser/index.js +0 -156
- package/node_modules/express/node_modules/body-parser/lib/read.js +0 -205
- package/node_modules/express/node_modules/body-parser/lib/types/json.js +0 -236
- package/node_modules/express/node_modules/body-parser/lib/types/raw.js +0 -101
- package/node_modules/express/node_modules/body-parser/lib/types/text.js +0 -121
- package/node_modules/express/node_modules/body-parser/lib/types/urlencoded.js +0 -284
- package/node_modules/express/node_modules/body-parser/package.json +0 -56
- package/node_modules/express/node_modules/raw-body/HISTORY.md +0 -303
- package/node_modules/express/node_modules/raw-body/README.md +0 -223
- package/node_modules/express/node_modules/raw-body/SECURITY.md +0 -24
- package/node_modules/express/node_modules/raw-body/index.d.ts +0 -87
- package/node_modules/express/node_modules/raw-body/index.js +0 -329
- package/node_modules/express/node_modules/raw-body/package.json +0 -49
- package/node_modules/hasown/index.d.ts.map +0 -1
- package/node_modules/side-channel/.eslintignore +0 -1
|
@@ -4,7 +4,7 @@ var GetIntrinsic = require('get-intrinsic');
|
|
|
4
4
|
var callBound = require('call-bind/callBound');
|
|
5
5
|
var inspect = require('object-inspect');
|
|
6
6
|
|
|
7
|
-
var $TypeError =
|
|
7
|
+
var $TypeError = require('es-errors/type');
|
|
8
8
|
var $WeakMap = GetIntrinsic('%WeakMap%', true);
|
|
9
9
|
var $Map = GetIntrinsic('%Map%', true);
|
|
10
10
|
|
|
@@ -16,49 +16,58 @@ var $mapSet = callBound('Map.prototype.set', true);
|
|
|
16
16
|
var $mapHas = callBound('Map.prototype.has', true);
|
|
17
17
|
|
|
18
18
|
/*
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
* used nodes can be accessed relatively quickly.
|
|
25
|
-
*/
|
|
19
|
+
* This function traverses the list returning the node corresponding to the given key.
|
|
20
|
+
*
|
|
21
|
+
* That node is also moved to the head of the list, so that if it's accessed again we don't need to traverse the whole list. By doing so, all the recently used nodes can be accessed relatively quickly.
|
|
22
|
+
*/
|
|
23
|
+
/** @type {import('.').listGetNode} */
|
|
26
24
|
var listGetNode = function (list, key) { // eslint-disable-line consistent-return
|
|
27
|
-
|
|
25
|
+
/** @type {typeof list | NonNullable<(typeof list)['next']>} */
|
|
26
|
+
var prev = list;
|
|
27
|
+
/** @type {(typeof list)['next']} */
|
|
28
|
+
var curr;
|
|
29
|
+
for (; (curr = prev.next) !== null; prev = curr) {
|
|
28
30
|
if (curr.key === key) {
|
|
29
31
|
prev.next = curr.next;
|
|
30
|
-
|
|
32
|
+
// eslint-disable-next-line no-extra-parens
|
|
33
|
+
curr.next = /** @type {NonNullable<typeof list.next>} */ (list.next);
|
|
31
34
|
list.next = curr; // eslint-disable-line no-param-reassign
|
|
32
35
|
return curr;
|
|
33
36
|
}
|
|
34
37
|
}
|
|
35
38
|
};
|
|
36
39
|
|
|
40
|
+
/** @type {import('.').listGet} */
|
|
37
41
|
var listGet = function (objects, key) {
|
|
38
42
|
var node = listGetNode(objects, key);
|
|
39
43
|
return node && node.value;
|
|
40
44
|
};
|
|
45
|
+
/** @type {import('.').listSet} */
|
|
41
46
|
var listSet = function (objects, key, value) {
|
|
42
47
|
var node = listGetNode(objects, key);
|
|
43
48
|
if (node) {
|
|
44
49
|
node.value = value;
|
|
45
50
|
} else {
|
|
46
51
|
// Prepend the new node to the beginning of the list
|
|
47
|
-
objects.next = { // eslint-disable-line no-param-reassign
|
|
52
|
+
objects.next = /** @type {import('.').ListNode<typeof value>} */ ({ // eslint-disable-line no-param-reassign, no-extra-parens
|
|
48
53
|
key: key,
|
|
49
54
|
next: objects.next,
|
|
50
55
|
value: value
|
|
51
|
-
};
|
|
56
|
+
});
|
|
52
57
|
}
|
|
53
58
|
};
|
|
59
|
+
/** @type {import('.').listHas} */
|
|
54
60
|
var listHas = function (objects, key) {
|
|
55
61
|
return !!listGetNode(objects, key);
|
|
56
62
|
};
|
|
57
63
|
|
|
64
|
+
/** @type {import('.')} */
|
|
58
65
|
module.exports = function getSideChannel() {
|
|
59
|
-
var $wm;
|
|
60
|
-
var $m;
|
|
61
|
-
var $o;
|
|
66
|
+
/** @type {WeakMap<object, unknown>} */ var $wm;
|
|
67
|
+
/** @type {Map<object, unknown>} */ var $m;
|
|
68
|
+
/** @type {import('.').RootNode<unknown>} */ var $o;
|
|
69
|
+
|
|
70
|
+
/** @type {import('.').Channel} */
|
|
62
71
|
var channel = {
|
|
63
72
|
assert: function (key) {
|
|
64
73
|
if (!channel.has(key)) {
|
|
@@ -109,11 +118,7 @@ module.exports = function getSideChannel() {
|
|
|
109
118
|
$mapSet($m, key, value);
|
|
110
119
|
} else {
|
|
111
120
|
if (!$o) {
|
|
112
|
-
|
|
113
|
-
* Initialize the linked list as an empty node, so that we don't have
|
|
114
|
-
* to special-case handling of the first node: we can always refer to
|
|
115
|
-
* it as (previous node).next, instead of something like (list).head
|
|
116
|
-
*/
|
|
121
|
+
// Initialize the linked list as an empty node, so that we don't have to special-case handling of the first node: we can always refer to it as (previous node).next, instead of something like (list).head
|
|
117
122
|
$o = { key: {}, next: null };
|
|
118
123
|
}
|
|
119
124
|
listSet($o, key, value);
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "side-channel",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.6",
|
|
4
4
|
"description": "Store information about any JS value in a side channel. Uses WeakMap if available.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"exports": {
|
|
7
7
|
"./package.json": "./package.json",
|
|
8
|
-
".":
|
|
9
|
-
{
|
|
10
|
-
"default": "./index.js"
|
|
11
|
-
},
|
|
12
|
-
"./index.js"
|
|
13
|
-
]
|
|
8
|
+
".": "./index.js"
|
|
14
9
|
},
|
|
10
|
+
"types": "./index.d.ts",
|
|
15
11
|
"scripts": {
|
|
16
|
-
"
|
|
17
|
-
"
|
|
12
|
+
"prepack": "npmignore --auto --commentLines=autogenerated",
|
|
13
|
+
"prepublishOnly": "safe-publish-latest",
|
|
14
|
+
"prepublish": "not-in-publish || npm run prepublishOnly",
|
|
15
|
+
"prelint": "eclint check $(git ls-files | xargs find 2> /dev/null | grep -vE 'node_modules|\\.git')",
|
|
16
|
+
"lint": "eslint --ext=js,mjs .",
|
|
17
|
+
"postlint": "tsc -p .",
|
|
18
18
|
"pretest": "npm run lint",
|
|
19
19
|
"tests-only": "nyc tape 'test/**/*.js'",
|
|
20
20
|
"test": "npm run tests-only",
|
|
21
|
-
"posttest": "
|
|
21
|
+
"posttest": "aud --production",
|
|
22
22
|
"version": "auto-changelog && git add CHANGELOG.md",
|
|
23
23
|
"postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\""
|
|
24
24
|
},
|
|
@@ -43,18 +43,27 @@
|
|
|
43
43
|
},
|
|
44
44
|
"homepage": "https://github.com/ljharb/side-channel#readme",
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@ljharb/eslint-config": "^
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
"
|
|
46
|
+
"@ljharb/eslint-config": "^21.1.0",
|
|
47
|
+
"@types/call-bind": "^1.0.5",
|
|
48
|
+
"@types/get-intrinsic": "^1.2.2",
|
|
49
|
+
"@types/object-inspect": "^1.8.4",
|
|
50
|
+
"@types/tape": "^5.6.4",
|
|
51
|
+
"aud": "^2.0.4",
|
|
52
|
+
"auto-changelog": "^2.4.0",
|
|
53
|
+
"eclint": "^2.8.1",
|
|
54
|
+
"eslint": "=8.8.0",
|
|
55
|
+
"in-publish": "^2.0.1",
|
|
56
|
+
"npmignore": "^0.3.1",
|
|
50
57
|
"nyc": "^10.3.2",
|
|
51
|
-
"safe-publish-latest": "^
|
|
52
|
-
"tape": "^5.
|
|
58
|
+
"safe-publish-latest": "^2.0.0",
|
|
59
|
+
"tape": "^5.7.5",
|
|
60
|
+
"typescript": "next"
|
|
53
61
|
},
|
|
54
62
|
"dependencies": {
|
|
55
|
-
"call-bind": "^1.0.
|
|
56
|
-
"
|
|
57
|
-
"
|
|
63
|
+
"call-bind": "^1.0.7",
|
|
64
|
+
"es-errors": "^1.3.0",
|
|
65
|
+
"get-intrinsic": "^1.2.4",
|
|
66
|
+
"object-inspect": "^1.13.1"
|
|
58
67
|
},
|
|
59
68
|
"auto-changelog": {
|
|
60
69
|
"output": "CHANGELOG.md",
|
|
@@ -63,5 +72,13 @@
|
|
|
63
72
|
"commitLimit": false,
|
|
64
73
|
"backfillLimit": false,
|
|
65
74
|
"hideCredit": true
|
|
75
|
+
},
|
|
76
|
+
"publishConfig": {
|
|
77
|
+
"ignore": [
|
|
78
|
+
".github/workflows"
|
|
79
|
+
]
|
|
80
|
+
},
|
|
81
|
+
"engines": {
|
|
82
|
+
"node": ">= 0.4"
|
|
66
83
|
}
|
|
67
84
|
}
|
|
@@ -32,13 +32,18 @@ test('assert', function (t) {
|
|
|
32
32
|
|
|
33
33
|
test('has', function (t) {
|
|
34
34
|
var channel = getSideChannel();
|
|
35
|
-
var o = [];
|
|
35
|
+
/** @type {unknown[]} */ var o = [];
|
|
36
36
|
|
|
37
37
|
t.equal(channel.has(o), false, 'nonexistent value yields false');
|
|
38
38
|
|
|
39
39
|
channel.set(o, 'foo');
|
|
40
40
|
t.equal(channel.has(o), true, 'existent value yields true');
|
|
41
41
|
|
|
42
|
+
t.equal(channel.has('abc'), false, 'non object value non existent yields false');
|
|
43
|
+
|
|
44
|
+
channel.set('abc', 'foo');
|
|
45
|
+
t.equal(channel.has('abc'), true, 'non object value that exists yields true');
|
|
46
|
+
|
|
42
47
|
t.end();
|
|
43
48
|
});
|
|
44
49
|
|
|
@@ -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
|
+
}
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.js"],"names":[],"mappings":"8BAqBiB,OAAO,WAAW,EAAE,OAAO,CAAC,YAAY,WAAW,SAAS,OAAO,kBAAkB,OAAO,GAAG,IAAI,gBAAgB,OAAO,GAAG,IAAI,oBAAoB,OAAO,GAAG,IAAI,UAAU,OAAO,KAAK,IAAI"}
|