@pgarbe/cdk-ecr-sync 0.5.39 → 0.5.40

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 (277) hide show
  1. package/.jsii +4 -4
  2. package/API.md +15 -1
  3. package/lib/ecr-sync.js +1 -1
  4. package/node_modules/aws-sdk/README.md +16 -201
  5. package/node_modules/aws-sdk/apis/s3-2006-03-01.examples.json +100 -100
  6. package/node_modules/aws-sdk/apis/s3-2006-03-01.min.json +167 -102
  7. package/node_modules/aws-sdk/clients/s3.d.ts +192 -128
  8. package/node_modules/aws-sdk/dist/aws-sdk-core-react-native.js +756 -346
  9. package/node_modules/aws-sdk/dist/aws-sdk-react-native.js +3759 -2939
  10. package/node_modules/aws-sdk/dist/aws-sdk.js +172 -107
  11. package/node_modules/aws-sdk/dist/aws-sdk.min.js +24 -24
  12. package/node_modules/aws-sdk/lib/core.js +1 -1
  13. package/node_modules/aws-sdk/lib/maintenance_mode_message.js +2 -2
  14. package/node_modules/aws-sdk/package.json +1 -1
  15. package/node_modules/call-bind/CHANGELOG.md +13 -0
  16. package/node_modules/call-bind/index.js +6 -17
  17. package/node_modules/call-bind/package.json +14 -16
  18. package/node_modules/call-bind/test/index.js +4 -10
  19. package/node_modules/call-bind-apply-helpers/.eslintrc +17 -0
  20. package/node_modules/call-bind-apply-helpers/.github/FUNDING.yml +12 -0
  21. package/node_modules/call-bind-apply-helpers/.nycrc +9 -0
  22. package/node_modules/call-bind-apply-helpers/CHANGELOG.md +30 -0
  23. package/node_modules/{has-proto → call-bind-apply-helpers}/LICENSE +1 -1
  24. package/node_modules/call-bind-apply-helpers/README.md +62 -0
  25. package/node_modules/call-bind-apply-helpers/actualApply.d.ts +1 -0
  26. package/node_modules/call-bind-apply-helpers/actualApply.js +10 -0
  27. package/node_modules/call-bind-apply-helpers/applyBind.d.ts +19 -0
  28. package/node_modules/call-bind-apply-helpers/applyBind.js +10 -0
  29. package/node_modules/call-bind-apply-helpers/functionApply.d.ts +1 -0
  30. package/node_modules/call-bind-apply-helpers/functionApply.js +4 -0
  31. package/node_modules/call-bind-apply-helpers/functionCall.d.ts +1 -0
  32. package/node_modules/call-bind-apply-helpers/functionCall.js +4 -0
  33. package/node_modules/call-bind-apply-helpers/index.d.ts +64 -0
  34. package/node_modules/call-bind-apply-helpers/index.js +15 -0
  35. package/node_modules/call-bind-apply-helpers/package.json +85 -0
  36. package/node_modules/call-bind-apply-helpers/reflectApply.d.ts +3 -0
  37. package/node_modules/call-bind-apply-helpers/reflectApply.js +4 -0
  38. package/node_modules/call-bind-apply-helpers/test/index.js +63 -0
  39. package/node_modules/call-bind-apply-helpers/tsconfig.json +9 -0
  40. package/node_modules/call-bound/.eslintrc +13 -0
  41. package/node_modules/call-bound/.github/FUNDING.yml +12 -0
  42. package/node_modules/call-bound/.nycrc +9 -0
  43. package/node_modules/call-bound/CHANGELOG.md +42 -0
  44. package/node_modules/call-bound/LICENSE +21 -0
  45. package/node_modules/call-bound/README.md +53 -0
  46. package/node_modules/call-bound/index.d.ts +94 -0
  47. package/node_modules/call-bound/index.js +19 -0
  48. package/node_modules/call-bound/package.json +99 -0
  49. package/node_modules/call-bound/test/index.js +61 -0
  50. package/node_modules/call-bound/tsconfig.json +10 -0
  51. package/node_modules/dunder-proto/.github/FUNDING.yml +12 -0
  52. package/node_modules/dunder-proto/.nycrc +13 -0
  53. package/node_modules/dunder-proto/CHANGELOG.md +24 -0
  54. package/node_modules/dunder-proto/LICENSE +21 -0
  55. package/node_modules/dunder-proto/README.md +54 -0
  56. package/node_modules/dunder-proto/get.d.ts +5 -0
  57. package/node_modules/dunder-proto/get.js +30 -0
  58. package/node_modules/dunder-proto/package.json +76 -0
  59. package/node_modules/dunder-proto/set.d.ts +5 -0
  60. package/node_modules/dunder-proto/set.js +35 -0
  61. package/node_modules/dunder-proto/test/get.js +34 -0
  62. package/node_modules/dunder-proto/test/index.js +4 -0
  63. package/node_modules/dunder-proto/test/set.js +50 -0
  64. package/node_modules/dunder-proto/tsconfig.json +9 -0
  65. package/node_modules/es-define-property/CHANGELOG.md +14 -0
  66. package/node_modules/es-define-property/index.js +1 -3
  67. package/node_modules/es-define-property/package.json +12 -12
  68. package/node_modules/es-define-property/test/index.js +1 -0
  69. package/node_modules/es-define-property/tsconfig.json +2 -42
  70. package/node_modules/es-object-atoms/.eslintrc +16 -0
  71. package/node_modules/es-object-atoms/.github/FUNDING.yml +12 -0
  72. package/node_modules/es-object-atoms/CHANGELOG.md +37 -0
  73. package/node_modules/es-object-atoms/LICENSE +21 -0
  74. package/node_modules/es-object-atoms/README.md +63 -0
  75. package/node_modules/es-object-atoms/RequireObjectCoercible.d.ts +3 -0
  76. package/node_modules/es-object-atoms/RequireObjectCoercible.js +11 -0
  77. package/node_modules/es-object-atoms/ToObject.d.ts +7 -0
  78. package/node_modules/es-object-atoms/ToObject.js +10 -0
  79. package/node_modules/es-object-atoms/index.d.ts +3 -0
  80. package/node_modules/es-object-atoms/index.js +4 -0
  81. package/node_modules/es-object-atoms/isObject.d.ts +3 -0
  82. package/node_modules/es-object-atoms/isObject.js +6 -0
  83. package/node_modules/es-object-atoms/package.json +80 -0
  84. package/node_modules/es-object-atoms/test/index.js +38 -0
  85. package/node_modules/es-object-atoms/tsconfig.json +6 -0
  86. package/node_modules/for-each/.eslintrc +16 -2
  87. package/node_modules/{has-proto → for-each}/.github/FUNDING.yml +1 -1
  88. package/node_modules/for-each/.github/SECURITY.md +3 -0
  89. package/node_modules/for-each/.nycrc +8 -0
  90. package/node_modules/for-each/CHANGELOG.md +107 -0
  91. package/node_modules/for-each/README.md +0 -4
  92. package/node_modules/for-each/index.d.ts +35 -0
  93. package/node_modules/for-each/index.js +11 -4
  94. package/node_modules/for-each/package.json +47 -36
  95. package/node_modules/for-each/test/test.js +54 -12
  96. package/node_modules/for-each/tsconfig.json +8 -0
  97. package/node_modules/generator-function/.eslintrc +16 -0
  98. package/node_modules/generator-function/.github/FUNDING.yml +12 -0
  99. package/node_modules/generator-function/.nycrc +9 -0
  100. package/node_modules/generator-function/CHANGELOG.md +27 -0
  101. package/node_modules/generator-function/LICENSE.md +7 -0
  102. package/node_modules/generator-function/README.md +51 -0
  103. package/node_modules/generator-function/index.d.mts +3 -0
  104. package/node_modules/generator-function/index.d.ts +3 -0
  105. package/node_modules/generator-function/index.js +8 -0
  106. package/node_modules/generator-function/index.mjs +4 -0
  107. package/node_modules/generator-function/legacy.js +18 -0
  108. package/node_modules/generator-function/package.json +88 -0
  109. package/node_modules/generator-function/require.mjs +5 -0
  110. package/node_modules/generator-function/test/index.js +42 -0
  111. package/node_modules/generator-function/tsconfig.json +9 -0
  112. package/node_modules/get-intrinsic/.eslintrc +4 -0
  113. package/node_modules/get-intrinsic/CHANGELOG.md +43 -0
  114. package/node_modules/get-intrinsic/index.js +40 -21
  115. package/node_modules/get-intrinsic/package.json +24 -20
  116. package/node_modules/get-intrinsic/test/GetIntrinsic.js +2 -2
  117. package/node_modules/get-proto/.eslintrc +10 -0
  118. package/node_modules/get-proto/.github/FUNDING.yml +12 -0
  119. package/node_modules/get-proto/.nycrc +9 -0
  120. package/node_modules/get-proto/CHANGELOG.md +21 -0
  121. package/node_modules/get-proto/LICENSE +21 -0
  122. package/node_modules/get-proto/Object.getPrototypeOf.d.ts +5 -0
  123. package/node_modules/get-proto/Object.getPrototypeOf.js +6 -0
  124. package/node_modules/get-proto/README.md +50 -0
  125. package/node_modules/get-proto/Reflect.getPrototypeOf.d.ts +3 -0
  126. package/node_modules/get-proto/Reflect.getPrototypeOf.js +4 -0
  127. package/node_modules/get-proto/index.d.ts +5 -0
  128. package/node_modules/get-proto/index.js +27 -0
  129. package/node_modules/{has-proto → get-proto}/package.json +32 -29
  130. package/node_modules/get-proto/test/index.js +68 -0
  131. package/node_modules/get-proto/tsconfig.json +9 -0
  132. package/node_modules/gopd/CHANGELOG.md +20 -0
  133. package/node_modules/gopd/gOPD.d.ts +1 -0
  134. package/node_modules/gopd/gOPD.js +4 -0
  135. package/node_modules/gopd/index.d.ts +5 -0
  136. package/node_modules/gopd/index.js +2 -3
  137. package/node_modules/gopd/package.json +16 -10
  138. package/node_modules/gopd/test/index.js +2 -1
  139. package/node_modules/gopd/tsconfig.json +9 -0
  140. package/node_modules/has-symbols/CHANGELOG.md +16 -0
  141. package/node_modules/has-symbols/index.d.ts +3 -0
  142. package/node_modules/has-symbols/index.js +1 -0
  143. package/node_modules/has-symbols/package.json +19 -9
  144. package/node_modules/has-symbols/shams.d.ts +3 -0
  145. package/node_modules/has-symbols/shams.js +5 -2
  146. package/node_modules/has-symbols/test/shams/core-js.js +1 -0
  147. package/node_modules/has-symbols/test/shams/get-own-property-symbols.js +1 -0
  148. package/node_modules/has-symbols/test/tests.js +4 -2
  149. package/node_modules/has-symbols/tsconfig.json +10 -0
  150. package/node_modules/is-arguments/.eslintrc +0 -1
  151. package/node_modules/is-arguments/CHANGELOG.md +22 -0
  152. package/node_modules/is-arguments/README.md +11 -11
  153. package/node_modules/is-arguments/index.d.ts +6 -0
  154. package/node_modules/is-arguments/index.js +19 -8
  155. package/node_modules/is-arguments/package.json +25 -11
  156. package/node_modules/is-arguments/test/index.js +4 -1
  157. package/node_modules/is-arguments/tsconfig.json +9 -0
  158. package/node_modules/is-generator-function/.eslintrc +1 -1
  159. package/node_modules/is-generator-function/CHANGELOG.md +38 -0
  160. package/node_modules/is-generator-function/index.d.ts +3 -0
  161. package/node_modules/is-generator-function/index.js +14 -21
  162. package/node_modules/is-generator-function/package.json +32 -12
  163. package/node_modules/is-generator-function/test/corejs.js +1 -0
  164. package/node_modules/is-generator-function/test/index.js +4 -7
  165. package/node_modules/is-generator-function/test/uglified.js +1 -0
  166. package/node_modules/is-generator-function/tsconfig.json +9 -0
  167. package/node_modules/is-regex/.editorconfig +23 -0
  168. package/node_modules/is-regex/.eslintrc +10 -0
  169. package/node_modules/is-regex/.nycrc +10 -0
  170. package/node_modules/is-regex/CHANGELOG.md +233 -0
  171. package/node_modules/is-regex/LICENSE +20 -0
  172. package/node_modules/is-regex/README.md +52 -0
  173. package/node_modules/is-regex/index.d.ts +3 -0
  174. package/node_modules/is-regex/index.js +69 -0
  175. package/node_modules/is-regex/package.json +104 -0
  176. package/node_modules/is-regex/test/index.js +121 -0
  177. package/node_modules/is-regex/tsconfig.json +9 -0
  178. package/node_modules/is-typed-array/CHANGELOG.md +22 -0
  179. package/node_modules/is-typed-array/index.d.ts +7 -14
  180. package/node_modules/is-typed-array/package.json +15 -13
  181. package/node_modules/is-typed-array/tsconfig.json +4 -47
  182. package/node_modules/math-intrinsics/.eslintrc +16 -0
  183. package/node_modules/math-intrinsics/.github/FUNDING.yml +12 -0
  184. package/node_modules/math-intrinsics/CHANGELOG.md +24 -0
  185. package/node_modules/math-intrinsics/LICENSE +21 -0
  186. package/node_modules/math-intrinsics/README.md +50 -0
  187. package/node_modules/math-intrinsics/abs.d.ts +1 -0
  188. package/node_modules/math-intrinsics/abs.js +4 -0
  189. package/node_modules/math-intrinsics/constants/maxArrayLength.d.ts +3 -0
  190. package/node_modules/math-intrinsics/constants/maxArrayLength.js +4 -0
  191. package/node_modules/math-intrinsics/constants/maxSafeInteger.d.ts +3 -0
  192. package/node_modules/math-intrinsics/constants/maxSafeInteger.js +5 -0
  193. package/node_modules/math-intrinsics/constants/maxValue.d.ts +3 -0
  194. package/node_modules/math-intrinsics/constants/maxValue.js +5 -0
  195. package/node_modules/math-intrinsics/floor.d.ts +1 -0
  196. package/node_modules/math-intrinsics/floor.js +4 -0
  197. package/node_modules/math-intrinsics/isFinite.d.ts +3 -0
  198. package/node_modules/math-intrinsics/isFinite.js +12 -0
  199. package/node_modules/math-intrinsics/isInteger.d.ts +3 -0
  200. package/node_modules/math-intrinsics/isInteger.js +16 -0
  201. package/node_modules/math-intrinsics/isNaN.d.ts +1 -0
  202. package/node_modules/math-intrinsics/isNaN.js +6 -0
  203. package/node_modules/math-intrinsics/isNegativeZero.d.ts +3 -0
  204. package/node_modules/math-intrinsics/isNegativeZero.js +6 -0
  205. package/node_modules/math-intrinsics/max.d.ts +1 -0
  206. package/node_modules/math-intrinsics/max.js +4 -0
  207. package/node_modules/math-intrinsics/min.d.ts +1 -0
  208. package/node_modules/math-intrinsics/min.js +4 -0
  209. package/node_modules/math-intrinsics/mod.d.ts +3 -0
  210. package/node_modules/math-intrinsics/mod.js +9 -0
  211. package/node_modules/math-intrinsics/package.json +86 -0
  212. package/node_modules/math-intrinsics/pow.d.ts +1 -0
  213. package/node_modules/math-intrinsics/pow.js +4 -0
  214. package/node_modules/math-intrinsics/round.d.ts +1 -0
  215. package/node_modules/math-intrinsics/round.js +4 -0
  216. package/node_modules/math-intrinsics/sign.d.ts +3 -0
  217. package/node_modules/math-intrinsics/sign.js +11 -0
  218. package/node_modules/math-intrinsics/test/index.js +192 -0
  219. package/node_modules/math-intrinsics/tsconfig.json +3 -0
  220. package/node_modules/possible-typed-array-names/CHANGELOG.md +14 -0
  221. package/node_modules/possible-typed-array-names/README.md +4 -2
  222. package/node_modules/possible-typed-array-names/index.d.ts +1 -0
  223. package/node_modules/possible-typed-array-names/index.js +1 -0
  224. package/node_modules/possible-typed-array-names/package.json +10 -9
  225. package/node_modules/possible-typed-array-names/test/index.js +6 -3
  226. package/node_modules/possible-typed-array-names/tsconfig.json +2 -42
  227. package/node_modules/readable-stream/node_modules/isarray/.npmignore +1 -0
  228. package/node_modules/readable-stream/node_modules/isarray/.travis.yml +4 -0
  229. package/node_modules/readable-stream/node_modules/isarray/Makefile +6 -0
  230. package/node_modules/readable-stream/node_modules/isarray/README.md +60 -0
  231. package/node_modules/readable-stream/node_modules/isarray/component.json +19 -0
  232. package/node_modules/readable-stream/node_modules/isarray/index.js +5 -0
  233. package/node_modules/readable-stream/node_modules/isarray/package.json +45 -0
  234. package/node_modules/readable-stream/node_modules/isarray/test.js +20 -0
  235. package/node_modules/safe-regex-test/.eslintrc +9 -0
  236. package/node_modules/safe-regex-test/.github/FUNDING.yml +12 -0
  237. package/node_modules/safe-regex-test/.nycrc +13 -0
  238. package/node_modules/safe-regex-test/CHANGELOG.md +55 -0
  239. package/node_modules/safe-regex-test/LICENSE +21 -0
  240. package/node_modules/safe-regex-test/README.md +46 -0
  241. package/node_modules/safe-regex-test/index.d.ts +3 -0
  242. package/node_modules/safe-regex-test/index.js +17 -0
  243. package/node_modules/safe-regex-test/package.json +87 -0
  244. package/node_modules/safe-regex-test/test/index.js +41 -0
  245. package/node_modules/safe-regex-test/tsconfig.json +9 -0
  246. package/node_modules/which-typed-array/.eslintrc +1 -0
  247. package/node_modules/which-typed-array/CHANGELOG.md +45 -0
  248. package/node_modules/which-typed-array/README.md +1 -1
  249. package/node_modules/which-typed-array/index.d.ts +9 -4
  250. package/node_modules/which-typed-array/index.js +29 -23
  251. package/node_modules/which-typed-array/package.json +19 -17
  252. package/node_modules/which-typed-array/tsconfig.json +1 -1
  253. package/node_modules/xml2js/node_modules/sax/LICENSE.md +55 -0
  254. package/node_modules/xml2js/node_modules/sax/README.md +42 -43
  255. package/node_modules/xml2js/node_modules/sax/lib/sax.js +473 -366
  256. package/node_modules/xml2js/node_modules/sax/package.json +11 -9
  257. package/package.json +19 -21
  258. package/node_modules/for-each/.travis.yml +0 -45
  259. package/node_modules/for-each/test/.eslintrc +0 -8
  260. package/node_modules/has-proto/CHANGELOG.md +0 -38
  261. package/node_modules/has-proto/README.md +0 -38
  262. package/node_modules/has-proto/index.d.ts +0 -3
  263. package/node_modules/has-proto/index.js +0 -15
  264. package/node_modules/has-proto/test/index.js +0 -19
  265. package/node_modules/has-proto/tsconfig.json +0 -49
  266. package/node_modules/is-arguments/.eslintignore +0 -1
  267. package/node_modules/is-generator-function/.eslintignore +0 -1
  268. package/node_modules/xml2js/node_modules/sax/LICENSE +0 -41
  269. /package/node_modules/{isarray → buffer/node_modules/isarray}/.npmignore +0 -0
  270. /package/node_modules/{isarray → buffer/node_modules/isarray}/.travis.yml +0 -0
  271. /package/node_modules/{isarray → buffer/node_modules/isarray}/Makefile +0 -0
  272. /package/node_modules/{isarray → buffer/node_modules/isarray}/README.md +0 -0
  273. /package/node_modules/{isarray → buffer/node_modules/isarray}/component.json +0 -0
  274. /package/node_modules/{isarray → buffer/node_modules/isarray}/index.js +0 -0
  275. /package/node_modules/{isarray → buffer/node_modules/isarray}/package.json +0 -0
  276. /package/node_modules/{isarray → buffer/node_modules/isarray}/test.js +0 -0
  277. /package/node_modules/{has-proto → dunder-proto}/.eslintrc +0 -0
@@ -0,0 +1,104 @@
1
+ {
2
+ "name": "is-regex",
3
+ "version": "1.2.1",
4
+ "description": "Is this value a JS regex? Works cross-realm/iframe, and despite ES6 @@toStringTag",
5
+ "author": "Jordan Harband <ljharb@gmail.com>",
6
+ "funding": {
7
+ "url": "https://github.com/sponsors/ljharb"
8
+ },
9
+ "license": "MIT",
10
+ "main": "index.js",
11
+ "scripts": {
12
+ "prepack": "npmignore --auto --commentLines=autogenerated",
13
+ "prepublishOnly": "safe-publish-latest",
14
+ "prepublish": "not-in-publish || npm run prepublishOnly",
15
+ "pretest": "npm run lint",
16
+ "test": "npm run tests-only && npm run test:harmony",
17
+ "tests-only": "nyc node test",
18
+ "test:harmony": "nyc node --harmony --es-staging test",
19
+ "test:corejs": "nyc tape test-corejs.js",
20
+ "posttest": "npx npm@'>=10.2' audit --production",
21
+ "prelint": "eclint check $(git ls-files | xargs find 2> /dev/null | grep -vE 'node_modules|\\.git')",
22
+ "lint": "eslint --ext=js,mjs .",
23
+ "postlint": "tsc -p . && attw -P",
24
+ "version": "auto-changelog && git add CHANGELOG.md",
25
+ "postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\""
26
+ },
27
+ "repository": {
28
+ "type": "git",
29
+ "url": "git://github.com/inspect-js/is-regex.git"
30
+ },
31
+ "bugs": {
32
+ "url": "https://github.com/inspect-js/is-regex/issues"
33
+ },
34
+ "homepage": "https://github.com/inspect-js/is-regex",
35
+ "keywords": [
36
+ "regex",
37
+ "regexp",
38
+ "is",
39
+ "regular expression",
40
+ "regular",
41
+ "expression"
42
+ ],
43
+ "dependencies": {
44
+ "call-bound": "^1.0.2",
45
+ "gopd": "^1.2.0",
46
+ "has-tostringtag": "^1.0.2",
47
+ "hasown": "^2.0.2"
48
+ },
49
+ "devDependencies": {
50
+ "@arethetypeswrong/cli": "^0.17.1",
51
+ "@ljharb/eslint-config": "^21.1.1",
52
+ "@ljharb/tsconfig": "^0.2.2",
53
+ "@types/core-js": "^2.5.8",
54
+ "@types/for-each": "^0.3.3",
55
+ "@types/tape": "^5.6.5",
56
+ "auto-changelog": "^2.5.0",
57
+ "core-js": "^3.39.0",
58
+ "eclint": "^2.8.1",
59
+ "encoding": "^0.1.13",
60
+ "eslint": "=8.8.0",
61
+ "for-each": "^0.3.3",
62
+ "in-publish": "^2.0.1",
63
+ "npmignore": "^0.3.1",
64
+ "nyc": "^10.3.2",
65
+ "safe-publish-latest": "^2.0.0",
66
+ "tape": "^5.9.0",
67
+ "typescript": "^5.8.0-dev.20241129"
68
+ },
69
+ "testling": {
70
+ "files": "test/index.js",
71
+ "browsers": [
72
+ "iexplore/6.0..latest",
73
+ "firefox/3.0..6.0",
74
+ "firefox/15.0..latest",
75
+ "firefox/nightly",
76
+ "chrome/4.0..10.0",
77
+ "chrome/20.0..latest",
78
+ "chrome/canary",
79
+ "opera/10.0..latest",
80
+ "opera/next",
81
+ "safari/4.0..latest",
82
+ "ipad/6.0..latest",
83
+ "iphone/6.0..latest",
84
+ "android-browser/4.2"
85
+ ]
86
+ },
87
+ "engines": {
88
+ "node": ">= 0.4"
89
+ },
90
+ "auto-changelog": {
91
+ "output": "CHANGELOG.md",
92
+ "template": "keepachangelog",
93
+ "unreleased": false,
94
+ "commitLimit": false,
95
+ "backfillLimit": false,
96
+ "hideCredit": true
97
+ },
98
+ "publishConfig": {
99
+ "ignore": [
100
+ ".github/workflows",
101
+ "test-corejs.js"
102
+ ]
103
+ }
104
+ }
@@ -0,0 +1,121 @@
1
+ 'use strict';
2
+
3
+ var hasToStringTag = require('has-tostringtag/shams')();
4
+ var forEach = require('for-each');
5
+ var test = require('tape');
6
+ var isRegex = require('..');
7
+
8
+ test('not regexes', function (t) {
9
+ // @ts-expect-error
10
+ t.notOk(isRegex(), 'undefined is not regex');
11
+ t.notOk(isRegex(null), 'null is not regex');
12
+ t.notOk(isRegex(false), 'false is not regex');
13
+ t.notOk(isRegex(true), 'true is not regex');
14
+ t.notOk(isRegex(42), 'number is not regex');
15
+ t.notOk(isRegex('foo'), 'string is not regex');
16
+ t.notOk(isRegex([]), 'array is not regex');
17
+ t.notOk(isRegex({}), 'object is not regex');
18
+ t.notOk(isRegex(function () {}), 'function is not regex');
19
+ t.end();
20
+ });
21
+
22
+ test('@@toStringTag', { skip: !hasToStringTag }, function (t) {
23
+ var regex = /a/g;
24
+ /** @type {{ toString(): string, valueOf(): RegExp, [Symbol.toStringTag]?: string}} */
25
+ var fakeRegex = {
26
+ toString: function () { return String(regex); },
27
+ valueOf: function () { return regex; }
28
+ };
29
+ fakeRegex[Symbol.toStringTag] = 'RegExp';
30
+ t.notOk(isRegex(fakeRegex), 'fake RegExp with @@toStringTag "RegExp" is not regex');
31
+ t.end();
32
+ });
33
+
34
+ test('regexes', function (t) {
35
+ t.ok(isRegex(/a/g), 'regex literal is regex');
36
+ t.ok(isRegex(new RegExp('a', 'g')), 'regex object is regex');
37
+ t.end();
38
+ });
39
+
40
+ test('does not mutate regexes', function (t) {
41
+ t.test('lastIndex is a marker object', function (st) {
42
+ var regex = /a/;
43
+ var marker = {};
44
+ // @ts-expect-error
45
+ regex.lastIndex = marker;
46
+ st.equal(regex.lastIndex, marker, 'lastIndex is the marker object');
47
+ st.ok(isRegex(regex), 'is regex');
48
+ st.equal(regex.lastIndex, marker, 'lastIndex is the marker object after isRegex');
49
+ st.end();
50
+ });
51
+
52
+ t.test('lastIndex is nonzero', function (st) {
53
+ var regex = /a/;
54
+ regex.lastIndex = 3;
55
+ st.equal(regex.lastIndex, 3, 'lastIndex is 3');
56
+ st.ok(isRegex(regex), 'is regex');
57
+ st.equal(regex.lastIndex, 3, 'lastIndex is 3 after isRegex');
58
+ st.end();
59
+ });
60
+
61
+ t.end();
62
+ });
63
+
64
+ test('does not perform operations observable to Proxies', { skip: typeof Proxy !== 'function' }, function (t) {
65
+ /** @constructor */
66
+ function Handler() {
67
+ /** @type (keyof Reflect)[]} */
68
+ this.trapCalls = [];
69
+ }
70
+
71
+ // eslint-disable-next-line no-extra-parens
72
+ forEach(/** @const @type {(keyof Reflect)[]} */ ([
73
+ 'defineProperty',
74
+ 'deleteProperty',
75
+ 'get',
76
+ 'getOwnPropertyDescriptor',
77
+ 'getPrototypeOf',
78
+ 'has',
79
+ 'isExtensible',
80
+ 'ownKeys',
81
+ 'preventExtensions',
82
+ 'set',
83
+ 'setPrototypeOf'
84
+ ]), function (trapName) {
85
+ Handler.prototype[trapName] = function () {
86
+ this.trapCalls.push(trapName);
87
+ // @ts-expect-error TODO: not sure why this is erroring
88
+ return Reflect[trapName].apply(Reflect, arguments);
89
+ };
90
+ });
91
+
92
+ t.test('proxy of object', function (st) {
93
+ var handler = new Handler();
94
+ // @ts-expect-error Proxy handlers can be any object
95
+ var proxy = new Proxy({ lastIndex: 0 }, handler);
96
+
97
+ st.equal(isRegex(proxy), false, 'proxy of plain object is not regex');
98
+ st.deepEqual(
99
+ handler.trapCalls,
100
+ handler.trapCalls.length > 0 ? ['getOwnPropertyDescriptor'] : [],
101
+ 'no unexpected proxy traps were triggered'
102
+ );
103
+ st.end();
104
+ });
105
+
106
+ t.test('proxy of RegExp instance', function (st) {
107
+ var handler = new Handler();
108
+ // @ts-expect-error Proxy handlers can be any object
109
+ var proxy = new Proxy(/a/, handler);
110
+
111
+ st.equal(isRegex(proxy), false, 'proxy of RegExp instance is not regex');
112
+ st.deepEqual(
113
+ handler.trapCalls,
114
+ handler.trapCalls.length > 0 ? ['getOwnPropertyDescriptor'] : [],
115
+ 'no unexpected proxy traps were triggered'
116
+ );
117
+ st.end();
118
+ });
119
+
120
+ t.end();
121
+ });
@@ -0,0 +1,9 @@
1
+ {
2
+ "extends": "@ljharb/tsconfig",
3
+ "compilerOptions": {
4
+ "target": "ES2021",
5
+ },
6
+ "exclude": [
7
+ "coverage"
8
+ ]
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.1.15](https://github.com/inspect-js/is-typed-array/compare/v1.1.14...v1.1.15) - 2024-12-18
9
+
10
+ ### Commits
11
+
12
+ - [types] improve types [`d934b49`](https://github.com/inspect-js/is-typed-array/commit/d934b49f7a16d5e20ba437a795b887f1f71ef240)
13
+ - [Dev Deps] update `@types/tape` [`da26511`](https://github.com/inspect-js/is-typed-array/commit/da26511ad7515c50fdc720701d5735b0d8a40800)
14
+
15
+ ## [v1.1.14](https://github.com/inspect-js/is-typed-array/compare/v1.1.13...v1.1.14) - 2024-12-17
16
+
17
+ ### Commits
18
+
19
+ - [types] use shared config [`eafa7fa`](https://github.com/inspect-js/is-typed-array/commit/eafa7fad2fc8d464a68e218d39a7eab782d9ce76)
20
+ - [actions] split out node 10-20, and 20+ [`cd6d5a3`](https://github.com/inspect-js/is-typed-array/commit/cd6d5a3283a1e65cf5885e57daede65a5176fd91)
21
+ - [types] use `which-typed-array`’s `TypedArray` type; re-export it [`d7d9fcd`](https://github.com/inspect-js/is-typed-array/commit/d7d9fcd75d538b7f8146dcd9faca5142534a3d45)
22
+ - [Dev Deps] update `@arethetypeswrong/cli`, `@ljharb/eslint-config`, `@ljharb/tsconfig`, `@types/node`, `@types/object-inspect`, `@types/tape`, `auto-changelog`, `object-inspect`, `tape` [`65afb42`](https://github.com/inspect-js/is-typed-array/commit/65afb4263ff4f4ee4ee51b284dc7519ce969a666)
23
+ - [Dev Deps] update `@types/node`, `has-tostringtag`, `tape` [`9e27ddd`](https://github.com/inspect-js/is-typed-array/commit/9e27ddd62a51ebae46781de0adbd8871341c633c)
24
+ - [Tests] replace `aud` with `npm audit` [`ad4defe`](https://github.com/inspect-js/is-typed-array/commit/ad4defe211c77d42b880d13faf7737b8f1adaf13)
25
+ - [Tests] use `@arethetypeswrong/cli` [`ac4bcca`](https://github.com/inspect-js/is-typed-array/commit/ac4bcca4ee2215662e79aa21681756984bb0b6d1)
26
+ - [Deps] update `which-typed-array` [`c298129`](https://github.com/inspect-js/is-typed-array/commit/c2981299c09cd64d89bf1e496447c0379b45d03a)
27
+ - [Deps] update `which-typed-array` [`744c29a`](https://github.com/inspect-js/is-typed-array/commit/744c29aa8d4f9df360082074f7b4f2f0d42d76e5)
28
+ - [Dev Deps] add missing peer dep [`94d2f5a`](https://github.com/inspect-js/is-typed-array/commit/94d2f5a11016516823e8d943e0bfc7b29dcb146d)
29
+
8
30
  ## [v1.1.13](https://github.com/inspect-js/is-typed-array/compare/v1.1.12...v1.1.13) - 2024-02-01
9
31
 
10
32
  ### Commits
@@ -1,16 +1,9 @@
1
- type TypedArray =
2
- | Int8Array
3
- | Uint8Array
4
- | Uint8ClampedArray
5
- | Int16Array
6
- | Uint16Array
7
- | Int32Array
8
- | Uint32Array
9
- | Float32Array
10
- | Float64Array
11
- | BigInt64Array
12
- | BigUint64Array;
1
+ import type { TypedArray } from 'which-typed-array';
13
2
 
14
- declare function isTypedArray(value: unknown): value is TypedArray;
3
+ declare namespace isTypedArray {
4
+ export { TypedArray };
5
+ }
15
6
 
16
- export = isTypedArray;
7
+ declare function isTypedArray(value: unknown): value is isTypedArray.TypedArray;
8
+
9
+ export = isTypedArray;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "is-typed-array",
3
- "version": "1.1.13",
3
+ "version": "1.1.15",
4
4
  "author": {
5
5
  "name": "Jordan Harband",
6
6
  "email": "ljharb@gmail.com",
@@ -27,12 +27,12 @@
27
27
  "prepublish": "not-in-publish || npm run prepublishOnly",
28
28
  "prelint": "evalmd README.md",
29
29
  "lint": "eslint --ext=js,mjs .",
30
- "postlint": "tsc -p .",
30
+ "postlint": "tsc -p . && attw -P",
31
31
  "pretest": "npm run --silent lint",
32
32
  "test": "npm run tests-only && npm run test:harmony",
33
33
  "tests-only": "nyc tape test",
34
34
  "test:harmony": "nyc node --harmony --es-staging test",
35
- "posttest": "npx aud --production",
35
+ "posttest": "npx npm@'>= 10.2' audit --production",
36
36
  "version": "auto-changelog && git add CHANGELOG.md",
37
37
  "postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\""
38
38
  },
@@ -61,32 +61,34 @@
61
61
  "@@toStringTag"
62
62
  ],
63
63
  "dependencies": {
64
- "which-typed-array": "^1.1.14"
64
+ "which-typed-array": "^1.1.16"
65
65
  },
66
66
  "devDependencies": {
67
- "@ljharb/eslint-config": "^21.1.0",
67
+ "@arethetypeswrong/cli": "^0.17.1",
68
+ "@ljharb/eslint-config": "^21.1.1",
69
+ "@ljharb/tsconfig": "^0.2.2",
68
70
  "@types/for-each": "^0.3.3",
69
71
  "@types/is-callable": "^1.1.2",
70
72
  "@types/make-arrow-function": "^1.2.2",
71
73
  "@types/make-generator-function": "^2.0.3",
72
- "@types/node": "^20.11.14",
73
- "@types/object-inspect": "^1.8.4",
74
- "@types/tape": "^5.6.4",
75
- "aud": "^2.0.4",
76
- "auto-changelog": "^2.4.0",
74
+ "@types/node": "^20.17.10",
75
+ "@types/object-inspect": "^1.13.0",
76
+ "@types/tape": "^5.8.0",
77
+ "auto-changelog": "^2.5.0",
78
+ "encoding": "^0.1.13",
77
79
  "eslint": "=8.8.0",
78
80
  "evalmd": "^0.0.19",
79
81
  "for-each": "^0.3.3",
80
- "has-tostringtag": "^1.0.1",
82
+ "has-tostringtag": "^1.0.2",
81
83
  "in-publish": "^2.0.1",
82
84
  "is-callable": "^1.2.7",
83
85
  "make-arrow-function": "^1.2.0",
84
86
  "make-generator-function": "^2.0.0",
85
87
  "npmignore": "^0.3.1",
86
88
  "nyc": "^10.3.2",
87
- "object-inspect": "^1.13.1",
89
+ "object-inspect": "^1.13.3",
88
90
  "safe-publish-latest": "^2.0.0",
89
- "tape": "^5.7.4",
91
+ "tape": "^5.9.0",
90
92
  "typescript": "next"
91
93
  },
92
94
  "testling": {
@@ -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": "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
- ]
2
+ "extends": "@ljharb/tsconfig",
3
+ "exclude": [
4
+ "coverage",
5
+ ],
49
6
  }
@@ -0,0 +1,16 @@
1
+ {
2
+ "root": true,
3
+
4
+ "extends": "@ljharb",
5
+
6
+ "rules": {
7
+ "eqeqeq": ["error", "allow-null"],
8
+ "id-length": "off",
9
+ "new-cap": ["error", {
10
+ "capIsNewExceptions": [
11
+ "RequireObjectCoercible",
12
+ "ToObject",
13
+ ],
14
+ }],
15
+ },
16
+ }
@@ -0,0 +1,12 @@
1
+ # These are supported funding model platforms
2
+
3
+ github: [ljharb]
4
+ patreon: # Replace with a single Patreon username
5
+ open_collective: # Replace with a single Open Collective username
6
+ ko_fi: # Replace with a single Ko-fi username
7
+ tidelift: npm/math-intrinsics
8
+ community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9
+ liberapay: # Replace with a single Liberapay username
10
+ issuehunt: # Replace with a single IssueHunt username
11
+ otechie: # Replace with a single Otechie username
12
+ custom: # Replace with a single custom sponsorship URL
@@ -0,0 +1,24 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
6
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
+
8
+ ## [v1.1.0](https://github.com/es-shims/math-intrinsics/compare/v1.0.0...v1.1.0) - 2024-12-18
9
+
10
+ ### Commits
11
+
12
+ - [New] add `round` [`7cfb044`](https://github.com/es-shims/math-intrinsics/commit/7cfb04460c0fbdf1ca101eecbac3f59d11994130)
13
+ - [Tests] add attw [`e96be8f`](https://github.com/es-shims/math-intrinsics/commit/e96be8fbf58449eafe976446a0470e6ea561ad8d)
14
+ - [Dev Deps] update `@types/tape` [`30d0023`](https://github.com/es-shims/math-intrinsics/commit/30d00234ce8a3fa0094a61cd55d6686eb91e36ec)
15
+
16
+ ## v1.0.0 - 2024-12-11
17
+
18
+ ### Commits
19
+
20
+ - Initial implementation, tests, readme, types [`b898caa`](https://github.com/es-shims/math-intrinsics/commit/b898caae94e9994a94a42b8740f7bbcfd0a868fe)
21
+ - Initial commit [`02745b0`](https://github.com/es-shims/math-intrinsics/commit/02745b03a62255af8a332771987b55d127538d9c)
22
+ - [New] add `constants/maxArrayLength`, `mod` [`b978178`](https://github.com/es-shims/math-intrinsics/commit/b978178a57685bd23ed1c7efe2137f3784f5fcc5)
23
+ - npm init [`a39fc57`](https://github.com/es-shims/math-intrinsics/commit/a39fc57e5639a645d0bd52a0dc56202480223be2)
24
+ - Only apps should have lockfiles [`9451580`](https://github.com/es-shims/math-intrinsics/commit/94515800fb34db4f3cc7e99290042d45609ac7bd)
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024 ECMAScript Shims
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,50 @@
1
+ # math-intrinsics <sup>[![Version Badge][npm-version-svg]][package-url]</sup>
2
+
3
+ [![github actions][actions-image]][actions-url]
4
+ [![coverage][codecov-image]][codecov-url]
5
+ [![License][license-image]][license-url]
6
+ [![Downloads][downloads-image]][downloads-url]
7
+
8
+ [![npm badge][npm-badge-png]][package-url]
9
+
10
+ ES Math-related intrinsics and helpers, robustly cached.
11
+
12
+ - `abs`
13
+ - `floor`
14
+ - `isFinite`
15
+ - `isInteger`
16
+ - `isNaN`
17
+ - `isNegativeZero`
18
+ - `max`
19
+ - `min`
20
+ - `mod`
21
+ - `pow`
22
+ - `round`
23
+ - `sign`
24
+ - `constants/maxArrayLength`
25
+ - `constants/maxSafeInteger`
26
+ - `constants/maxValue`
27
+
28
+
29
+ ## Tests
30
+ Simply clone the repo, `npm install`, and run `npm test`
31
+
32
+ ## Security
33
+
34
+ Please email [@ljharb](https://github.com/ljharb) or see https://tidelift.com/security if you have a potential security vulnerability to report.
35
+
36
+ [package-url]: https://npmjs.org/package/math-intrinsics
37
+ [npm-version-svg]: https://versionbadg.es/es-shims/math-intrinsics.svg
38
+ [deps-svg]: https://david-dm.org/es-shims/math-intrinsics.svg
39
+ [deps-url]: https://david-dm.org/es-shims/math-intrinsics
40
+ [dev-deps-svg]: https://david-dm.org/es-shims/math-intrinsics/dev-status.svg
41
+ [dev-deps-url]: https://david-dm.org/es-shims/math-intrinsics#info=devDependencies
42
+ [npm-badge-png]: https://nodei.co/npm/math-intrinsics.png?downloads=true&stars=true
43
+ [license-image]: https://img.shields.io/npm/l/math-intrinsics.svg
44
+ [license-url]: LICENSE
45
+ [downloads-image]: https://img.shields.io/npm/dm/es-object.svg
46
+ [downloads-url]: https://npm-stat.com/charts.html?package=math-intrinsics
47
+ [codecov-image]: https://codecov.io/gh/es-shims/math-intrinsics/branch/main/graphs/badge.svg
48
+ [codecov-url]: https://app.codecov.io/gh/es-shims/math-intrinsics/
49
+ [actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/es-shims/math-intrinsics
50
+ [actions-url]: https://github.com/es-shims/math-intrinsics/actions
@@ -0,0 +1 @@
1
+ export = Math.abs;
@@ -0,0 +1,4 @@
1
+ 'use strict';
2
+
3
+ /** @type {import('./abs')} */
4
+ module.exports = Math.abs;
@@ -0,0 +1,3 @@
1
+ declare const MAX_ARRAY_LENGTH: 4294967295;
2
+
3
+ export = MAX_ARRAY_LENGTH;
@@ -0,0 +1,4 @@
1
+ 'use strict';
2
+
3
+ /** @type {import('./maxArrayLength')} */
4
+ module.exports = 4294967295; // Math.pow(2, 32) - 1;
@@ -0,0 +1,3 @@
1
+ declare const MAX_SAFE_INTEGER: 9007199254740991;
2
+
3
+ export = MAX_SAFE_INTEGER;
@@ -0,0 +1,5 @@
1
+ 'use strict';
2
+
3
+ /** @type {import('./maxSafeInteger')} */
4
+ // eslint-disable-next-line no-extra-parens
5
+ module.exports = /** @type {import('./maxSafeInteger')} */ (Number.MAX_SAFE_INTEGER) || 9007199254740991; // Math.pow(2, 53) - 1;
@@ -0,0 +1,3 @@
1
+ declare const MAX_VALUE: 1.7976931348623157e+308;
2
+
3
+ export = MAX_VALUE;
@@ -0,0 +1,5 @@
1
+ 'use strict';
2
+
3
+ /** @type {import('./maxValue')} */
4
+ // eslint-disable-next-line no-extra-parens
5
+ module.exports = /** @type {import('./maxValue')} */ (Number.MAX_VALUE) || 1.7976931348623157e+308;
@@ -0,0 +1 @@
1
+ export = Math.floor;
@@ -0,0 +1,4 @@
1
+ 'use strict';
2
+
3
+ /** @type {import('./floor')} */
4
+ module.exports = Math.floor;
@@ -0,0 +1,3 @@
1
+ declare function isFinite(x: unknown): x is number | bigint;
2
+
3
+ export = isFinite;
@@ -0,0 +1,12 @@
1
+ 'use strict';
2
+
3
+ var $isNaN = require('./isNaN');
4
+
5
+ /** @type {import('./isFinite')} */
6
+ module.exports = function isFinite(x) {
7
+ return (typeof x === 'number' || typeof x === 'bigint')
8
+ && !$isNaN(x)
9
+ && x !== Infinity
10
+ && x !== -Infinity;
11
+ };
12
+
@@ -0,0 +1,3 @@
1
+ declare function isInteger(argument: unknown): argument is number;
2
+
3
+ export = isInteger;
@@ -0,0 +1,16 @@
1
+ 'use strict';
2
+
3
+ var $abs = require('./abs');
4
+ var $floor = require('./floor');
5
+
6
+ var $isNaN = require('./isNaN');
7
+ var $isFinite = require('./isFinite');
8
+
9
+ /** @type {import('./isInteger')} */
10
+ module.exports = function isInteger(argument) {
11
+ if (typeof argument !== 'number' || $isNaN(argument) || !$isFinite(argument)) {
12
+ return false;
13
+ }
14
+ var absValue = $abs(argument);
15
+ return $floor(absValue) === absValue;
16
+ };
@@ -0,0 +1 @@
1
+ export = Number.isNaN;
@@ -0,0 +1,6 @@
1
+ 'use strict';
2
+
3
+ /** @type {import('./isNaN')} */
4
+ module.exports = Number.isNaN || function isNaN(a) {
5
+ return a !== a;
6
+ };