step-node-agent 3.26.3 → 3.26.5-CustomizedJv2

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 (345) hide show
  1. package/node_modules/{has-property-descriptors → call-bind-apply-helpers}/.github/FUNDING.yml +1 -1
  2. package/node_modules/call-bind-apply-helpers/CHANGELOG.md +23 -0
  3. package/node_modules/{call-bind → call-bind-apply-helpers}/LICENSE +1 -1
  4. package/node_modules/call-bind-apply-helpers/README.md +62 -0
  5. package/node_modules/call-bind-apply-helpers/actualApply.d.ts +1 -0
  6. package/node_modules/call-bind-apply-helpers/actualApply.js +10 -0
  7. package/node_modules/call-bind-apply-helpers/applyBind.d.ts +19 -0
  8. package/node_modules/call-bind-apply-helpers/applyBind.js +10 -0
  9. package/node_modules/call-bind-apply-helpers/functionApply.d.ts +1 -0
  10. package/node_modules/call-bind-apply-helpers/functionApply.js +4 -0
  11. package/node_modules/call-bind-apply-helpers/functionCall.d.ts +1 -0
  12. package/node_modules/call-bind-apply-helpers/functionCall.js +4 -0
  13. package/node_modules/call-bind-apply-helpers/index.d.ts +46 -0
  14. package/node_modules/call-bind-apply-helpers/index.js +15 -0
  15. package/node_modules/call-bind-apply-helpers/package.json +85 -0
  16. package/node_modules/call-bind-apply-helpers/reflectApply.d.ts +3 -0
  17. package/node_modules/call-bind-apply-helpers/reflectApply.js +4 -0
  18. package/node_modules/call-bind-apply-helpers/test/index.js +63 -0
  19. package/node_modules/call-bind-apply-helpers/tsconfig.json +9 -0
  20. package/node_modules/call-bound/.eslintrc +13 -0
  21. package/node_modules/{call-bind → call-bound}/.github/FUNDING.yml +1 -1
  22. package/node_modules/call-bound/CHANGELOG.md +34 -0
  23. package/node_modules/{has-property-descriptors → call-bound}/LICENSE +1 -1
  24. package/node_modules/call-bound/README.md +53 -0
  25. package/node_modules/call-bound/index.d.ts +13 -0
  26. package/node_modules/call-bound/index.js +18 -0
  27. package/node_modules/{call-bind → call-bound}/package.json +27 -23
  28. package/node_modules/{call-bind/test/callBound.js → call-bound/test/index.js} +1 -1
  29. package/node_modules/{define-data-property → dunder-proto}/.github/FUNDING.yml +1 -1
  30. package/node_modules/dunder-proto/CHANGELOG.md +24 -0
  31. package/node_modules/dunder-proto/LICENSE +21 -0
  32. package/node_modules/dunder-proto/README.md +54 -0
  33. package/node_modules/dunder-proto/get.d.ts +5 -0
  34. package/node_modules/dunder-proto/get.js +30 -0
  35. package/node_modules/{has-proto → dunder-proto}/package.json +34 -36
  36. package/node_modules/dunder-proto/set.d.ts +5 -0
  37. package/node_modules/dunder-proto/set.js +35 -0
  38. package/node_modules/dunder-proto/test/get.js +34 -0
  39. package/node_modules/dunder-proto/test/index.js +4 -0
  40. package/node_modules/dunder-proto/test/set.js +50 -0
  41. package/node_modules/dunder-proto/tsconfig.json +9 -0
  42. package/node_modules/es-define-property/CHANGELOG.md +14 -0
  43. package/node_modules/es-define-property/index.js +1 -3
  44. package/node_modules/es-define-property/package.json +12 -12
  45. package/node_modules/es-define-property/test/index.js +1 -0
  46. package/node_modules/es-define-property/tsconfig.json +2 -42
  47. package/node_modules/es-object-atoms/.eslintrc +16 -0
  48. package/node_modules/{set-function-length → es-object-atoms}/.github/FUNDING.yml +1 -1
  49. package/node_modules/es-object-atoms/CHANGELOG.md +37 -0
  50. package/node_modules/{define-data-property → es-object-atoms}/LICENSE +1 -1
  51. package/node_modules/es-object-atoms/README.md +63 -0
  52. package/node_modules/es-object-atoms/RequireObjectCoercible.d.ts +3 -0
  53. package/node_modules/es-object-atoms/RequireObjectCoercible.js +11 -0
  54. package/node_modules/es-object-atoms/ToObject.d.ts +7 -0
  55. package/node_modules/es-object-atoms/ToObject.js +10 -0
  56. package/node_modules/es-object-atoms/index.d.ts +3 -0
  57. package/node_modules/es-object-atoms/index.js +4 -0
  58. package/node_modules/es-object-atoms/isObject.d.ts +3 -0
  59. package/node_modules/es-object-atoms/isObject.js +6 -0
  60. package/node_modules/es-object-atoms/package.json +80 -0
  61. package/node_modules/es-object-atoms/test/index.js +38 -0
  62. package/node_modules/es-object-atoms/tsconfig.json +6 -0
  63. package/node_modules/express/History.md +10 -1
  64. package/node_modules/express/package.json +6 -2
  65. package/node_modules/get-intrinsic/CHANGELOG.md +35 -0
  66. package/node_modules/get-intrinsic/index.js +39 -21
  67. package/node_modules/get-intrinsic/package.json +23 -19
  68. package/node_modules/get-intrinsic/test/GetIntrinsic.js +2 -2
  69. package/node_modules/get-proto/.eslintrc +10 -0
  70. package/node_modules/{has-proto → get-proto}/.github/FUNDING.yml +1 -1
  71. package/node_modules/get-proto/.nycrc +9 -0
  72. package/node_modules/get-proto/CHANGELOG.md +21 -0
  73. package/node_modules/{has-proto → get-proto}/LICENSE +1 -1
  74. package/node_modules/get-proto/Object.getPrototypeOf.d.ts +5 -0
  75. package/node_modules/get-proto/Object.getPrototypeOf.js +6 -0
  76. package/node_modules/get-proto/README.md +50 -0
  77. package/node_modules/get-proto/Reflect.getPrototypeOf.d.ts +3 -0
  78. package/node_modules/get-proto/Reflect.getPrototypeOf.js +4 -0
  79. package/node_modules/get-proto/index.d.ts +5 -0
  80. package/node_modules/get-proto/index.js +27 -0
  81. package/node_modules/{has-property-descriptors → get-proto}/package.json +35 -31
  82. package/node_modules/get-proto/test/index.js +68 -0
  83. package/node_modules/get-proto/tsconfig.json +9 -0
  84. package/node_modules/gopd/CHANGELOG.md +20 -0
  85. package/node_modules/gopd/gOPD.d.ts +1 -0
  86. package/node_modules/gopd/gOPD.js +4 -0
  87. package/node_modules/gopd/index.d.ts +5 -0
  88. package/node_modules/gopd/index.js +2 -3
  89. package/node_modules/gopd/package.json +16 -10
  90. package/node_modules/gopd/test/index.js +2 -1
  91. package/node_modules/gopd/tsconfig.json +9 -0
  92. package/node_modules/has-symbols/CHANGELOG.md +16 -0
  93. package/node_modules/has-symbols/index.d.ts +3 -0
  94. package/node_modules/has-symbols/index.js +1 -0
  95. package/node_modules/has-symbols/package.json +19 -9
  96. package/node_modules/has-symbols/shams.d.ts +3 -0
  97. package/node_modules/has-symbols/shams.js +5 -2
  98. package/node_modules/has-symbols/test/shams/core-js.js +1 -0
  99. package/node_modules/has-symbols/test/shams/get-own-property-symbols.js +1 -0
  100. package/node_modules/has-symbols/test/tests.js +4 -2
  101. package/node_modules/has-symbols/tsconfig.json +10 -0
  102. package/node_modules/is-core-module/CHANGELOG.md +13 -0
  103. package/node_modules/is-core-module/core.json +1 -0
  104. package/node_modules/is-core-module/package.json +3 -3
  105. package/node_modules/is-core-module/test/index.js +3 -0
  106. package/node_modules/math-intrinsics/.eslintrc +16 -0
  107. package/node_modules/math-intrinsics/.github/FUNDING.yml +12 -0
  108. package/node_modules/math-intrinsics/CHANGELOG.md +24 -0
  109. package/node_modules/math-intrinsics/LICENSE +21 -0
  110. package/node_modules/math-intrinsics/README.md +50 -0
  111. package/node_modules/math-intrinsics/abs.d.ts +1 -0
  112. package/node_modules/math-intrinsics/abs.js +4 -0
  113. package/node_modules/math-intrinsics/constants/maxArrayLength.d.ts +3 -0
  114. package/node_modules/math-intrinsics/constants/maxArrayLength.js +4 -0
  115. package/node_modules/math-intrinsics/constants/maxSafeInteger.d.ts +3 -0
  116. package/node_modules/math-intrinsics/constants/maxSafeInteger.js +5 -0
  117. package/node_modules/math-intrinsics/constants/maxValue.d.ts +3 -0
  118. package/node_modules/math-intrinsics/constants/maxValue.js +5 -0
  119. package/node_modules/math-intrinsics/floor.d.ts +1 -0
  120. package/node_modules/math-intrinsics/floor.js +4 -0
  121. package/node_modules/math-intrinsics/isFinite.d.ts +3 -0
  122. package/node_modules/math-intrinsics/isFinite.js +12 -0
  123. package/node_modules/math-intrinsics/isInteger.d.ts +3 -0
  124. package/node_modules/math-intrinsics/isInteger.js +16 -0
  125. package/node_modules/math-intrinsics/isNaN.d.ts +1 -0
  126. package/node_modules/math-intrinsics/isNaN.js +6 -0
  127. package/node_modules/math-intrinsics/isNegativeZero.d.ts +3 -0
  128. package/node_modules/math-intrinsics/isNegativeZero.js +6 -0
  129. package/node_modules/math-intrinsics/max.d.ts +1 -0
  130. package/node_modules/math-intrinsics/max.js +4 -0
  131. package/node_modules/math-intrinsics/min.d.ts +1 -0
  132. package/node_modules/math-intrinsics/min.js +4 -0
  133. package/node_modules/math-intrinsics/mod.d.ts +3 -0
  134. package/node_modules/math-intrinsics/mod.js +9 -0
  135. package/node_modules/math-intrinsics/package.json +86 -0
  136. package/node_modules/math-intrinsics/pow.d.ts +1 -0
  137. package/node_modules/math-intrinsics/pow.js +4 -0
  138. package/node_modules/math-intrinsics/round.d.ts +1 -0
  139. package/node_modules/math-intrinsics/round.js +4 -0
  140. package/node_modules/math-intrinsics/sign.d.ts +3 -0
  141. package/node_modules/math-intrinsics/sign.js +11 -0
  142. package/node_modules/math-intrinsics/test/index.js +192 -0
  143. package/node_modules/math-intrinsics/tsconfig.json +3 -0
  144. package/node_modules/object-inspect/CHANGELOG.md +8 -0
  145. package/node_modules/object-inspect/index.js +10 -7
  146. package/node_modules/object-inspect/package.json +5 -4
  147. package/node_modules/object-inspect/test/values.js +50 -0
  148. package/node_modules/path-to-regexp/index.js +13 -3
  149. package/node_modules/path-to-regexp/package.json +1 -1
  150. package/node_modules/psl/README.md +75 -31
  151. package/node_modules/psl/SECURITY.md +13 -0
  152. package/node_modules/psl/data/rules.js +9778 -0
  153. package/node_modules/psl/dist/psl.cjs +1 -0
  154. package/node_modules/psl/dist/psl.mjs +10008 -0
  155. package/node_modules/psl/dist/psl.umd.cjs +1 -0
  156. package/node_modules/psl/index.js +59 -81
  157. package/node_modules/psl/package.json +24 -15
  158. package/node_modules/psl/types/index.d.ts +52 -0
  159. package/node_modules/psl/types/test.ts +14 -0
  160. package/node_modules/psl/types/tsconfig.json +22 -0
  161. package/node_modules/psl/vite.config.js +20 -0
  162. package/node_modules/resolve/lib/core.json +4 -0
  163. package/node_modules/resolve/package.json +12 -9
  164. package/node_modules/side-channel/.eslintrc +1 -0
  165. package/node_modules/side-channel/CHANGELOG.md +15 -0
  166. package/node_modules/side-channel/README.md +60 -1
  167. package/node_modules/side-channel/index.d.ts +9 -22
  168. package/node_modules/side-channel/index.js +20 -106
  169. package/node_modules/side-channel/package.json +20 -19
  170. package/node_modules/side-channel/test/index.js +76 -55
  171. package/node_modules/side-channel/tsconfig.json +2 -43
  172. package/node_modules/side-channel-list/.editorconfig +9 -0
  173. package/node_modules/side-channel-list/.eslintrc +11 -0
  174. package/node_modules/side-channel-list/.github/FUNDING.yml +12 -0
  175. package/node_modules/side-channel-list/CHANGELOG.md +15 -0
  176. package/node_modules/side-channel-list/LICENSE +21 -0
  177. package/node_modules/side-channel-list/README.md +62 -0
  178. package/node_modules/side-channel-list/index.d.ts +13 -0
  179. package/node_modules/side-channel-list/index.js +113 -0
  180. package/node_modules/side-channel-list/list.d.ts +14 -0
  181. package/node_modules/side-channel-list/package.json +77 -0
  182. package/node_modules/side-channel-list/test/index.js +104 -0
  183. package/node_modules/side-channel-list/tsconfig.json +9 -0
  184. package/node_modules/side-channel-map/.editorconfig +9 -0
  185. package/node_modules/side-channel-map/.eslintrc +11 -0
  186. package/node_modules/side-channel-map/.github/FUNDING.yml +12 -0
  187. package/node_modules/side-channel-map/.nycrc +13 -0
  188. package/node_modules/side-channel-map/CHANGELOG.md +22 -0
  189. package/node_modules/side-channel-map/LICENSE +21 -0
  190. package/node_modules/side-channel-map/README.md +62 -0
  191. package/node_modules/side-channel-map/index.d.ts +15 -0
  192. package/node_modules/side-channel-map/index.js +68 -0
  193. package/node_modules/side-channel-map/package.json +80 -0
  194. package/node_modules/side-channel-map/test/index.js +114 -0
  195. package/node_modules/side-channel-map/tsconfig.json +9 -0
  196. package/node_modules/side-channel-weakmap/.editorconfig +9 -0
  197. package/node_modules/side-channel-weakmap/.eslintrc +12 -0
  198. package/node_modules/side-channel-weakmap/.github/FUNDING.yml +12 -0
  199. package/node_modules/side-channel-weakmap/.nycrc +13 -0
  200. package/node_modules/side-channel-weakmap/CHANGELOG.md +28 -0
  201. package/node_modules/side-channel-weakmap/LICENSE +21 -0
  202. package/node_modules/side-channel-weakmap/README.md +62 -0
  203. package/node_modules/side-channel-weakmap/index.d.ts +15 -0
  204. package/node_modules/side-channel-weakmap/index.js +84 -0
  205. package/node_modules/side-channel-weakmap/package.json +87 -0
  206. package/node_modules/side-channel-weakmap/test/index.js +114 -0
  207. package/node_modules/side-channel-weakmap/tsconfig.json +9 -0
  208. package/node_modules/yaml/README.md +27 -8
  209. package/node_modules/yaml/browser/dist/compose/resolve-props.js +1 -1
  210. package/node_modules/yaml/browser/dist/log.js +1 -4
  211. package/node_modules/yaml/browser/dist/schema/json/schema.js +1 -1
  212. package/node_modules/yaml/browser/dist/schema/yaml-1.1/binary.js +2 -11
  213. package/node_modules/yaml/browser/dist/schema/yaml-1.1/timestamp.js +1 -1
  214. package/node_modules/yaml/browser/dist/stringify/stringifyString.js +20 -11
  215. package/node_modules/yaml/browser/dist/util.js +1 -1
  216. package/node_modules/yaml/dist/compose/compose-collection.d.ts +4 -4
  217. package/node_modules/yaml/dist/compose/compose-doc.d.ts +6 -6
  218. package/node_modules/yaml/dist/compose/compose-node.d.ts +7 -7
  219. package/node_modules/yaml/dist/compose/compose-scalar.d.ts +4 -4
  220. package/node_modules/yaml/dist/compose/composer.d.ts +7 -6
  221. package/node_modules/yaml/dist/compose/composer.js +2 -1
  222. package/node_modules/yaml/dist/compose/resolve-block-map.d.ts +5 -5
  223. package/node_modules/yaml/dist/compose/resolve-block-scalar.d.ts +5 -5
  224. package/node_modules/yaml/dist/compose/resolve-block-seq.d.ts +5 -5
  225. package/node_modules/yaml/dist/compose/resolve-end.d.ts +2 -2
  226. package/node_modules/yaml/dist/compose/resolve-flow-collection.d.ts +7 -7
  227. package/node_modules/yaml/dist/compose/resolve-flow-scalar.d.ts +4 -4
  228. package/node_modules/yaml/dist/compose/resolve-props.d.ts +2 -2
  229. package/node_modules/yaml/dist/compose/resolve-props.js +1 -1
  230. package/node_modules/yaml/dist/compose/util-contains-newline.d.ts +1 -1
  231. package/node_modules/yaml/dist/compose/util-empty-scalar-position.d.ts +1 -1
  232. package/node_modules/yaml/dist/compose/util-flow-indent-check.d.ts +2 -2
  233. package/node_modules/yaml/dist/compose/util-map-includes.d.ts +3 -3
  234. package/node_modules/yaml/dist/doc/Document.d.ts +11 -11
  235. package/node_modules/yaml/dist/doc/anchors.d.ts +2 -2
  236. package/node_modules/yaml/dist/doc/createNode.d.ts +4 -4
  237. package/node_modules/yaml/dist/doc/directives.d.ts +1 -1
  238. package/node_modules/yaml/dist/index.d.ts +21 -18
  239. package/node_modules/yaml/dist/log.js +4 -2
  240. package/node_modules/yaml/dist/nodes/Alias.d.ts +9 -8
  241. package/node_modules/yaml/dist/nodes/Collection.d.ts +4 -4
  242. package/node_modules/yaml/dist/nodes/Node.d.ts +10 -10
  243. package/node_modules/yaml/dist/nodes/Pair.d.ts +9 -8
  244. package/node_modules/yaml/dist/nodes/Scalar.d.ts +4 -3
  245. package/node_modules/yaml/dist/nodes/YAMLMap.d.ts +10 -10
  246. package/node_modules/yaml/dist/nodes/YAMLSeq.d.ts +10 -10
  247. package/node_modules/yaml/dist/nodes/addPairToJSMap.d.ts +3 -3
  248. package/node_modules/yaml/dist/nodes/identity.d.ts +7 -7
  249. package/node_modules/yaml/dist/nodes/toJS.d.ts +2 -2
  250. package/node_modules/yaml/dist/options.d.ts +10 -10
  251. package/node_modules/yaml/dist/parse/cst-scalar.d.ts +4 -4
  252. package/node_modules/yaml/dist/parse/cst-stringify.d.ts +1 -1
  253. package/node_modules/yaml/dist/parse/cst-visit.d.ts +2 -2
  254. package/node_modules/yaml/dist/parse/cst.d.ts +4 -3
  255. package/node_modules/yaml/dist/parse/lexer.d.ts +1 -1
  256. package/node_modules/yaml/dist/parse/parser.d.ts +4 -4
  257. package/node_modules/yaml/dist/parse/parser.js +2 -1
  258. package/node_modules/yaml/dist/public-api.d.ts +6 -5
  259. package/node_modules/yaml/dist/schema/Schema.d.ts +4 -4
  260. package/node_modules/yaml/dist/schema/common/map.d.ts +1 -1
  261. package/node_modules/yaml/dist/schema/common/null.d.ts +1 -1
  262. package/node_modules/yaml/dist/schema/common/seq.d.ts +1 -1
  263. package/node_modules/yaml/dist/schema/common/string.d.ts +1 -1
  264. package/node_modules/yaml/dist/schema/core/bool.d.ts +1 -1
  265. package/node_modules/yaml/dist/schema/core/float.d.ts +1 -1
  266. package/node_modules/yaml/dist/schema/core/int.d.ts +1 -1
  267. package/node_modules/yaml/dist/schema/core/schema.d.ts +1 -1
  268. package/node_modules/yaml/dist/schema/json/schema.d.ts +1 -1
  269. package/node_modules/yaml/dist/schema/json/schema.js +1 -1
  270. package/node_modules/yaml/dist/schema/tags.d.ts +2 -2
  271. package/node_modules/yaml/dist/schema/types.d.ts +8 -8
  272. package/node_modules/yaml/dist/schema/yaml-1.1/binary.d.ts +1 -1
  273. package/node_modules/yaml/dist/schema/yaml-1.1/binary.js +6 -5
  274. package/node_modules/yaml/dist/schema/yaml-1.1/bool.d.ts +1 -1
  275. package/node_modules/yaml/dist/schema/yaml-1.1/float.d.ts +1 -1
  276. package/node_modules/yaml/dist/schema/yaml-1.1/int.d.ts +1 -1
  277. package/node_modules/yaml/dist/schema/yaml-1.1/merge.d.ts +3 -3
  278. package/node_modules/yaml/dist/schema/yaml-1.1/omap.d.ts +11 -17
  279. package/node_modules/yaml/dist/schema/yaml-1.1/pairs.d.ts +7 -7
  280. package/node_modules/yaml/dist/schema/yaml-1.1/schema.d.ts +1 -1
  281. package/node_modules/yaml/dist/schema/yaml-1.1/set.d.ts +9 -9
  282. package/node_modules/yaml/dist/schema/yaml-1.1/timestamp.d.ts +1 -1
  283. package/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js +1 -1
  284. package/node_modules/yaml/dist/stringify/stringify.d.ts +3 -3
  285. package/node_modules/yaml/dist/stringify/stringifyCollection.d.ts +2 -2
  286. package/node_modules/yaml/dist/stringify/stringifyDocument.d.ts +3 -3
  287. package/node_modules/yaml/dist/stringify/stringifyNumber.d.ts +1 -1
  288. package/node_modules/yaml/dist/stringify/stringifyPair.d.ts +2 -2
  289. package/node_modules/yaml/dist/stringify/stringifyString.d.ts +2 -2
  290. package/node_modules/yaml/dist/stringify/stringifyString.js +20 -11
  291. package/node_modules/yaml/dist/util.d.ts +16 -12
  292. package/node_modules/yaml/dist/util.js +2 -2
  293. package/node_modules/yaml/dist/visit.d.ts +7 -7
  294. package/node_modules/yaml/package.json +4 -4
  295. package/package.json +1 -1
  296. package/node_modules/call-bind/.eslintignore +0 -1
  297. package/node_modules/call-bind/CHANGELOG.md +0 -93
  298. package/node_modules/call-bind/README.md +0 -64
  299. package/node_modules/call-bind/callBound.js +0 -15
  300. package/node_modules/call-bind/index.js +0 -35
  301. package/node_modules/call-bind/test/index.js +0 -80
  302. package/node_modules/define-data-property/.eslintrc +0 -24
  303. package/node_modules/define-data-property/CHANGELOG.md +0 -70
  304. package/node_modules/define-data-property/README.md +0 -67
  305. package/node_modules/define-data-property/index.d.ts +0 -12
  306. package/node_modules/define-data-property/index.js +0 -56
  307. package/node_modules/define-data-property/package.json +0 -106
  308. package/node_modules/define-data-property/test/index.js +0 -392
  309. package/node_modules/define-data-property/tsconfig.json +0 -59
  310. package/node_modules/has-property-descriptors/.eslintrc +0 -13
  311. package/node_modules/has-property-descriptors/CHANGELOG.md +0 -35
  312. package/node_modules/has-property-descriptors/README.md +0 -43
  313. package/node_modules/has-property-descriptors/index.js +0 -22
  314. package/node_modules/has-property-descriptors/test/index.js +0 -57
  315. package/node_modules/has-proto/CHANGELOG.md +0 -38
  316. package/node_modules/has-proto/README.md +0 -38
  317. package/node_modules/has-proto/index.d.ts +0 -3
  318. package/node_modules/has-proto/index.js +0 -15
  319. package/node_modules/has-proto/test/index.js +0 -19
  320. package/node_modules/has-proto/tsconfig.json +0 -49
  321. package/node_modules/psl/browserstack.yml +0 -73
  322. package/node_modules/psl/data/rules.json +0 -9779
  323. package/node_modules/psl/dist/psl.js +0 -10498
  324. package/node_modules/psl/dist/psl.min.js +0 -1
  325. package/node_modules/psl/eslint.config.js +0 -9
  326. package/node_modules/psl/local.log +0 -12
  327. package/node_modules/psl/log/usage.log +0 -20
  328. package/node_modules/psl/playwright.config.js +0 -31
  329. package/node_modules/psl/test-results/.last-run.json +0 -4
  330. package/node_modules/set-function-length/.eslintrc +0 -27
  331. package/node_modules/set-function-length/CHANGELOG.md +0 -70
  332. package/node_modules/set-function-length/LICENSE +0 -21
  333. package/node_modules/set-function-length/README.md +0 -56
  334. package/node_modules/set-function-length/env.d.ts +0 -9
  335. package/node_modules/set-function-length/env.js +0 -25
  336. package/node_modules/set-function-length/index.d.ts +0 -7
  337. package/node_modules/set-function-length/index.js +0 -42
  338. package/node_modules/set-function-length/package.json +0 -102
  339. /package/node_modules/{call-bind → call-bind-apply-helpers}/.eslintrc +0 -0
  340. /package/node_modules/{call-bind → call-bind-apply-helpers}/.nycrc +0 -0
  341. /package/node_modules/{has-property-descriptors → call-bound}/.nycrc +0 -0
  342. /package/node_modules/{set-function-length → call-bound}/tsconfig.json +0 -0
  343. /package/node_modules/{has-proto → dunder-proto}/.eslintrc +0 -0
  344. /package/node_modules/{define-data-property → dunder-proto}/.nycrc +0 -0
  345. /package/node_modules/{set-function-length → side-channel-list}/.nycrc +0 -0
@@ -1,12 +1,16 @@
1
- export { createNode, CreateNodeContext } from './doc/createNode.js';
2
- export { debug, LogLevelId, warn } from './log.js';
3
- export { createPair } from './nodes/Pair.js';
4
- export { findPair } from './nodes/YAMLMap.js';
5
- export { toJS, ToJSContext } from './nodes/toJS.js';
6
- export { map as mapTag } from './schema/common/map.js';
7
- export { seq as seqTag } from './schema/common/seq.js';
8
- export { string as stringTag } from './schema/common/string.js';
9
- export { foldFlowLines, FoldOptions } from './stringify/foldFlowLines';
10
- export { StringifyContext } from './stringify/stringify.js';
11
- export { stringifyNumber } from './stringify/stringifyNumber.js';
12
- export { stringifyString } from './stringify/stringifyString.js';
1
+ export { createNode } from './doc/createNode';
2
+ export type { CreateNodeContext } from './doc/createNode';
3
+ export { debug, warn } from './log';
4
+ export type { LogLevelId } from './log';
5
+ export { createPair } from './nodes/Pair';
6
+ export { toJS } from './nodes/toJS';
7
+ export type { ToJSContext } from './nodes/toJS';
8
+ export { findPair } from './nodes/YAMLMap';
9
+ export { map as mapTag } from './schema/common/map';
10
+ export { seq as seqTag } from './schema/common/seq';
11
+ export { string as stringTag } from './schema/common/string';
12
+ export { foldFlowLines } from './stringify/foldFlowLines';
13
+ export type { FoldOptions } from './stringify/foldFlowLines';
14
+ export type { StringifyContext } from './stringify/stringify';
15
+ export { stringifyNumber } from './stringify/stringifyNumber';
16
+ export { stringifyString } from './stringify/stringifyString';
@@ -3,8 +3,8 @@
3
3
  var createNode = require('./doc/createNode.js');
4
4
  var log = require('./log.js');
5
5
  var Pair = require('./nodes/Pair.js');
6
- var YAMLMap = require('./nodes/YAMLMap.js');
7
6
  var toJS = require('./nodes/toJS.js');
7
+ var YAMLMap = require('./nodes/YAMLMap.js');
8
8
  var map = require('./schema/common/map.js');
9
9
  var seq = require('./schema/common/seq.js');
10
10
  var string = require('./schema/common/string.js');
@@ -18,8 +18,8 @@ exports.createNode = createNode.createNode;
18
18
  exports.debug = log.debug;
19
19
  exports.warn = log.warn;
20
20
  exports.createPair = Pair.createPair;
21
- exports.findPair = YAMLMap.findPair;
22
21
  exports.toJS = toJS.toJS;
22
+ exports.findPair = YAMLMap.findPair;
23
23
  exports.mapTag = map.map;
24
24
  exports.seqTag = seq.seq;
25
25
  exports.stringTag = string.string;
@@ -1,10 +1,10 @@
1
- import type { Document } from './doc/Document.js';
2
- import type { Alias } from './nodes/Alias.js';
3
- import { Node } from './nodes/Node.js';
4
- import type { Pair } from './nodes/Pair.js';
5
- import type { Scalar } from './nodes/Scalar.js';
6
- import type { YAMLMap } from './nodes/YAMLMap.js';
7
- import type { YAMLSeq } from './nodes/YAMLSeq.js';
1
+ import type { Document } from './doc/Document';
2
+ import type { Alias } from './nodes/Alias';
3
+ import type { Node } from './nodes/Node';
4
+ import type { Pair } from './nodes/Pair';
5
+ import type { Scalar } from './nodes/Scalar';
6
+ import type { YAMLMap } from './nodes/YAMLMap';
7
+ import type { YAMLSeq } from './nodes/YAMLSeq';
8
8
  export type visitorFn<T> = (key: number | 'key' | 'value' | null, node: T, path: readonly (Document | Node | Pair)[]) => void | symbol | number | Node | Pair;
9
9
  export type visitor = visitorFn<unknown> | {
10
10
  Alias?: visitorFn<Alias>;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yaml",
3
- "version": "2.6.0",
3
+ "version": "2.7.0",
4
4
  "license": "ISC",
5
5
  "author": "Eemeli Aro <eemeli@gmail.com>",
6
6
  "repository": "github:eemeli/yaml",
@@ -74,7 +74,7 @@
74
74
  "@eslint/js": "^9.9.1",
75
75
  "@rollup/plugin-babel": "^6.0.3",
76
76
  "@rollup/plugin-replace": "^5.0.2",
77
- "@rollup/plugin-typescript": "^11.0.0",
77
+ "@rollup/plugin-typescript": "^12.1.1",
78
78
  "@types/jest": "^29.2.4",
79
79
  "@types/node": "^20.11.20",
80
80
  "babel-jest": "^29.0.1",
@@ -86,8 +86,8 @@
86
86
  "jest-ts-webcompat-resolver": "^1.0.0",
87
87
  "prettier": "^3.0.2",
88
88
  "rollup": "^4.12.0",
89
- "tslib": "^2.1.0",
90
- "typescript": "^5.0.3",
89
+ "tslib": "^2.8.1",
90
+ "typescript": "^5.7.2",
91
91
  "typescript-eslint": "^8.4.0"
92
92
  },
93
93
  "engines": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "step-node-agent",
3
- "version": "3.26.3",
3
+ "version": "3.26.5-CustomizedJv2",
4
4
  "description": "The official STEP Agent implementation for Node.js",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -1 +0,0 @@
1
- coverage/
@@ -1,93 +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.0.7](https://github.com/ljharb/call-bind/compare/v1.0.6...v1.0.7) - 2024-02-12
9
-
10
- ### Commits
11
-
12
- - [Refactor] use `es-define-property` [`09b76a0`](https://github.com/ljharb/call-bind/commit/09b76a01634440461d44a80c9924ec4b500f3b03)
13
- - [Deps] update `get-intrinsic`, `set-function-length` [`ad5136d`](https://github.com/ljharb/call-bind/commit/ad5136ddda2a45c590959829ad3dce0c9f4e3590)
14
-
15
- ## [v1.0.6](https://github.com/ljharb/call-bind/compare/v1.0.5...v1.0.6) - 2024-02-05
16
-
17
- ### Commits
18
-
19
- - [Dev Deps] update `aud`, `npmignore`, `tape` [`d564d5c`](https://github.com/ljharb/call-bind/commit/d564d5ce3e06a19df4d499c77f8d1a9da44e77aa)
20
- - [Deps] update `get-intrinsic`, `set-function-length` [`cfc2bdc`](https://github.com/ljharb/call-bind/commit/cfc2bdca7b633df0e0e689e6b637f668f1c6792e)
21
- - [Refactor] use `es-errors`, so things that only need those do not need `get-intrinsic` [`64cd289`](https://github.com/ljharb/call-bind/commit/64cd289ae5862c250a4ca80aa8d461047c166af5)
22
- - [meta] add missing `engines.node` [`32a4038`](https://github.com/ljharb/call-bind/commit/32a4038857b62179f7f9b7b3df2c5260036be582)
23
-
24
- ## [v1.0.5](https://github.com/ljharb/call-bind/compare/v1.0.4...v1.0.5) - 2023-10-19
25
-
26
- ### Commits
27
-
28
- - [Fix] throw an error on non-functions as early as possible [`f262408`](https://github.com/ljharb/call-bind/commit/f262408f822c840fbc268080f3ad7c429611066d)
29
- - [Deps] update `set-function-length` [`3fff271`](https://github.com/ljharb/call-bind/commit/3fff27145a1e3a76a5b74f1d7c3c43d0fa3b9871)
30
-
31
- ## [v1.0.4](https://github.com/ljharb/call-bind/compare/v1.0.3...v1.0.4) - 2023-10-19
32
-
33
- ## [v1.0.3](https://github.com/ljharb/call-bind/compare/v1.0.2...v1.0.3) - 2023-10-19
34
-
35
- ### Commits
36
-
37
- - [actions] reuse common workflows [`a994df6`](https://github.com/ljharb/call-bind/commit/a994df69f401f4bf735a4ccd77029b85d1549453)
38
- - [meta] use `npmignore` to autogenerate an npmignore file [`eef3ef2`](https://github.com/ljharb/call-bind/commit/eef3ef21e1f002790837fedb8af2679c761fbdf5)
39
- - [readme] flesh out content [`1845ccf`](https://github.com/ljharb/call-bind/commit/1845ccfd9976a607884cfc7157c93192cc16cf22)
40
- - [actions] use `node/install` instead of `node/run`; use `codecov` action [`5b47d53`](https://github.com/ljharb/call-bind/commit/5b47d53d2fd74af5ea0a44f1d51e503cd42f7a90)
41
- - [Refactor] use `set-function-length` [`a0e165c`](https://github.com/ljharb/call-bind/commit/a0e165c5dc61db781cbc919b586b1c2b8da0b150)
42
- - [Dev Deps] update `@ljharb/eslint-config`, `aud`, `tape` [`9c50103`](https://github.com/ljharb/call-bind/commit/9c50103f44137279a817317cf6cc421a658f85b4)
43
- - [meta] simplify "exports" [`019c6d0`](https://github.com/ljharb/call-bind/commit/019c6d06b0e1246ceed8e579f57e44441cbbf6d9)
44
- - [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `aud`, `auto-changelog`, `safe-publish-latest`, `tape` [`23bd718`](https://github.com/ljharb/call-bind/commit/23bd718a288d3b03042062b4ef5153b3cea83f11)
45
- - [actions] update codecov uploader [`62552d7`](https://github.com/ljharb/call-bind/commit/62552d79cc79e05825e99aaba134ae5b37f33da5)
46
- - [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `aud`, `auto-changelog`, `tape` [`ec81665`](https://github.com/ljharb/call-bind/commit/ec81665b300f87eabff597afdc8b8092adfa7afd)
47
- - [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `safe-publish-latest`, `tape` [`35d67fc`](https://github.com/ljharb/call-bind/commit/35d67fcea883e686650f736f61da5ddca2592de8)
48
- - [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `aud`, `tape` [`0266d8d`](https://github.com/ljharb/call-bind/commit/0266d8d2a45086a922db366d0c2932fa463662ff)
49
- - [Dev Deps] update `@ljharb/eslint-config`, `aud`, `tape` [`43a5b28`](https://github.com/ljharb/call-bind/commit/43a5b28a444e710e1bbf92adb8afb5cf7523a223)
50
- - [Deps] update `define-data-property`, `function-bind`, `get-intrinsic` [`780eb36`](https://github.com/ljharb/call-bind/commit/780eb36552514f8cc99c70821ce698697c2726a5)
51
- - [Dev Deps] update `aud`, `tape` [`90d50ad`](https://github.com/ljharb/call-bind/commit/90d50ad03b061e0268b3380b0065fcaec183dc05)
52
- - [meta] use `prepublishOnly` script for npm 7+ [`44c5433`](https://github.com/ljharb/call-bind/commit/44c5433b7980e02b4870007046407cf6fc543329)
53
- - [Deps] update `get-intrinsic` [`86bfbfc`](https://github.com/ljharb/call-bind/commit/86bfbfcf34afdc6eabc93ce3d408548d0e27d958)
54
- - [Deps] update `get-intrinsic` [`5c53354`](https://github.com/ljharb/call-bind/commit/5c5335489be0294c18cd7a8bb6e08226ee019ff5)
55
- - [actions] update checkout action [`4c393a8`](https://github.com/ljharb/call-bind/commit/4c393a8173b3c8e5b30d5b3297b3b94d48bf87f3)
56
- - [Deps] update `get-intrinsic` [`4e70bde`](https://github.com/ljharb/call-bind/commit/4e70bdec0626acb11616d66250fc14565e716e91)
57
- - [Deps] update `get-intrinsic` [`55ae803`](https://github.com/ljharb/call-bind/commit/55ae803a920bd93c369cd798c20de31f91e9fc60)
58
-
59
- ## [v1.0.2](https://github.com/ljharb/call-bind/compare/v1.0.1...v1.0.2) - 2021-01-11
60
-
61
- ### Commits
62
-
63
- - [Fix] properly include the receiver in the bound length [`dbae7bc`](https://github.com/ljharb/call-bind/commit/dbae7bc676c079a0d33c0a43e9ef92cb7b01345d)
64
-
65
- ## [v1.0.1](https://github.com/ljharb/call-bind/compare/v1.0.0...v1.0.1) - 2021-01-08
66
-
67
- ### Commits
68
-
69
- - [Tests] migrate tests to Github Actions [`b6db284`](https://github.com/ljharb/call-bind/commit/b6db284c36f8ccd195b88a6764fe84b7223a0da1)
70
- - [meta] do not publish github action workflow files [`ec7fe46`](https://github.com/ljharb/call-bind/commit/ec7fe46e60cfa4764ee943d2755f5e5a366e578e)
71
- - [Fix] preserve original function’s length when possible [`adbceaa`](https://github.com/ljharb/call-bind/commit/adbceaa3cac4b41ea78bb19d7ccdbaaf7e0bdadb)
72
- - [Tests] gather coverage data on every job [`d69e23c`](https://github.com/ljharb/call-bind/commit/d69e23cc65f101ba1d4c19bb07fa8eb0ec624be8)
73
- - [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `aud`, `tape` [`2fd3586`](https://github.com/ljharb/call-bind/commit/2fd3586c5d47b335364c14293114c6b625ae1f71)
74
- - [Deps] update `get-intrinsic` [`f23e931`](https://github.com/ljharb/call-bind/commit/f23e9318cc271c2add8bb38cfded85ee7baf8eee)
75
- - [Deps] update `get-intrinsic` [`72d9f44`](https://github.com/ljharb/call-bind/commit/72d9f44e184465ba8dd3fb48260bbcff234985f2)
76
- - [meta] fix FUNDING.yml [`e723573`](https://github.com/ljharb/call-bind/commit/e723573438c5a68dcec31fb5d96ea6b7e4a93be8)
77
- - [eslint] ignore coverage output [`15e76d2`](https://github.com/ljharb/call-bind/commit/15e76d28a5f43e504696401e5b31ebb78ee1b532)
78
- - [meta] add Automatic Rebase and Require Allow Edits workflows [`8fa4dab`](https://github.com/ljharb/call-bind/commit/8fa4dabb23ba3dd7bb92c9571c1241c08b56e4b6)
79
-
80
- ## v1.0.0 - 2020-10-30
81
-
82
- ### Commits
83
-
84
- - Initial commit [`306cf98`](https://github.com/ljharb/call-bind/commit/306cf98c7ec9e7ef66b653ec152277ac1381eb50)
85
- - Tests [`e10d0bb`](https://github.com/ljharb/call-bind/commit/e10d0bbdadc7a10ecedc9a1c035112d3e368b8df)
86
- - Implementation [`43852ed`](https://github.com/ljharb/call-bind/commit/43852eda0f187327b7fad2423ca972149a52bd65)
87
- - npm init [`408f860`](https://github.com/ljharb/call-bind/commit/408f860b773a2f610805fd3613d0d71bac1b6249)
88
- - [meta] add Automatic Rebase and Require Allow Edits workflows [`fb349b2`](https://github.com/ljharb/call-bind/commit/fb349b2e48defbec8b5ec8a8395cc8f69f220b13)
89
- - [meta] add `auto-changelog` [`c4001fc`](https://github.com/ljharb/call-bind/commit/c4001fc43031799ef908211c98d3b0fb2b60fde4)
90
- - [meta] add "funding"; create `FUNDING.yml` [`d4d6d29`](https://github.com/ljharb/call-bind/commit/d4d6d2974a14bc2e98830468eda7fe6d6a776717)
91
- - [Tests] add `npm run lint` [`dedfb98`](https://github.com/ljharb/call-bind/commit/dedfb98bd0ecefb08ddb9a94061bd10cde4332af)
92
- - Only apps should have lockfiles [`54ac776`](https://github.com/ljharb/call-bind/commit/54ac77653db45a7361dc153d2f478e743f110650)
93
- - [meta] add `safe-publish-latest` [`9ea8e43`](https://github.com/ljharb/call-bind/commit/9ea8e435b950ce9b705559cd651039f9bf40140f)
@@ -1,64 +0,0 @@
1
- # call-bind <sup>[![Version Badge][npm-version-svg]][package-url]</sup>
2
-
3
- [![github actions][actions-image]][actions-url]
4
- [![coverage][codecov-image]][codecov-url]
5
- [![dependency status][deps-svg]][deps-url]
6
- [![dev dependency status][dev-deps-svg]][dev-deps-url]
7
- [![License][license-image]][license-url]
8
- [![Downloads][downloads-image]][downloads-url]
9
-
10
- [![npm badge][npm-badge-png]][package-url]
11
-
12
- Robustly `.call.bind()` a function.
13
-
14
- ## Getting started
15
-
16
- ```sh
17
- npm install --save call-bind
18
- ```
19
-
20
- ## Usage/Examples
21
-
22
- ```js
23
- const assert = require('assert');
24
- const callBind = require('call-bind');
25
- const callBound = require('call-bind/callBound');
26
-
27
- function f(a, b) {
28
- assert.equal(this, 1);
29
- assert.equal(a, 2);
30
- assert.equal(b, 3);
31
- assert.equal(arguments.length, 2);
32
- }
33
-
34
- const fBound = callBind(f);
35
-
36
- const slice = callBound('Array.prototype.slice');
37
-
38
- delete Function.prototype.call;
39
- delete Function.prototype.bind;
40
-
41
- fBound(1, 2, 3);
42
-
43
- assert.deepEqual(slice([1, 2, 3, 4], 1, -1), [2, 3]);
44
- ```
45
-
46
- ## Tests
47
-
48
- Clone the repo, `npm install`, and run `npm test`
49
-
50
- [package-url]: https://npmjs.org/package/call-bind
51
- [npm-version-svg]: https://versionbadg.es/ljharb/call-bind.svg
52
- [deps-svg]: https://david-dm.org/ljharb/call-bind.svg
53
- [deps-url]: https://david-dm.org/ljharb/call-bind
54
- [dev-deps-svg]: https://david-dm.org/ljharb/call-bind/dev-status.svg
55
- [dev-deps-url]: https://david-dm.org/ljharb/call-bind#info=devDependencies
56
- [npm-badge-png]: https://nodei.co/npm/call-bind.png?downloads=true&stars=true
57
- [license-image]: https://img.shields.io/npm/l/call-bind.svg
58
- [license-url]: LICENSE
59
- [downloads-image]: https://img.shields.io/npm/dm/call-bind.svg
60
- [downloads-url]: https://npm-stat.com/charts.html?package=call-bind
61
- [codecov-image]: https://codecov.io/gh/ljharb/call-bind/branch/main/graphs/badge.svg
62
- [codecov-url]: https://app.codecov.io/gh/ljharb/call-bind/
63
- [actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/ljharb/call-bind
64
- [actions-url]: https://github.com/ljharb/call-bind/actions
@@ -1,15 +0,0 @@
1
- 'use strict';
2
-
3
- var GetIntrinsic = require('get-intrinsic');
4
-
5
- var callBind = require('./');
6
-
7
- var $indexOf = callBind(GetIntrinsic('String.prototype.indexOf'));
8
-
9
- module.exports = function callBoundIntrinsic(name, allowMissing) {
10
- var intrinsic = GetIntrinsic(name, !!allowMissing);
11
- if (typeof intrinsic === 'function' && $indexOf(name, '.prototype.') > -1) {
12
- return callBind(intrinsic);
13
- }
14
- return intrinsic;
15
- };
@@ -1,35 +0,0 @@
1
- 'use strict';
2
-
3
- var bind = require('function-bind');
4
- var GetIntrinsic = require('get-intrinsic');
5
- var setFunctionLength = require('set-function-length');
6
-
7
- var $TypeError = require('es-errors/type');
8
- var $apply = GetIntrinsic('%Function.prototype.apply%');
9
- var $call = GetIntrinsic('%Function.prototype.call%');
10
- var $reflectApply = GetIntrinsic('%Reflect.apply%', true) || bind.call($call, $apply);
11
-
12
- var $defineProperty = require('es-define-property');
13
- var $max = GetIntrinsic('%Math.max%');
14
-
15
- module.exports = function callBind(originalFunction) {
16
- if (typeof originalFunction !== 'function') {
17
- throw new $TypeError('a function is required');
18
- }
19
- var func = $reflectApply(bind, $call, arguments);
20
- return setFunctionLength(
21
- func,
22
- 1 + $max(0, originalFunction.length - (arguments.length - 1)),
23
- true
24
- );
25
- };
26
-
27
- var applyBind = function applyBind() {
28
- return $reflectApply(bind, $apply, arguments);
29
- };
30
-
31
- if ($defineProperty) {
32
- $defineProperty(module.exports, 'apply', { value: applyBind });
33
- } else {
34
- module.exports.apply = applyBind;
35
- }
@@ -1,80 +0,0 @@
1
- 'use strict';
2
-
3
- var callBind = require('../');
4
- var bind = require('function-bind');
5
- var gOPD = require('gopd');
6
- var hasStrictMode = require('has-strict-mode')();
7
- var forEach = require('for-each');
8
- var inspect = require('object-inspect');
9
- var v = require('es-value-fixtures');
10
-
11
- var test = require('tape');
12
-
13
- /*
14
- * older engines have length nonconfigurable
15
- * in io.js v3, it is configurable except on bound functions, hence the .bind()
16
- */
17
- var functionsHaveConfigurableLengths = !!(
18
- gOPD
19
- && Object.getOwnPropertyDescriptor
20
- && Object.getOwnPropertyDescriptor(bind.call(function () {}), 'length').configurable
21
- );
22
-
23
- test('callBind', function (t) {
24
- forEach(v.nonFunctions, function (nonFunction) {
25
- t['throws'](
26
- function () { callBind(nonFunction); },
27
- TypeError,
28
- inspect(nonFunction) + ' is not a function'
29
- );
30
- });
31
-
32
- var sentinel = { sentinel: true };
33
- var func = function (a, b) {
34
- // eslint-disable-next-line no-invalid-this
35
- return [!hasStrictMode && this === global ? undefined : this, a, b];
36
- };
37
- t.equal(func.length, 2, 'original function length is 2');
38
- t.deepEqual(func(), [undefined, undefined, undefined], 'unbound func with too few args');
39
- t.deepEqual(func(1, 2), [undefined, 1, 2], 'unbound func with right args');
40
- t.deepEqual(func(1, 2, 3), [undefined, 1, 2], 'unbound func with too many args');
41
-
42
- var bound = callBind(func);
43
- t.equal(bound.length, func.length + 1, 'function length is preserved', { skip: !functionsHaveConfigurableLengths });
44
- t.deepEqual(bound(), [undefined, undefined, undefined], 'bound func with too few args');
45
- t.deepEqual(bound(1, 2), [hasStrictMode ? 1 : Object(1), 2, undefined], 'bound func with right args');
46
- t.deepEqual(bound(1, 2, 3), [hasStrictMode ? 1 : Object(1), 2, 3], 'bound func with too many args');
47
-
48
- var boundR = callBind(func, sentinel);
49
- t.equal(boundR.length, func.length, 'function length is preserved', { skip: !functionsHaveConfigurableLengths });
50
- t.deepEqual(boundR(), [sentinel, undefined, undefined], 'bound func with receiver, with too few args');
51
- t.deepEqual(boundR(1, 2), [sentinel, 1, 2], 'bound func with receiver, with right args');
52
- t.deepEqual(boundR(1, 2, 3), [sentinel, 1, 2], 'bound func with receiver, with too many args');
53
-
54
- var boundArg = callBind(func, sentinel, 1);
55
- t.equal(boundArg.length, func.length - 1, 'function length is preserved', { skip: !functionsHaveConfigurableLengths });
56
- t.deepEqual(boundArg(), [sentinel, 1, undefined], 'bound func with receiver and arg, with too few args');
57
- t.deepEqual(boundArg(2), [sentinel, 1, 2], 'bound func with receiver and arg, with right arg');
58
- t.deepEqual(boundArg(2, 3), [sentinel, 1, 2], 'bound func with receiver and arg, with too many args');
59
-
60
- t.test('callBind.apply', function (st) {
61
- var aBound = callBind.apply(func);
62
- st.deepEqual(aBound(sentinel), [sentinel, undefined, undefined], 'apply-bound func with no args');
63
- st.deepEqual(aBound(sentinel, [1], 4), [sentinel, 1, undefined], 'apply-bound func with too few args');
64
- st.deepEqual(aBound(sentinel, [1, 2], 4), [sentinel, 1, 2], 'apply-bound func with right args');
65
-
66
- var aBoundArg = callBind.apply(func);
67
- st.deepEqual(aBoundArg(sentinel, [1, 2, 3], 4), [sentinel, 1, 2], 'apply-bound func with too many args');
68
- st.deepEqual(aBoundArg(sentinel, [1, 2], 4), [sentinel, 1, 2], 'apply-bound func with right args');
69
- st.deepEqual(aBoundArg(sentinel, [1], 4), [sentinel, 1, undefined], 'apply-bound func with too few args');
70
-
71
- var aBoundR = callBind.apply(func, sentinel);
72
- st.deepEqual(aBoundR([1, 2, 3], 4), [sentinel, 1, 2], 'apply-bound func with receiver and too many args');
73
- st.deepEqual(aBoundR([1, 2], 4), [sentinel, 1, 2], 'apply-bound func with receiver and right args');
74
- st.deepEqual(aBoundR([1], 4), [sentinel, 1, undefined], 'apply-bound func with receiver and too few args');
75
-
76
- st.end();
77
- });
78
-
79
- t.end();
80
- });
@@ -1,24 +0,0 @@
1
- {
2
- "root": true,
3
-
4
- "extends": "@ljharb",
5
-
6
- "rules": {
7
- "complexity": 0,
8
- "id-length": 0,
9
- "new-cap": ["error", {
10
- "capIsNewExceptions": [
11
- "GetIntrinsic",
12
- ],
13
- }],
14
- },
15
-
16
- "overrides": [
17
- {
18
- "files": "test/**",
19
- "rules": {
20
- "max-lines-per-function": "off",
21
- },
22
- },
23
- ],
24
- }
@@ -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.1.4](https://github.com/ljharb/define-data-property/compare/v1.1.3...v1.1.4) - 2024-02-13
9
-
10
- ### Commits
11
-
12
- - [Refactor] use `es-define-property` [`90f2f4c`](https://github.com/ljharb/define-data-property/commit/90f2f4cc20298401e71c28e1e08888db12021453)
13
- - [Dev Deps] update `@types/object.getownpropertydescriptors` [`cd929d9`](https://github.com/ljharb/define-data-property/commit/cd929d9a04f5f2fdcfa9d5be140940b91a083153)
14
-
15
- ## [v1.1.3](https://github.com/ljharb/define-data-property/compare/v1.1.2...v1.1.3) - 2024-02-12
16
-
17
- ### Commits
18
-
19
- - [types] hand-write d.ts instead of emitting it [`0cbc988`](https://github.com/ljharb/define-data-property/commit/0cbc988203c105f2d97948327c7167ebd33bd318)
20
- - [meta] simplify `exports` [`690781e`](https://github.com/ljharb/define-data-property/commit/690781eed28bbf2d6766237efda0ba6dd591609e)
21
- - [Dev Deps] update `hasown`; clean up DT packages [`6cdfd1c`](https://github.com/ljharb/define-data-property/commit/6cdfd1cb2d91d791bfd18cda5d5cab232fd5d8fc)
22
- - [actions] cleanup [`3142bc6`](https://github.com/ljharb/define-data-property/commit/3142bc6a4bc406a51f5b04f31e98562a27f35ffd)
23
- - [meta] add `funding` [`8474423`](https://github.com/ljharb/define-data-property/commit/847442391a79779af3e0f1bf0b5bb923552b7804)
24
- - [Deps] update `get-intrinsic` [`3e9be00`](https://github.com/ljharb/define-data-property/commit/3e9be00e07784ba34e7c77d8bc0fdbc832ad61de)
25
-
26
- ## [v1.1.2](https://github.com/ljharb/define-data-property/compare/v1.1.1...v1.1.2) - 2024-02-05
27
-
28
- ### Commits
29
-
30
- - [Dev Deps] update @types packages, `object-inspect`, `tape`, `typescript` [`df41bf8`](https://github.com/ljharb/define-data-property/commit/df41bf84ca3456be6226055caab44e38e3a7fd2f)
31
- - [Dev Deps] update DT packages, `aud`, `npmignore`, `tape`, typescript` [`fab0e4e`](https://github.com/ljharb/define-data-property/commit/fab0e4ec709ee02b79f42d6db3ee5f26e0a34b8a)
32
- - [Dev Deps] use `hasown` instead of `has` [`aa51ef9`](https://github.com/ljharb/define-data-property/commit/aa51ef93f6403d49d9bb72a807bcdb6e418978c0)
33
- - [Refactor] use `es-errors`, so things that only need those do not need `get-intrinsic` [`d89be50`](https://github.com/ljharb/define-data-property/commit/d89be50571175888d391238605122679f7e65ffc)
34
- - [Deps] update `has-property-descriptors` [`7af887c`](https://github.com/ljharb/define-data-property/commit/7af887c9083b59b195b0079e04815cfed9fcee2b)
35
- - [Deps] update `get-intrinsic` [`bb8728e`](https://github.com/ljharb/define-data-property/commit/bb8728ec42cd998505a7157ae24853a560c20646)
36
-
37
- ## [v1.1.1](https://github.com/ljharb/define-data-property/compare/v1.1.0...v1.1.1) - 2023-10-12
38
-
39
- ### Commits
40
-
41
- - [Tests] fix tests in ES3 engines [`5c6920e`](https://github.com/ljharb/define-data-property/commit/5c6920edd1f52f675b02f417e539c28135b43f94)
42
- - [Dev Deps] update `@types/es-value-fixtures`, `@types/for-each`, `@types/gopd`, `@types/has-property-descriptors`, `tape`, `typescript` [`7d82dfc`](https://github.com/ljharb/define-data-property/commit/7d82dfc20f778b4465bba06335dd53f6f431aea3)
43
- - [Fix] IE 8 has a broken `Object.defineProperty` [`0672e1a`](https://github.com/ljharb/define-data-property/commit/0672e1af2a9fcc787e7c23b96dea60d290df5548)
44
- - [meta] emit types on prepack [`73acb1f`](https://github.com/ljharb/define-data-property/commit/73acb1f903c21b314ec7156bf10f73c7910530c0)
45
- - [Dev Deps] update `tape`, `typescript` [`9489a77`](https://github.com/ljharb/define-data-property/commit/9489a7738bf2ecf0ac71d5b78ec4ca6ad7ba0142)
46
-
47
- ## [v1.1.0](https://github.com/ljharb/define-data-property/compare/v1.0.1...v1.1.0) - 2023-09-13
48
-
49
- ### Commits
50
-
51
- - [New] add `loose` arg [`155235a`](https://github.com/ljharb/define-data-property/commit/155235a4c4d7741f6de01cd87c99599a56654b72)
52
- - [New] allow `null` to be passed for the non* args [`7d2fa5f`](https://github.com/ljharb/define-data-property/commit/7d2fa5f06be0392736c13b126f7cd38979f34792)
53
-
54
- ## [v1.0.1](https://github.com/ljharb/define-data-property/compare/v1.0.0...v1.0.1) - 2023-09-12
55
-
56
- ### Commits
57
-
58
- - [meta] add TS types [`43d763c`](https://github.com/ljharb/define-data-property/commit/43d763c6c883f652de1c9c02ef6216ee507ffa69)
59
- - [Dev Deps] update `@types/tape`, `typescript` [`f444985`](https://github.com/ljharb/define-data-property/commit/f444985811c36f3e6448a03ad2f9b7898917f4c7)
60
- - [meta] add `safe-publish-latest`, [`172bb10`](https://github.com/ljharb/define-data-property/commit/172bb10890896ebb160e64398f6ee55760107bee)
61
-
62
- ## v1.0.0 - 2023-09-12
63
-
64
- ### Commits
65
-
66
- - Initial implementation, tests, readme [`5b43d6b`](https://github.com/ljharb/define-data-property/commit/5b43d6b44e675a904810467a7d4e0adb7efc3196)
67
- - Initial commit [`35e577a`](https://github.com/ljharb/define-data-property/commit/35e577a6ba59a98befa97776d70d90f3bea9009d)
68
- - npm init [`82a0a04`](https://github.com/ljharb/define-data-property/commit/82a0a04a321ca7de220af02d41e2745e8a9962ed)
69
- - Only apps should have lockfiles [`96df244`](https://github.com/ljharb/define-data-property/commit/96df244a3c6f426f9a2437be825d1c6f5dd7158e)
70
- - [meta] use `npmignore` to autogenerate an npmignore file [`a87ff18`](https://github.com/ljharb/define-data-property/commit/a87ff18cb79e14c2eb5720486c4759fd9a189375)
@@ -1,67 +0,0 @@
1
- # define-data-property <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
- Define a data property on an object. Will fall back to assignment in an engine without descriptors.
11
-
12
- The three `non*` argument can also be passed `null`, which will use the existing state if available.
13
-
14
- The `loose` argument will mean that if you attempt to set a non-normal data property, in an environment without descriptor support, it will fall back to normal assignment.
15
-
16
- ## Usage
17
-
18
- ```javascript
19
- var defineDataProperty = require('define-data-property');
20
- var assert = require('assert');
21
-
22
- var obj = {};
23
- defineDataProperty(obj, 'key', 'value');
24
- defineDataProperty(
25
- obj,
26
- 'key2',
27
- 'value',
28
- true, // nonEnumerable, optional
29
- false, // nonWritable, optional
30
- true, // nonConfigurable, optional
31
- false // loose, optional
32
- );
33
-
34
- assert.deepEqual(
35
- Object.getOwnPropertyDescriptors(obj),
36
- {
37
- key: {
38
- configurable: true,
39
- enumerable: true,
40
- value: 'value',
41
- writable: true,
42
- },
43
- key2: {
44
- configurable: false,
45
- enumerable: false,
46
- value: 'value',
47
- writable: true,
48
- },
49
- }
50
- );
51
- ```
52
-
53
- [package-url]: https://npmjs.org/package/define-data-property
54
- [npm-version-svg]: https://versionbadg.es/ljharb/define-data-property.svg
55
- [deps-svg]: https://david-dm.org/ljharb/define-data-property.svg
56
- [deps-url]: https://david-dm.org/ljharb/define-data-property
57
- [dev-deps-svg]: https://david-dm.org/ljharb/define-data-property/dev-status.svg
58
- [dev-deps-url]: https://david-dm.org/ljharb/define-data-property#info=devDependencies
59
- [npm-badge-png]: https://nodei.co/npm/define-data-property.png?downloads=true&stars=true
60
- [license-image]: https://img.shields.io/npm/l/define-data-property.svg
61
- [license-url]: LICENSE
62
- [downloads-image]: https://img.shields.io/npm/dm/define-data-property.svg
63
- [downloads-url]: https://npm-stat.com/charts.html?package=define-data-property
64
- [codecov-image]: https://codecov.io/gh/ljharb/define-data-property/branch/main/graphs/badge.svg
65
- [codecov-url]: https://app.codecov.io/gh/ljharb/define-data-property/
66
- [actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/ljharb/define-data-property
67
- [actions-url]: https://github.com/ljharb/define-data-property/actions
@@ -1,12 +0,0 @@
1
-
2
- declare function defineDataProperty(
3
- obj: Record<PropertyKey, unknown>,
4
- property: keyof typeof obj,
5
- value: typeof obj[typeof property],
6
- nonEnumerable?: boolean | null,
7
- nonWritable?: boolean | null,
8
- nonConfigurable?: boolean | null,
9
- loose?: boolean
10
- ): void;
11
-
12
- export = defineDataProperty;
@@ -1,56 +0,0 @@
1
- 'use strict';
2
-
3
- var $defineProperty = require('es-define-property');
4
-
5
- var $SyntaxError = require('es-errors/syntax');
6
- var $TypeError = require('es-errors/type');
7
-
8
- var gopd = require('gopd');
9
-
10
- /** @type {import('.')} */
11
- module.exports = function defineDataProperty(
12
- obj,
13
- property,
14
- value
15
- ) {
16
- if (!obj || (typeof obj !== 'object' && typeof obj !== 'function')) {
17
- throw new $TypeError('`obj` must be an object or a function`');
18
- }
19
- if (typeof property !== 'string' && typeof property !== 'symbol') {
20
- throw new $TypeError('`property` must be a string or a symbol`');
21
- }
22
- if (arguments.length > 3 && typeof arguments[3] !== 'boolean' && arguments[3] !== null) {
23
- throw new $TypeError('`nonEnumerable`, if provided, must be a boolean or null');
24
- }
25
- if (arguments.length > 4 && typeof arguments[4] !== 'boolean' && arguments[4] !== null) {
26
- throw new $TypeError('`nonWritable`, if provided, must be a boolean or null');
27
- }
28
- if (arguments.length > 5 && typeof arguments[5] !== 'boolean' && arguments[5] !== null) {
29
- throw new $TypeError('`nonConfigurable`, if provided, must be a boolean or null');
30
- }
31
- if (arguments.length > 6 && typeof arguments[6] !== 'boolean') {
32
- throw new $TypeError('`loose`, if provided, must be a boolean');
33
- }
34
-
35
- var nonEnumerable = arguments.length > 3 ? arguments[3] : null;
36
- var nonWritable = arguments.length > 4 ? arguments[4] : null;
37
- var nonConfigurable = arguments.length > 5 ? arguments[5] : null;
38
- var loose = arguments.length > 6 ? arguments[6] : false;
39
-
40
- /* @type {false | TypedPropertyDescriptor<unknown>} */
41
- var desc = !!gopd && gopd(obj, property);
42
-
43
- if ($defineProperty) {
44
- $defineProperty(obj, property, {
45
- configurable: nonConfigurable === null && desc ? desc.configurable : !nonConfigurable,
46
- enumerable: nonEnumerable === null && desc ? desc.enumerable : !nonEnumerable,
47
- value: value,
48
- writable: nonWritable === null && desc ? desc.writable : !nonWritable
49
- });
50
- } else if (loose || (!nonEnumerable && !nonWritable && !nonConfigurable)) {
51
- // must fall back to [[Set]], and was not explicitly asked to make non-enumerable, non-writable, or non-configurable
52
- obj[property] = value; // eslint-disable-line no-param-reassign
53
- } else {
54
- throw new $SyntaxError('This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.');
55
- }
56
- };