step-node-agent 3.26.5 → 3.27.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (259) hide show
  1. package/node_modules/call-bind-apply-helpers/.eslintrc +1 -0
  2. package/node_modules/call-bind-apply-helpers/CHANGELOG.md +7 -0
  3. package/node_modules/call-bind-apply-helpers/index.d.ts +38 -20
  4. package/node_modules/call-bind-apply-helpers/index.js +1 -1
  5. package/node_modules/call-bind-apply-helpers/package.json +8 -8
  6. package/node_modules/call-bind-apply-helpers/test/index.js +4 -4
  7. package/node_modules/{call-bind → call-bound}/.eslintrc +0 -3
  8. package/node_modules/{define-data-property → call-bound}/.github/FUNDING.yml +1 -1
  9. package/node_modules/call-bound/CHANGELOG.md +42 -0
  10. package/node_modules/{call-bind → call-bound}/LICENSE +1 -1
  11. package/node_modules/call-bound/README.md +53 -0
  12. package/node_modules/call-bound/index.d.ts +94 -0
  13. package/node_modules/call-bound/index.js +19 -0
  14. package/node_modules/{call-bind → call-bound}/package.json +23 -17
  15. package/node_modules/{call-bind/test/callBound.js → call-bound/test/index.js} +12 -5
  16. package/node_modules/call-bound/tsconfig.json +10 -0
  17. package/node_modules/dunder-proto/CHANGELOG.md +9 -0
  18. package/node_modules/dunder-proto/get.js +10 -3
  19. package/node_modules/dunder-proto/package.json +4 -4
  20. package/node_modules/dunder-proto/set.js +7 -1
  21. package/node_modules/dunder-proto/test/set.js +10 -1
  22. package/node_modules/es-object-atoms/.eslintrc +16 -0
  23. package/node_modules/{set-function-length → es-object-atoms}/.github/FUNDING.yml +1 -1
  24. package/node_modules/es-object-atoms/CHANGELOG.md +37 -0
  25. package/node_modules/{has-property-descriptors → es-object-atoms}/LICENSE +1 -1
  26. package/node_modules/es-object-atoms/README.md +63 -0
  27. package/node_modules/es-object-atoms/RequireObjectCoercible.d.ts +3 -0
  28. package/node_modules/es-object-atoms/RequireObjectCoercible.js +11 -0
  29. package/node_modules/es-object-atoms/ToObject.d.ts +7 -0
  30. package/node_modules/es-object-atoms/ToObject.js +10 -0
  31. package/node_modules/es-object-atoms/index.d.ts +3 -0
  32. package/node_modules/es-object-atoms/index.js +4 -0
  33. package/node_modules/es-object-atoms/isObject.d.ts +3 -0
  34. package/node_modules/es-object-atoms/isObject.js +6 -0
  35. package/node_modules/es-object-atoms/package.json +80 -0
  36. package/node_modules/es-object-atoms/test/index.js +38 -0
  37. package/node_modules/es-object-atoms/tsconfig.json +6 -0
  38. package/node_modules/get-intrinsic/.eslintrc +4 -0
  39. package/node_modules/get-intrinsic/CHANGELOG.md +25 -0
  40. package/node_modules/get-intrinsic/index.js +25 -6
  41. package/node_modules/get-intrinsic/package.json +11 -9
  42. package/node_modules/get-proto/.eslintrc +10 -0
  43. package/node_modules/{call-bind → get-proto}/.github/FUNDING.yml +1 -1
  44. package/node_modules/get-proto/CHANGELOG.md +21 -0
  45. package/node_modules/{define-data-property → get-proto}/LICENSE +1 -1
  46. package/node_modules/get-proto/Object.getPrototypeOf.d.ts +5 -0
  47. package/node_modules/get-proto/Object.getPrototypeOf.js +6 -0
  48. package/node_modules/get-proto/README.md +50 -0
  49. package/node_modules/get-proto/Reflect.getPrototypeOf.d.ts +3 -0
  50. package/node_modules/get-proto/Reflect.getPrototypeOf.js +4 -0
  51. package/node_modules/get-proto/index.d.ts +5 -0
  52. package/node_modules/get-proto/index.js +27 -0
  53. package/node_modules/{has-property-descriptors → get-proto}/package.json +35 -31
  54. package/node_modules/get-proto/test/index.js +68 -0
  55. package/node_modules/get-proto/tsconfig.json +9 -0
  56. package/node_modules/is-core-module/CHANGELOG.md +13 -0
  57. package/node_modules/is-core-module/core.json +1 -0
  58. package/node_modules/is-core-module/package.json +3 -3
  59. package/node_modules/is-core-module/test/index.js +3 -0
  60. package/node_modules/math-intrinsics/.eslintrc +16 -0
  61. package/node_modules/math-intrinsics/.github/FUNDING.yml +12 -0
  62. package/node_modules/math-intrinsics/CHANGELOG.md +24 -0
  63. package/node_modules/{set-function-length → math-intrinsics}/LICENSE +1 -1
  64. package/node_modules/math-intrinsics/README.md +50 -0
  65. package/node_modules/math-intrinsics/abs.d.ts +1 -0
  66. package/node_modules/math-intrinsics/abs.js +4 -0
  67. package/node_modules/math-intrinsics/constants/maxArrayLength.d.ts +3 -0
  68. package/node_modules/math-intrinsics/constants/maxArrayLength.js +4 -0
  69. package/node_modules/math-intrinsics/constants/maxSafeInteger.d.ts +3 -0
  70. package/node_modules/math-intrinsics/constants/maxSafeInteger.js +5 -0
  71. package/node_modules/math-intrinsics/constants/maxValue.d.ts +3 -0
  72. package/node_modules/math-intrinsics/constants/maxValue.js +5 -0
  73. package/node_modules/math-intrinsics/floor.d.ts +1 -0
  74. package/node_modules/math-intrinsics/floor.js +4 -0
  75. package/node_modules/math-intrinsics/isFinite.d.ts +3 -0
  76. package/node_modules/math-intrinsics/isFinite.js +12 -0
  77. package/node_modules/math-intrinsics/isInteger.d.ts +3 -0
  78. package/node_modules/math-intrinsics/isInteger.js +16 -0
  79. package/node_modules/math-intrinsics/isNaN.d.ts +1 -0
  80. package/node_modules/math-intrinsics/isNaN.js +6 -0
  81. package/node_modules/math-intrinsics/isNegativeZero.d.ts +3 -0
  82. package/node_modules/math-intrinsics/isNegativeZero.js +6 -0
  83. package/node_modules/math-intrinsics/max.d.ts +1 -0
  84. package/node_modules/math-intrinsics/max.js +4 -0
  85. package/node_modules/math-intrinsics/min.d.ts +1 -0
  86. package/node_modules/math-intrinsics/min.js +4 -0
  87. package/node_modules/math-intrinsics/mod.d.ts +3 -0
  88. package/node_modules/math-intrinsics/mod.js +9 -0
  89. package/node_modules/math-intrinsics/package.json +86 -0
  90. package/node_modules/math-intrinsics/pow.d.ts +1 -0
  91. package/node_modules/math-intrinsics/pow.js +4 -0
  92. package/node_modules/math-intrinsics/round.d.ts +1 -0
  93. package/node_modules/math-intrinsics/round.js +4 -0
  94. package/node_modules/math-intrinsics/sign.d.ts +3 -0
  95. package/node_modules/math-intrinsics/sign.js +11 -0
  96. package/node_modules/math-intrinsics/test/index.js +192 -0
  97. package/node_modules/math-intrinsics/tsconfig.json +3 -0
  98. package/node_modules/object-inspect/CHANGELOG.md +8 -0
  99. package/node_modules/object-inspect/index.js +10 -7
  100. package/node_modules/object-inspect/package.json +5 -4
  101. package/node_modules/object-inspect/test/values.js +50 -0
  102. package/node_modules/resolve/lib/core.json +4 -0
  103. package/node_modules/resolve/package.json +12 -9
  104. package/node_modules/side-channel/.eslintrc +1 -0
  105. package/node_modules/side-channel/CHANGELOG.md +15 -0
  106. package/node_modules/side-channel/README.md +60 -1
  107. package/node_modules/side-channel/index.d.ts +9 -22
  108. package/node_modules/side-channel/index.js +20 -106
  109. package/node_modules/side-channel/package.json +20 -19
  110. package/node_modules/side-channel/test/index.js +76 -55
  111. package/node_modules/side-channel/tsconfig.json +2 -43
  112. package/node_modules/side-channel-list/.editorconfig +9 -0
  113. package/node_modules/side-channel-list/.eslintrc +11 -0
  114. package/node_modules/{has-property-descriptors → side-channel-list}/.github/FUNDING.yml +1 -1
  115. package/node_modules/side-channel-list/CHANGELOG.md +15 -0
  116. package/node_modules/side-channel-list/LICENSE +21 -0
  117. package/node_modules/side-channel-list/README.md +62 -0
  118. package/node_modules/side-channel-list/index.d.ts +13 -0
  119. package/node_modules/side-channel-list/index.js +113 -0
  120. package/node_modules/side-channel-list/list.d.ts +14 -0
  121. package/node_modules/side-channel-list/package.json +77 -0
  122. package/node_modules/side-channel-list/test/index.js +104 -0
  123. package/node_modules/side-channel-map/.editorconfig +9 -0
  124. package/node_modules/side-channel-map/.eslintrc +11 -0
  125. package/node_modules/side-channel-map/.github/FUNDING.yml +12 -0
  126. package/node_modules/side-channel-map/CHANGELOG.md +22 -0
  127. package/node_modules/side-channel-map/LICENSE +21 -0
  128. package/node_modules/side-channel-map/README.md +62 -0
  129. package/node_modules/side-channel-map/index.d.ts +15 -0
  130. package/node_modules/side-channel-map/index.js +68 -0
  131. package/node_modules/side-channel-map/package.json +80 -0
  132. package/node_modules/side-channel-map/test/index.js +114 -0
  133. package/node_modules/side-channel-map/tsconfig.json +9 -0
  134. package/node_modules/side-channel-weakmap/.editorconfig +9 -0
  135. package/node_modules/side-channel-weakmap/.eslintrc +12 -0
  136. package/node_modules/side-channel-weakmap/.github/FUNDING.yml +12 -0
  137. package/node_modules/side-channel-weakmap/.nycrc +13 -0
  138. package/node_modules/side-channel-weakmap/CHANGELOG.md +28 -0
  139. package/node_modules/side-channel-weakmap/LICENSE +21 -0
  140. package/node_modules/side-channel-weakmap/README.md +62 -0
  141. package/node_modules/side-channel-weakmap/index.d.ts +15 -0
  142. package/node_modules/side-channel-weakmap/index.js +84 -0
  143. package/node_modules/side-channel-weakmap/package.json +87 -0
  144. package/node_modules/side-channel-weakmap/test/index.js +114 -0
  145. package/node_modules/side-channel-weakmap/tsconfig.json +9 -0
  146. package/node_modules/yaml/README.md +27 -8
  147. package/node_modules/yaml/browser/dist/compose/resolve-props.js +1 -1
  148. package/node_modules/yaml/browser/dist/log.js +1 -4
  149. package/node_modules/yaml/browser/dist/schema/yaml-1.1/binary.js +2 -11
  150. package/node_modules/yaml/browser/dist/util.js +1 -1
  151. package/node_modules/yaml/dist/compose/compose-collection.d.ts +4 -4
  152. package/node_modules/yaml/dist/compose/compose-doc.d.ts +6 -6
  153. package/node_modules/yaml/dist/compose/compose-node.d.ts +7 -7
  154. package/node_modules/yaml/dist/compose/compose-scalar.d.ts +4 -4
  155. package/node_modules/yaml/dist/compose/composer.d.ts +7 -6
  156. package/node_modules/yaml/dist/compose/composer.js +2 -1
  157. package/node_modules/yaml/dist/compose/resolve-block-map.d.ts +5 -5
  158. package/node_modules/yaml/dist/compose/resolve-block-scalar.d.ts +5 -5
  159. package/node_modules/yaml/dist/compose/resolve-block-seq.d.ts +5 -5
  160. package/node_modules/yaml/dist/compose/resolve-end.d.ts +2 -2
  161. package/node_modules/yaml/dist/compose/resolve-flow-collection.d.ts +7 -7
  162. package/node_modules/yaml/dist/compose/resolve-flow-scalar.d.ts +4 -4
  163. package/node_modules/yaml/dist/compose/resolve-props.d.ts +2 -2
  164. package/node_modules/yaml/dist/compose/resolve-props.js +1 -1
  165. package/node_modules/yaml/dist/compose/util-contains-newline.d.ts +1 -1
  166. package/node_modules/yaml/dist/compose/util-empty-scalar-position.d.ts +1 -1
  167. package/node_modules/yaml/dist/compose/util-flow-indent-check.d.ts +2 -2
  168. package/node_modules/yaml/dist/compose/util-map-includes.d.ts +3 -3
  169. package/node_modules/yaml/dist/doc/Document.d.ts +11 -11
  170. package/node_modules/yaml/dist/doc/anchors.d.ts +2 -2
  171. package/node_modules/yaml/dist/doc/createNode.d.ts +4 -4
  172. package/node_modules/yaml/dist/doc/directives.d.ts +1 -1
  173. package/node_modules/yaml/dist/index.d.ts +21 -18
  174. package/node_modules/yaml/dist/log.js +4 -2
  175. package/node_modules/yaml/dist/nodes/Alias.d.ts +9 -8
  176. package/node_modules/yaml/dist/nodes/Collection.d.ts +4 -4
  177. package/node_modules/yaml/dist/nodes/Node.d.ts +10 -10
  178. package/node_modules/yaml/dist/nodes/Pair.d.ts +9 -8
  179. package/node_modules/yaml/dist/nodes/Scalar.d.ts +4 -3
  180. package/node_modules/yaml/dist/nodes/YAMLMap.d.ts +10 -10
  181. package/node_modules/yaml/dist/nodes/YAMLSeq.d.ts +10 -10
  182. package/node_modules/yaml/dist/nodes/addPairToJSMap.d.ts +3 -3
  183. package/node_modules/yaml/dist/nodes/identity.d.ts +7 -7
  184. package/node_modules/yaml/dist/nodes/toJS.d.ts +2 -2
  185. package/node_modules/yaml/dist/options.d.ts +10 -10
  186. package/node_modules/yaml/dist/parse/cst-scalar.d.ts +4 -4
  187. package/node_modules/yaml/dist/parse/cst-stringify.d.ts +1 -1
  188. package/node_modules/yaml/dist/parse/cst-visit.d.ts +2 -2
  189. package/node_modules/yaml/dist/parse/cst.d.ts +4 -3
  190. package/node_modules/yaml/dist/parse/lexer.d.ts +1 -1
  191. package/node_modules/yaml/dist/parse/parser.d.ts +4 -4
  192. package/node_modules/yaml/dist/parse/parser.js +2 -1
  193. package/node_modules/yaml/dist/public-api.d.ts +6 -5
  194. package/node_modules/yaml/dist/schema/Schema.d.ts +4 -4
  195. package/node_modules/yaml/dist/schema/common/map.d.ts +1 -1
  196. package/node_modules/yaml/dist/schema/common/null.d.ts +1 -1
  197. package/node_modules/yaml/dist/schema/common/seq.d.ts +1 -1
  198. package/node_modules/yaml/dist/schema/common/string.d.ts +1 -1
  199. package/node_modules/yaml/dist/schema/core/bool.d.ts +1 -1
  200. package/node_modules/yaml/dist/schema/core/float.d.ts +1 -1
  201. package/node_modules/yaml/dist/schema/core/int.d.ts +1 -1
  202. package/node_modules/yaml/dist/schema/core/schema.d.ts +1 -1
  203. package/node_modules/yaml/dist/schema/json/schema.d.ts +1 -1
  204. package/node_modules/yaml/dist/schema/tags.d.ts +2 -2
  205. package/node_modules/yaml/dist/schema/types.d.ts +8 -8
  206. package/node_modules/yaml/dist/schema/yaml-1.1/binary.d.ts +1 -1
  207. package/node_modules/yaml/dist/schema/yaml-1.1/binary.js +6 -5
  208. package/node_modules/yaml/dist/schema/yaml-1.1/bool.d.ts +1 -1
  209. package/node_modules/yaml/dist/schema/yaml-1.1/float.d.ts +1 -1
  210. package/node_modules/yaml/dist/schema/yaml-1.1/int.d.ts +1 -1
  211. package/node_modules/yaml/dist/schema/yaml-1.1/merge.d.ts +3 -3
  212. package/node_modules/yaml/dist/schema/yaml-1.1/omap.d.ts +11 -17
  213. package/node_modules/yaml/dist/schema/yaml-1.1/pairs.d.ts +7 -7
  214. package/node_modules/yaml/dist/schema/yaml-1.1/schema.d.ts +1 -1
  215. package/node_modules/yaml/dist/schema/yaml-1.1/set.d.ts +9 -9
  216. package/node_modules/yaml/dist/schema/yaml-1.1/timestamp.d.ts +1 -1
  217. package/node_modules/yaml/dist/stringify/stringify.d.ts +3 -3
  218. package/node_modules/yaml/dist/stringify/stringifyCollection.d.ts +2 -2
  219. package/node_modules/yaml/dist/stringify/stringifyDocument.d.ts +3 -3
  220. package/node_modules/yaml/dist/stringify/stringifyNumber.d.ts +1 -1
  221. package/node_modules/yaml/dist/stringify/stringifyPair.d.ts +2 -2
  222. package/node_modules/yaml/dist/stringify/stringifyString.d.ts +2 -2
  223. package/node_modules/yaml/dist/util.d.ts +16 -12
  224. package/node_modules/yaml/dist/util.js +2 -2
  225. package/node_modules/yaml/dist/visit.d.ts +7 -7
  226. package/node_modules/yaml/package.json +4 -4
  227. package/package.json +1 -1
  228. package/node_modules/call-bind/.eslintignore +0 -1
  229. package/node_modules/call-bind/CHANGELOG.md +0 -106
  230. package/node_modules/call-bind/README.md +0 -64
  231. package/node_modules/call-bind/callBound.js +0 -15
  232. package/node_modules/call-bind/index.js +0 -24
  233. package/node_modules/call-bind/test/index.js +0 -74
  234. package/node_modules/define-data-property/.eslintrc +0 -24
  235. package/node_modules/define-data-property/CHANGELOG.md +0 -70
  236. package/node_modules/define-data-property/README.md +0 -67
  237. package/node_modules/define-data-property/index.d.ts +0 -12
  238. package/node_modules/define-data-property/index.js +0 -56
  239. package/node_modules/define-data-property/package.json +0 -106
  240. package/node_modules/define-data-property/test/index.js +0 -392
  241. package/node_modules/define-data-property/tsconfig.json +0 -59
  242. package/node_modules/has-property-descriptors/.eslintrc +0 -13
  243. package/node_modules/has-property-descriptors/CHANGELOG.md +0 -35
  244. package/node_modules/has-property-descriptors/README.md +0 -43
  245. package/node_modules/has-property-descriptors/index.js +0 -22
  246. package/node_modules/has-property-descriptors/test/index.js +0 -57
  247. package/node_modules/set-function-length/.eslintrc +0 -27
  248. package/node_modules/set-function-length/CHANGELOG.md +0 -70
  249. package/node_modules/set-function-length/README.md +0 -56
  250. package/node_modules/set-function-length/env.d.ts +0 -9
  251. package/node_modules/set-function-length/env.js +0 -25
  252. package/node_modules/set-function-length/index.d.ts +0 -7
  253. package/node_modules/set-function-length/index.js +0 -42
  254. package/node_modules/set-function-length/package.json +0 -102
  255. /package/node_modules/{call-bind → call-bound}/.nycrc +0 -0
  256. /package/node_modules/{has-property-descriptors → get-proto}/.nycrc +0 -0
  257. /package/node_modules/{define-data-property → side-channel-list}/.nycrc +0 -0
  258. /package/node_modules/{set-function-length → side-channel-list}/tsconfig.json +0 -0
  259. /package/node_modules/{set-function-length → side-channel-map}/.nycrc +0 -0
@@ -1,70 +0,0 @@
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.2.2](https://github.com/ljharb/set-function-length/compare/v1.2.1...v1.2.2) - 2024-03-09
9
-
10
- ### Commits
11
-
12
- - [types] use shared config [`027032f`](https://github.com/ljharb/set-function-length/commit/027032fe9cc439644a07248ea6a8d813fcc767cb)
13
- - [actions] remove redundant finisher; use reusable workflow [`1fd4fb1`](https://github.com/ljharb/set-function-length/commit/1fd4fb1c58bd5170f0dcff7e320077c0aa2ffdeb)
14
- - [types] use a handwritten d.ts file instead of emit [`01b9761`](https://github.com/ljharb/set-function-length/commit/01b9761742c95e1118e8c2d153ce2ae43d9731aa)
15
- - [Deps] update `define-data-property`, `get-intrinsic`, `has-property-descriptors` [`bee8eaf`](https://github.com/ljharb/set-function-length/commit/bee8eaf7749f325357ade85cffeaeef679e513d4)
16
- - [Dev Deps] update `call-bind`, `tape` [`5dae579`](https://github.com/ljharb/set-function-length/commit/5dae579fdc3aab91b14ebb58f9c19ee3f509d434)
17
- - [Tests] use `@arethetypeswrong/cli` [`7e22425`](https://github.com/ljharb/set-function-length/commit/7e22425d15957fd3d6da0b6bca4afc0c8d255d2d)
18
-
19
- ## [v1.2.1](https://github.com/ljharb/set-function-length/compare/v1.2.0...v1.2.1) - 2024-02-06
20
-
21
- ### Commits
22
-
23
- - [Dev Deps] update `call-bind`, `tape`, `typescript` [`d9a4601`](https://github.com/ljharb/set-function-length/commit/d9a460199c4c1fa37da9ebe055e2c884128f0738)
24
- - [Deps] update `define-data-property`, `get-intrinsic` [`38d39ae`](https://github.com/ljharb/set-function-length/commit/38d39aed13a757ed36211d5b0437b88485090c6b)
25
- - [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)
26
-
27
- ## [v1.2.0](https://github.com/ljharb/set-function-length/compare/v1.1.1...v1.2.0) - 2024-01-14
28
-
29
- ### Commits
30
-
31
- - [New] add types [`f6d9088`](https://github.com/ljharb/set-function-length/commit/f6d9088b9283a3112b21c6776e8bef6d1f30558a)
32
- - [Fix] ensure `env` properties are always booleans [`0c42f84`](https://github.com/ljharb/set-function-length/commit/0c42f84979086389b3229e1b4272697fd352275a)
33
- - [Dev Deps] update `aud`, `call-bind`, `npmignore`, `tape` [`2b75f75`](https://github.com/ljharb/set-function-length/commit/2b75f75468093a4bb8ce8ca989b2edd2e80d95d1)
34
- - [Deps] update `get-intrinsic`, `has-property-descriptors` [`19bf0fc`](https://github.com/ljharb/set-function-length/commit/19bf0fc4ffaa5ad425acbfa150516be9f3b6263a)
35
- - [meta] add `sideEffects` flag [`8bb9b78`](https://github.com/ljharb/set-function-length/commit/8bb9b78c11c621123f725c9470222f43466c01d0)
36
-
37
- ## [v1.1.1](https://github.com/ljharb/set-function-length/compare/v1.1.0...v1.1.1) - 2023-10-19
38
-
39
- ### Fixed
40
-
41
- - [Fix] move `define-data-property` to runtime deps [`#2`](https://github.com/ljharb/set-function-length/issues/2)
42
-
43
- ### Commits
44
-
45
- - [Dev Deps] update `object-inspect`; add missing `call-bind` [`5aecf79`](https://github.com/ljharb/set-function-length/commit/5aecf79e7d6400957a5d9bd9ac20d4528908ca18)
46
-
47
- ## [v1.1.0](https://github.com/ljharb/set-function-length/compare/v1.0.1...v1.1.0) - 2023-10-13
48
-
49
- ### Commits
50
-
51
- - [New] add `env` entry point [`475c87a`](https://github.com/ljharb/set-function-length/commit/475c87aa2f59b700aaed589d980624ec596acdcb)
52
- - [Tests] add coverage with `nyc` [`14f0bf8`](https://github.com/ljharb/set-function-length/commit/14f0bf8c145ae60bf14a026420a06bb7be132c36)
53
- - [eslint] fix linting failure [`fb516f9`](https://github.com/ljharb/set-function-length/commit/fb516f93c664057138c53559ef63c8622a093335)
54
- - [Deps] update `define-data-property` [`d727e7c`](https://github.com/ljharb/set-function-length/commit/d727e7c6c9a40d7bf26797694e500ea68741feea)
55
-
56
- ## [v1.0.1](https://github.com/ljharb/set-function-length/compare/v1.0.0...v1.0.1) - 2023-10-12
57
-
58
- ### Commits
59
-
60
- - [Refactor] use `get-intrinsic`, since it‘s in the dep graph anyways [`278a954`](https://github.com/ljharb/set-function-length/commit/278a954a06cd849051c569ff7aee56df6798933e)
61
- - [meta] add `exports` [`72acfe5`](https://github.com/ljharb/set-function-length/commit/72acfe5a0310071fb205a72caba5ecbab24336a0)
62
-
63
- ## v1.0.0 - 2023-10-12
64
-
65
- ### Commits
66
-
67
- - Initial implementation, tests, readme [`fce14e1`](https://github.com/ljharb/set-function-length/commit/fce14e17586460e4f294405173be72b6ffdf7e5f)
68
- - Initial commit [`ca7ba85`](https://github.com/ljharb/set-function-length/commit/ca7ba857c7c283f9d26e21f14e71cd388f2cb722)
69
- - npm init [`6a7e493`](https://github.com/ljharb/set-function-length/commit/6a7e493927736cebcaf5c1a84e69b8e6b7b744d8)
70
- - Only apps should have lockfiles [`d2bf6c4`](https://github.com/ljharb/set-function-length/commit/d2bf6c43de8a51b02a0aa53e8d62cb50c4a2b0da)
@@ -1,56 +0,0 @@
1
- # set-function-length <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
- Set a function’s length.
11
-
12
- Arguments:
13
- - `fn`: the function
14
- - `length`: the new length. Must be an integer between 0 and 2**32.
15
- - `loose`: Optional. If true, and the length fails to be set, do not throw. Default false.
16
-
17
- Returns `fn`.
18
-
19
- ## Usage
20
-
21
- ```javascript
22
- var setFunctionLength = require('set-function-length');
23
- var assert = require('assert');
24
-
25
- function zero() {}
26
- function one(_) {}
27
- function two(_, __) {}
28
-
29
- assert.equal(zero.length, 0);
30
- assert.equal(one.length, 1);
31
- assert.equal(two.length, 2);
32
-
33
- assert.equal(setFunctionLength(zero, 10), zero);
34
- assert.equal(setFunctionLength(one, 11), one);
35
- assert.equal(setFunctionLength(two, 12), two);
36
-
37
- assert.equal(zero.length, 10);
38
- assert.equal(one.length, 11);
39
- assert.equal(two.length, 12);
40
- ```
41
-
42
- [package-url]: https://npmjs.org/package/set-function-length
43
- [npm-version-svg]: https://versionbadg.es/ljharb/set-function-length.svg
44
- [deps-svg]: https://david-dm.org/ljharb/set-function-length.svg
45
- [deps-url]: https://david-dm.org/ljharb/set-function-length
46
- [dev-deps-svg]: https://david-dm.org/ljharb/set-function-length/dev-status.svg
47
- [dev-deps-url]: https://david-dm.org/ljharb/set-function-length#info=devDependencies
48
- [npm-badge-png]: https://nodei.co/npm/set-function-length.png?downloads=true&stars=true
49
- [license-image]: https://img.shields.io/npm/l/set-function-length.svg
50
- [license-url]: LICENSE
51
- [downloads-image]: https://img.shields.io/npm/dm/set-function-length.svg
52
- [downloads-url]: https://npm-stat.com/charts.html?package=set-function-length
53
- [codecov-image]: https://codecov.io/gh/ljharb/set-function-length/branch/main/graphs/badge.svg
54
- [codecov-url]: https://app.codecov.io/gh/ljharb/set-function-length/
55
- [actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/ljharb/set-function-length
56
- [actions-url]: https://github.com/ljharb/set-function-length/actions
@@ -1,9 +0,0 @@
1
- declare const env: {
2
- __proto__: null,
3
- boundFnsHaveConfigurableLengths: boolean;
4
- boundFnsHaveWritableLengths: boolean;
5
- functionsHaveConfigurableLengths: boolean;
6
- functionsHaveWritableLengths: boolean;
7
- };
8
-
9
- export = env;
@@ -1,25 +0,0 @@
1
- 'use strict';
2
-
3
- var gOPD = require('gopd');
4
- var bind = require('function-bind');
5
-
6
- var unbound = gOPD && gOPD(function () {}, 'length');
7
- // @ts-expect-error ts(2555) TS is overly strict with .call
8
- var bound = gOPD && gOPD(bind.call(function () {}), 'length');
9
-
10
- var functionsHaveConfigurableLengths = !!(unbound && unbound.configurable);
11
-
12
- var functionsHaveWritableLengths = !!(unbound && unbound.writable);
13
-
14
- var boundFnsHaveConfigurableLengths = !!(bound && bound.configurable);
15
-
16
- var boundFnsHaveWritableLengths = !!(bound && bound.writable);
17
-
18
- /** @type {import('./env')} */
19
- module.exports = {
20
- __proto__: null,
21
- boundFnsHaveConfigurableLengths: boundFnsHaveConfigurableLengths,
22
- boundFnsHaveWritableLengths: boundFnsHaveWritableLengths,
23
- functionsHaveConfigurableLengths: functionsHaveConfigurableLengths,
24
- functionsHaveWritableLengths: functionsHaveWritableLengths
25
- };
@@ -1,7 +0,0 @@
1
- declare namespace setFunctionLength {
2
- type Func = (...args: unknown[]) => unknown;
3
- }
4
-
5
- declare function setFunctionLength<T extends setFunctionLength.Func = setFunctionLength.Func>(fn: T, length: number, loose?: boolean): T;
6
-
7
- export = setFunctionLength;
@@ -1,42 +0,0 @@
1
- 'use strict';
2
-
3
- var GetIntrinsic = require('get-intrinsic');
4
- var define = require('define-data-property');
5
- var hasDescriptors = require('has-property-descriptors')();
6
- var gOPD = require('gopd');
7
-
8
- var $TypeError = require('es-errors/type');
9
- var $floor = GetIntrinsic('%Math.floor%');
10
-
11
- /** @type {import('.')} */
12
- module.exports = function setFunctionLength(fn, length) {
13
- if (typeof fn !== 'function') {
14
- throw new $TypeError('`fn` is not a function');
15
- }
16
- if (typeof length !== 'number' || length < 0 || length > 0xFFFFFFFF || $floor(length) !== length) {
17
- throw new $TypeError('`length` must be a positive 32-bit integer');
18
- }
19
-
20
- var loose = arguments.length > 2 && !!arguments[2];
21
-
22
- var functionLengthIsConfigurable = true;
23
- var functionLengthIsWritable = true;
24
- if ('length' in fn && gOPD) {
25
- var desc = gOPD(fn, 'length');
26
- if (desc && !desc.configurable) {
27
- functionLengthIsConfigurable = false;
28
- }
29
- if (desc && !desc.writable) {
30
- functionLengthIsWritable = false;
31
- }
32
- }
33
-
34
- if (functionLengthIsConfigurable || functionLengthIsWritable || !loose) {
35
- if (hasDescriptors) {
36
- define(/** @type {Parameters<define>[0]} */ (fn), 'length', length, true, true);
37
- } else {
38
- define(/** @type {Parameters<define>[0]} */ (fn), 'length', length);
39
- }
40
- }
41
- return fn;
42
- };
@@ -1,102 +0,0 @@
1
- {
2
- "name": "set-function-length",
3
- "version": "1.2.2",
4
- "description": "Set a function's length property",
5
- "main": "index.js",
6
- "exports": {
7
- ".": "./index.js",
8
- "./env": "./env.js",
9
- "./package.json": "./package.json"
10
- },
11
- "sideEffects": false,
12
- "directories": {
13
- "test": "test"
14
- },
15
- "scripts": {
16
- "prepack": "npmignore --auto --commentLines=autogenerated",
17
- "prepublish": "not-in-publish || npm run prepublishOnly",
18
- "prepublishOnly": "safe-publish-latest",
19
- "tsc": "tsc -p .",
20
- "posttsc": "attw -P",
21
- "prelint": "evalmd README.md",
22
- "lint": "eslint --ext=js,mjs .",
23
- "postlint": "npm run tsc",
24
- "pretest": "npm run lint",
25
- "tests-only": "nyc tape 'test/**/*.js'",
26
- "test": "npm run tests-only",
27
- "posttest": "aud --production",
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/set-function-length.git"
34
- },
35
- "keywords": [
36
- "javascript",
37
- "ecmascript",
38
- "set",
39
- "function",
40
- "length",
41
- "function.length"
42
- ],
43
- "author": "Jordan Harband <ljharb@gmail.com>",
44
- "license": "MIT",
45
- "bugs": {
46
- "url": "https://github.com/ljharb/set-function-length/issues"
47
- },
48
- "homepage": "https://github.com/ljharb/set-function-length#readme",
49
- "dependencies": {
50
- "define-data-property": "^1.1.4",
51
- "es-errors": "^1.3.0",
52
- "function-bind": "^1.1.2",
53
- "get-intrinsic": "^1.2.4",
54
- "gopd": "^1.0.1",
55
- "has-property-descriptors": "^1.0.2"
56
- },
57
- "devDependencies": {
58
- "@arethetypeswrong/cli": "^0.15.1",
59
- "@ljharb/eslint-config": "^21.1.0",
60
- "@ljharb/tsconfig": "^0.1.1",
61
- "@types/call-bind": "^1.0.5",
62
- "@types/define-properties": "^1.1.5",
63
- "@types/es-value-fixtures": "^1.4.4",
64
- "@types/for-each": "^0.3.3",
65
- "@types/function-bind": "^1.1.10",
66
- "@types/gopd": "^1.0.3",
67
- "@types/has-property-descriptors": "^1.0.3",
68
- "@types/object-inspect": "^1.8.4",
69
- "@types/tape": "^5.6.4",
70
- "aud": "^2.0.4",
71
- "auto-changelog": "^2.4.0",
72
- "call-bind": "^1.0.7",
73
- "es-value-fixtures": "^1.4.2",
74
- "eslint": "=8.8.0",
75
- "evalmd": "^0.0.19",
76
- "for-each": "^0.3.3",
77
- "in-publish": "^2.0.1",
78
- "npmignore": "^0.3.1",
79
- "nyc": "^10.3.2",
80
- "object-inspect": "^1.13.1",
81
- "safe-publish-latest": "^2.0.0",
82
- "tape": "^5.7.5",
83
- "typescript": "next"
84
- },
85
- "engines": {
86
- "node": ">= 0.4"
87
- },
88
- "auto-changelog": {
89
- "output": "CHANGELOG.md",
90
- "template": "keepachangelog",
91
- "unreleased": false,
92
- "commitLimit": false,
93
- "backfillLimit": false,
94
- "hideCredit": true
95
- },
96
- "publishConfig": {
97
- "ignore": [
98
- ".github/workflows",
99
- "test"
100
- ]
101
- }
102
- }
File without changes