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
@@ -2,9 +2,15 @@
2
2
 
3
3
  var undefined;
4
4
 
5
- var $SyntaxError = SyntaxError;
5
+ var $Error = require('es-errors');
6
+ var $EvalError = require('es-errors/eval');
7
+ var $RangeError = require('es-errors/range');
8
+ var $ReferenceError = require('es-errors/ref');
9
+ var $SyntaxError = require('es-errors/syntax');
10
+ var $TypeError = require('es-errors/type');
11
+ var $URIError = require('es-errors/uri');
12
+
6
13
  var $Function = Function;
7
- var $TypeError = TypeError;
8
14
 
9
15
  // eslint-disable-next-line consistent-return
10
16
  var getEvalledConstructor = function (expressionSyntax) {
@@ -56,6 +62,7 @@ var needsEval = {};
56
62
  var TypedArray = typeof Uint8Array === 'undefined' || !getProto ? undefined : getProto(Uint8Array);
57
63
 
58
64
  var INTRINSICS = {
65
+ __proto__: null,
59
66
  '%AggregateError%': typeof AggregateError === 'undefined' ? undefined : AggregateError,
60
67
  '%Array%': Array,
61
68
  '%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined : ArrayBuffer,
@@ -76,9 +83,9 @@ var INTRINSICS = {
76
83
  '%decodeURIComponent%': decodeURIComponent,
77
84
  '%encodeURI%': encodeURI,
78
85
  '%encodeURIComponent%': encodeURIComponent,
79
- '%Error%': Error,
86
+ '%Error%': $Error,
80
87
  '%eval%': eval, // eslint-disable-line no-eval
81
- '%EvalError%': EvalError,
88
+ '%EvalError%': $EvalError,
82
89
  '%Float32Array%': typeof Float32Array === 'undefined' ? undefined : Float32Array,
83
90
  '%Float64Array%': typeof Float64Array === 'undefined' ? undefined : Float64Array,
84
91
  '%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined : FinalizationRegistry,
@@ -100,8 +107,8 @@ var INTRINSICS = {
100
107
  '%parseInt%': parseInt,
101
108
  '%Promise%': typeof Promise === 'undefined' ? undefined : Promise,
102
109
  '%Proxy%': typeof Proxy === 'undefined' ? undefined : Proxy,
103
- '%RangeError%': RangeError,
104
- '%ReferenceError%': ReferenceError,
110
+ '%RangeError%': $RangeError,
111
+ '%ReferenceError%': $ReferenceError,
105
112
  '%Reflect%': typeof Reflect === 'undefined' ? undefined : Reflect,
106
113
  '%RegExp%': RegExp,
107
114
  '%Set%': typeof Set === 'undefined' ? undefined : Set,
@@ -118,7 +125,7 @@ var INTRINSICS = {
118
125
  '%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined : Uint8ClampedArray,
119
126
  '%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined : Uint16Array,
120
127
  '%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined : Uint32Array,
121
- '%URIError%': URIError,
128
+ '%URIError%': $URIError,
122
129
  '%WeakMap%': typeof WeakMap === 'undefined' ? undefined : WeakMap,
123
130
  '%WeakRef%': typeof WeakRef === 'undefined' ? undefined : WeakRef,
124
131
  '%WeakSet%': typeof WeakSet === 'undefined' ? undefined : WeakSet
@@ -160,6 +167,7 @@ var doEval = function doEval(name) {
160
167
  };
161
168
 
162
169
  var LEGACY_ALIASES = {
170
+ __proto__: null,
163
171
  '%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'],
164
172
  '%ArrayPrototype%': ['Array', 'prototype'],
165
173
  '%ArrayProto_entries%': ['Array', 'prototype', 'entries'],
@@ -1,17 +1,13 @@
1
1
  {
2
2
  "name": "get-intrinsic",
3
- "version": "1.2.2",
3
+ "version": "1.2.4",
4
4
  "description": "Get and robustly cache all JS language-level intrinsics at first require time",
5
5
  "main": "index.js",
6
6
  "exports": {
7
- ".": [
8
- {
9
- "default": "./index.js"
10
- },
11
- "./index.js"
12
- ],
7
+ ".": "./index.js",
13
8
  "./package.json": "./package.json"
14
9
  },
10
+ "sideEffects": false,
15
11
  "scripts": {
16
12
  "prepack": "npmignore --auto --commentLines=autogenerated",
17
13
  "prepublish": "not-in-publish || npm run prepublishOnly",
@@ -49,10 +45,10 @@
49
45
  "homepage": "https://github.com/ljharb/get-intrinsic#readme",
50
46
  "devDependencies": {
51
47
  "@ljharb/eslint-config": "^21.1.0",
52
- "aud": "^2.0.3",
48
+ "aud": "^2.0.4",
53
49
  "auto-changelog": "^2.4.0",
54
50
  "call-bind": "^1.0.5",
55
- "es-abstract": "^1.22.2",
51
+ "es-abstract": "^1.22.3",
56
52
  "es-value-fixtures": "^1.4.2",
57
53
  "eslint": "=8.8.0",
58
54
  "evalmd": "^0.0.19",
@@ -61,12 +57,12 @@
61
57
  "make-async-function": "^1.0.0",
62
58
  "make-async-generator-function": "^1.0.0",
63
59
  "make-generator-function": "^2.0.0",
64
- "mock-property": "^1.0.2",
65
- "npmignore": "^0.3.0",
60
+ "mock-property": "^1.0.3",
61
+ "npmignore": "^0.3.1",
66
62
  "nyc": "^10.3.2",
67
63
  "object-inspect": "^1.13.1",
68
64
  "safe-publish-latest": "^2.0.0",
69
- "tape": "^5.7.2"
65
+ "tape": "^5.7.4"
70
66
  },
71
67
  "auto-changelog": {
72
68
  "output": "CHANGELOG.md",
@@ -77,6 +73,7 @@
77
73
  "hideCredit": true
78
74
  },
79
75
  "dependencies": {
76
+ "es-errors": "^1.3.0",
80
77
  "function-bind": "^1.1.2",
81
78
  "has-proto": "^1.0.1",
82
79
  "has-symbols": "^1.0.3",
@@ -89,5 +86,8 @@
89
86
  "ignore": [
90
87
  ".github/workflows"
91
88
  ]
89
+ },
90
+ "engines": {
91
+ "node": ">= 0.4"
92
92
  }
93
93
  }
@@ -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.0.2](https://github.com/inspect-js/has-property-descriptors/compare/v1.0.1...v1.0.2) - 2024-02-12
9
+
10
+ ### Commits
11
+
12
+ - [Refactor] use `es-define-property` [`f93a8c8`](https://github.com/inspect-js/has-property-descriptors/commit/f93a8c85eba70cbceab500f2619fb5cce73a1805)
13
+ - [Dev Deps] update `aud`, `npmignore`, `tape` [`42b0c9d`](https://github.com/inspect-js/has-property-descriptors/commit/42b0c9d1c23e747755f0f2924923c418ea34a9ee)
14
+ - [Deps] update `get-intrinsic` [`35e9b46`](https://github.com/inspect-js/has-property-descriptors/commit/35e9b46a7f14331bf0de98b644dd803676746037)
15
+
8
16
  ## [v1.0.1](https://github.com/inspect-js/has-property-descriptors/compare/v1.0.0...v1.0.1) - 2023-10-20
9
17
 
10
18
  ### Commits
@@ -1,25 +1,14 @@
1
1
  'use strict';
2
2
 
3
- var GetIntrinsic = require('get-intrinsic');
4
-
5
- var $defineProperty = GetIntrinsic('%Object.defineProperty%', true);
3
+ var $defineProperty = require('es-define-property');
6
4
 
7
5
  var hasPropertyDescriptors = function hasPropertyDescriptors() {
8
- if ($defineProperty) {
9
- try {
10
- $defineProperty({}, 'a', { value: 1 });
11
- return true;
12
- } catch (e) {
13
- // IE 8 has a broken defineProperty
14
- return false;
15
- }
16
- }
17
- return false;
6
+ return !!$defineProperty;
18
7
  };
19
8
 
20
9
  hasPropertyDescriptors.hasArrayLengthDefineBug = function hasArrayLengthDefineBug() {
21
10
  // node v0.6 has a bug where array lengths can be Set but not Defined
22
- if (!hasPropertyDescriptors()) {
11
+ if (!$defineProperty) {
23
12
  return null;
24
13
  }
25
14
  try {
@@ -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,36 @@ 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.6](https://github.com/ljharb/side-channel/compare/v1.0.5...v1.0.6) - 2024-02-29
9
+
10
+ ### Commits
11
+
12
+ - add types [`9beef66`](https://github.com/ljharb/side-channel/commit/9beef6643e6d717ea57bedabf86448123a7dd9e9)
13
+ - [meta] simplify `exports` [`4334cf9`](https://github.com/ljharb/side-channel/commit/4334cf9df654151504c383b62a2f9ebdc8d9d5ac)
14
+ - [Deps] update `call-bind` [`d6043c4`](https://github.com/ljharb/side-channel/commit/d6043c4d8f4d7be9037dd0f0419c7a2e0e39ec6a)
15
+ - [Dev Deps] update `tape` [`6aca376`](https://github.com/ljharb/side-channel/commit/6aca3761868dc8cd5ff7fd9799bf6b95e09a6eb0)
16
+
17
+ ## [v1.0.5](https://github.com/ljharb/side-channel/compare/v1.0.4...v1.0.5) - 2024-02-06
18
+
19
+ ### Commits
20
+
21
+ - [actions] reuse common workflows [`3d2e1ff`](https://github.com/ljharb/side-channel/commit/3d2e1ffd16dd6eaaf3e40ff57951f840d2d63c04)
22
+ - [meta] use `npmignore` to autogenerate an npmignore file [`04296ea`](https://github.com/ljharb/side-channel/commit/04296ea17d1544b0a5d20fd5bfb31aa4f6513eb9)
23
+ - [meta] add `.editorconfig`; add `eclint` [`130f0a6`](https://github.com/ljharb/side-channel/commit/130f0a6adbc04d385c7456a601d38344dce3d6a9)
24
+ - [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `aud`, `auto-changelog`, `safe-publish-latest`, `tape` [`d480c2f`](https://github.com/ljharb/side-channel/commit/d480c2fbe757489ae9b4275491ffbcc3ac4725e9)
25
+ - [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `aud`, `auto-changelog`, `tape` [`ecbe70e`](https://github.com/ljharb/side-channel/commit/ecbe70e53a418234081a77971fec1fdfae20c841)
26
+ - [actions] update rebase action [`75240b9`](https://github.com/ljharb/side-channel/commit/75240b9963b816e8846400d2287cb68f88c7fba7)
27
+ - [Dev Deps] update `@ljharb/eslint-config`, `aud`, `npmignore`, `tape` [`ae8d281`](https://github.com/ljharb/side-channel/commit/ae8d281572430099109870fd9430d2ca3f320b8d)
28
+ - [Dev Deps] update `@ljharb/eslint-config`, `aud`, `tape` [`7125b88`](https://github.com/ljharb/side-channel/commit/7125b885fd0eacad4fee9b073b72d14065ece278)
29
+ - [Deps] update `call-bind`, `get-intrinsic`, `object-inspect` [`82577c9`](https://github.com/ljharb/side-channel/commit/82577c9796304519139a570f82a317211b5f3b86)
30
+ - [Deps] update `call-bind`, `get-intrinsic`, `object-inspect` [`550aadf`](https://github.com/ljharb/side-channel/commit/550aadf20475a6081fd70304cc54f77259a5c8a8)
31
+ - [Tests] increase coverage [`5130877`](https://github.com/ljharb/side-channel/commit/5130877a7b27c862e64e6d1c12a178b28808859d)
32
+ - [Deps] update `get-intrinsic`, `object-inspect` [`ba0194c`](https://github.com/ljharb/side-channel/commit/ba0194c505b1a8a0427be14cadd5b8a46d4d01b8)
33
+ - [meta] add missing `engines.node` [`985fd24`](https://github.com/ljharb/side-channel/commit/985fd249663cb06617a693a94fe08cad12f5cb70)
34
+ - [Refactor] use `es-errors`, so things that only need those do not need `get-intrinsic` [`40227a8`](https://github.com/ljharb/side-channel/commit/40227a87b01709ad2c0eebf87eb4223a800099b9)
35
+ - [Deps] update `get-intrinsic` [`a989b40`](https://github.com/ljharb/side-channel/commit/a989b4024958737ae7be9fbffdeff2078f33a0fd)
36
+ - [Deps] update `object-inspect` [`aec42d2`](https://github.com/ljharb/side-channel/commit/aec42d2ec541a31aaa02475692c87d489237d9a3)
37
+
8
38
  ## [v1.0.4](https://github.com/ljharb/side-channel/compare/v1.0.3...v1.0.4) - 2020-12-29
9
39
 
10
40
  ### Commits
@@ -0,0 +1,27 @@
1
+ declare namespace getSideChannel {
2
+ type Key = unknown;
3
+ type ListNode<T> = {
4
+ key: Key;
5
+ next: ListNode<T>;
6
+ value: T;
7
+ };
8
+ type RootNode<T> = {
9
+ key: object;
10
+ next: null | ListNode<T>;
11
+ };
12
+ function listGetNode<T>(list: RootNode<T>, key: ListNode<T>['key']): ListNode<T> | void;
13
+ function listGet<T>(objects: RootNode<T>, key: ListNode<T>['key']): T | void;
14
+ function listSet<T>(objects: RootNode<T>, key: ListNode<T>['key'], value: T): void;
15
+ function listHas<T>(objects: RootNode<T>, key: ListNode<T>['key']): boolean;
16
+
17
+ type Channel = {
18
+ assert: (key: Key) => void;
19
+ has: (key: Key) => boolean;
20
+ get: <T>(key: Key) => T;
21
+ set: <T>(key: Key, value: T) => void;
22
+ }
23
+ }
24
+
25
+ declare function getSideChannel(): getSideChannel.Channel;
26
+
27
+ export = getSideChannel;