step-node-agent 3.26.4 → 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 (326) 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 +7 -14
  151. package/node_modules/psl/SECURITY.md +13 -0
  152. package/node_modules/psl/data/rules.js +536 -529
  153. package/node_modules/psl/dist/psl.cjs +1 -1
  154. package/node_modules/psl/dist/psl.mjs +726 -715
  155. package/node_modules/psl/dist/psl.umd.cjs +1 -1
  156. package/node_modules/psl/index.js +52 -74
  157. package/node_modules/psl/package.json +10 -7
  158. package/node_modules/resolve/lib/core.json +4 -0
  159. package/node_modules/resolve/package.json +12 -9
  160. package/node_modules/side-channel/.eslintrc +1 -0
  161. package/node_modules/side-channel/CHANGELOG.md +15 -0
  162. package/node_modules/side-channel/README.md +60 -1
  163. package/node_modules/side-channel/index.d.ts +9 -22
  164. package/node_modules/side-channel/index.js +20 -106
  165. package/node_modules/side-channel/package.json +20 -19
  166. package/node_modules/side-channel/test/index.js +76 -55
  167. package/node_modules/side-channel/tsconfig.json +2 -43
  168. package/node_modules/side-channel-list/.editorconfig +9 -0
  169. package/node_modules/side-channel-list/.eslintrc +11 -0
  170. package/node_modules/side-channel-list/.github/FUNDING.yml +12 -0
  171. package/node_modules/side-channel-list/CHANGELOG.md +15 -0
  172. package/node_modules/side-channel-list/LICENSE +21 -0
  173. package/node_modules/side-channel-list/README.md +62 -0
  174. package/node_modules/side-channel-list/index.d.ts +13 -0
  175. package/node_modules/side-channel-list/index.js +113 -0
  176. package/node_modules/side-channel-list/list.d.ts +14 -0
  177. package/node_modules/side-channel-list/package.json +77 -0
  178. package/node_modules/side-channel-list/test/index.js +104 -0
  179. package/node_modules/side-channel-list/tsconfig.json +9 -0
  180. package/node_modules/side-channel-map/.editorconfig +9 -0
  181. package/node_modules/side-channel-map/.eslintrc +11 -0
  182. package/node_modules/side-channel-map/.github/FUNDING.yml +12 -0
  183. package/node_modules/side-channel-map/.nycrc +13 -0
  184. package/node_modules/side-channel-map/CHANGELOG.md +22 -0
  185. package/node_modules/side-channel-map/LICENSE +21 -0
  186. package/node_modules/side-channel-map/README.md +62 -0
  187. package/node_modules/side-channel-map/index.d.ts +15 -0
  188. package/node_modules/side-channel-map/index.js +68 -0
  189. package/node_modules/side-channel-map/package.json +80 -0
  190. package/node_modules/side-channel-map/test/index.js +114 -0
  191. package/node_modules/side-channel-map/tsconfig.json +9 -0
  192. package/node_modules/side-channel-weakmap/.editorconfig +9 -0
  193. package/node_modules/side-channel-weakmap/.eslintrc +12 -0
  194. package/node_modules/side-channel-weakmap/.github/FUNDING.yml +12 -0
  195. package/node_modules/side-channel-weakmap/.nycrc +13 -0
  196. package/node_modules/side-channel-weakmap/CHANGELOG.md +28 -0
  197. package/node_modules/side-channel-weakmap/LICENSE +21 -0
  198. package/node_modules/side-channel-weakmap/README.md +62 -0
  199. package/node_modules/side-channel-weakmap/index.d.ts +15 -0
  200. package/node_modules/side-channel-weakmap/index.js +84 -0
  201. package/node_modules/side-channel-weakmap/package.json +87 -0
  202. package/node_modules/side-channel-weakmap/test/index.js +114 -0
  203. package/node_modules/side-channel-weakmap/tsconfig.json +9 -0
  204. package/node_modules/yaml/README.md +27 -8
  205. package/node_modules/yaml/browser/dist/compose/resolve-props.js +1 -1
  206. package/node_modules/yaml/browser/dist/log.js +1 -4
  207. package/node_modules/yaml/browser/dist/schema/yaml-1.1/binary.js +2 -11
  208. package/node_modules/yaml/browser/dist/util.js +1 -1
  209. package/node_modules/yaml/dist/compose/compose-collection.d.ts +4 -4
  210. package/node_modules/yaml/dist/compose/compose-doc.d.ts +6 -6
  211. package/node_modules/yaml/dist/compose/compose-node.d.ts +7 -7
  212. package/node_modules/yaml/dist/compose/compose-scalar.d.ts +4 -4
  213. package/node_modules/yaml/dist/compose/composer.d.ts +7 -6
  214. package/node_modules/yaml/dist/compose/composer.js +2 -1
  215. package/node_modules/yaml/dist/compose/resolve-block-map.d.ts +5 -5
  216. package/node_modules/yaml/dist/compose/resolve-block-scalar.d.ts +5 -5
  217. package/node_modules/yaml/dist/compose/resolve-block-seq.d.ts +5 -5
  218. package/node_modules/yaml/dist/compose/resolve-end.d.ts +2 -2
  219. package/node_modules/yaml/dist/compose/resolve-flow-collection.d.ts +7 -7
  220. package/node_modules/yaml/dist/compose/resolve-flow-scalar.d.ts +4 -4
  221. package/node_modules/yaml/dist/compose/resolve-props.d.ts +2 -2
  222. package/node_modules/yaml/dist/compose/resolve-props.js +1 -1
  223. package/node_modules/yaml/dist/compose/util-contains-newline.d.ts +1 -1
  224. package/node_modules/yaml/dist/compose/util-empty-scalar-position.d.ts +1 -1
  225. package/node_modules/yaml/dist/compose/util-flow-indent-check.d.ts +2 -2
  226. package/node_modules/yaml/dist/compose/util-map-includes.d.ts +3 -3
  227. package/node_modules/yaml/dist/doc/Document.d.ts +11 -11
  228. package/node_modules/yaml/dist/doc/anchors.d.ts +2 -2
  229. package/node_modules/yaml/dist/doc/createNode.d.ts +4 -4
  230. package/node_modules/yaml/dist/doc/directives.d.ts +1 -1
  231. package/node_modules/yaml/dist/index.d.ts +21 -18
  232. package/node_modules/yaml/dist/log.js +4 -2
  233. package/node_modules/yaml/dist/nodes/Alias.d.ts +9 -8
  234. package/node_modules/yaml/dist/nodes/Collection.d.ts +4 -4
  235. package/node_modules/yaml/dist/nodes/Node.d.ts +10 -10
  236. package/node_modules/yaml/dist/nodes/Pair.d.ts +9 -8
  237. package/node_modules/yaml/dist/nodes/Scalar.d.ts +4 -3
  238. package/node_modules/yaml/dist/nodes/YAMLMap.d.ts +10 -10
  239. package/node_modules/yaml/dist/nodes/YAMLSeq.d.ts +10 -10
  240. package/node_modules/yaml/dist/nodes/addPairToJSMap.d.ts +3 -3
  241. package/node_modules/yaml/dist/nodes/identity.d.ts +7 -7
  242. package/node_modules/yaml/dist/nodes/toJS.d.ts +2 -2
  243. package/node_modules/yaml/dist/options.d.ts +10 -10
  244. package/node_modules/yaml/dist/parse/cst-scalar.d.ts +4 -4
  245. package/node_modules/yaml/dist/parse/cst-stringify.d.ts +1 -1
  246. package/node_modules/yaml/dist/parse/cst-visit.d.ts +2 -2
  247. package/node_modules/yaml/dist/parse/cst.d.ts +4 -3
  248. package/node_modules/yaml/dist/parse/lexer.d.ts +1 -1
  249. package/node_modules/yaml/dist/parse/parser.d.ts +4 -4
  250. package/node_modules/yaml/dist/parse/parser.js +2 -1
  251. package/node_modules/yaml/dist/public-api.d.ts +6 -5
  252. package/node_modules/yaml/dist/schema/Schema.d.ts +4 -4
  253. package/node_modules/yaml/dist/schema/common/map.d.ts +1 -1
  254. package/node_modules/yaml/dist/schema/common/null.d.ts +1 -1
  255. package/node_modules/yaml/dist/schema/common/seq.d.ts +1 -1
  256. package/node_modules/yaml/dist/schema/common/string.d.ts +1 -1
  257. package/node_modules/yaml/dist/schema/core/bool.d.ts +1 -1
  258. package/node_modules/yaml/dist/schema/core/float.d.ts +1 -1
  259. package/node_modules/yaml/dist/schema/core/int.d.ts +1 -1
  260. package/node_modules/yaml/dist/schema/core/schema.d.ts +1 -1
  261. package/node_modules/yaml/dist/schema/json/schema.d.ts +1 -1
  262. package/node_modules/yaml/dist/schema/tags.d.ts +2 -2
  263. package/node_modules/yaml/dist/schema/types.d.ts +8 -8
  264. package/node_modules/yaml/dist/schema/yaml-1.1/binary.d.ts +1 -1
  265. package/node_modules/yaml/dist/schema/yaml-1.1/binary.js +6 -5
  266. package/node_modules/yaml/dist/schema/yaml-1.1/bool.d.ts +1 -1
  267. package/node_modules/yaml/dist/schema/yaml-1.1/float.d.ts +1 -1
  268. package/node_modules/yaml/dist/schema/yaml-1.1/int.d.ts +1 -1
  269. package/node_modules/yaml/dist/schema/yaml-1.1/merge.d.ts +3 -3
  270. package/node_modules/yaml/dist/schema/yaml-1.1/omap.d.ts +11 -17
  271. package/node_modules/yaml/dist/schema/yaml-1.1/pairs.d.ts +7 -7
  272. package/node_modules/yaml/dist/schema/yaml-1.1/schema.d.ts +1 -1
  273. package/node_modules/yaml/dist/schema/yaml-1.1/set.d.ts +9 -9
  274. package/node_modules/yaml/dist/schema/yaml-1.1/timestamp.d.ts +1 -1
  275. package/node_modules/yaml/dist/stringify/stringify.d.ts +3 -3
  276. package/node_modules/yaml/dist/stringify/stringifyCollection.d.ts +2 -2
  277. package/node_modules/yaml/dist/stringify/stringifyDocument.d.ts +3 -3
  278. package/node_modules/yaml/dist/stringify/stringifyNumber.d.ts +1 -1
  279. package/node_modules/yaml/dist/stringify/stringifyPair.d.ts +2 -2
  280. package/node_modules/yaml/dist/stringify/stringifyString.d.ts +2 -2
  281. package/node_modules/yaml/dist/util.d.ts +16 -12
  282. package/node_modules/yaml/dist/util.js +2 -2
  283. package/node_modules/yaml/dist/visit.d.ts +7 -7
  284. package/node_modules/yaml/package.json +4 -4
  285. package/package.json +1 -1
  286. package/node_modules/call-bind/.eslintignore +0 -1
  287. package/node_modules/call-bind/CHANGELOG.md +0 -93
  288. package/node_modules/call-bind/README.md +0 -64
  289. package/node_modules/call-bind/callBound.js +0 -15
  290. package/node_modules/call-bind/index.js +0 -35
  291. package/node_modules/call-bind/test/index.js +0 -80
  292. package/node_modules/define-data-property/.eslintrc +0 -24
  293. package/node_modules/define-data-property/CHANGELOG.md +0 -70
  294. package/node_modules/define-data-property/README.md +0 -67
  295. package/node_modules/define-data-property/index.d.ts +0 -12
  296. package/node_modules/define-data-property/index.js +0 -56
  297. package/node_modules/define-data-property/package.json +0 -106
  298. package/node_modules/define-data-property/test/index.js +0 -392
  299. package/node_modules/define-data-property/tsconfig.json +0 -59
  300. package/node_modules/has-property-descriptors/.eslintrc +0 -13
  301. package/node_modules/has-property-descriptors/CHANGELOG.md +0 -35
  302. package/node_modules/has-property-descriptors/README.md +0 -43
  303. package/node_modules/has-property-descriptors/index.js +0 -22
  304. package/node_modules/has-property-descriptors/test/index.js +0 -57
  305. package/node_modules/has-proto/CHANGELOG.md +0 -38
  306. package/node_modules/has-proto/README.md +0 -38
  307. package/node_modules/has-proto/index.d.ts +0 -3
  308. package/node_modules/has-proto/index.js +0 -15
  309. package/node_modules/has-proto/test/index.js +0 -19
  310. package/node_modules/has-proto/tsconfig.json +0 -49
  311. package/node_modules/set-function-length/.eslintrc +0 -27
  312. package/node_modules/set-function-length/CHANGELOG.md +0 -70
  313. package/node_modules/set-function-length/LICENSE +0 -21
  314. package/node_modules/set-function-length/README.md +0 -56
  315. package/node_modules/set-function-length/env.d.ts +0 -9
  316. package/node_modules/set-function-length/env.js +0 -25
  317. package/node_modules/set-function-length/index.d.ts +0 -7
  318. package/node_modules/set-function-length/index.js +0 -42
  319. package/node_modules/set-function-length/package.json +0 -102
  320. /package/node_modules/{call-bind → call-bind-apply-helpers}/.eslintrc +0 -0
  321. /package/node_modules/{call-bind → call-bind-apply-helpers}/.nycrc +0 -0
  322. /package/node_modules/{has-property-descriptors → call-bound}/.nycrc +0 -0
  323. /package/node_modules/{set-function-length → call-bound}/tsconfig.json +0 -0
  324. /package/node_modules/{has-proto → dunder-proto}/.eslintrc +0 -0
  325. /package/node_modules/{define-data-property → dunder-proto}/.nycrc +0 -0
  326. /package/node_modules/{set-function-length → side-channel-list}/.nycrc +0 -0
@@ -4,7 +4,7 @@ github: [ljharb]
4
4
  patreon: # Replace with a single Patreon username
5
5
  open_collective: # Replace with a single Open Collective username
6
6
  ko_fi: # Replace with a single Ko-fi username
7
- tidelift: npm/has-property-descriptors
7
+ tidelift: npm/call-bind-apply-helpers
8
8
  community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9
9
  liberapay: # Replace with a single Liberapay username
10
10
  issuehunt: # Replace with a single IssueHunt username
@@ -0,0 +1,23 @@
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.1](https://github.com/ljharb/call-bind-apply-helpers/compare/v1.0.0...v1.0.1) - 2024-12-08
9
+
10
+ ### Commits
11
+
12
+ - [types] `reflectApply`: fix types [`4efc396`](https://github.com/ljharb/call-bind-apply-helpers/commit/4efc3965351a4f02cc55e836fa391d3d11ef2ef8)
13
+ - [Fix] `reflectApply`: oops, Reflect is not a function [`83cc739`](https://github.com/ljharb/call-bind-apply-helpers/commit/83cc7395de6b79b7730bdf092f1436f0b1263c75)
14
+ - [Dev Deps] update `@arethetypeswrong/cli` [`80bd5d3`](https://github.com/ljharb/call-bind-apply-helpers/commit/80bd5d3ae58b4f6b6995ce439dd5a1bcb178a940)
15
+
16
+ ## v1.0.0 - 2024-12-05
17
+
18
+ ### Commits
19
+
20
+ - Initial implementation, tests, readme [`7879629`](https://github.com/ljharb/call-bind-apply-helpers/commit/78796290f9b7430c9934d6f33d94ae9bc89fce04)
21
+ - Initial commit [`3f1dc16`](https://github.com/ljharb/call-bind-apply-helpers/commit/3f1dc164afc43285631b114a5f9dd9137b2b952f)
22
+ - npm init [`081df04`](https://github.com/ljharb/call-bind-apply-helpers/commit/081df048c312fcee400922026f6e97281200a603)
23
+ - Only apps should have lockfiles [`5b9ca0f`](https://github.com/ljharb/call-bind-apply-helpers/commit/5b9ca0fe8101ebfaf309c549caac4e0a017ed930)
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2020 Jordan Harband
3
+ Copyright (c) 2024 Jordan Harband
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -0,0 +1,62 @@
1
+ # call-bind-apply-helpers <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
+ Helper functions around Function call/apply/bind, for use in `call-bind`.
13
+
14
+ The only packages that should likely ever use this package directly are `call-bind` and `get-intrinsic`.
15
+ Please use `call-bind` unless you have a very good reason not to.
16
+
17
+ ## Getting started
18
+
19
+ ```sh
20
+ npm install --save call-bind-apply-helpers
21
+ ```
22
+
23
+ ## Usage/Examples
24
+
25
+ ```js
26
+ const assert = require('assert');
27
+ const callBindBasic = require('call-bind-apply-helpers');
28
+
29
+ function f(a, b) {
30
+ assert.equal(this, 1);
31
+ assert.equal(a, 2);
32
+ assert.equal(b, 3);
33
+ assert.equal(arguments.length, 2);
34
+ }
35
+
36
+ const fBound = callBindBasic([f, 1]);
37
+
38
+ delete Function.prototype.call;
39
+ delete Function.prototype.bind;
40
+
41
+ fBound(2, 3);
42
+ ```
43
+
44
+ ## Tests
45
+
46
+ Clone the repo, `npm install`, and run `npm test`
47
+
48
+ [package-url]: https://npmjs.org/package/call-bind-apply-helpers
49
+ [npm-version-svg]: https://versionbadg.es/ljharb/call-bind-apply-helpers.svg
50
+ [deps-svg]: https://david-dm.org/ljharb/call-bind-apply-helpers.svg
51
+ [deps-url]: https://david-dm.org/ljharb/call-bind-apply-helpers
52
+ [dev-deps-svg]: https://david-dm.org/ljharb/call-bind-apply-helpers/dev-status.svg
53
+ [dev-deps-url]: https://david-dm.org/ljharb/call-bind-apply-helpers#info=devDependencies
54
+ [npm-badge-png]: https://nodei.co/npm/call-bind-apply-helpers.png?downloads=true&stars=true
55
+ [license-image]: https://img.shields.io/npm/l/call-bind-apply-helpers.svg
56
+ [license-url]: LICENSE
57
+ [downloads-image]: https://img.shields.io/npm/dm/call-bind-apply-helpers.svg
58
+ [downloads-url]: https://npm-stat.com/charts.html?package=call-bind-apply-helpers
59
+ [codecov-image]: https://codecov.io/gh/ljharb/call-bind-apply-helpers/branch/main/graphs/badge.svg
60
+ [codecov-url]: https://app.codecov.io/gh/ljharb/call-bind-apply-helpers/
61
+ [actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/ljharb/call-bind-apply-helpers
62
+ [actions-url]: https://github.com/ljharb/call-bind-apply-helpers/actions
@@ -0,0 +1 @@
1
+ export = Reflect.apply;
@@ -0,0 +1,10 @@
1
+ 'use strict';
2
+
3
+ var bind = require('function-bind');
4
+
5
+ var $apply = require('./functionApply');
6
+ var $call = require('./functionCall');
7
+ var $reflectApply = require('./reflectApply');
8
+
9
+ /** @type {import('./actualApply')} */
10
+ module.exports = $reflectApply || bind.call($call, $apply);
@@ -0,0 +1,19 @@
1
+ import actualApply from './actualApply';
2
+
3
+ type TupleSplitHead<T extends any[], N extends number> = T['length'] extends N
4
+ ? T
5
+ : T extends [...infer R, any]
6
+ ? TupleSplitHead<R, N>
7
+ : never
8
+
9
+ type TupleSplitTail<T, N extends number, O extends any[] = []> = O['length'] extends N
10
+ ? T
11
+ : T extends [infer F, ...infer R]
12
+ ? TupleSplitTail<[...R], N, [...O, F]>
13
+ : never
14
+
15
+ type TupleSplit<T extends any[], N extends number> = [TupleSplitHead<T, N>, TupleSplitTail<T, N>]
16
+
17
+ declare function applyBind(...args: TupleSplit<Parameters<typeof actualApply>, 2>[1]): ReturnType<typeof actualApply>;
18
+
19
+ export = applyBind;
@@ -0,0 +1,10 @@
1
+ 'use strict';
2
+
3
+ var bind = require('function-bind');
4
+ var $apply = require('./functionApply');
5
+ var actualApply = require('./actualApply');
6
+
7
+ /** @type {import('./applyBind')} */
8
+ module.exports = function applyBind() {
9
+ return actualApply(bind, $apply, arguments);
10
+ };
@@ -0,0 +1 @@
1
+ export = Function.prototype.apply;
@@ -0,0 +1,4 @@
1
+ 'use strict';
2
+
3
+ /** @type {import('./functionApply')} */
4
+ module.exports = Function.prototype.apply;
@@ -0,0 +1 @@
1
+ export = Function.prototype.call;
@@ -0,0 +1,4 @@
1
+ 'use strict';
2
+
3
+ /** @type {import('./functionCall')} */
4
+ module.exports = Function.prototype.call;
@@ -0,0 +1,46 @@
1
+ type RemoveFromTuple<
2
+ Tuple extends unknown[],
3
+ RemoveCount extends number,
4
+ Index extends 1[] = []
5
+ > = Index["length"] extends RemoveCount
6
+ ? Tuple
7
+ : Tuple extends [first: unknown, ...infer Rest]
8
+ ? RemoveFromTuple<Rest, RemoveCount, [...Index, 1]>
9
+ : Tuple;
10
+
11
+ type ConcatTuples<
12
+ Prefix extends unknown[],
13
+ Suffix extends unknown[]
14
+ > = [...Prefix, ...Suffix];
15
+
16
+ type ReplaceThis<T, NewThis> = T extends (this: infer OldThis, ...args: infer A) => infer R
17
+ ? (this: NewThis, ...args: A) => R
18
+ : never;
19
+
20
+ type BindFunction<
21
+ TThis,
22
+ T extends (this: TThis, ...args: any[]) => any, // Allow specific types to propagate
23
+ TBoundArgs extends unknown[],
24
+ ReceiverBound extends boolean
25
+ > = ReceiverBound extends true
26
+ ? (...args: RemoveFromTuple<Parameters<T>, TBoundArgs["length"] & number>) => ReturnType<ReplaceThis<T, TThis>>
27
+ : (...args: ConcatTuples<[TThis], RemoveFromTuple<Parameters<T>, TBoundArgs["length"] & number>>) => ReturnType<T>;
28
+
29
+ declare function callBind<
30
+ TThis,
31
+ T extends (this: TThis, ...args: any[]) => any,
32
+ TBoundArgs extends Partial<Parameters<T>>
33
+ >(
34
+ args: [fn: T, thisArg: TThis, ...boundArgs: TBoundArgs]
35
+ ): BindFunction<TThis, T, TBoundArgs, true>;
36
+
37
+ declare function callBind<
38
+ TThis,
39
+ T extends (this: TThis, ...args: any[]) => any,
40
+ TBoundArgs extends Partial<Parameters<T>>
41
+ >(
42
+ args: [fn: T, ...boundArgs: TBoundArgs]
43
+ ): BindFunction<TThis, T, TBoundArgs, false>;
44
+
45
+ export as namespace callBind;
46
+ export = callBind;
@@ -0,0 +1,15 @@
1
+ 'use strict';
2
+
3
+ var bind = require('function-bind');
4
+ var $TypeError = require('es-errors/type');
5
+
6
+ var $call = require('./functionCall');
7
+ var $actualApply = require('./actualApply');
8
+
9
+ /** @type {import('.')} */
10
+ module.exports = function callBindBasic(args) {
11
+ if (args.length < 1 || typeof args[0] !== 'function') {
12
+ throw new $TypeError('a function is required');
13
+ }
14
+ return $actualApply(bind, $call, args);
15
+ };
@@ -0,0 +1,85 @@
1
+ {
2
+ "name": "call-bind-apply-helpers",
3
+ "version": "1.0.1",
4
+ "description": "Helper functions around Function call/apply/bind, for use in `call-bind`",
5
+ "main": "index.js",
6
+ "exports": {
7
+ ".": "./index.js",
8
+ "./actualApply": "./actualApply.js",
9
+ "./applyBind": "./applyBind.js",
10
+ "./functionApply": "./functionApply.js",
11
+ "./functionCall": "./functionCall.js",
12
+ "./reflectApply": "./reflectApply.js",
13
+ "./package.json": "./package.json"
14
+ },
15
+ "scripts": {
16
+ "prepack": "npmignore --auto --commentLines=auto",
17
+ "prepublish": "not-in-publish || npm run prepublishOnly",
18
+ "prepublishOnly": "safe-publish-latest",
19
+ "prelint": "evalmd README.md",
20
+ "lint": "eslint --ext=.js,.mjs .",
21
+ "postlint": "tsc -p . && attw -P",
22
+ "pretest": "npm run lint",
23
+ "tests-only": "nyc tape 'test/**/*.js'",
24
+ "test": "npm run tests-only",
25
+ "posttest": "npx npm@'>=10.2' audit --production",
26
+ "version": "auto-changelog && git add CHANGELOG.md",
27
+ "postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\""
28
+ },
29
+ "repository": {
30
+ "type": "git",
31
+ "url": "git+https://github.com/ljharb/call-bind-apply-helpers.git"
32
+ },
33
+ "author": "Jordan Harband <ljharb@gmail.com>",
34
+ "license": "MIT",
35
+ "bugs": {
36
+ "url": "https://github.com/ljharb/call-bind-apply-helpers/issues"
37
+ },
38
+ "homepage": "https://github.com/ljharb/call-bind-apply-helpers#readme",
39
+ "dependencies": {
40
+ "es-errors": "^1.3.0",
41
+ "function-bind": "^1.1.2"
42
+ },
43
+ "devDependencies": {
44
+ "@arethetypeswrong/cli": "^0.17.1",
45
+ "@ljharb/eslint-config": "^21.1.1",
46
+ "@ljharb/tsconfig": "^0.2.2",
47
+ "@types/for-each": "^0.3.3",
48
+ "@types/function-bind": "^1.1.10",
49
+ "@types/object-inspect": "^1.13.0",
50
+ "@types/tape": "^5.6.5",
51
+ "auto-changelog": "^2.5.0",
52
+ "encoding": "^0.1.13",
53
+ "es-value-fixtures": "^1.5.0",
54
+ "eslint": "=8.8.0",
55
+ "evalmd": "^0.0.19",
56
+ "for-each": "^0.3.3",
57
+ "has-strict-mode": "^1.0.1",
58
+ "in-publish": "^2.0.1",
59
+ "npmignore": "^0.3.1",
60
+ "nyc": "^10.3.2",
61
+ "object-inspect": "^1.13.3",
62
+ "safe-publish-latest": "^2.0.0",
63
+ "tape": "^5.9.0",
64
+ "typescript": "next"
65
+ },
66
+ "testling": {
67
+ "files": "test/index.js"
68
+ },
69
+ "auto-changelog": {
70
+ "output": "CHANGELOG.md",
71
+ "template": "keepachangelog",
72
+ "unreleased": false,
73
+ "commitLimit": false,
74
+ "backfillLimit": false,
75
+ "hideCredit": true
76
+ },
77
+ "publishConfig": {
78
+ "ignore": [
79
+ ".github/workflows"
80
+ ]
81
+ },
82
+ "engines": {
83
+ "node": ">= 0.4"
84
+ }
85
+ }
@@ -0,0 +1,3 @@
1
+ declare const reflectApply: false | typeof Reflect.apply;
2
+
3
+ export = reflectApply;
@@ -0,0 +1,4 @@
1
+ 'use strict';
2
+
3
+ /** @type {import('./reflectApply')} */
4
+ module.exports = typeof Reflect !== 'undefined' && Reflect && Reflect.apply;
@@ -0,0 +1,63 @@
1
+ 'use strict';
2
+
3
+ var callBind = require('../');
4
+ var hasStrictMode = require('has-strict-mode')();
5
+ var forEach = require('for-each');
6
+ var inspect = require('object-inspect');
7
+ var v = require('es-value-fixtures');
8
+
9
+ var test = require('tape');
10
+
11
+ test('callBindBasic', function (t) {
12
+ forEach(v.nonFunctions, function (nonFunction) {
13
+ t['throws'](
14
+ // @ts-expect-error
15
+ function () { callBind([nonFunction]); },
16
+ TypeError,
17
+ inspect(nonFunction) + ' is not a function'
18
+ );
19
+ });
20
+
21
+ var sentinel = { sentinel: true };
22
+ /** @type {<T>(this: T, a: number, b: number) => [T | undefined, number, number]} */
23
+ var func = function (a, b) {
24
+ // eslint-disable-next-line no-invalid-this
25
+ return [!hasStrictMode && this === global ? undefined : this, a, b];
26
+ };
27
+ t.equal(func.length, 2, 'original function length is 2');
28
+
29
+ /** type {(thisArg: unknown, a: number, b: number) => [unknown, number, number]} */
30
+ var bound = callBind([func]);
31
+ /** type {((a: number, b: number) => [sentinel, typeof a, typeof b])} */
32
+ var boundR = callBind([func, sentinel]);
33
+ /** type {((b: number) => [sentinel, number, typeof b])} */
34
+ var boundArg = callBind([func, sentinel, 1]);
35
+
36
+ // @ts-expect-error
37
+ t.deepEqual(bound(), [undefined, undefined, undefined], 'bound func with no args');
38
+
39
+ // @ts-expect-error
40
+ t.deepEqual(func(), [undefined, undefined, undefined], 'unbound func with too few args');
41
+ // @ts-expect-error
42
+ t.deepEqual(bound(1, 2), [hasStrictMode ? 1 : Object(1), 2, undefined], 'bound func too few args');
43
+ // @ts-expect-error
44
+ t.deepEqual(boundR(), [sentinel, undefined, undefined], 'bound func with receiver, with too few args');
45
+ // @ts-expect-error
46
+ t.deepEqual(boundArg(), [sentinel, 1, undefined], 'bound func with receiver and arg, with too few args');
47
+
48
+ t.deepEqual(func(1, 2), [undefined, 1, 2], 'unbound func with right args');
49
+ t.deepEqual(bound(1, 2, 3), [hasStrictMode ? 1 : Object(1), 2, 3], 'bound func with right args');
50
+ t.deepEqual(boundR(1, 2), [sentinel, 1, 2], 'bound func with receiver, with right args');
51
+ t.deepEqual(boundArg(2), [sentinel, 1, 2], 'bound func with receiver and arg, with right arg');
52
+
53
+ // @ts-expect-error
54
+ t.deepEqual(func(1, 2, 3), [undefined, 1, 2], 'unbound func with too many args');
55
+ // @ts-expect-error
56
+ t.deepEqual(bound(1, 2, 3, 4), [hasStrictMode ? 1 : Object(1), 2, 3], 'bound func with too many args');
57
+ // @ts-expect-error
58
+ t.deepEqual(boundR(1, 2, 3), [sentinel, 1, 2], 'bound func with receiver, with too many args');
59
+ // @ts-expect-error
60
+ t.deepEqual(boundArg(2, 3), [sentinel, 1, 2], 'bound func with receiver and arg, with too many args');
61
+
62
+ t.end();
63
+ });
@@ -0,0 +1,9 @@
1
+ {
2
+ "extends": "@ljharb/tsconfig",
3
+ "compilerOptions": {
4
+ "target": "es2021",
5
+ },
6
+ "exclude": [
7
+ "coverage",
8
+ ],
9
+ }
@@ -0,0 +1,13 @@
1
+ {
2
+ "root": true,
3
+
4
+ "extends": "@ljharb",
5
+
6
+ "rules": {
7
+ "new-cap": [2, {
8
+ "capIsNewExceptions": [
9
+ "GetIntrinsic",
10
+ ],
11
+ }],
12
+ },
13
+ }
@@ -4,7 +4,7 @@ github: [ljharb]
4
4
  patreon: # Replace with a single Patreon username
5
5
  open_collective: # Replace with a single Open Collective username
6
6
  ko_fi: # Replace with a single Ko-fi username
7
- tidelift: npm/call-bind
7
+ tidelift: npm/call-bound
8
8
  community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9
9
  liberapay: # Replace with a single Liberapay username
10
10
  issuehunt: # Replace with a single IssueHunt username
@@ -0,0 +1,34 @@
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.3](https://github.com/ljharb/call-bound/compare/v1.0.2...v1.0.3) - 2024-12-15
9
+
10
+ ### Commits
11
+
12
+ - [Refactor] use `call-bind-apply-helpers` instead of `call-bind` [`5e0b134`](https://github.com/ljharb/call-bound/commit/5e0b13496df14fb7d05dae9412f088da8d3f75be)
13
+ - [Deps] update `get-intrinsic` [`41fc967`](https://github.com/ljharb/call-bound/commit/41fc96732a22c7b7e8f381f93ccc54bb6293be2e)
14
+ - [readme] fix example [`79a0137`](https://github.com/ljharb/call-bound/commit/79a0137723f7c6d09c9c05452bbf8d5efb5d6e49)
15
+ - [meta] add `sideEffects` flag [`08b07be`](https://github.com/ljharb/call-bound/commit/08b07be7f1c03f67dc6f3cdaf0906259771859f7)
16
+
17
+ ## [v1.0.2](https://github.com/ljharb/call-bound/compare/v1.0.1...v1.0.2) - 2024-12-10
18
+
19
+ ### Commits
20
+
21
+ - [Dev Deps] update `@arethetypeswrong/cli`, `@ljharb/tsconfig`, `gopd` [`e6a5ffe`](https://github.com/ljharb/call-bound/commit/e6a5ffe849368fe4f74dfd6cdeca1b9baa39e8d5)
22
+ - [Deps] update `call-bind`, `get-intrinsic` [`2aeb5b5`](https://github.com/ljharb/call-bound/commit/2aeb5b521dc2b2683d1345c753ea1161de2d1c14)
23
+ - [types] improve return type [`1a0c9fe`](https://github.com/ljharb/call-bound/commit/1a0c9fe3114471e7ca1f57d104e2efe713bb4871)
24
+
25
+ ## v1.0.1 - 2024-12-05
26
+
27
+ ### Commits
28
+
29
+ - Initial implementation, tests, readme, types [`6d94121`](https://github.com/ljharb/call-bound/commit/6d94121a9243602e506334069f7a03189fe3363d)
30
+ - Initial commit [`0eae867`](https://github.com/ljharb/call-bound/commit/0eae867334ea025c33e6e91cdecfc9df96680cf9)
31
+ - npm init [`71b2479`](https://github.com/ljharb/call-bound/commit/71b2479c6723e0b7d91a6b663613067e98b7b275)
32
+ - Only apps should have lockfiles [`c3754a9`](https://github.com/ljharb/call-bound/commit/c3754a949b7f9132b47e2d18c1729889736741eb)
33
+ - [actions] skip `npm ls` in node &lt; 10 [`74275a5`](https://github.com/ljharb/call-bound/commit/74275a5186b8caf6309b6b97472bdcb0df4683a8)
34
+ - [Dev Deps] add missing peer dep [`1354de8`](https://github.com/ljharb/call-bound/commit/1354de8679413e4ae9c523d85f76fa7a5e032d97)
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2022 Inspect JS
3
+ Copyright (c) 2024 Jordan Harband
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -0,0 +1,53 @@
1
+ # call-bound <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
+ Robust call-bound JavaScript intrinsics, using `call-bind` and `get-intrinsic`.
13
+
14
+ ## Getting started
15
+
16
+ ```sh
17
+ npm install --save call-bound
18
+ ```
19
+
20
+ ## Usage/Examples
21
+
22
+ ```js
23
+ const assert = require('assert');
24
+ const callBound = require('call-bound');
25
+
26
+ const slice = callBound('Array.prototype.slice');
27
+
28
+ delete Function.prototype.call;
29
+ delete Function.prototype.bind;
30
+ delete Array.prototype.slice;
31
+
32
+ assert.deepEqual(slice([1, 2, 3, 4], 1, -1), [2, 3]);
33
+ ```
34
+
35
+ ## Tests
36
+
37
+ Clone the repo, `npm install`, and run `npm test`
38
+
39
+ [package-url]: https://npmjs.org/package/call-bound
40
+ [npm-version-svg]: https://versionbadg.es/ljharb/call-bound.svg
41
+ [deps-svg]: https://david-dm.org/ljharb/call-bound.svg
42
+ [deps-url]: https://david-dm.org/ljharb/call-bound
43
+ [dev-deps-svg]: https://david-dm.org/ljharb/call-bound/dev-status.svg
44
+ [dev-deps-url]: https://david-dm.org/ljharb/call-bound#info=devDependencies
45
+ [npm-badge-png]: https://nodei.co/npm/call-bound.png?downloads=true&stars=true
46
+ [license-image]: https://img.shields.io/npm/l/call-bound.svg
47
+ [license-url]: LICENSE
48
+ [downloads-image]: https://img.shields.io/npm/dm/call-bound.svg
49
+ [downloads-url]: https://npm-stat.com/charts.html?package=call-bound
50
+ [codecov-image]: https://codecov.io/gh/ljharb/call-bound/branch/main/graphs/badge.svg
51
+ [codecov-url]: https://app.codecov.io/gh/ljharb/call-bound/
52
+ [actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/ljharb/call-bound
53
+ [actions-url]: https://github.com/ljharb/call-bound/actions
@@ -0,0 +1,13 @@
1
+ import callBind from 'call-bind-apply-helpers';
2
+
3
+ declare function callBoundIntrinsic(
4
+ name: string,
5
+ allowMissing?: false
6
+ ): ReturnType<typeof callBind>;
7
+
8
+ declare function callBoundIntrinsic(
9
+ name: string,
10
+ allowMissing: true
11
+ ): undefined | ReturnType<typeof callBind>;
12
+
13
+ export = callBoundIntrinsic;
@@ -0,0 +1,18 @@
1
+ 'use strict';
2
+
3
+ var GetIntrinsic = require('get-intrinsic');
4
+
5
+ var callBindBasic = require('call-bind-apply-helpers');
6
+
7
+ /** @type {(thisArg: string, searchString: string, position?: number) => number} */
8
+ var $indexOf = callBindBasic([GetIntrinsic('%String.prototype.indexOf%')]);
9
+
10
+ /** @type {import('.')} */
11
+ module.exports = function callBoundIntrinsic(name, allowMissing) {
12
+ // eslint-disable-next-line no-extra-parens
13
+ var intrinsic = /** @type {Parameters<typeof callBindBasic>[0][0]} */ (GetIntrinsic(name, !!allowMissing));
14
+ if (typeof intrinsic === 'function' && $indexOf(name, '.prototype.') > -1) {
15
+ return callBindBasic([intrinsic]);
16
+ }
17
+ return intrinsic;
18
+ };
@@ -1,29 +1,30 @@
1
1
  {
2
- "name": "call-bind",
3
- "version": "1.0.7",
4
- "description": "Robustly `.call.bind()` a function",
2
+ "name": "call-bound",
3
+ "version": "1.0.3",
4
+ "description": "Robust call-bound JavaScript intrinsics, using `call-bind` and `get-intrinsic`.",
5
5
  "main": "index.js",
6
6
  "exports": {
7
7
  ".": "./index.js",
8
- "./callBound": "./callBound.js",
9
8
  "./package.json": "./package.json"
10
9
  },
10
+ "sideEffects": false,
11
11
  "scripts": {
12
12
  "prepack": "npmignore --auto --commentLines=auto",
13
13
  "prepublish": "not-in-publish || npm run prepublishOnly",
14
14
  "prepublishOnly": "safe-publish-latest",
15
+ "prelint": "evalmd README.md",
15
16
  "lint": "eslint --ext=.js,.mjs .",
16
- "postlint": "evalmd README.md",
17
+ "postlint": "tsc -p . && attw -P",
17
18
  "pretest": "npm run lint",
18
19
  "tests-only": "nyc tape 'test/**/*.js'",
19
20
  "test": "npm run tests-only",
20
- "posttest": "aud --production",
21
+ "posttest": "npx npm@'>=10.2' audit --production",
21
22
  "version": "auto-changelog && git add CHANGELOG.md",
22
23
  "postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\""
23
24
  },
24
25
  "repository": {
25
26
  "type": "git",
26
- "url": "git+https://github.com/ljharb/call-bind.git"
27
+ "url": "git+https://github.com/ljharb/call-bound.git"
27
28
  },
28
29
  "keywords": [
29
30
  "javascript",
@@ -46,32 +47,35 @@
46
47
  },
47
48
  "license": "MIT",
48
49
  "bugs": {
49
- "url": "https://github.com/ljharb/call-bind/issues"
50
+ "url": "https://github.com/ljharb/call-bound/issues"
51
+ },
52
+ "homepage": "https://github.com/ljharb/call-bound#readme",
53
+ "dependencies": {
54
+ "call-bind-apply-helpers": "^1.0.1",
55
+ "get-intrinsic": "^1.2.6"
50
56
  },
51
- "homepage": "https://github.com/ljharb/call-bind#readme",
52
57
  "devDependencies": {
53
- "@ljharb/eslint-config": "^21.1.0",
54
- "aud": "^2.0.4",
55
- "auto-changelog": "^2.4.0",
56
- "es-value-fixtures": "^1.4.2",
58
+ "@arethetypeswrong/cli": "^0.17.1",
59
+ "@ljharb/eslint-config": "^21.1.1",
60
+ "@ljharb/tsconfig": "^0.2.2",
61
+ "@types/call-bind": "^1.0.5",
62
+ "@types/get-intrinsic": "^1.2.3",
63
+ "@types/tape": "^5.6.5",
64
+ "auto-changelog": "^2.5.0",
65
+ "encoding": "^0.1.13",
66
+ "es-value-fixtures": "^1.5.0",
57
67
  "eslint": "=8.8.0",
58
68
  "evalmd": "^0.0.19",
59
69
  "for-each": "^0.3.3",
60
- "gopd": "^1.0.1",
70
+ "gopd": "^1.2.0",
61
71
  "has-strict-mode": "^1.0.1",
62
72
  "in-publish": "^2.0.1",
63
73
  "npmignore": "^0.3.1",
64
74
  "nyc": "^10.3.2",
65
- "object-inspect": "^1.13.1",
75
+ "object-inspect": "^1.13.3",
66
76
  "safe-publish-latest": "^2.0.0",
67
- "tape": "^5.7.4"
68
- },
69
- "dependencies": {
70
- "es-define-property": "^1.0.0",
71
- "es-errors": "^1.3.0",
72
- "function-bind": "^1.1.2",
73
- "get-intrinsic": "^1.2.4",
74
- "set-function-length": "^1.2.1"
77
+ "tape": "^5.9.0",
78
+ "typescript": "next"
75
79
  },
76
80
  "testling": {
77
81
  "files": "test/index.js"