meteor-node-stubs 1.2.17 → 1.2.18

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 (427) hide show
  1. package/node_modules/@meteorjs/browserify-sign/browser/verify.js +1 -1
  2. package/node_modules/@meteorjs/browserify-sign/package.json +21 -5
  3. package/node_modules/@meteorjs/create-ecdh/browser.js +1 -1
  4. package/node_modules/@meteorjs/create-ecdh/elliptic/benchmarks/deps/jodid.js +82 -0
  5. package/node_modules/@meteorjs/create-ecdh/elliptic/benchmarks/deps/secp256k1.js +41 -0
  6. package/node_modules/@meteorjs/create-ecdh/elliptic/benchmarks/index.js +153 -0
  7. package/node_modules/@meteorjs/create-ecdh/elliptic/benchmarks/package.json +21 -0
  8. package/node_modules/@meteorjs/create-ecdh/elliptic/dist/.gitkeep +0 -0
  9. package/node_modules/@meteorjs/create-ecdh/elliptic/dist/elliptic.js +8961 -0
  10. package/node_modules/@meteorjs/create-ecdh/elliptic/dist/elliptic.min.js +1 -0
  11. package/node_modules/{elliptic → @meteorjs/create-ecdh/elliptic}/lib/elliptic.js +1 -1
  12. package/node_modules/@meteorjs/create-ecdh/elliptic/test/api-test.js +20 -0
  13. package/node_modules/@meteorjs/create-ecdh/elliptic/test/curve-test.js +357 -0
  14. package/node_modules/@meteorjs/create-ecdh/elliptic/test/ecdh-test.js +43 -0
  15. package/node_modules/@meteorjs/create-ecdh/elliptic/test/ecdsa-test.js +547 -0
  16. package/node_modules/@meteorjs/create-ecdh/elliptic/test/ed25519-test.js +138 -0
  17. package/node_modules/@meteorjs/create-ecdh/elliptic/test/fixtures/derivation-fixtures.js +3842 -0
  18. package/node_modules/@meteorjs/create-ecdh/elliptic/test/fixtures/sign.input +1024 -0
  19. package/node_modules/@meteorjs/create-ecdh/elliptic/test/index.js +10 -0
  20. package/node_modules/@meteorjs/create-ecdh/elliptic/test/unittests.html +39 -0
  21. package/node_modules/@meteorjs/create-ecdh/node_modules/bn.js/lib/bn.js +1 -0
  22. package/node_modules/@meteorjs/create-ecdh/node_modules/bn.js/package.json +1 -1
  23. package/node_modules/@meteorjs/create-ecdh/package.json +23 -5
  24. package/node_modules/asn1.js/node_modules/bn.js/lib/bn.js +6 -5
  25. package/node_modules/asn1.js/node_modules/bn.js/package.json +1 -1
  26. package/node_modules/asn1.js/node_modules/bn.js/util/genCombMulTo.js +65 -0
  27. package/node_modules/asn1.js/node_modules/bn.js/util/genCombMulTo10.js +65 -0
  28. package/node_modules/available-typed-arrays/.eslintrc +0 -4
  29. package/node_modules/available-typed-arrays/CHANGELOG.md +21 -0
  30. package/node_modules/available-typed-arrays/README.md +16 -13
  31. package/node_modules/available-typed-arrays/index.d.ts +8 -0
  32. package/node_modules/available-typed-arrays/index.js +4 -14
  33. package/node_modules/available-typed-arrays/package.json +26 -15
  34. package/node_modules/available-typed-arrays/tsconfig.json +49 -0
  35. package/node_modules/bn.js/README.md +11 -5
  36. package/node_modules/bn.js/lib/bn.js +6 -5
  37. package/node_modules/bn.js/package.json +1 -1
  38. package/node_modules/browserify-rsa/CHANGELOG.md +98 -0
  39. package/node_modules/browserify-rsa/README.md +0 -2
  40. package/node_modules/browserify-rsa/index.js +31 -28
  41. package/node_modules/browserify-rsa/package.json +64 -29
  42. package/node_modules/call-bind/CHANGELOG.md +13 -0
  43. package/node_modules/call-bind/index.js +6 -17
  44. package/node_modules/call-bind/package.json +14 -16
  45. package/node_modules/call-bind/test/index.js +4 -10
  46. package/node_modules/call-bind-apply-helpers/.eslintrc +17 -0
  47. package/node_modules/call-bind-apply-helpers/.github/FUNDING.yml +12 -0
  48. package/node_modules/call-bind-apply-helpers/.nycrc +9 -0
  49. package/node_modules/call-bind-apply-helpers/CHANGELOG.md +30 -0
  50. package/node_modules/{has-proto → call-bind-apply-helpers}/LICENSE +1 -1
  51. package/node_modules/call-bind-apply-helpers/README.md +62 -0
  52. package/node_modules/call-bind-apply-helpers/actualApply.d.ts +1 -0
  53. package/node_modules/call-bind-apply-helpers/actualApply.js +10 -0
  54. package/node_modules/call-bind-apply-helpers/applyBind.d.ts +19 -0
  55. package/node_modules/call-bind-apply-helpers/applyBind.js +10 -0
  56. package/node_modules/call-bind-apply-helpers/functionApply.d.ts +1 -0
  57. package/node_modules/call-bind-apply-helpers/functionApply.js +4 -0
  58. package/node_modules/call-bind-apply-helpers/functionCall.d.ts +1 -0
  59. package/node_modules/call-bind-apply-helpers/functionCall.js +4 -0
  60. package/node_modules/call-bind-apply-helpers/index.d.ts +64 -0
  61. package/node_modules/call-bind-apply-helpers/index.js +15 -0
  62. package/node_modules/call-bind-apply-helpers/package.json +85 -0
  63. package/node_modules/call-bind-apply-helpers/reflectApply.d.ts +3 -0
  64. package/node_modules/call-bind-apply-helpers/reflectApply.js +4 -0
  65. package/node_modules/call-bind-apply-helpers/test/index.js +63 -0
  66. package/node_modules/call-bind-apply-helpers/tsconfig.json +9 -0
  67. package/node_modules/call-bound/.eslintrc +13 -0
  68. package/node_modules/call-bound/.github/FUNDING.yml +12 -0
  69. package/node_modules/call-bound/.nycrc +9 -0
  70. package/node_modules/call-bound/CHANGELOG.md +42 -0
  71. package/node_modules/{@meteorjs/browserify-sign/node_modules/bn.js → call-bound}/LICENSE +3 -1
  72. package/node_modules/call-bound/README.md +53 -0
  73. package/node_modules/call-bound/index.d.ts +94 -0
  74. package/node_modules/call-bound/index.js +19 -0
  75. package/node_modules/call-bound/package.json +99 -0
  76. package/node_modules/call-bound/test/index.js +61 -0
  77. package/node_modules/call-bound/tsconfig.json +10 -0
  78. package/node_modules/cipher-base/.eslintrc +24 -1
  79. package/node_modules/cipher-base/.github/FUNDING.yml +12 -0
  80. package/node_modules/cipher-base/CHANGELOG.md +66 -0
  81. package/node_modules/cipher-base/index.js +145 -77
  82. package/node_modules/cipher-base/package.json +60 -30
  83. package/node_modules/cipher-base/test/index.js +221 -0
  84. package/node_modules/des.js/lib/des/cipher.js +1 -0
  85. package/node_modules/des.js/lib/des/des.js +8 -0
  86. package/node_modules/des.js/package.json +3 -4
  87. package/node_modules/des.js/test/cbc-test.js +5 -5
  88. package/node_modules/des.js/test/des-test.js +9 -9
  89. package/node_modules/des.js/test/ede-test.js +39 -6
  90. package/node_modules/diffie-hellman/node_modules/bn.js/lib/bn.js +6 -5
  91. package/node_modules/diffie-hellman/node_modules/bn.js/package.json +1 -1
  92. package/node_modules/diffie-hellman/node_modules/bn.js/util/genCombMulTo.js +65 -0
  93. package/node_modules/diffie-hellman/node_modules/bn.js/util/genCombMulTo10.js +65 -0
  94. package/node_modules/dunder-proto/.github/FUNDING.yml +12 -0
  95. package/node_modules/dunder-proto/.nycrc +13 -0
  96. package/node_modules/dunder-proto/CHANGELOG.md +24 -0
  97. package/node_modules/{@meteorjs/crypto-browserify/node_modules/hash-base → dunder-proto}/LICENSE +6 -6
  98. package/node_modules/dunder-proto/README.md +54 -0
  99. package/node_modules/dunder-proto/get.d.ts +5 -0
  100. package/node_modules/dunder-proto/get.js +30 -0
  101. package/node_modules/dunder-proto/package.json +76 -0
  102. package/node_modules/dunder-proto/set.d.ts +5 -0
  103. package/node_modules/dunder-proto/set.js +35 -0
  104. package/node_modules/dunder-proto/test/get.js +34 -0
  105. package/node_modules/dunder-proto/test/index.js +4 -0
  106. package/node_modules/dunder-proto/test/set.js +50 -0
  107. package/node_modules/dunder-proto/tsconfig.json +9 -0
  108. package/node_modules/es-define-property/CHANGELOG.md +14 -0
  109. package/node_modules/es-define-property/index.js +1 -3
  110. package/node_modules/es-define-property/package.json +12 -12
  111. package/node_modules/es-define-property/test/index.js +1 -0
  112. package/node_modules/es-define-property/tsconfig.json +2 -42
  113. package/node_modules/es-object-atoms/.eslintrc +16 -0
  114. package/node_modules/es-object-atoms/.github/FUNDING.yml +12 -0
  115. package/node_modules/es-object-atoms/CHANGELOG.md +37 -0
  116. package/node_modules/{elliptic/node_modules/bn.js → es-object-atoms}/LICENSE +3 -1
  117. package/node_modules/es-object-atoms/README.md +63 -0
  118. package/node_modules/es-object-atoms/RequireObjectCoercible.d.ts +3 -0
  119. package/node_modules/es-object-atoms/RequireObjectCoercible.js +11 -0
  120. package/node_modules/es-object-atoms/ToObject.d.ts +7 -0
  121. package/node_modules/es-object-atoms/ToObject.js +10 -0
  122. package/node_modules/es-object-atoms/index.d.ts +3 -0
  123. package/node_modules/es-object-atoms/index.js +4 -0
  124. package/node_modules/es-object-atoms/isObject.d.ts +3 -0
  125. package/node_modules/es-object-atoms/isObject.js +6 -0
  126. package/node_modules/es-object-atoms/package.json +80 -0
  127. package/node_modules/es-object-atoms/test/index.js +38 -0
  128. package/node_modules/es-object-atoms/tsconfig.json +6 -0
  129. package/node_modules/for-each/.eslintrc +16 -2
  130. package/node_modules/{has-proto → for-each}/.github/FUNDING.yml +1 -1
  131. package/node_modules/for-each/.github/SECURITY.md +3 -0
  132. package/node_modules/for-each/.nycrc +8 -0
  133. package/node_modules/for-each/CHANGELOG.md +107 -0
  134. package/node_modules/for-each/README.md +0 -4
  135. package/node_modules/for-each/index.d.ts +35 -0
  136. package/node_modules/for-each/index.js +11 -4
  137. package/node_modules/for-each/package.json +47 -36
  138. package/node_modules/for-each/test/test.js +54 -12
  139. package/node_modules/for-each/tsconfig.json +8 -0
  140. package/node_modules/get-intrinsic/.eslintrc +4 -0
  141. package/node_modules/get-intrinsic/CHANGELOG.md +43 -0
  142. package/node_modules/get-intrinsic/index.js +40 -21
  143. package/node_modules/get-intrinsic/package.json +24 -20
  144. package/node_modules/get-intrinsic/test/GetIntrinsic.js +2 -2
  145. package/node_modules/get-proto/.eslintrc +10 -0
  146. package/node_modules/get-proto/.github/FUNDING.yml +12 -0
  147. package/node_modules/get-proto/.nycrc +9 -0
  148. package/node_modules/get-proto/CHANGELOG.md +21 -0
  149. package/node_modules/get-proto/LICENSE +21 -0
  150. package/node_modules/get-proto/Object.getPrototypeOf.d.ts +5 -0
  151. package/node_modules/get-proto/Object.getPrototypeOf.js +6 -0
  152. package/node_modules/get-proto/README.md +50 -0
  153. package/node_modules/get-proto/Reflect.getPrototypeOf.d.ts +3 -0
  154. package/node_modules/get-proto/Reflect.getPrototypeOf.js +4 -0
  155. package/node_modules/get-proto/index.d.ts +5 -0
  156. package/node_modules/get-proto/index.js +27 -0
  157. package/node_modules/{has-proto → get-proto}/package.json +33 -26
  158. package/node_modules/get-proto/test/index.js +68 -0
  159. package/node_modules/get-proto/tsconfig.json +9 -0
  160. package/node_modules/gopd/CHANGELOG.md +20 -0
  161. package/node_modules/gopd/gOPD.d.ts +1 -0
  162. package/node_modules/gopd/gOPD.js +4 -0
  163. package/node_modules/gopd/index.d.ts +5 -0
  164. package/node_modules/gopd/index.js +2 -3
  165. package/node_modules/gopd/package.json +16 -10
  166. package/node_modules/gopd/test/index.js +2 -1
  167. package/node_modules/gopd/tsconfig.json +9 -0
  168. package/node_modules/has-symbols/CHANGELOG.md +16 -0
  169. package/node_modules/has-symbols/index.d.ts +3 -0
  170. package/node_modules/has-symbols/index.js +1 -0
  171. package/node_modules/has-symbols/package.json +19 -9
  172. package/node_modules/has-symbols/shams.d.ts +3 -0
  173. package/node_modules/has-symbols/shams.js +5 -2
  174. package/node_modules/has-symbols/test/shams/core-js.js +1 -0
  175. package/node_modules/has-symbols/test/shams/get-own-property-symbols.js +1 -0
  176. package/node_modules/has-symbols/test/tests.js +4 -2
  177. package/node_modules/has-symbols/tsconfig.json +10 -0
  178. package/node_modules/has-tostringtag/.eslintrc +0 -6
  179. package/node_modules/has-tostringtag/.nycrc +13 -0
  180. package/node_modules/has-tostringtag/CHANGELOG.md +22 -0
  181. package/node_modules/has-tostringtag/index.d.ts +3 -0
  182. package/node_modules/has-tostringtag/index.js +1 -0
  183. package/node_modules/has-tostringtag/package.json +37 -13
  184. package/node_modules/has-tostringtag/shams.d.ts +3 -0
  185. package/node_modules/has-tostringtag/shams.js +1 -0
  186. package/node_modules/has-tostringtag/test/shams/core-js.js +3 -0
  187. package/node_modules/has-tostringtag/test/shams/get-own-property-symbols.js +2 -0
  188. package/node_modules/has-tostringtag/test/tests.js +2 -1
  189. package/node_modules/has-tostringtag/tsconfig.json +49 -0
  190. package/node_modules/hash-base/README.md +15 -15
  191. package/node_modules/hash-base/index.js +52 -9
  192. package/node_modules/hash-base/package.json +40 -40
  193. package/node_modules/hasown/CHANGELOG.md +20 -0
  194. package/node_modules/hasown/index.d.ts +3 -3
  195. package/node_modules/hasown/index.js +1 -1
  196. package/node_modules/hasown/package.json +16 -15
  197. package/node_modules/hasown/tsconfig.json +3 -46
  198. package/node_modules/is-arguments/.eslintrc +0 -1
  199. package/node_modules/is-arguments/CHANGELOG.md +22 -0
  200. package/node_modules/is-arguments/README.md +11 -11
  201. package/node_modules/is-arguments/index.d.ts +6 -0
  202. package/node_modules/is-arguments/index.js +19 -8
  203. package/node_modules/is-arguments/package.json +25 -11
  204. package/node_modules/is-arguments/test/index.js +4 -1
  205. package/node_modules/is-arguments/tsconfig.json +9 -0
  206. package/node_modules/is-generator-function/.eslintrc +1 -1
  207. package/node_modules/is-generator-function/CHANGELOG.md +21 -0
  208. package/node_modules/is-generator-function/index.d.ts +3 -0
  209. package/node_modules/is-generator-function/index.js +16 -7
  210. package/node_modules/is-generator-function/package.json +30 -11
  211. package/node_modules/is-generator-function/test/corejs.js +1 -0
  212. package/node_modules/is-generator-function/test/index.js +4 -7
  213. package/node_modules/is-generator-function/test/uglified.js +1 -0
  214. package/node_modules/is-generator-function/tsconfig.json +9 -0
  215. package/node_modules/is-regex/.editorconfig +23 -0
  216. package/node_modules/is-regex/.eslintrc +10 -0
  217. package/node_modules/is-regex/.nycrc +10 -0
  218. package/node_modules/is-regex/CHANGELOG.md +233 -0
  219. package/node_modules/is-regex/LICENSE +20 -0
  220. package/node_modules/is-regex/README.md +52 -0
  221. package/node_modules/is-regex/index.d.ts +3 -0
  222. package/node_modules/is-regex/index.js +69 -0
  223. package/node_modules/is-regex/package.json +104 -0
  224. package/node_modules/is-regex/test/index.js +121 -0
  225. package/node_modules/is-regex/tsconfig.json +9 -0
  226. package/node_modules/is-typed-array/CHANGELOG.md +32 -0
  227. package/node_modules/is-typed-array/index.d.ts +9 -0
  228. package/node_modules/is-typed-array/index.js +1 -0
  229. package/node_modules/is-typed-array/package.json +23 -10
  230. package/node_modules/is-typed-array/test/index.js +9 -1
  231. package/node_modules/is-typed-array/tsconfig.json +6 -0
  232. package/node_modules/math-intrinsics/.eslintrc +16 -0
  233. package/node_modules/math-intrinsics/.github/FUNDING.yml +12 -0
  234. package/node_modules/math-intrinsics/CHANGELOG.md +24 -0
  235. package/node_modules/math-intrinsics/LICENSE +21 -0
  236. package/node_modules/math-intrinsics/README.md +50 -0
  237. package/node_modules/math-intrinsics/abs.d.ts +1 -0
  238. package/node_modules/math-intrinsics/abs.js +4 -0
  239. package/node_modules/math-intrinsics/constants/maxArrayLength.d.ts +3 -0
  240. package/node_modules/math-intrinsics/constants/maxArrayLength.js +4 -0
  241. package/node_modules/math-intrinsics/constants/maxSafeInteger.d.ts +3 -0
  242. package/node_modules/math-intrinsics/constants/maxSafeInteger.js +5 -0
  243. package/node_modules/math-intrinsics/constants/maxValue.d.ts +3 -0
  244. package/node_modules/math-intrinsics/constants/maxValue.js +5 -0
  245. package/node_modules/math-intrinsics/floor.d.ts +1 -0
  246. package/node_modules/math-intrinsics/floor.js +4 -0
  247. package/node_modules/math-intrinsics/isFinite.d.ts +3 -0
  248. package/node_modules/math-intrinsics/isFinite.js +12 -0
  249. package/node_modules/math-intrinsics/isInteger.d.ts +3 -0
  250. package/node_modules/math-intrinsics/isInteger.js +16 -0
  251. package/node_modules/math-intrinsics/isNaN.d.ts +1 -0
  252. package/node_modules/math-intrinsics/isNaN.js +6 -0
  253. package/node_modules/math-intrinsics/isNegativeZero.d.ts +3 -0
  254. package/node_modules/math-intrinsics/isNegativeZero.js +6 -0
  255. package/node_modules/math-intrinsics/max.d.ts +1 -0
  256. package/node_modules/math-intrinsics/max.js +4 -0
  257. package/node_modules/math-intrinsics/min.d.ts +1 -0
  258. package/node_modules/math-intrinsics/min.js +4 -0
  259. package/node_modules/math-intrinsics/mod.d.ts +3 -0
  260. package/node_modules/math-intrinsics/mod.js +9 -0
  261. package/node_modules/math-intrinsics/package.json +86 -0
  262. package/node_modules/math-intrinsics/pow.d.ts +1 -0
  263. package/node_modules/math-intrinsics/pow.js +4 -0
  264. package/node_modules/math-intrinsics/round.d.ts +1 -0
  265. package/node_modules/math-intrinsics/round.js +4 -0
  266. package/node_modules/math-intrinsics/sign.d.ts +3 -0
  267. package/node_modules/math-intrinsics/sign.js +11 -0
  268. package/node_modules/math-intrinsics/test/index.js +192 -0
  269. package/node_modules/math-intrinsics/tsconfig.json +3 -0
  270. package/node_modules/miller-rabin/node_modules/bn.js/lib/bn.js +6 -5
  271. package/node_modules/miller-rabin/node_modules/bn.js/package.json +1 -1
  272. package/node_modules/miller-rabin/node_modules/bn.js/util/genCombMulTo.js +65 -0
  273. package/node_modules/miller-rabin/node_modules/bn.js/util/genCombMulTo10.js +65 -0
  274. package/node_modules/object-inspect/CHANGELOG.md +20 -0
  275. package/node_modules/object-inspect/index.js +27 -10
  276. package/node_modules/object-inspect/package.json +9 -8
  277. package/node_modules/object-inspect/test/quoteStyle.js +9 -0
  278. package/node_modules/object-inspect/test/values.js +50 -0
  279. package/node_modules/object-is/.eslintrc +1 -1
  280. package/node_modules/object-is/.nycrc +0 -4
  281. package/node_modules/object-is/CHANGELOG.md +25 -0
  282. package/node_modules/object-is/README.md +20 -20
  283. package/node_modules/object-is/package.json +23 -14
  284. package/node_modules/object.assign/CHANGELOG.md +21 -0
  285. package/node_modules/object.assign/dist/browser.js +495 -135
  286. package/node_modules/object.assign/implementation.js +6 -6
  287. package/node_modules/object.assign/package.json +14 -14
  288. package/node_modules/object.assign/test/tests.js +2 -2
  289. package/node_modules/possible-typed-array-names/.eslintrc +5 -0
  290. package/node_modules/possible-typed-array-names/.github/FUNDING.yml +12 -0
  291. package/node_modules/possible-typed-array-names/CHANGELOG.md +29 -0
  292. package/node_modules/possible-typed-array-names/LICENSE +21 -0
  293. package/node_modules/possible-typed-array-names/README.md +50 -0
  294. package/node_modules/possible-typed-array-names/index.d.ts +16 -0
  295. package/node_modules/possible-typed-array-names/index.js +17 -0
  296. package/node_modules/possible-typed-array-names/package.json +84 -0
  297. package/node_modules/possible-typed-array-names/test/index.js +19 -0
  298. package/node_modules/possible-typed-array-names/tsconfig.json +9 -0
  299. package/node_modules/public-encrypt/node_modules/bn.js/lib/bn.js +6 -5
  300. package/node_modules/public-encrypt/node_modules/bn.js/package.json +1 -1
  301. package/node_modules/public-encrypt/node_modules/bn.js/util/genCombMulTo.js +65 -0
  302. package/node_modules/public-encrypt/node_modules/bn.js/util/genCombMulTo10.js +65 -0
  303. package/node_modules/qs/.eslintrc +1 -0
  304. package/node_modules/qs/CHANGELOG.md +22 -0
  305. package/node_modules/qs/README.md +25 -1
  306. package/node_modules/qs/dist/qs.js +95 -44
  307. package/node_modules/qs/lib/parse.js +44 -12
  308. package/node_modules/qs/lib/stringify.js +11 -6
  309. package/node_modules/qs/lib/utils.js +7 -4
  310. package/node_modules/qs/package.json +9 -7
  311. package/node_modules/qs/test/parse.js +133 -27
  312. package/node_modules/qs/test/stringify.js +19 -11
  313. package/node_modules/qs/test/utils.js +126 -0
  314. package/node_modules/safe-regex-test/.eslintrc +9 -0
  315. package/node_modules/safe-regex-test/.github/FUNDING.yml +12 -0
  316. package/node_modules/safe-regex-test/.nycrc +13 -0
  317. package/node_modules/safe-regex-test/CHANGELOG.md +55 -0
  318. package/node_modules/safe-regex-test/LICENSE +21 -0
  319. package/node_modules/safe-regex-test/README.md +46 -0
  320. package/node_modules/safe-regex-test/index.d.ts +3 -0
  321. package/node_modules/safe-regex-test/index.js +17 -0
  322. package/node_modules/safe-regex-test/package.json +87 -0
  323. package/node_modules/safe-regex-test/test/index.js +41 -0
  324. package/node_modules/safe-regex-test/tsconfig.json +9 -0
  325. package/node_modules/side-channel/.eslintrc +1 -0
  326. package/node_modules/side-channel/CHANGELOG.md +15 -0
  327. package/node_modules/side-channel/README.md +60 -1
  328. package/node_modules/side-channel/index.d.ts +9 -22
  329. package/node_modules/side-channel/index.js +20 -106
  330. package/node_modules/side-channel/package.json +20 -19
  331. package/node_modules/side-channel/test/index.js +76 -55
  332. package/node_modules/side-channel/tsconfig.json +2 -43
  333. package/node_modules/side-channel-list/.editorconfig +9 -0
  334. package/node_modules/side-channel-list/.eslintrc +11 -0
  335. package/node_modules/side-channel-list/.github/FUNDING.yml +12 -0
  336. package/node_modules/side-channel-list/.nycrc +13 -0
  337. package/node_modules/side-channel-list/CHANGELOG.md +15 -0
  338. package/node_modules/side-channel-list/LICENSE +21 -0
  339. package/node_modules/side-channel-list/README.md +62 -0
  340. package/node_modules/side-channel-list/index.d.ts +13 -0
  341. package/node_modules/side-channel-list/index.js +113 -0
  342. package/node_modules/side-channel-list/list.d.ts +14 -0
  343. package/node_modules/side-channel-list/package.json +77 -0
  344. package/node_modules/side-channel-list/test/index.js +104 -0
  345. package/node_modules/side-channel-list/tsconfig.json +9 -0
  346. package/node_modules/side-channel-map/.editorconfig +9 -0
  347. package/node_modules/side-channel-map/.eslintrc +11 -0
  348. package/node_modules/side-channel-map/.github/FUNDING.yml +12 -0
  349. package/node_modules/side-channel-map/.nycrc +13 -0
  350. package/node_modules/side-channel-map/CHANGELOG.md +22 -0
  351. package/node_modules/side-channel-map/LICENSE +21 -0
  352. package/node_modules/side-channel-map/README.md +62 -0
  353. package/node_modules/side-channel-map/index.d.ts +15 -0
  354. package/node_modules/side-channel-map/index.js +68 -0
  355. package/node_modules/side-channel-map/package.json +80 -0
  356. package/node_modules/side-channel-map/test/index.js +114 -0
  357. package/node_modules/side-channel-map/tsconfig.json +9 -0
  358. package/node_modules/side-channel-weakmap/.editorconfig +9 -0
  359. package/node_modules/side-channel-weakmap/.eslintrc +12 -0
  360. package/node_modules/side-channel-weakmap/.github/FUNDING.yml +12 -0
  361. package/node_modules/side-channel-weakmap/.nycrc +13 -0
  362. package/node_modules/side-channel-weakmap/CHANGELOG.md +28 -0
  363. package/node_modules/side-channel-weakmap/LICENSE +21 -0
  364. package/node_modules/side-channel-weakmap/README.md +62 -0
  365. package/node_modules/side-channel-weakmap/index.d.ts +15 -0
  366. package/node_modules/side-channel-weakmap/index.js +84 -0
  367. package/node_modules/side-channel-weakmap/package.json +87 -0
  368. package/node_modules/side-channel-weakmap/test/index.js +114 -0
  369. package/node_modules/side-channel-weakmap/tsconfig.json +9 -0
  370. package/node_modules/which-typed-array/.eslintrc +1 -0
  371. package/node_modules/which-typed-array/CHANGELOG.md +57 -0
  372. package/node_modules/which-typed-array/index.d.ts +62 -0
  373. package/node_modules/which-typed-array/index.js +50 -25
  374. package/node_modules/which-typed-array/package.json +28 -13
  375. package/node_modules/which-typed-array/test/index.js +7 -1
  376. package/node_modules/which-typed-array/tsconfig.json +9 -0
  377. package/package.json +2 -3
  378. package/node_modules/@meteorjs/browserify-sign/node_modules/bn.js/README.md +0 -214
  379. package/node_modules/@meteorjs/browserify-sign/node_modules/bn.js/lib/bn.js +0 -3547
  380. package/node_modules/@meteorjs/browserify-sign/node_modules/bn.js/package.json +0 -39
  381. package/node_modules/@meteorjs/browserify-sign/node_modules/hash-base/LICENSE +0 -21
  382. package/node_modules/@meteorjs/browserify-sign/node_modules/hash-base/README.md +0 -48
  383. package/node_modules/@meteorjs/browserify-sign/node_modules/hash-base/index.js +0 -138
  384. package/node_modules/@meteorjs/browserify-sign/node_modules/hash-base/package.json +0 -42
  385. package/node_modules/@meteorjs/crypto-browserify/node_modules/hash-base/README.md +0 -48
  386. package/node_modules/@meteorjs/crypto-browserify/node_modules/hash-base/index.js +0 -95
  387. package/node_modules/@meteorjs/crypto-browserify/node_modules/hash-base/package.json +0 -41
  388. package/node_modules/available-typed-arrays/.eslintignore +0 -1
  389. package/node_modules/bn.js/CHANGELOG.md +0 -51
  390. package/node_modules/cipher-base/.npmignore +0 -1
  391. package/node_modules/cipher-base/.travis.yml +0 -6
  392. package/node_modules/cipher-base/test.js +0 -111
  393. package/node_modules/elliptic/node_modules/bn.js/README.md +0 -200
  394. package/node_modules/elliptic/node_modules/bn.js/lib/bn.js +0 -3446
  395. package/node_modules/elliptic/node_modules/bn.js/package.json +0 -36
  396. package/node_modules/elliptic/package.json +0 -56
  397. package/node_modules/for-each/.travis.yml +0 -45
  398. package/node_modules/for-each/test/.eslintrc +0 -8
  399. package/node_modules/has-proto/CHANGELOG.md +0 -23
  400. package/node_modules/has-proto/README.md +0 -38
  401. package/node_modules/has-proto/index.js +0 -11
  402. package/node_modules/has-proto/test/index.js +0 -19
  403. package/node_modules/hasown/index.d.ts.map +0 -1
  404. package/node_modules/is-arguments/.eslintignore +0 -1
  405. package/node_modules/is-generator-function/.eslintignore +0 -1
  406. package/node_modules/object-is/.eslintignore +0 -1
  407. package/node_modules/object.assign/test.html +0 -18458
  408. package/node_modules/parse-asn1/node_modules/hash-base/LICENSE +0 -21
  409. package/node_modules/parse-asn1/node_modules/hash-base/README.md +0 -48
  410. package/node_modules/parse-asn1/node_modules/hash-base/index.js +0 -95
  411. package/node_modules/parse-asn1/node_modules/hash-base/package.json +0 -41
  412. /package/node_modules/{elliptic → @meteorjs/create-ecdh/elliptic}/README.md +0 -0
  413. /package/node_modules/{elliptic → @meteorjs/create-ecdh/elliptic}/lib/elliptic/curve/base.js +0 -0
  414. /package/node_modules/{elliptic → @meteorjs/create-ecdh/elliptic}/lib/elliptic/curve/edwards.js +0 -0
  415. /package/node_modules/{elliptic → @meteorjs/create-ecdh/elliptic}/lib/elliptic/curve/index.js +0 -0
  416. /package/node_modules/{elliptic → @meteorjs/create-ecdh/elliptic}/lib/elliptic/curve/mont.js +0 -0
  417. /package/node_modules/{elliptic → @meteorjs/create-ecdh/elliptic}/lib/elliptic/curve/short.js +0 -0
  418. /package/node_modules/{elliptic → @meteorjs/create-ecdh/elliptic}/lib/elliptic/curves.js +0 -0
  419. /package/node_modules/{elliptic → @meteorjs/create-ecdh/elliptic}/lib/elliptic/ec/index.js +0 -0
  420. /package/node_modules/{elliptic → @meteorjs/create-ecdh/elliptic}/lib/elliptic/ec/key.js +0 -0
  421. /package/node_modules/{elliptic → @meteorjs/create-ecdh/elliptic}/lib/elliptic/ec/signature.js +0 -0
  422. /package/node_modules/{elliptic → @meteorjs/create-ecdh/elliptic}/lib/elliptic/eddsa/index.js +0 -0
  423. /package/node_modules/{elliptic → @meteorjs/create-ecdh/elliptic}/lib/elliptic/eddsa/key.js +0 -0
  424. /package/node_modules/{elliptic → @meteorjs/create-ecdh/elliptic}/lib/elliptic/eddsa/signature.js +0 -0
  425. /package/node_modules/{elliptic → @meteorjs/create-ecdh/elliptic}/lib/elliptic/precomputed/secp256k1.js +0 -0
  426. /package/node_modules/{elliptic → @meteorjs/create-ecdh/elliptic}/lib/elliptic/utils.js +0 -0
  427. /package/node_modules/{has-proto → dunder-proto}/.eslintrc +0 -0
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "has-tostringtag",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "author": {
5
5
  "name": "Jordan Harband",
6
6
  "email": "ljharb@gmail.com",
@@ -19,18 +19,32 @@
19
19
  "description": "Determine if the JS environment has `Symbol.toStringTag` support. Supports spec, or shams.",
20
20
  "license": "MIT",
21
21
  "main": "index.js",
22
+ "types": "./index.d.ts",
22
23
  "exports": {
23
- ".": "./index.js",
24
- "./shams": "./shams.js",
24
+ ".": [
25
+ {
26
+ "types": "./index.d.ts",
27
+ "default": "./index.js"
28
+ },
29
+ "./index.js"
30
+ ],
31
+ "./shams": [
32
+ {
33
+ "types": "./shams.d.ts",
34
+ "default": "./shams.js"
35
+ },
36
+ "./shams.js"
37
+ ],
25
38
  "./package.json": "./package.json"
26
39
  },
27
40
  "scripts": {
41
+ "prepack": "npmignore --auto --commentLines=autogenerated",
28
42
  "prepublishOnly": "safe-publish-latest",
29
43
  "prepublish": "not-in-publish || npm run prepublishOnly",
30
44
  "pretest": "npm run --silent lint",
31
45
  "test": "npm run tests-only",
32
46
  "posttest": "aud --production",
33
- "tests-only": "npm run test:stock && npm run test:staging && npm run test:shams",
47
+ "tests-only": "npm run test:stock && npm run test:shams",
34
48
  "test:stock": "nyc node test",
35
49
  "test:staging": "nyc node --harmony --es-staging test",
36
50
  "test:shams": "npm run --silent test:shams:getownpropertysymbols && npm run --silent test:shams:corejs",
@@ -56,19 +70,21 @@
56
70
  "tostringtag",
57
71
  "Symbol.toStringTag"
58
72
  ],
59
- "dependencies": {
60
- "has-symbols": "^1.0.2"
61
- },
62
73
  "devDependencies": {
63
- "@ljharb/eslint-config": "^17.6.0",
64
- "aud": "^1.1.5",
65
- "auto-changelog": "^2.3.0",
74
+ "@ljharb/eslint-config": "^21.1.0",
75
+ "@types/has-symbols": "^1.0.2",
76
+ "@types/tape": "^5.6.4",
77
+ "aud": "^2.0.4",
78
+ "auto-changelog": "^2.4.0",
66
79
  "core-js": "^2.6.12",
67
- "eslint": "^7.32.0",
80
+ "eslint": "=8.8.0",
68
81
  "get-own-property-symbols": "^0.9.5",
82
+ "in-publish": "^2.0.1",
83
+ "npmignore": "^0.3.1",
69
84
  "nyc": "^10.3.2",
70
- "safe-publish-latest": "^1.1.4",
71
- "tape": "^5.3.0"
85
+ "safe-publish-latest": "^2.0.0",
86
+ "tape": "^5.7.4",
87
+ "typescript": "next"
72
88
  },
73
89
  "engines": {
74
90
  "node": ">= 0.4"
@@ -80,5 +96,13 @@
80
96
  "commitLimit": false,
81
97
  "backfillLimit": false,
82
98
  "hideCredit": true
99
+ },
100
+ "publishConfig": {
101
+ "ignore": [
102
+ ".github/workflows"
103
+ ]
104
+ },
105
+ "dependencies": {
106
+ "has-symbols": "^1.0.3"
83
107
  }
84
108
  }
@@ -0,0 +1,3 @@
1
+ declare function hasToStringTagShams(): boolean;
2
+
3
+ export = hasToStringTagShams;
@@ -2,6 +2,7 @@
2
2
 
3
3
  var hasSymbols = require('has-symbols/shams');
4
4
 
5
+ /** @type {import('.')} */
5
6
  module.exports = function hasToStringTagShams() {
6
7
  return hasSymbols() && !!Symbol.toStringTag;
7
8
  };
@@ -8,6 +8,7 @@ if (typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol') {
8
8
  t.equal(typeof Symbol.toStringTag, 'symbol');
9
9
  t.end();
10
10
  });
11
+ // @ts-expect-error CJS has top-level return
11
12
  return;
12
13
  }
13
14
 
@@ -16,7 +17,9 @@ var hasSymbolToStringTag = require('../../shams');
16
17
  test('polyfilled Symbols', function (t) {
17
18
  /* eslint-disable global-require */
18
19
  t.equal(hasSymbolToStringTag(), false, 'hasSymbolToStringTag is false before polyfilling');
20
+ // @ts-expect-error no types defined
19
21
  require('core-js/fn/symbol');
22
+ // @ts-expect-error no types defined
20
23
  require('core-js/fn/symbol/to-string-tag');
21
24
 
22
25
  require('../tests')(t);
@@ -8,6 +8,7 @@ if (typeof Symbol === 'function' && typeof Symbol() === 'symbol') {
8
8
  t.equal(typeof Symbol(), 'symbol');
9
9
  t.end();
10
10
  });
11
+ // @ts-expect-error CJS has top-level return
11
12
  return;
12
13
  }
13
14
 
@@ -17,6 +18,7 @@ test('polyfilled Symbols', function (t) {
17
18
  /* eslint-disable global-require */
18
19
  t.equal(hasSymbolToStringTag(), false, 'hasSymbolToStringTag is false before polyfilling');
19
20
 
21
+ // @ts-expect-error no types defined
20
22
  require('get-own-property-symbols');
21
23
 
22
24
  require('../tests')(t);
@@ -1,12 +1,13 @@
1
1
  'use strict';
2
2
 
3
3
  // eslint-disable-next-line consistent-return
4
- module.exports = function runSymbolTests(t) {
4
+ module.exports = /** @type {(t: import('tape').Test) => void | false} */ function runSymbolTests(t) {
5
5
  t.equal(typeof Symbol, 'function', 'global Symbol is a function');
6
6
  t.ok(Symbol.toStringTag, 'Symbol.toStringTag exists');
7
7
 
8
8
  if (typeof Symbol !== 'function' || !Symbol.toStringTag) { return false; }
9
9
 
10
+ /** @type {{ [Symbol.toStringTag]?: 'test'}} */
10
11
  var obj = {};
11
12
  obj[Symbol.toStringTag] = 'test';
12
13
 
@@ -0,0 +1,49 @@
1
+ {
2
+ "compilerOptions": {
3
+ /* Visit https://aka.ms/tsconfig to read more about this file */
4
+
5
+ /* Projects */
6
+
7
+ /* Language and Environment */
8
+ "target": "ESNext", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
9
+ // "lib": [], /* Specify a set of bundled library declaration files that describe the target runtime environment. */
10
+ // "noLib": true, /* Disable including any library files, including the default lib.d.ts. */
11
+ "useDefineForClassFields": true, /* Emit ECMAScript-standard-compliant class fields. */
12
+ // "moduleDetection": "auto", /* Control what method is used to detect module-format JS files. */
13
+
14
+ /* Modules */
15
+ "module": "commonjs", /* Specify what module code is generated. */
16
+ // "rootDir": "./", /* Specify the root folder within your source files. */
17
+ // "moduleResolution": "node10", /* Specify how TypeScript looks up a file from a given module specifier. */
18
+ // "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */
19
+ // "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */
20
+ // "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */
21
+ "typeRoots": ["types"], /* Specify multiple folders that act like './node_modules/@types'. */
22
+ "resolveJsonModule": true, /* Enable importing .json files. */
23
+ // "allowArbitraryExtensions": true, /* Enable importing files with any extension, provided a declaration file is present. */
24
+
25
+ /* JavaScript Support */
26
+ "allowJs": true, /* Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files. */
27
+ "checkJs": true, /* Enable error reporting in type-checked JavaScript files. */
28
+ "maxNodeModuleJsDepth": 0, /* Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'. */
29
+
30
+ /* Emit */
31
+ "declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */
32
+ "declarationMap": true, /* Create sourcemaps for d.ts files. */
33
+ "noEmit": true, /* Disable emitting files from a compilation. */
34
+
35
+ /* Interop Constraints */
36
+ "allowSyntheticDefaultImports": true, /* Allow 'import x from y' when a module doesn't have a default export. */
37
+ "esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */
38
+ "forceConsistentCasingInFileNames": true, /* Ensure that casing is correct in imports. */
39
+
40
+ /* Type Checking */
41
+ "strict": true, /* Enable all strict type-checking options. */
42
+
43
+ /* Completeness */
44
+ //"skipLibCheck": true /* Skip type checking all .d.ts files. */
45
+ },
46
+ "exclude": [
47
+ "coverage"
48
+ ]
49
+ }
@@ -1,39 +1,39 @@
1
1
  # hash-base
2
2
 
3
- [![NPM Package](https://img.shields.io/npm/v/hash-base.svg?style=flat-square)](https://www.npmjs.org/package/hash-base)
3
+ [![npm Package](https://img.shields.io/npm/v/hash-base.svg?style=flat-square)](https://www.npmjs.org/package/hash-base)
4
4
  [![Build Status](https://img.shields.io/travis/crypto-browserify/hash-base.svg?branch=master&style=flat-square)](https://travis-ci.org/crypto-browserify/hash-base)
5
5
  [![Dependency status](https://img.shields.io/david/crypto-browserify/hash-base.svg?style=flat-square)](https://david-dm.org/crypto-browserify/hash-base#info=dependencies)
6
6
 
7
- [![js-standard-style](https://cdn.rawgit.com/feross/standard/master/badge.svg)](https://github.com/feross/standard)
8
-
9
7
  Abstract base class to inherit from if you want to create streams implementing the same API as node crypto [Hash][1] (for [Cipher][2] / [Decipher][3] check [crypto-browserify/cipher-base][4]).
10
8
 
11
9
  ## Example
12
10
 
13
11
  ```js
14
- const HashBase = require('hash-base')
15
- const inherits = require('inherits')
12
+ const HashBase = require('hash-base');
13
+ const inherits = require('inherits');
16
14
 
17
15
  // our hash function is XOR sum of all bytes
18
16
  function MyHash () {
19
- HashBase.call(this, 1) // in bytes
17
+ HashBase.call(this, 1); // in bytes
20
18
 
21
- this._sum = 0x00
22
- }
19
+ this._sum = 0x00;
20
+ };
23
21
 
24
22
  inherits(MyHash, HashBase)
25
23
 
26
24
  MyHash.prototype._update = function () {
27
- for (let i = 0; i < this._block.length; ++i) this._sum ^= this._block[i]
28
- }
25
+ for (let i = 0; i < this._block.length; ++i) {
26
+ this._sum ^= this._block[i];
27
+ }
28
+ };
29
29
 
30
30
  MyHash.prototype._digest = function () {
31
- return this._sum
32
- }
31
+ return this._sum;
32
+ };
33
33
 
34
- const data = Buffer.from([ 0x00, 0x42, 0x01 ])
35
- const hash = new MyHash().update(data).digest()
36
- console.log(hash) // => 67
34
+ const data = Buffer.from([0x00, 0x42, 0x01]);
35
+ const hash = new MyHash().update(data).digest();
36
+ console.log(hash); // => 67
37
37
  ```
38
38
  You also can check [source code](index.js) or [crypto-browserify/md5.js][5]
39
39
 
@@ -1,14 +1,8 @@
1
1
  'use strict'
2
2
  var Buffer = require('safe-buffer').Buffer
3
- var Transform = require('readable-stream').Transform
3
+ var Transform = require('stream').Transform
4
4
  var inherits = require('inherits')
5
5
 
6
- function throwIfNotStringOrBuffer (val, prefix) {
7
- if (!Buffer.isBuffer(val) && typeof val !== 'string') {
8
- throw new TypeError(prefix + ' must be a string or a buffer')
9
- }
10
- }
11
-
12
6
  function HashBase (blockSize) {
13
7
  Transform.call(this)
14
8
 
@@ -44,10 +38,59 @@ HashBase.prototype._flush = function (callback) {
44
38
  callback(error)
45
39
  }
46
40
 
41
+ var useUint8Array = typeof Uint8Array !== 'undefined'
42
+ var useArrayBuffer = typeof ArrayBuffer !== 'undefined' &&
43
+ typeof Uint8Array !== 'undefined' &&
44
+ ArrayBuffer.isView &&
45
+ (Buffer.prototype instanceof Uint8Array || Buffer.TYPED_ARRAY_SUPPORT)
46
+
47
+ function toBuffer (data, encoding) {
48
+ // No need to do anything for exact instance
49
+ // This is only valid when safe-buffer.Buffer === buffer.Buffer, i.e. when Buffer.from/Buffer.alloc existed
50
+ if (data instanceof Buffer) return data
51
+
52
+ // Convert strings to Buffer
53
+ if (typeof data === 'string') return Buffer.from(data, encoding)
54
+
55
+ /*
56
+ * Wrap any TypedArray instances and DataViews
57
+ * Makes sense only on engines with full TypedArray support -- let Buffer detect that
58
+ */
59
+ if (useArrayBuffer && ArrayBuffer.isView(data)) {
60
+ if (data.byteLength === 0) return Buffer.alloc(0) // Bug in Node.js <6.3.1, which treats this as out-of-bounds
61
+ var res = Buffer.from(data.buffer, data.byteOffset, data.byteLength)
62
+ // Recheck result size, as offset/length doesn't work on Node.js <5.10
63
+ // We just go to Uint8Array case if this fails
64
+ if (res.byteLength === data.byteLength) return res
65
+ }
66
+
67
+ /*
68
+ * Uint8Array in engines where Buffer.from might not work with ArrayBuffer, just copy over
69
+ * Doesn't make sense with other TypedArray instances
70
+ */
71
+ if (useUint8Array && data instanceof Uint8Array) return Buffer.from(data)
72
+
73
+ /*
74
+ * Old Buffer polyfill on an engine that doesn't have TypedArray support
75
+ * Also, this is from a different Buffer polyfill implementation then we have, as instanceof check failed
76
+ * Convert to our current Buffer implementation
77
+ */
78
+ if (
79
+ Buffer.isBuffer(data) &&
80
+ data.constructor &&
81
+ typeof data.constructor.isBuffer === 'function' &&
82
+ data.constructor.isBuffer(data)
83
+ ) {
84
+ return Buffer.from(data)
85
+ }
86
+
87
+ throw new TypeError('The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView.')
88
+ }
89
+
47
90
  HashBase.prototype.update = function (data, encoding) {
48
- throwIfNotStringOrBuffer(data, 'Data')
49
91
  if (this._finalized) throw new Error('Digest already called')
50
- if (!Buffer.isBuffer(data)) data = Buffer.from(data, encoding)
92
+
93
+ data = toBuffer(data, encoding) // asserts correct input type
51
94
 
52
95
  // consume data
53
96
  var block = this._block
@@ -1,42 +1,42 @@
1
1
  {
2
- "name": "hash-base",
3
- "version": "3.1.0",
4
- "description": "abstract base class for hash-streams",
5
- "keywords": [
6
- "hash",
7
- "stream"
8
- ],
9
- "homepage": "https://github.com/crypto-browserify/hash-base",
10
- "bugs": {
11
- "url": "https://github.com/crypto-browserify/hash-base/issues"
12
- },
13
- "license": "MIT",
14
- "author": "Kirill Fomichev <fanatid@ya.ru> (https://github.com/fanatid)",
15
- "files": [
16
- "index.js"
17
- ],
18
- "main": "index.js",
19
- "repository": {
20
- "type": "git",
21
- "url": "https://github.com/crypto-browserify/hash-base.git"
22
- },
23
- "scripts": {
24
- "coverage": "nyc node test/*.js",
25
- "lint": "standard",
26
- "test": "npm run lint && npm run unit",
27
- "unit": "node test/*.js"
28
- },
29
- "dependencies": {
30
- "inherits": "^2.0.4",
31
- "readable-stream": "^3.6.0",
32
- "safe-buffer": "^5.2.0"
33
- },
34
- "devDependencies": {
35
- "nyc": "^15.0.1",
36
- "standard": "^14.3.3",
37
- "tape": "^5.0.0"
38
- },
39
- "engines": {
40
- "node": ">=4"
41
- }
2
+ "name": "hash-base",
3
+ "version": "3.0.5",
4
+ "description": "abstract base class for hash-streams",
5
+ "keywords": [
6
+ "hash",
7
+ "stream"
8
+ ],
9
+ "homepage": "https://github.com/crypto-browserify/hash-base",
10
+ "bugs": {
11
+ "url": "https://github.com/crypto-browserify/hash-base/issues"
12
+ },
13
+ "license": "MIT",
14
+ "author": "Kirill Fomichev <fanatid@ya.ru> (https://github.com/fanatid)",
15
+ "files": [
16
+ "index.js"
17
+ ],
18
+ "main": "index.js",
19
+ "repository": {
20
+ "type": "git",
21
+ "url": "https://github.com/crypto-browserify/hash-base.git"
22
+ },
23
+ "scripts": {
24
+ "lint": "standard",
25
+ "pretest": "npm run lint",
26
+ "test": "npm run tests-only",
27
+ "tests-only": "nyc tape 'test/**/*.js'",
28
+ "posttest": "npx npm@'>=10.2' audit --production"
29
+ },
30
+ "dependencies": {
31
+ "inherits": "^2.0.4",
32
+ "safe-buffer": "^5.2.1"
33
+ },
34
+ "devDependencies": {
35
+ "nyc": "^10.3.2",
36
+ "standard": "^14.3.3",
37
+ "tape": "^5.9.0"
38
+ },
39
+ "engines": {
40
+ "node": ">= 0.10"
41
+ }
42
42
  }
@@ -5,6 +5,26 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [v2.0.2](https://github.com/inspect-js/hasOwn/compare/v2.0.1...v2.0.2) - 2024-03-10
9
+
10
+ ### Commits
11
+
12
+ - [types] use shared config [`68e9d4d`](https://github.com/inspect-js/hasOwn/commit/68e9d4dab6facb4f05f02c6baea94a3f2a4e44b2)
13
+ - [actions] remove redundant finisher; use reusable workflow [`241a68e`](https://github.com/inspect-js/hasOwn/commit/241a68e13ea1fe52bec5ba7f74144befc31fae7b)
14
+ - [Tests] increase coverage [`4125c0d`](https://github.com/inspect-js/hasOwn/commit/4125c0d6121db56ae30e38346dfb0c000b04f0a7)
15
+ - [Tests] skip `npm ls` in old node due to TS [`01b9282`](https://github.com/inspect-js/hasOwn/commit/01b92822f9971dea031eafdd14767df41d61c202)
16
+ - [types] improve predicate type [`d340f85`](https://github.com/inspect-js/hasOwn/commit/d340f85ce02e286ef61096cbbb6697081d40a12b)
17
+ - [Dev Deps] update `tape` [`70089fc`](https://github.com/inspect-js/hasOwn/commit/70089fcf544e64acc024cbe60f5a9b00acad86de)
18
+ - [Tests] use `@arethetypeswrong/cli` [`50b272c`](https://github.com/inspect-js/hasOwn/commit/50b272c829f40d053a3dd91c9796e0ac0b2af084)
19
+
20
+ ## [v2.0.1](https://github.com/inspect-js/hasOwn/compare/v2.0.0...v2.0.1) - 2024-02-10
21
+
22
+ ### Commits
23
+
24
+ - [types] use a handwritten d.ts file; fix exported type [`012b989`](https://github.com/inspect-js/hasOwn/commit/012b9898ccf91dc441e2ebf594ff70270a5fda58)
25
+ - [Dev Deps] update `@types/function-bind`, `@types/mock-property`, `@types/tape`, `aud`, `mock-property`, `npmignore`, `tape`, `typescript` [`977a56f`](https://github.com/inspect-js/hasOwn/commit/977a56f51a1f8b20566f3c471612137894644025)
26
+ - [meta] add `sideEffects` flag [`3a60b7b`](https://github.com/inspect-js/hasOwn/commit/3a60b7bf42fccd8c605e5f145a6fcc83b13cb46f)
27
+
8
28
  ## [v2.0.0](https://github.com/inspect-js/hasOwn/compare/v1.0.1...v2.0.0) - 2023-10-19
9
29
 
10
30
  ### Commits
@@ -1,3 +1,3 @@
1
- declare const _exports: (o: {}, p: PropertyKey) => p is never;
2
- export = _exports;
3
- //# sourceMappingURL=index.d.ts.map
1
+ declare function hasOwn<O, K extends PropertyKey, V = unknown>(o: O, p: K): o is O & Record<K, V>;
2
+
3
+ export = hasOwn;
@@ -4,5 +4,5 @@ var call = Function.prototype.call;
4
4
  var $hasOwn = Object.prototype.hasOwnProperty;
5
5
  var bind = require('function-bind');
6
6
 
7
- /** @type {(o: {}, p: PropertyKey) => p is keyof o} */
7
+ /** @type {import('.')} */
8
8
  module.exports = bind.call(call, $hasOwn);
@@ -1,23 +1,24 @@
1
1
  {
2
2
  "name": "hasown",
3
- "version": "2.0.0",
3
+ "version": "2.0.2",
4
4
  "description": "A robust, ES3 compatible, \"has own property\" predicate.",
5
5
  "main": "index.js",
6
6
  "exports": {
7
7
  ".": "./index.js",
8
8
  "./package.json": "./package.json"
9
9
  },
10
+ "types": "index.d.ts",
11
+ "sideEffects": false,
10
12
  "scripts": {
11
- "prepack": "npmignore --auto --commentLines=autogenerated && npm run emit-types",
13
+ "prepack": "npmignore --auto --commentLines=autogenerated",
12
14
  "prepublish": "not-in-publish || npm run prepublishOnly",
13
15
  "prepublishOnly": "safe-publish-latest",
14
16
  "prelint": "evalmd README.md",
15
17
  "lint": "eslint --ext=js,mjs .",
16
18
  "postlint": "npm run tsc",
17
- "preemit-types": "rm -f *.ts *.ts.map test/*.ts test/*.ts.map",
18
- "emit-types": "npm run tsc -- --noEmit false --emitDeclarationOnly",
19
19
  "pretest": "npm run lint",
20
20
  "tsc": "tsc -p .",
21
+ "posttsc": "attw -P",
21
22
  "tests-only": "nyc tape 'test/**/*.js'",
22
23
  "test": "npm run tests-only",
23
24
  "posttest": "aud --production",
@@ -50,21 +51,23 @@
50
51
  "function-bind": "^1.1.2"
51
52
  },
52
53
  "devDependencies": {
54
+ "@arethetypeswrong/cli": "^0.15.1",
53
55
  "@ljharb/eslint-config": "^21.1.0",
54
- "@types/function-bind": "^1.1.9",
55
- "@types/mock-property": "^1.0.1",
56
- "@types/tape": "^5.6.3",
57
- "aud": "^2.0.3",
56
+ "@ljharb/tsconfig": "^0.2.0",
57
+ "@types/function-bind": "^1.1.10",
58
+ "@types/mock-property": "^1.0.2",
59
+ "@types/tape": "^5.6.4",
60
+ "aud": "^2.0.4",
58
61
  "auto-changelog": "^2.4.0",
59
62
  "eslint": "=8.8.0",
60
63
  "evalmd": "^0.0.19",
61
64
  "in-publish": "^2.0.1",
62
- "mock-property": "^1.0.2",
63
- "npmignore": "^0.3.0",
65
+ "mock-property": "^1.0.3",
66
+ "npmignore": "^0.3.1",
64
67
  "nyc": "^10.3.2",
65
68
  "safe-publish-latest": "^2.0.0",
66
- "tape": "^5.7.1",
67
- "typescript": "^5.3.0-dev.20231019"
69
+ "tape": "^5.7.5",
70
+ "typescript": "next"
68
71
  },
69
72
  "engines": {
70
73
  "node": ">= 0.4"
@@ -83,9 +86,7 @@
83
86
  "publishConfig": {
84
87
  "ignore": [
85
88
  ".github/workflows",
86
- "test",
87
- "!*.d.ts",
88
- "!*.d.ts.map"
89
+ "test"
89
90
  ]
90
91
  }
91
92
  }
@@ -1,49 +1,6 @@
1
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": "es2016", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
9
- // "lib": [], /* Specify a set of bundled library declaration files that describe the target runtime environment. */
10
- // "noLib": true, /* Disable including any library files, including the default lib.d.ts. */
11
- "useDefineForClassFields": true, /* Emit ECMAScript-standard-compliant class fields. */
12
- // "moduleDetection": "auto", /* Control what method is used to detect module-format JS files. */
13
-
14
- /* Modules */
15
- "module": "commonjs", /* Specify what module code is generated. */
16
- // "rootDir": "./", /* Specify the root folder within your source files. */
17
- // "moduleResolution": "node10", /* Specify how TypeScript looks up a file from a given module specifier. */
18
- // "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */
19
- // "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */
20
- // "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */
21
- "typeRoots": ["types"], /* Specify multiple folders that act like './node_modules/@types'. */
22
- "resolveJsonModule": true, /* Enable importing .json files. */
23
- // "allowArbitraryExtensions": true, /* Enable importing files with any extension, provided a declaration file is present. */
24
-
25
- /* JavaScript Support */
26
- "allowJs": true, /* Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files. */
27
- "checkJs": true, /* Enable error reporting in type-checked JavaScript files. */
28
- "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'. */
29
-
30
- /* Emit */
31
- "declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */
32
- "declarationMap": true, /* Create sourcemaps for d.ts files. */
33
- "noEmit": true, /* Disable emitting files from a compilation. */
34
-
35
- /* Interop Constraints */
36
- "allowSyntheticDefaultImports": true, /* Allow 'import x from y' when a module doesn't have a default export. */
37
- "esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */
38
- "forceConsistentCasingInFileNames": true, /* Ensure that casing is correct in imports. */
39
-
40
- /* Type Checking */
41
- "strict": true, /* Enable all strict type-checking options. */
42
-
43
- /* Completeness */
44
- //"skipLibCheck": true /* Skip type checking all .d.ts files. */
45
- },
2
+ "extends": "@ljharb/tsconfig",
46
3
  "exclude": [
47
- "coverage"
48
- ]
4
+ "coverage",
5
+ ],
49
6
  }
@@ -5,6 +5,5 @@
5
5
 
6
6
  "rules": {
7
7
  "id-length": [2, { "min": 1, "max": 25 }],
8
- "operator-linebreak": [2, "after"]
9
8
  }
10
9
  }
@@ -5,6 +5,28 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [v1.2.0](https://github.com/inspect-js/is-arguments/compare/v1.1.1...v1.2.0) - 2024-12-12
9
+
10
+ ### Commits
11
+
12
+ - [actions] reuse common workflows [`ff7c948`](https://github.com/inspect-js/is-arguments/commit/ff7c94886dbfb6ea5d2175d5e49c1d0b4f4ac922)
13
+ - [New] add types [`5fe6c6e`](https://github.com/inspect-js/is-arguments/commit/5fe6c6e0d0826d86f355c7e95adb4838dbe6df36)
14
+ - [meta] use `npmignore` to autogenerate an npmignore file [`9a9b0cf`](https://github.com/inspect-js/is-arguments/commit/9a9b0cf7dcf00a8dad6dd38f983f7611b33a5c9d)
15
+ - [actions] split out node 10-20, and 20+ [`74c5c49`](https://github.com/inspect-js/is-arguments/commit/74c5c490763649e03d54f97f8367918ee710d6a5)
16
+ - [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `safe-publish-latest`, `tape` [`d9a932d`](https://github.com/inspect-js/is-arguments/commit/d9a932db8a0ad7f95ebd3ccd5322a5d5ea3d422f)
17
+ - [readme] update URLs [`0f726b6`](https://github.com/inspect-js/is-arguments/commit/0f726b696ff562d5beecdd5a407579c9d18ec226)
18
+ - [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `aud`, `auto-changelog`, `tape` [`ea21450`](https://github.com/inspect-js/is-arguments/commit/ea21450ecbfff962f273b1e741af2bf20241563d)
19
+ - [actions] update rebase action to use reusable workflow [`eaad2ab`](https://github.com/inspect-js/is-arguments/commit/eaad2ab2e25018037a3bcd149d65206bf723cb88)
20
+ - [actions] cleanup [`2be15d3`](https://github.com/inspect-js/is-arguments/commit/2be15d3ee78dd214d5b961d8c890aae94f0faa58)
21
+ - [actions] update codecov uploader [`29b929c`](https://github.com/inspect-js/is-arguments/commit/29b929cf44fa1014f431d89c44518c34bbcd774b)
22
+ - [Dev Deps] update `@ljharb/eslint-config`, `auto-changelog`, `npmignore`, `tape` [`8a38bf5`](https://github.com/inspect-js/is-arguments/commit/8a38bf572c59fdfdf6db9167185f78c59410048b)
23
+ - [Dev Deps] update `@ljharb/eslint-config`, `safe-publish-latest`, `tape` [`841627d`](https://github.com/inspect-js/is-arguments/commit/841627ddcc32f578b62b659dede177697737d027)
24
+ - [Refactor] use `call-bound` directly [`e429257`](https://github.com/inspect-js/is-arguments/commit/e429257b9e3d28b60cbc86c6f1c877e23af28429)
25
+ - [Deps] update `call-bind`, `has-tostringtag` [`c0db6a8`](https://github.com/inspect-js/is-arguments/commit/c0db6a800366e9744c375560813cbd70bf8e0d2d)
26
+ - [Tests] replace `aud` with `npm audit` [`f589983`](https://github.com/inspect-js/is-arguments/commit/f589983d330f205f89af679af6d4b806a3cbceb5)
27
+ - [meta] add `sideEffects` flag [`2e15793`](https://github.com/inspect-js/is-arguments/commit/2e15793dfd3ef97b0e4a311be056bdfbaa9f5beb)
28
+ - [Dev Deps] add missing peer dep [`0ffe01b`](https://github.com/inspect-js/is-arguments/commit/0ffe01b8ecce5a30b93bf6078e62a3c6268254b8)
29
+
8
30
  ## [v1.1.1](https://github.com/inspect-js/is-arguments/compare/v1.1.0...v1.1.1) - 2021-08-05
9
31
 
10
32
  ### Commits