step-node-agent 3.24.1 → 3.24.2

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 (69) 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/es-define-property/LICENSE +21 -0
  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/get-intrinsic/CHANGELOG.md +18 -0
  43. package/node_modules/get-intrinsic/index.js +15 -7
  44. package/node_modules/get-intrinsic/package.json +12 -12
  45. package/node_modules/has-property-descriptors/CHANGELOG.md +8 -0
  46. package/node_modules/has-property-descriptors/index.js +3 -14
  47. package/node_modules/has-property-descriptors/package.json +5 -5
  48. package/node_modules/has-proto/CHANGELOG.md +15 -0
  49. package/node_modules/has-proto/index.d.ts +3 -0
  50. package/node_modules/has-proto/index.js +5 -1
  51. package/node_modules/has-proto/package.json +9 -5
  52. package/node_modules/has-proto/tsconfig.json +49 -0
  53. package/node_modules/hasown/CHANGELOG.md +8 -0
  54. package/node_modules/hasown/index.d.ts +3 -3
  55. package/node_modules/hasown/index.js +1 -1
  56. package/node_modules/hasown/package.json +13 -15
  57. package/node_modules/set-function-length/CHANGELOG.md +8 -0
  58. package/node_modules/set-function-length/index.js +1 -1
  59. package/node_modules/set-function-length/package.json +7 -6
  60. package/node_modules/side-channel/.editorconfig +9 -0
  61. package/node_modules/side-channel/.eslintrc +1 -1
  62. package/node_modules/side-channel/CHANGELOG.md +21 -0
  63. package/node_modules/side-channel/index.js +6 -13
  64. package/node_modules/side-channel/package.json +28 -13
  65. package/node_modules/side-channel/test/index.js +5 -0
  66. package/package.json +1 -1
  67. package/node_modules/define-data-property/index.d.ts.map +0 -1
  68. package/node_modules/hasown/index.d.ts.map +0 -1
  69. package/node_modules/side-channel/.eslintignore +0 -1
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "has-property-descriptors",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "Does the environment have full property descriptor support? Handles IE 8's broken defineProperty/gOPD.",
5
5
  "main": "index.js",
6
6
  "exports": {
@@ -45,18 +45,18 @@
45
45
  "homepage": "https://github.com/inspect-js/has-property-descriptors#readme",
46
46
  "devDependencies": {
47
47
  "@ljharb/eslint-config": "^21.1.0",
48
- "aud": "^2.0.3",
48
+ "aud": "^2.0.4",
49
49
  "auto-changelog": "^2.4.0",
50
50
  "eslint": "=8.8.0",
51
51
  "evalmd": "^0.0.19",
52
52
  "in-publish": "^2.0.1",
53
- "npmignore": "^0.3.0",
53
+ "npmignore": "^0.3.1",
54
54
  "nyc": "^10.3.2",
55
55
  "safe-publish-latest": "^2.0.0",
56
- "tape": "^5.7.2"
56
+ "tape": "^5.7.4"
57
57
  },
58
58
  "dependencies": {
59
- "get-intrinsic": "^1.2.2"
59
+ "es-define-property": "^1.0.0"
60
60
  },
61
61
  "testling": {
62
62
  "files": "test/index.js"
@@ -5,6 +5,21 @@ 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.0.3](https://github.com/inspect-js/has-proto/compare/v1.0.2...v1.0.3) - 2024-02-19
9
+
10
+ ### Commits
11
+
12
+ - [types] add missing declaration file [`26ecade`](https://github.com/inspect-js/has-proto/commit/26ecade05d253bb5dc376945ee3186d1fbe334f8)
13
+
14
+ ## [v1.0.2](https://github.com/inspect-js/has-proto/compare/v1.0.1...v1.0.2) - 2024-02-19
15
+
16
+ ### Commits
17
+
18
+ - add types [`6435262`](https://github.com/inspect-js/has-proto/commit/64352626cf511c0276d5f4bb6be770a0bf0f8524)
19
+ - [Dev Deps] update `@ljharb/eslint-config`, `aud`, `npmignore`, `tape` [`f16a5e4`](https://github.com/inspect-js/has-proto/commit/f16a5e4121651e551271419f9d60fdd3561fd82c)
20
+ - [Refactor] tiny cleanup [`d1f1a4b`](https://github.com/inspect-js/has-proto/commit/d1f1a4bdc135f115a10f148ce302676224534702)
21
+ - [meta] add `sideEffects` flag [`e7ab1a6`](https://github.com/inspect-js/has-proto/commit/e7ab1a6f153b3e80dee68d1748b71e46767a0531)
22
+
8
23
  ## [v1.0.1](https://github.com/inspect-js/has-proto/compare/v1.0.0...v1.0.1) - 2022-12-21
9
24
 
10
25
  ### Commits
@@ -0,0 +1,3 @@
1
+ declare function hasProto(): boolean;
2
+
3
+ export = hasProto;
@@ -1,11 +1,15 @@
1
1
  'use strict';
2
2
 
3
3
  var test = {
4
+ __proto__: null,
4
5
  foo: {}
5
6
  };
6
7
 
7
8
  var $Object = Object;
8
9
 
10
+ /** @type {import('.')} */
9
11
  module.exports = function hasProto() {
10
- return { __proto__: test }.foo === test.foo && !({ __proto__: null } instanceof $Object);
12
+ // @ts-expect-error: TS errors on an inherited property for some reason
13
+ return { __proto__: test }.foo === test.foo
14
+ && !(test instanceof $Object);
11
15
  };
@@ -1,17 +1,19 @@
1
1
  {
2
2
  "name": "has-proto",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "description": "Does this environment have the ability to get the [[Prototype]] of an object on creation with `__proto__`?",
5
5
  "main": "index.js",
6
6
  "exports": {
7
7
  ".": "./index.js",
8
8
  "./package.json": "./package.json"
9
9
  },
10
+ "sideEffects": false,
10
11
  "scripts": {
11
12
  "prepack": "npmignore --auto --commentLines=autogenerated",
12
13
  "prepublishOnly": "safe-publish-latest",
13
14
  "prepublish": "not-in-publish || npm run prepublishOnly",
14
15
  "lint": "eslint --ext=js,mjs .",
16
+ "postlint": "tsc -p .",
15
17
  "pretest": "npm run lint",
16
18
  "tests-only": "tape 'test/**/*.js'",
17
19
  "test": "npm run tests-only",
@@ -46,14 +48,16 @@
46
48
  "files": "test/index.js"
47
49
  },
48
50
  "devDependencies": {
49
- "@ljharb/eslint-config": "^21.0.0",
50
- "aud": "^2.0.2",
51
+ "@ljharb/eslint-config": "^21.1.0",
52
+ "@types/tape": "^5.6.4",
53
+ "aud": "^2.0.4",
51
54
  "auto-changelog": "^2.4.0",
52
55
  "eslint": "=8.8.0",
53
56
  "in-publish": "^2.0.1",
54
- "npmignore": "^0.3.0",
57
+ "npmignore": "^0.3.1",
55
58
  "safe-publish-latest": "^2.0.0",
56
- "tape": "^5.6.1"
59
+ "tape": "^5.7.5",
60
+ "typescript": "next"
57
61
  },
58
62
  "engines": {
59
63
  "node": ">= 0.4"
@@ -0,0 +1,49 @@
1
+ {
2
+ "compilerOptions": {
3
+ /* Visit https://aka.ms/tsconfig to read more about this file */
4
+
5
+ /* Projects */
6
+
7
+ /* Language and Environment */
8
+ "target": "ESNext", /* 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": "node10", /* 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": 0, /* 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
+ }
@@ -5,6 +5,14 @@ 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
+ ## [v2.0.1](https://github.com/inspect-js/hasOwn/compare/v2.0.0...v2.0.1) - 2024-02-10
9
+
10
+ ### Commits
11
+
12
+ - [types] use a handwritten d.ts file; fix exported type [`012b989`](https://github.com/inspect-js/hasOwn/commit/012b9898ccf91dc441e2ebf594ff70270a5fda58)
13
+ - [Dev Deps] update `@types/function-bind`, `@types/mock-property`, `@types/tape`, `aud`, `mock-property`, `npmignore`, `tape`, `typescript` [`977a56f`](https://github.com/inspect-js/hasOwn/commit/977a56f51a1f8b20566f3c471612137894644025)
14
+ - [meta] add `sideEffects` flag [`3a60b7b`](https://github.com/inspect-js/hasOwn/commit/3a60b7bf42fccd8c605e5f145a6fcc83b13cb46f)
15
+
8
16
  ## [v2.0.0](https://github.com/inspect-js/hasOwn/compare/v1.0.1...v2.0.0) - 2023-10-19
9
17
 
10
18
  ### Commits
@@ -1,3 +1,3 @@
1
- declare const _exports: (o: {}, p: PropertyKey) => p is never;
2
- export = _exports;
3
- //# sourceMappingURL=index.d.ts.map
1
+ declare function hasOwn<T extends {} = {}>(o: T, p: PropertyKey): p is keyof T;
2
+
3
+ export = hasOwn;
@@ -4,5 +4,5 @@ var call = Function.prototype.call;
4
4
  var $hasOwn = Object.prototype.hasOwnProperty;
5
5
  var bind = require('function-bind');
6
6
 
7
- /** @type {(o: {}, p: PropertyKey) => p is keyof o} */
7
+ /** @type {import('.')} */
8
8
  module.exports = bind.call(call, $hasOwn);
@@ -1,21 +1,21 @@
1
1
  {
2
2
  "name": "hasown",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "description": "A robust, ES3 compatible, \"has own property\" predicate.",
5
5
  "main": "index.js",
6
6
  "exports": {
7
7
  ".": "./index.js",
8
8
  "./package.json": "./package.json"
9
9
  },
10
+ "types": "index.d.ts",
11
+ "sideEffects": false,
10
12
  "scripts": {
11
- "prepack": "npmignore --auto --commentLines=autogenerated && npm run emit-types",
13
+ "prepack": "npmignore --auto --commentLines=autogenerated",
12
14
  "prepublish": "not-in-publish || npm run prepublishOnly",
13
15
  "prepublishOnly": "safe-publish-latest",
14
16
  "prelint": "evalmd README.md",
15
17
  "lint": "eslint --ext=js,mjs .",
16
18
  "postlint": "npm run tsc",
17
- "preemit-types": "rm -f *.ts *.ts.map test/*.ts test/*.ts.map",
18
- "emit-types": "npm run tsc -- --noEmit false --emitDeclarationOnly",
19
19
  "pretest": "npm run lint",
20
20
  "tsc": "tsc -p .",
21
21
  "tests-only": "nyc tape 'test/**/*.js'",
@@ -51,20 +51,20 @@
51
51
  },
52
52
  "devDependencies": {
53
53
  "@ljharb/eslint-config": "^21.1.0",
54
- "@types/function-bind": "^1.1.9",
55
- "@types/mock-property": "^1.0.1",
56
- "@types/tape": "^5.6.3",
57
- "aud": "^2.0.3",
54
+ "@types/function-bind": "^1.1.10",
55
+ "@types/mock-property": "^1.0.2",
56
+ "@types/tape": "^5.6.4",
57
+ "aud": "^2.0.4",
58
58
  "auto-changelog": "^2.4.0",
59
59
  "eslint": "=8.8.0",
60
60
  "evalmd": "^0.0.19",
61
61
  "in-publish": "^2.0.1",
62
- "mock-property": "^1.0.2",
63
- "npmignore": "^0.3.0",
62
+ "mock-property": "^1.0.3",
63
+ "npmignore": "^0.3.1",
64
64
  "nyc": "^10.3.2",
65
65
  "safe-publish-latest": "^2.0.0",
66
- "tape": "^5.7.1",
67
- "typescript": "^5.3.0-dev.20231019"
66
+ "tape": "^5.7.4",
67
+ "typescript": "next"
68
68
  },
69
69
  "engines": {
70
70
  "node": ">= 0.4"
@@ -83,9 +83,7 @@
83
83
  "publishConfig": {
84
84
  "ignore": [
85
85
  ".github/workflows",
86
- "test",
87
- "!*.d.ts",
88
- "!*.d.ts.map"
86
+ "test"
89
87
  ]
90
88
  }
91
89
  }
@@ -5,6 +5,14 @@ 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.1](https://github.com/ljharb/set-function-length/compare/v1.2.0...v1.2.1) - 2024-02-06
9
+
10
+ ### Commits
11
+
12
+ - [Dev Deps] update `call-bind`, `tape`, `typescript` [`d9a4601`](https://github.com/ljharb/set-function-length/commit/d9a460199c4c1fa37da9ebe055e2c884128f0738)
13
+ - [Deps] update `define-data-property`, `get-intrinsic` [`38d39ae`](https://github.com/ljharb/set-function-length/commit/38d39aed13a757ed36211d5b0437b88485090c6b)
14
+ - [Refactor] use `es-errors`, so things that only need those do not need `get-intrinsic` [`b4bfe5a`](https://github.com/ljharb/set-function-length/commit/b4bfe5ae0953b906d55b85f867eca5e7f673ebf4)
15
+
8
16
  ## [v1.2.0](https://github.com/ljharb/set-function-length/compare/v1.1.1...v1.2.0) - 2024-01-14
9
17
 
10
18
  ### Commits
@@ -5,7 +5,7 @@ var define = require('define-data-property');
5
5
  var hasDescriptors = require('has-property-descriptors')();
6
6
  var gOPD = require('gopd');
7
7
 
8
- var $TypeError = GetIntrinsic('%TypeError%');
8
+ var $TypeError = require('es-errors/type');
9
9
  var $floor = GetIntrinsic('%Math.floor%');
10
10
 
11
11
  /** @typedef {(...args: unknown[]) => unknown} Func */
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "set-function-length",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "description": "Set a function's length property",
5
5
  "main": "index.js",
6
6
  "exports": {
@@ -49,9 +49,10 @@
49
49
  },
50
50
  "homepage": "https://github.com/ljharb/set-function-length#readme",
51
51
  "dependencies": {
52
- "define-data-property": "^1.1.1",
52
+ "define-data-property": "^1.1.2",
53
+ "es-errors": "^1.3.0",
53
54
  "function-bind": "^1.1.2",
54
- "get-intrinsic": "^1.2.2",
55
+ "get-intrinsic": "^1.2.3",
55
56
  "gopd": "^1.0.1",
56
57
  "has-property-descriptors": "^1.0.1"
57
58
  },
@@ -68,7 +69,7 @@
68
69
  "@types/tape": "^5.6.4",
69
70
  "aud": "^2.0.4",
70
71
  "auto-changelog": "^2.4.0",
71
- "call-bind": "^1.0.5",
72
+ "call-bind": "^1.0.6",
72
73
  "es-value-fixtures": "^1.4.2",
73
74
  "eslint": "=8.8.0",
74
75
  "evalmd": "^0.0.19",
@@ -78,8 +79,8 @@
78
79
  "nyc": "^10.3.2",
79
80
  "object-inspect": "^1.13.1",
80
81
  "safe-publish-latest": "^2.0.0",
81
- "tape": "^5.7.3",
82
- "typescript": "^5.4.0-dev.20240113"
82
+ "tape": "^5.7.4",
83
+ "typescript": "next"
83
84
  },
84
85
  "engines": {
85
86
  "node": ">= 0.4"
@@ -0,0 +1,9 @@
1
+ root = true
2
+
3
+ [*]
4
+ charset = utf-8
5
+ end_of_line = lf
6
+ insert_final_newline = true
7
+ indent_style = tab
8
+ indent_size = 2
9
+ trim_trailing_whitespace = true
@@ -5,7 +5,7 @@
5
5
 
6
6
  "rules": {
7
7
  "max-lines-per-function": 0,
8
- "max-params": 0,
8
+ "multiline-comment-style": 1,
9
9
  "new-cap": [2, { "capIsNewExceptions": ["GetIntrinsic"] }],
10
10
  },
11
11
  }
@@ -5,6 +5,27 @@ 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.0.5](https://github.com/ljharb/side-channel/compare/v1.0.4...v1.0.5) - 2024-02-06
9
+
10
+ ### Commits
11
+
12
+ - [actions] reuse common workflows [`3d2e1ff`](https://github.com/ljharb/side-channel/commit/3d2e1ffd16dd6eaaf3e40ff57951f840d2d63c04)
13
+ - [meta] use `npmignore` to autogenerate an npmignore file [`04296ea`](https://github.com/ljharb/side-channel/commit/04296ea17d1544b0a5d20fd5bfb31aa4f6513eb9)
14
+ - [meta] add `.editorconfig`; add `eclint` [`130f0a6`](https://github.com/ljharb/side-channel/commit/130f0a6adbc04d385c7456a601d38344dce3d6a9)
15
+ - [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `aud`, `auto-changelog`, `safe-publish-latest`, `tape` [`d480c2f`](https://github.com/ljharb/side-channel/commit/d480c2fbe757489ae9b4275491ffbcc3ac4725e9)
16
+ - [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `aud`, `auto-changelog`, `tape` [`ecbe70e`](https://github.com/ljharb/side-channel/commit/ecbe70e53a418234081a77971fec1fdfae20c841)
17
+ - [actions] update rebase action [`75240b9`](https://github.com/ljharb/side-channel/commit/75240b9963b816e8846400d2287cb68f88c7fba7)
18
+ - [Dev Deps] update `@ljharb/eslint-config`, `aud`, `npmignore`, `tape` [`ae8d281`](https://github.com/ljharb/side-channel/commit/ae8d281572430099109870fd9430d2ca3f320b8d)
19
+ - [Dev Deps] update `@ljharb/eslint-config`, `aud`, `tape` [`7125b88`](https://github.com/ljharb/side-channel/commit/7125b885fd0eacad4fee9b073b72d14065ece278)
20
+ - [Deps] update `call-bind`, `get-intrinsic`, `object-inspect` [`82577c9`](https://github.com/ljharb/side-channel/commit/82577c9796304519139a570f82a317211b5f3b86)
21
+ - [Deps] update `call-bind`, `get-intrinsic`, `object-inspect` [`550aadf`](https://github.com/ljharb/side-channel/commit/550aadf20475a6081fd70304cc54f77259a5c8a8)
22
+ - [Tests] increase coverage [`5130877`](https://github.com/ljharb/side-channel/commit/5130877a7b27c862e64e6d1c12a178b28808859d)
23
+ - [Deps] update `get-intrinsic`, `object-inspect` [`ba0194c`](https://github.com/ljharb/side-channel/commit/ba0194c505b1a8a0427be14cadd5b8a46d4d01b8)
24
+ - [meta] add missing `engines.node` [`985fd24`](https://github.com/ljharb/side-channel/commit/985fd249663cb06617a693a94fe08cad12f5cb70)
25
+ - [Refactor] use `es-errors`, so things that only need those do not need `get-intrinsic` [`40227a8`](https://github.com/ljharb/side-channel/commit/40227a87b01709ad2c0eebf87eb4223a800099b9)
26
+ - [Deps] update `get-intrinsic` [`a989b40`](https://github.com/ljharb/side-channel/commit/a989b4024958737ae7be9fbffdeff2078f33a0fd)
27
+ - [Deps] update `object-inspect` [`aec42d2`](https://github.com/ljharb/side-channel/commit/aec42d2ec541a31aaa02475692c87d489237d9a3)
28
+
8
29
  ## [v1.0.4](https://github.com/ljharb/side-channel/compare/v1.0.3...v1.0.4) - 2020-12-29
9
30
 
10
31
  ### Commits
@@ -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 = GetIntrinsic('%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,13 +16,10 @@ var $mapSet = callBound('Map.prototype.set', true);
16
16
  var $mapHas = callBound('Map.prototype.has', true);
17
17
 
18
18
  /*
19
- * This function traverses the list returning the node corresponding to the
20
- * given key.
21
- *
22
- * That node is also moved to the head of the list, so that if it's accessed
23
- * again we don't need to traverse the whole list. By doing so, all the recently
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
+ */
26
23
  var listGetNode = function (list, key) { // eslint-disable-line consistent-return
27
24
  for (var prev = list, curr; (curr = prev.next) !== null; prev = curr) {
28
25
  if (curr.key === key) {
@@ -109,11 +106,7 @@ module.exports = function getSideChannel() {
109
106
  $mapSet($m, key, value);
110
107
  } else {
111
108
  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
- */
109
+ // 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
110
  $o = { key: {}, next: null };
118
111
  }
119
112
  listSet($o, key, value);
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "side-channel",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
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": {
@@ -13,12 +13,15 @@
13
13
  ]
14
14
  },
15
15
  "scripts": {
16
- "prepublish": "safe-publish-latest",
17
- "lint": "eslint .",
16
+ "prepack": "npmignore --auto --commentLines=autogenerated",
17
+ "prepublishOnly": "safe-publish-latest",
18
+ "prepublish": "not-in-publish || npm run prepublishOnly",
19
+ "prelint": "eclint check $(git ls-files | xargs find 2> /dev/null | grep -vE 'node_modules|\\.git')",
20
+ "lint": "eslint --ext=js,mjs .",
18
21
  "pretest": "npm run lint",
19
22
  "tests-only": "nyc tape 'test/**/*.js'",
20
23
  "test": "npm run tests-only",
21
- "posttest": "npx aud --production",
24
+ "posttest": "aud --production",
22
25
  "version": "auto-changelog && git add CHANGELOG.md",
23
26
  "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
27
  },
@@ -43,18 +46,22 @@
43
46
  },
44
47
  "homepage": "https://github.com/ljharb/side-channel#readme",
45
48
  "devDependencies": {
46
- "@ljharb/eslint-config": "^17.3.0",
47
- "aud": "^1.1.3",
48
- "auto-changelog": "^2.2.1",
49
- "eslint": "^7.16.0",
49
+ "@ljharb/eslint-config": "^21.1.0",
50
+ "aud": "^2.0.4",
51
+ "auto-changelog": "^2.4.0",
52
+ "eclint": "^2.8.1",
53
+ "eslint": "=8.8.0",
54
+ "in-publish": "^2.0.1",
55
+ "npmignore": "^0.3.1",
50
56
  "nyc": "^10.3.2",
51
- "safe-publish-latest": "^1.1.4",
52
- "tape": "^5.0.1"
57
+ "safe-publish-latest": "^2.0.0",
58
+ "tape": "^5.7.4"
53
59
  },
54
60
  "dependencies": {
55
- "call-bind": "^1.0.0",
56
- "get-intrinsic": "^1.0.2",
57
- "object-inspect": "^1.9.0"
61
+ "call-bind": "^1.0.6",
62
+ "es-errors": "^1.3.0",
63
+ "get-intrinsic": "^1.2.4",
64
+ "object-inspect": "^1.13.1"
58
65
  },
59
66
  "auto-changelog": {
60
67
  "output": "CHANGELOG.md",
@@ -63,5 +70,13 @@
63
70
  "commitLimit": false,
64
71
  "backfillLimit": false,
65
72
  "hideCredit": true
73
+ },
74
+ "publishConfig": {
75
+ "ignore": [
76
+ ".github/workflows"
77
+ ]
78
+ },
79
+ "engines": {
80
+ "node": ">= 0.4"
66
81
  }
67
82
  }
@@ -39,6 +39,11 @@ test('has', function (t) {
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
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "step-node-agent",
3
- "version": "3.24.1",
3
+ "version": "3.24.2",
4
4
  "description": "The official STEP Agent implementation for Node.js",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -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"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.js"],"names":[],"mappings":"4BAMe,EAAE,KAAK,WAAW"}
@@ -1 +0,0 @@
1
- coverage/