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
@@ -1,392 +0,0 @@
1
- 'use strict';
2
-
3
- var test = require('tape');
4
- var v = require('es-value-fixtures');
5
- var forEach = require('for-each');
6
- var inspect = require('object-inspect');
7
- var hasOwn = require('hasown');
8
- var hasPropertyDescriptors = require('has-property-descriptors')();
9
- var getOwnPropertyDescriptors = require('object.getownpropertydescriptors');
10
- var ownKeys = require('reflect.ownkeys');
11
-
12
- var defineDataProperty = require('../');
13
-
14
- test('defineDataProperty', function (t) {
15
- t.test('argument validation', function (st) {
16
- forEach(v.primitives, function (nonObject) {
17
- st['throws'](
18
- // @ts-expect-error
19
- function () { defineDataProperty(nonObject, 'key', 'value'); },
20
- TypeError,
21
- 'throws on non-object input: ' + inspect(nonObject)
22
- );
23
- });
24
-
25
- forEach(v.nonPropertyKeys, function (nonPropertyKey) {
26
- st['throws'](
27
- // @ts-expect-error
28
- function () { defineDataProperty({}, nonPropertyKey, 'value'); },
29
- TypeError,
30
- 'throws on non-PropertyKey input: ' + inspect(nonPropertyKey)
31
- );
32
- });
33
-
34
- forEach(v.nonBooleans, function (nonBoolean) {
35
- if (nonBoolean !== null) {
36
- st['throws'](
37
- // @ts-expect-error
38
- function () { defineDataProperty({}, 'key', 'value', nonBoolean); },
39
- TypeError,
40
- 'throws on non-boolean nonEnumerable: ' + inspect(nonBoolean)
41
- );
42
-
43
- st['throws'](
44
- // @ts-expect-error
45
- function () { defineDataProperty({}, 'key', 'value', false, nonBoolean); },
46
- TypeError,
47
- 'throws on non-boolean nonWritable: ' + inspect(nonBoolean)
48
- );
49
-
50
- st['throws'](
51
- // @ts-expect-error
52
- function () { defineDataProperty({}, 'key', 'value', false, false, nonBoolean); },
53
- TypeError,
54
- 'throws on non-boolean nonConfigurable: ' + inspect(nonBoolean)
55
- );
56
- }
57
- });
58
-
59
- st.end();
60
- });
61
-
62
- t.test('normal data property', function (st) {
63
- /** @type {Record<PropertyKey, string>} */
64
- var obj = { existing: 'existing property' };
65
- st.ok(hasOwn(obj, 'existing'), 'has initial own property');
66
- st.equal(obj.existing, 'existing property', 'has expected initial value');
67
-
68
- var res = defineDataProperty(obj, 'added', 'added property');
69
- st.equal(res, void undefined, 'returns `undefined`');
70
- st.ok(hasOwn(obj, 'added'), 'has expected own property');
71
- st.equal(obj.added, 'added property', 'has expected value');
72
-
73
- defineDataProperty(obj, 'existing', 'new value');
74
- st.ok(hasOwn(obj, 'existing'), 'still has expected own property');
75
- st.equal(obj.existing, 'new value', 'has new expected value');
76
-
77
- defineDataProperty(obj, 'explicit1', 'new value', false);
78
- st.ok(hasOwn(obj, 'explicit1'), 'has expected own property (explicit enumerable)');
79
- st.equal(obj.explicit1, 'new value', 'has new expected value (explicit enumerable)');
80
-
81
- defineDataProperty(obj, 'explicit2', 'new value', false, false);
82
- st.ok(hasOwn(obj, 'explicit2'), 'has expected own property (explicit writable)');
83
- st.equal(obj.explicit2, 'new value', 'has new expected value (explicit writable)');
84
-
85
- defineDataProperty(obj, 'explicit3', 'new value', false, false, false);
86
- st.ok(hasOwn(obj, 'explicit3'), 'has expected own property (explicit configurable)');
87
- st.equal(obj.explicit3, 'new value', 'has new expected value (explicit configurable)');
88
-
89
- st.end();
90
- });
91
-
92
- t.test('loose mode', { skip: !hasPropertyDescriptors }, function (st) {
93
- var obj = { existing: 'existing property' };
94
-
95
- defineDataProperty(obj, 'added', 'added value 1', true, null, null, true);
96
- st.deepEqual(
97
- getOwnPropertyDescriptors(obj),
98
- {
99
- existing: {
100
- configurable: true,
101
- enumerable: true,
102
- value: 'existing property',
103
- writable: true
104
- },
105
- added: {
106
- configurable: true,
107
- enumerable: !hasPropertyDescriptors,
108
- value: 'added value 1',
109
- writable: true
110
- }
111
- },
112
- 'in loose mode, obj still adds property 1'
113
- );
114
-
115
- defineDataProperty(obj, 'added', 'added value 2', false, true, null, true);
116
- st.deepEqual(
117
- getOwnPropertyDescriptors(obj),
118
- {
119
- existing: {
120
- configurable: true,
121
- enumerable: true,
122
- value: 'existing property',
123
- writable: true
124
- },
125
- added: {
126
- configurable: true,
127
- enumerable: true,
128
- value: 'added value 2',
129
- writable: !hasPropertyDescriptors
130
- }
131
- },
132
- 'in loose mode, obj still adds property 2'
133
- );
134
-
135
- defineDataProperty(obj, 'added', 'added value 3', false, false, true, true);
136
- st.deepEqual(
137
- getOwnPropertyDescriptors(obj),
138
- {
139
- existing: {
140
- configurable: true,
141
- enumerable: true,
142
- value: 'existing property',
143
- writable: true
144
- },
145
- added: {
146
- configurable: !hasPropertyDescriptors,
147
- enumerable: true,
148
- value: 'added value 3',
149
- writable: true
150
- }
151
- },
152
- 'in loose mode, obj still adds property 3'
153
- );
154
-
155
- st.end();
156
- });
157
-
158
- t.test('non-normal data property, ES3', { skip: hasPropertyDescriptors }, function (st) {
159
- /** @type {Record<PropertyKey, string>} */
160
- var obj = { existing: 'existing property' };
161
-
162
- st['throws'](
163
- function () { defineDataProperty(obj, 'added', 'added value', true); },
164
- SyntaxError,
165
- 'nonEnumerable throws a Syntax Error'
166
- );
167
-
168
- st['throws'](
169
- function () { defineDataProperty(obj, 'added', 'added value', false, true); },
170
- SyntaxError,
171
- 'nonWritable throws a Syntax Error'
172
- );
173
-
174
- st['throws'](
175
- function () { defineDataProperty(obj, 'added', 'added value', false, false, true); },
176
- SyntaxError,
177
- 'nonWritable throws a Syntax Error'
178
- );
179
-
180
- st.deepEqual(
181
- ownKeys(obj),
182
- ['existing'],
183
- 'obj still has expected keys'
184
- );
185
- st.equal(obj.existing, 'existing property', 'obj still has expected values');
186
-
187
- st.end();
188
- });
189
-
190
- t.test('new non-normal data property, ES5+', { skip: !hasPropertyDescriptors }, function (st) {
191
- /** @type {Record<PropertyKey, string>} */
192
- var obj = { existing: 'existing property' };
193
-
194
- defineDataProperty(obj, 'nonEnum', null, true);
195
- defineDataProperty(obj, 'nonWrit', null, false, true);
196
- defineDataProperty(obj, 'nonConf', null, false, false, true);
197
-
198
- st.deepEqual(
199
- getOwnPropertyDescriptors(obj),
200
- {
201
- existing: {
202
- configurable: true,
203
- enumerable: true,
204
- value: 'existing property',
205
- writable: true
206
- },
207
- nonEnum: {
208
- configurable: true,
209
- enumerable: false,
210
- value: null,
211
- writable: true
212
- },
213
- nonWrit: {
214
- configurable: true,
215
- enumerable: true,
216
- value: null,
217
- writable: false
218
- },
219
- nonConf: {
220
- configurable: false,
221
- enumerable: true,
222
- value: null,
223
- writable: true
224
- }
225
- },
226
- 'obj has expected property descriptors'
227
- );
228
-
229
- st.end();
230
- });
231
-
232
- t.test('existing non-normal data property, ES5+', { skip: !hasPropertyDescriptors }, function (st) {
233
- // test case changing an existing non-normal property
234
-
235
- /** @type {Record<string, null | string>} */
236
- var obj = {};
237
- Object.defineProperty(obj, 'nonEnum', { configurable: true, enumerable: false, value: null, writable: true });
238
- Object.defineProperty(obj, 'nonWrit', { configurable: true, enumerable: true, value: null, writable: false });
239
- Object.defineProperty(obj, 'nonConf', { configurable: false, enumerable: true, value: null, writable: true });
240
-
241
- st.deepEqual(
242
- getOwnPropertyDescriptors(obj),
243
- {
244
- nonEnum: {
245
- configurable: true,
246
- enumerable: false,
247
- value: null,
248
- writable: true
249
- },
250
- nonWrit: {
251
- configurable: true,
252
- enumerable: true,
253
- value: null,
254
- writable: false
255
- },
256
- nonConf: {
257
- configurable: false,
258
- enumerable: true,
259
- value: null,
260
- writable: true
261
- }
262
- },
263
- 'obj initially has expected property descriptors'
264
- );
265
-
266
- defineDataProperty(obj, 'nonEnum', 'new value', false);
267
- defineDataProperty(obj, 'nonWrit', 'new value', false, false);
268
- st['throws'](
269
- function () { defineDataProperty(obj, 'nonConf', 'new value', false, false, false); },
270
- TypeError,
271
- 'can not alter a nonconfigurable property'
272
- );
273
-
274
- st.deepEqual(
275
- getOwnPropertyDescriptors(obj),
276
- {
277
- nonEnum: {
278
- configurable: true,
279
- enumerable: true,
280
- value: 'new value',
281
- writable: true
282
- },
283
- nonWrit: {
284
- configurable: true,
285
- enumerable: true,
286
- value: 'new value',
287
- writable: true
288
- },
289
- nonConf: {
290
- configurable: false,
291
- enumerable: true,
292
- value: null,
293
- writable: true
294
- }
295
- },
296
- 'obj ends up with expected property descriptors'
297
- );
298
-
299
- st.end();
300
- });
301
-
302
- t.test('frozen object, ES5+', { skip: !hasPropertyDescriptors }, function (st) {
303
- var frozen = Object.freeze({ existing: true });
304
-
305
- st['throws'](
306
- function () { defineDataProperty(frozen, 'existing', 'new value'); },
307
- TypeError,
308
- 'frozen object can not modify an existing property'
309
- );
310
-
311
- st['throws'](
312
- function () { defineDataProperty(frozen, 'new', 'new property'); },
313
- TypeError,
314
- 'frozen object can not add a new property'
315
- );
316
-
317
- st.end();
318
- });
319
-
320
- t.test('sealed object, ES5+', { skip: !hasPropertyDescriptors }, function (st) {
321
- var sealed = Object.seal({ existing: true });
322
- st.deepEqual(
323
- Object.getOwnPropertyDescriptor(sealed, 'existing'),
324
- {
325
- configurable: false,
326
- enumerable: true,
327
- value: true,
328
- writable: true
329
- },
330
- 'existing value on sealed object has expected descriptor'
331
- );
332
-
333
- defineDataProperty(sealed, 'existing', 'new value');
334
-
335
- st.deepEqual(
336
- Object.getOwnPropertyDescriptor(sealed, 'existing'),
337
- {
338
- configurable: false,
339
- enumerable: true,
340
- value: 'new value',
341
- writable: true
342
- },
343
- 'existing value on sealed object has changed descriptor'
344
- );
345
-
346
- st['throws'](
347
- function () { defineDataProperty(sealed, 'new', 'new property'); },
348
- TypeError,
349
- 'sealed object can not add a new property'
350
- );
351
-
352
- st.end();
353
- });
354
-
355
- t.test('nonextensible object, ES5+', { skip: !hasPropertyDescriptors }, function (st) {
356
- var nonExt = Object.preventExtensions({ existing: true });
357
-
358
- st.deepEqual(
359
- Object.getOwnPropertyDescriptor(nonExt, 'existing'),
360
- {
361
- configurable: true,
362
- enumerable: true,
363
- value: true,
364
- writable: true
365
- },
366
- 'existing value on non-extensible object has expected descriptor'
367
- );
368
-
369
- defineDataProperty(nonExt, 'existing', 'new value', true);
370
-
371
- st.deepEqual(
372
- Object.getOwnPropertyDescriptor(nonExt, 'existing'),
373
- {
374
- configurable: true,
375
- enumerable: false,
376
- value: 'new value',
377
- writable: true
378
- },
379
- 'existing value on non-extensible object has changed descriptor'
380
- );
381
-
382
- st['throws'](
383
- function () { defineDataProperty(nonExt, 'new', 'new property'); },
384
- TypeError,
385
- 'non-extensible object can not add a new property'
386
- );
387
-
388
- st.end();
389
- });
390
-
391
- t.end();
392
- });
@@ -1,59 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- /* Visit https://aka.ms/tsconfig to read more about this file */
4
-
5
- /* Projects */
6
-
7
- /* Language and Environment */
8
- "target": "es2022", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
9
- // "lib": [], /* Specify a set of bundled library declaration files that describe the target runtime environment. */
10
- // "noLib": true, /* Disable including any library files, including the default lib.d.ts. */
11
- "useDefineForClassFields": true, /* Emit ECMAScript-standard-compliant class fields. */
12
- // "moduleDetection": "auto", /* Control what method is used to detect module-format JS files. */
13
-
14
- /* Modules */
15
- "module": "commonjs", /* Specify what module code is generated. */
16
- // "rootDir": "./", /* Specify the root folder within your source files. */
17
- // "moduleResolution": "node10", /* Specify how TypeScript looks up a file from a given module specifier. */
18
- // "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */
19
- // "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */
20
- // "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */
21
- "typeRoots": ["types"], /* Specify multiple folders that act like './node_modules/@types'. */
22
- "resolveJsonModule": true, /* Enable importing .json files. */
23
-
24
- /* JavaScript Support */
25
- "allowJs": true, /* Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files. */
26
- "checkJs": true, /* Enable error reporting in type-checked JavaScript files. */
27
- "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'. */
28
-
29
- /* Emit */
30
- "declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */
31
- "declarationMap": true, /* Create sourcemaps for d.ts files. */
32
- // "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */
33
- "noEmit": true, /* Disable emitting files from a compilation. */
34
-
35
- /* Interop Constraints */
36
- "allowSyntheticDefaultImports": true, /* Allow 'import x from y' when a module doesn't have a default export. */
37
- "esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */
38
- "forceConsistentCasingInFileNames": true, /* Ensure that casing is correct in imports. */
39
-
40
- /* Type Checking */
41
- "strict": true, /* Enable all strict type-checking options. */
42
- "noImplicitAny": true, /* Enable error reporting for expressions and declarations with an implied 'any' type. */
43
- "noImplicitThis": true, /* Enable error reporting when 'this' is given the type 'any'. */
44
- "useUnknownInCatchVariables": true, /* Default catch clause variables as 'unknown' instead of 'any'. */
45
- "noUnusedLocals": true, /* Enable error reporting when local variables aren't read. */
46
- "noUnusedParameters": true, /* Raise an error when a function parameter isn't read. */
47
- "noImplicitReturns": true, /* Enable error reporting for codepaths that do not explicitly return in a function. */
48
- "noFallthroughCasesInSwitch": true, /* Enable error reporting for fallthrough cases in switch statements. */
49
- "noUncheckedIndexedAccess": true, /* Add 'undefined' to a type when accessed using an index. */
50
- "noImplicitOverride": true, /* Ensure overriding members in derived classes are marked with an override modifier. */
51
- // "noPropertyAccessFromIndexSignature": true, /* Enforces using indexed accessors for keys declared using an indexed type. */
52
-
53
- /* Completeness */
54
- // "skipLibCheck": true /* Skip type checking all .d.ts files. */
55
- },
56
- "exclude": [
57
- "coverage"
58
- ]
59
- }
@@ -1,13 +0,0 @@
1
- {
2
- "root": true,
3
-
4
- "extends": "@ljharb",
5
-
6
- "rules": {
7
- "func-name-matching": 0,
8
- "id-length": 0,
9
- "new-cap": [2, {
10
- "capIsNewExceptions": ["GetIntrinsic"],
11
- }],
12
- },
13
- }
@@ -1,35 +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.2](https://github.com/inspect-js/has-property-descriptors/compare/v1.0.1...v1.0.2) - 2024-02-12
9
-
10
- ### Commits
11
-
12
- - [Refactor] use `es-define-property` [`f93a8c8`](https://github.com/inspect-js/has-property-descriptors/commit/f93a8c85eba70cbceab500f2619fb5cce73a1805)
13
- - [Dev Deps] update `aud`, `npmignore`, `tape` [`42b0c9d`](https://github.com/inspect-js/has-property-descriptors/commit/42b0c9d1c23e747755f0f2924923c418ea34a9ee)
14
- - [Deps] update `get-intrinsic` [`35e9b46`](https://github.com/inspect-js/has-property-descriptors/commit/35e9b46a7f14331bf0de98b644dd803676746037)
15
-
16
- ## [v1.0.1](https://github.com/inspect-js/has-property-descriptors/compare/v1.0.0...v1.0.1) - 2023-10-20
17
-
18
- ### Commits
19
-
20
- - [meta] use `npmignore` to autogenerate an npmignore file [`5bbf4da`](https://github.com/inspect-js/has-property-descriptors/commit/5bbf4dae1b58950d87bb3af508bee7513e640868)
21
- - [actions] update rebase action to use reusable workflow [`3a5585b`](https://github.com/inspect-js/has-property-descriptors/commit/3a5585bf74988f71a8f59e67a07d594e62c51fd8)
22
- - [Dev Deps] update `@ljharb/eslint-config`, `aud`, `tape` [`e5c1212`](https://github.com/inspect-js/has-property-descriptors/commit/e5c1212048a8fda549794c47863724ca60b89cae)
23
- - [Dev Deps] update `aud`, `tape` [`e942917`](https://github.com/inspect-js/has-property-descriptors/commit/e942917b6c2f7c090d5623048989cf20d0834ebf)
24
- - [Deps] update `get-intrinsic` [`f4a44ec`](https://github.com/inspect-js/has-property-descriptors/commit/f4a44ec6d94146fa6c550d3c15c31a2062c83ef4)
25
- - [Deps] update `get-intrinsic` [`eeb275b`](https://github.com/inspect-js/has-property-descriptors/commit/eeb275b473e5d72ca843b61ca25cfcb06a5d4300)
26
-
27
- ## v1.0.0 - 2022-04-14
28
-
29
- ### Commits
30
-
31
- - Initial implementation, tests [`303559f`](https://github.com/inspect-js/has-property-descriptors/commit/303559f2a72dfe7111573a1aec475ed4a184c35a)
32
- - Initial commit [`3a7ca2d`](https://github.com/inspect-js/has-property-descriptors/commit/3a7ca2dc49f1fff0279a28bb16265e7615e14749)
33
- - read me [`dd73dce`](https://github.com/inspect-js/has-property-descriptors/commit/dd73dce09d89d0f7a4a6e3b1e562a506f979a767)
34
- - npm init [`c1e6557`](https://github.com/inspect-js/has-property-descriptors/commit/c1e655779de632d68cb944c50da6b71bcb7b8c85)
35
- - Only apps should have lockfiles [`e72f7c6`](https://github.com/inspect-js/has-property-descriptors/commit/e72f7c68de534b2d273ee665f8b18d4ecc7f70b0)
@@ -1,43 +0,0 @@
1
- # has-property-descriptors <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
- Does the environment have full property descriptor support? Handles IE 8's broken defineProperty/gOPD.
13
-
14
- ## Example
15
-
16
- ```js
17
- var hasPropertyDescriptors = require('has-property-descriptors');
18
- var assert = require('assert');
19
-
20
- assert.equal(hasPropertyDescriptors(), true); // will be `false` in IE 6-8, and ES5 engines
21
-
22
- // Arrays can not have their length `[[Defined]]` in some engines
23
- assert.equal(hasPropertyDescriptors.hasArrayLengthDefineBug(), false); // will be `true` in Firefox 4-22, and node v0.6
24
- ```
25
-
26
- ## Tests
27
- Simply clone the repo, `npm install`, and run `npm test`
28
-
29
- [package-url]: https://npmjs.org/package/has-property-descriptors
30
- [npm-version-svg]: https://versionbadg.es/inspect-js/has-property-descriptors.svg
31
- [deps-svg]: https://david-dm.org/inspect-js/has-property-descriptors.svg
32
- [deps-url]: https://david-dm.org/inspect-js/has-property-descriptors
33
- [dev-deps-svg]: https://david-dm.org/inspect-js/has-property-descriptors/dev-status.svg
34
- [dev-deps-url]: https://david-dm.org/inspect-js/has-property-descriptors#info=devDependencies
35
- [npm-badge-png]: https://nodei.co/npm/has-property-descriptors.png?downloads=true&stars=true
36
- [license-image]: https://img.shields.io/npm/l/has-property-descriptors.svg
37
- [license-url]: LICENSE
38
- [downloads-image]: https://img.shields.io/npm/dm/has-property-descriptors.svg
39
- [downloads-url]: https://npm-stat.com/charts.html?package=has-property-descriptors
40
- [codecov-image]: https://codecov.io/gh/inspect-js/has-property-descriptors/branch/main/graphs/badge.svg
41
- [codecov-url]: https://app.codecov.io/gh/inspect-js/has-property-descriptors/
42
- [actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/inspect-js/has-property-descriptors
43
- [actions-url]: https://github.com/inspect-js/has-property-descriptors/actions
@@ -1,22 +0,0 @@
1
- 'use strict';
2
-
3
- var $defineProperty = require('es-define-property');
4
-
5
- var hasPropertyDescriptors = function hasPropertyDescriptors() {
6
- return !!$defineProperty;
7
- };
8
-
9
- hasPropertyDescriptors.hasArrayLengthDefineBug = function hasArrayLengthDefineBug() {
10
- // node v0.6 has a bug where array lengths can be Set but not Defined
11
- if (!$defineProperty) {
12
- return null;
13
- }
14
- try {
15
- return $defineProperty([], 'length', { value: 1 }).length !== 1;
16
- } catch (e) {
17
- // In Firefox 4-22, defining length on an array throws an exception.
18
- return true;
19
- }
20
- };
21
-
22
- module.exports = hasPropertyDescriptors;
@@ -1,57 +0,0 @@
1
- 'use strict';
2
-
3
- var test = require('tape');
4
-
5
- var hasPropertyDescriptors = require('../');
6
-
7
- var sentinel = {};
8
-
9
- test('hasPropertyDescriptors', function (t) {
10
- t.equal(typeof hasPropertyDescriptors, 'function', 'is a function');
11
- t.equal(typeof hasPropertyDescriptors.hasArrayLengthDefineBug, 'function', '`hasArrayLengthDefineBug` property is a function');
12
-
13
- var yes = hasPropertyDescriptors();
14
- t.test('property descriptors', { skip: !yes }, function (st) {
15
- var o = { a: sentinel };
16
-
17
- st.deepEqual(
18
- Object.getOwnPropertyDescriptor(o, 'a'),
19
- {
20
- configurable: true,
21
- enumerable: true,
22
- value: sentinel,
23
- writable: true
24
- },
25
- 'has expected property descriptor'
26
- );
27
-
28
- Object.defineProperty(o, 'a', { enumerable: false, writable: false });
29
-
30
- st.deepEqual(
31
- Object.getOwnPropertyDescriptor(o, 'a'),
32
- {
33
- configurable: true,
34
- enumerable: false,
35
- value: sentinel,
36
- writable: false
37
- },
38
- 'has expected property descriptor after [[Define]]'
39
- );
40
-
41
- st.end();
42
- });
43
-
44
- var arrayBug = hasPropertyDescriptors.hasArrayLengthDefineBug();
45
- t.test('defining array lengths', { skip: !yes || arrayBug }, function (st) {
46
- var arr = [1, , 3]; // eslint-disable-line no-sparse-arrays
47
- st.equal(arr.length, 3, 'array starts with length 3');
48
-
49
- Object.defineProperty(arr, 'length', { value: 5 });
50
-
51
- st.equal(arr.length, 5, 'array ends with length 5');
52
-
53
- st.end();
54
- });
55
-
56
- t.end();
57
- });
@@ -1,38 +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.3](https://github.com/inspect-js/has-proto/compare/v1.0.2...v1.0.3) - 2024-02-19
9
-
10
- ### Commits
11
-
12
- - [types] add missing declaration file [`26ecade`](https://github.com/inspect-js/has-proto/commit/26ecade05d253bb5dc376945ee3186d1fbe334f8)
13
-
14
- ## [v1.0.2](https://github.com/inspect-js/has-proto/compare/v1.0.1...v1.0.2) - 2024-02-19
15
-
16
- ### Commits
17
-
18
- - add types [`6435262`](https://github.com/inspect-js/has-proto/commit/64352626cf511c0276d5f4bb6be770a0bf0f8524)
19
- - [Dev Deps] update `@ljharb/eslint-config`, `aud`, `npmignore`, `tape` [`f16a5e4`](https://github.com/inspect-js/has-proto/commit/f16a5e4121651e551271419f9d60fdd3561fd82c)
20
- - [Refactor] tiny cleanup [`d1f1a4b`](https://github.com/inspect-js/has-proto/commit/d1f1a4bdc135f115a10f148ce302676224534702)
21
- - [meta] add `sideEffects` flag [`e7ab1a6`](https://github.com/inspect-js/has-proto/commit/e7ab1a6f153b3e80dee68d1748b71e46767a0531)
22
-
23
- ## [v1.0.1](https://github.com/inspect-js/has-proto/compare/v1.0.0...v1.0.1) - 2022-12-21
24
-
25
- ### Commits
26
-
27
- - [meta] correct URLs and description [`ef34483`](https://github.com/inspect-js/has-proto/commit/ef34483ca0d35680f271b6b96e35526151b25dfc)
28
- - [patch] add an additional criteria [`e81959e`](https://github.com/inspect-js/has-proto/commit/e81959ed7c7a77fbf459f00cb4ef824f1099497f)
29
- - [Dev Deps] update `aud` [`2bec2c4`](https://github.com/inspect-js/has-proto/commit/2bec2c47b072b122ff5443fba0263f6dc649531f)
30
-
31
- ## v1.0.0 - 2022-12-12
32
-
33
- ### Commits
34
-
35
- - Initial implementation, tests, readme [`6886fea`](https://github.com/inspect-js/has-proto/commit/6886fea578f67daf69a7920b2eb7637ea6ebb0bc)
36
- - Initial commit [`99129c8`](https://github.com/inspect-js/has-proto/commit/99129c8f42471ac89cb681ba9cb9d52a583eb94f)
37
- - npm init [`2844ad8`](https://github.com/inspect-js/has-proto/commit/2844ad8e75b84d66a46765b3bab9d2e8ea692e10)
38
- - Only apps should have lockfiles [`c65bc5e`](https://github.com/inspect-js/has-proto/commit/c65bc5e40b9004463f7336d47c67245fb139a36a)