cloudstructs 0.9.27 → 0.9.28

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 (380) hide show
  1. package/.jsii +3 -3
  2. package/assets/slack-textract/detect.lambda/index.js +866 -17
  3. package/lib/codecommit-mirror/index.js +2 -2
  4. package/lib/dmarc/index.js +1 -1
  5. package/lib/ecs-service-roller/index.js +2 -2
  6. package/lib/email-receiver/receiver.js +1 -1
  7. package/lib/mjml-template/index.js +1 -1
  8. package/lib/saml-identity-provider/index.js +2 -2
  9. package/lib/slack-app/manifest.js +1 -1
  10. package/lib/slack-app/slack-app.js +2 -2
  11. package/lib/slack-events/index.js +1 -1
  12. package/lib/slack-textract/index.js +1 -1
  13. package/lib/ssl-server-test/index.js +1 -1
  14. package/lib/state-machine-cr-provider/index.js +1 -1
  15. package/lib/static-website/index.js +1 -1
  16. package/lib/toolkit-cleaner/index.js +1 -1
  17. package/lib/url-shortener/index.js +1 -1
  18. package/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js +2 -2
  19. package/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +1 -1
  20. package/node_modules/@babel/runtime/helpers/objectWithoutProperties.js +2 -2
  21. package/node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js +1 -1
  22. package/node_modules/@babel/runtime/package.json +1 -1
  23. package/node_modules/@slack/logger/node_modules/@types/node/README.md +1 -1
  24. package/node_modules/@slack/logger/node_modules/@types/node/assert.d.ts +55 -0
  25. package/node_modules/@slack/logger/node_modules/@types/node/buffer.buffer.d.ts +2 -1
  26. package/node_modules/@slack/logger/node_modules/@types/node/dgram.d.ts +10 -7
  27. package/node_modules/@slack/logger/node_modules/@types/node/fs/promises.d.ts +2 -2
  28. package/node_modules/@slack/logger/node_modules/@types/node/fs.d.ts +45 -98
  29. package/node_modules/@slack/logger/node_modules/@types/node/globals.d.ts +0 -57
  30. package/node_modules/@slack/logger/node_modules/@types/node/http.d.ts +1 -0
  31. package/node_modules/@slack/logger/node_modules/@types/node/module.d.ts +527 -234
  32. package/node_modules/@slack/logger/node_modules/@types/node/net.d.ts +30 -5
  33. package/node_modules/@slack/logger/node_modules/@types/node/package.json +2 -2
  34. package/node_modules/@slack/logger/node_modules/@types/node/perf_hooks.d.ts +5 -0
  35. package/node_modules/@slack/logger/node_modules/@types/node/process.d.ts +54 -4
  36. package/node_modules/@slack/logger/node_modules/@types/node/sea.d.ts +1 -1
  37. package/node_modules/@slack/logger/node_modules/@types/node/sqlite.d.ts +207 -2
  38. package/node_modules/@slack/logger/node_modules/@types/node/stream.d.ts +6 -1
  39. package/node_modules/@slack/logger/node_modules/@types/node/test.d.ts +40 -138
  40. package/node_modules/@slack/logger/node_modules/@types/node/util.d.ts +85 -17
  41. package/node_modules/@slack/logger/node_modules/@types/node/vm.d.ts +1 -1
  42. package/node_modules/@slack/web-api/node_modules/@types/node/README.md +1 -1
  43. package/node_modules/@slack/web-api/node_modules/@types/node/assert.d.ts +55 -0
  44. package/node_modules/@slack/web-api/node_modules/@types/node/buffer.buffer.d.ts +2 -1
  45. package/node_modules/@slack/web-api/node_modules/@types/node/dgram.d.ts +10 -7
  46. package/node_modules/@slack/web-api/node_modules/@types/node/fs/promises.d.ts +2 -2
  47. package/node_modules/@slack/web-api/node_modules/@types/node/fs.d.ts +45 -98
  48. package/node_modules/@slack/web-api/node_modules/@types/node/globals.d.ts +0 -57
  49. package/node_modules/@slack/web-api/node_modules/@types/node/http.d.ts +1 -0
  50. package/node_modules/@slack/web-api/node_modules/@types/node/module.d.ts +527 -234
  51. package/node_modules/@slack/web-api/node_modules/@types/node/net.d.ts +30 -5
  52. package/node_modules/@slack/web-api/node_modules/@types/node/package.json +2 -2
  53. package/node_modules/@slack/web-api/node_modules/@types/node/perf_hooks.d.ts +5 -0
  54. package/node_modules/@slack/web-api/node_modules/@types/node/process.d.ts +54 -4
  55. package/node_modules/@slack/web-api/node_modules/@types/node/sea.d.ts +1 -1
  56. package/node_modules/@slack/web-api/node_modules/@types/node/sqlite.d.ts +207 -2
  57. package/node_modules/@slack/web-api/node_modules/@types/node/stream.d.ts +6 -1
  58. package/node_modules/@slack/web-api/node_modules/@types/node/test.d.ts +40 -138
  59. package/node_modules/@slack/web-api/node_modules/@types/node/util.d.ts +85 -17
  60. package/node_modules/@slack/web-api/node_modules/@types/node/vm.d.ts +1 -1
  61. package/node_modules/@types/cacheable-request/node_modules/@types/node/README.md +1 -1
  62. package/node_modules/@types/cacheable-request/node_modules/@types/node/assert.d.ts +55 -0
  63. package/node_modules/@types/cacheable-request/node_modules/@types/node/buffer.buffer.d.ts +2 -1
  64. package/node_modules/@types/cacheable-request/node_modules/@types/node/dgram.d.ts +10 -7
  65. package/node_modules/@types/cacheable-request/node_modules/@types/node/fs/promises.d.ts +2 -2
  66. package/node_modules/@types/cacheable-request/node_modules/@types/node/fs.d.ts +45 -98
  67. package/node_modules/@types/cacheable-request/node_modules/@types/node/globals.d.ts +0 -57
  68. package/node_modules/@types/cacheable-request/node_modules/@types/node/http.d.ts +1 -0
  69. package/node_modules/@types/cacheable-request/node_modules/@types/node/module.d.ts +527 -234
  70. package/node_modules/@types/cacheable-request/node_modules/@types/node/net.d.ts +30 -5
  71. package/node_modules/@types/cacheable-request/node_modules/@types/node/package.json +2 -2
  72. package/node_modules/@types/cacheable-request/node_modules/@types/node/perf_hooks.d.ts +5 -0
  73. package/node_modules/@types/cacheable-request/node_modules/@types/node/process.d.ts +54 -4
  74. package/node_modules/@types/cacheable-request/node_modules/@types/node/sea.d.ts +1 -1
  75. package/node_modules/@types/cacheable-request/node_modules/@types/node/sqlite.d.ts +207 -2
  76. package/node_modules/@types/cacheable-request/node_modules/@types/node/stream.d.ts +6 -1
  77. package/node_modules/@types/cacheable-request/node_modules/@types/node/test.d.ts +40 -138
  78. package/node_modules/@types/cacheable-request/node_modules/@types/node/util.d.ts +85 -17
  79. package/node_modules/@types/cacheable-request/node_modules/@types/node/vm.d.ts +1 -1
  80. package/node_modules/@types/keyv/node_modules/@types/node/README.md +1 -1
  81. package/node_modules/@types/keyv/node_modules/@types/node/assert.d.ts +55 -0
  82. package/node_modules/@types/keyv/node_modules/@types/node/buffer.buffer.d.ts +2 -1
  83. package/node_modules/@types/keyv/node_modules/@types/node/dgram.d.ts +10 -7
  84. package/node_modules/@types/keyv/node_modules/@types/node/fs/promises.d.ts +2 -2
  85. package/node_modules/@types/keyv/node_modules/@types/node/fs.d.ts +45 -98
  86. package/node_modules/@types/keyv/node_modules/@types/node/globals.d.ts +0 -57
  87. package/node_modules/@types/keyv/node_modules/@types/node/http.d.ts +1 -0
  88. package/node_modules/@types/keyv/node_modules/@types/node/module.d.ts +527 -234
  89. package/node_modules/@types/keyv/node_modules/@types/node/net.d.ts +30 -5
  90. package/node_modules/@types/keyv/node_modules/@types/node/package.json +2 -2
  91. package/node_modules/@types/keyv/node_modules/@types/node/perf_hooks.d.ts +5 -0
  92. package/node_modules/@types/keyv/node_modules/@types/node/process.d.ts +54 -4
  93. package/node_modules/@types/keyv/node_modules/@types/node/sea.d.ts +1 -1
  94. package/node_modules/@types/keyv/node_modules/@types/node/sqlite.d.ts +207 -2
  95. package/node_modules/@types/keyv/node_modules/@types/node/stream.d.ts +6 -1
  96. package/node_modules/@types/keyv/node_modules/@types/node/test.d.ts +40 -138
  97. package/node_modules/@types/keyv/node_modules/@types/node/util.d.ts +85 -17
  98. package/node_modules/@types/keyv/node_modules/@types/node/vm.d.ts +1 -1
  99. package/node_modules/@types/responselike/node_modules/@types/node/README.md +1 -1
  100. package/node_modules/@types/responselike/node_modules/@types/node/assert.d.ts +55 -0
  101. package/node_modules/@types/responselike/node_modules/@types/node/buffer.buffer.d.ts +2 -1
  102. package/node_modules/@types/responselike/node_modules/@types/node/dgram.d.ts +10 -7
  103. package/node_modules/@types/responselike/node_modules/@types/node/fs/promises.d.ts +2 -2
  104. package/node_modules/@types/responselike/node_modules/@types/node/fs.d.ts +45 -98
  105. package/node_modules/@types/responselike/node_modules/@types/node/globals.d.ts +0 -57
  106. package/node_modules/@types/responselike/node_modules/@types/node/http.d.ts +1 -0
  107. package/node_modules/@types/responselike/node_modules/@types/node/module.d.ts +527 -234
  108. package/node_modules/@types/responselike/node_modules/@types/node/net.d.ts +30 -5
  109. package/node_modules/@types/responselike/node_modules/@types/node/package.json +2 -2
  110. package/node_modules/@types/responselike/node_modules/@types/node/perf_hooks.d.ts +5 -0
  111. package/node_modules/@types/responselike/node_modules/@types/node/process.d.ts +54 -4
  112. package/node_modules/@types/responselike/node_modules/@types/node/sea.d.ts +1 -1
  113. package/node_modules/@types/responselike/node_modules/@types/node/sqlite.d.ts +207 -2
  114. package/node_modules/@types/responselike/node_modules/@types/node/stream.d.ts +6 -1
  115. package/node_modules/@types/responselike/node_modules/@types/node/test.d.ts +40 -138
  116. package/node_modules/@types/responselike/node_modules/@types/node/util.d.ts +85 -17
  117. package/node_modules/@types/responselike/node_modules/@types/node/vm.d.ts +1 -1
  118. package/node_modules/abbrev/package.json +11 -9
  119. package/node_modules/call-bind-apply-helpers/.eslintrc +17 -0
  120. package/node_modules/call-bind-apply-helpers/.github/FUNDING.yml +12 -0
  121. package/node_modules/call-bind-apply-helpers/.nycrc +9 -0
  122. package/node_modules/call-bind-apply-helpers/CHANGELOG.md +30 -0
  123. package/node_modules/call-bind-apply-helpers/LICENSE +21 -0
  124. package/node_modules/call-bind-apply-helpers/README.md +62 -0
  125. package/node_modules/call-bind-apply-helpers/actualApply.d.ts +1 -0
  126. package/node_modules/call-bind-apply-helpers/actualApply.js +10 -0
  127. package/node_modules/call-bind-apply-helpers/applyBind.d.ts +19 -0
  128. package/node_modules/call-bind-apply-helpers/applyBind.js +10 -0
  129. package/node_modules/call-bind-apply-helpers/functionApply.d.ts +1 -0
  130. package/node_modules/call-bind-apply-helpers/functionApply.js +4 -0
  131. package/node_modules/call-bind-apply-helpers/functionCall.d.ts +1 -0
  132. package/node_modules/call-bind-apply-helpers/functionCall.js +4 -0
  133. package/node_modules/call-bind-apply-helpers/index.d.ts +64 -0
  134. package/node_modules/call-bind-apply-helpers/index.js +15 -0
  135. package/node_modules/call-bind-apply-helpers/package.json +85 -0
  136. package/node_modules/call-bind-apply-helpers/reflectApply.d.ts +3 -0
  137. package/node_modules/call-bind-apply-helpers/reflectApply.js +4 -0
  138. package/node_modules/call-bind-apply-helpers/test/index.js +63 -0
  139. package/node_modules/call-bind-apply-helpers/tsconfig.json +9 -0
  140. package/node_modules/dunder-proto/.eslintrc +5 -0
  141. package/node_modules/dunder-proto/.github/FUNDING.yml +12 -0
  142. package/node_modules/dunder-proto/.nycrc +13 -0
  143. package/node_modules/dunder-proto/CHANGELOG.md +24 -0
  144. package/node_modules/dunder-proto/LICENSE +21 -0
  145. package/node_modules/dunder-proto/README.md +54 -0
  146. package/node_modules/dunder-proto/get.d.ts +5 -0
  147. package/node_modules/dunder-proto/get.js +30 -0
  148. package/node_modules/dunder-proto/package.json +76 -0
  149. package/node_modules/dunder-proto/set.d.ts +5 -0
  150. package/node_modules/dunder-proto/set.js +35 -0
  151. package/node_modules/dunder-proto/test/get.js +34 -0
  152. package/node_modules/dunder-proto/test/index.js +4 -0
  153. package/node_modules/dunder-proto/test/set.js +50 -0
  154. package/node_modules/dunder-proto/tsconfig.json +9 -0
  155. package/node_modules/es-define-property/.eslintrc +13 -0
  156. package/node_modules/es-define-property/.github/FUNDING.yml +12 -0
  157. package/node_modules/es-define-property/.nycrc +9 -0
  158. package/node_modules/es-define-property/CHANGELOG.md +29 -0
  159. package/node_modules/es-define-property/LICENSE +21 -0
  160. package/node_modules/es-define-property/README.md +49 -0
  161. package/node_modules/es-define-property/index.d.ts +3 -0
  162. package/node_modules/es-define-property/index.js +14 -0
  163. package/node_modules/es-define-property/package.json +81 -0
  164. package/node_modules/es-define-property/test/index.js +56 -0
  165. package/node_modules/es-define-property/tsconfig.json +10 -0
  166. package/node_modules/es-errors/.eslintrc +5 -0
  167. package/node_modules/es-errors/.github/FUNDING.yml +12 -0
  168. package/node_modules/es-errors/CHANGELOG.md +40 -0
  169. package/node_modules/es-errors/LICENSE +21 -0
  170. package/node_modules/es-errors/README.md +55 -0
  171. package/node_modules/es-errors/eval.d.ts +3 -0
  172. package/node_modules/es-errors/eval.js +4 -0
  173. package/node_modules/es-errors/index.d.ts +3 -0
  174. package/node_modules/es-errors/index.js +4 -0
  175. package/node_modules/es-errors/package.json +80 -0
  176. package/node_modules/es-errors/range.d.ts +3 -0
  177. package/node_modules/es-errors/range.js +4 -0
  178. package/node_modules/es-errors/ref.d.ts +3 -0
  179. package/node_modules/es-errors/ref.js +4 -0
  180. package/node_modules/es-errors/syntax.d.ts +3 -0
  181. package/node_modules/es-errors/syntax.js +4 -0
  182. package/node_modules/es-errors/test/index.js +19 -0
  183. package/node_modules/es-errors/tsconfig.json +49 -0
  184. package/node_modules/es-errors/type.d.ts +3 -0
  185. package/node_modules/es-errors/type.js +4 -0
  186. package/node_modules/es-errors/uri.d.ts +3 -0
  187. package/node_modules/es-errors/uri.js +4 -0
  188. package/node_modules/es-object-atoms/.eslintrc +16 -0
  189. package/node_modules/es-object-atoms/.github/FUNDING.yml +12 -0
  190. package/node_modules/es-object-atoms/CHANGELOG.md +37 -0
  191. package/node_modules/es-object-atoms/LICENSE +21 -0
  192. package/node_modules/es-object-atoms/README.md +63 -0
  193. package/node_modules/es-object-atoms/RequireObjectCoercible.d.ts +3 -0
  194. package/node_modules/es-object-atoms/RequireObjectCoercible.js +11 -0
  195. package/node_modules/es-object-atoms/ToObject.d.ts +7 -0
  196. package/node_modules/es-object-atoms/ToObject.js +10 -0
  197. package/node_modules/es-object-atoms/index.d.ts +3 -0
  198. package/node_modules/es-object-atoms/index.js +4 -0
  199. package/node_modules/es-object-atoms/isObject.d.ts +3 -0
  200. package/node_modules/es-object-atoms/isObject.js +6 -0
  201. package/node_modules/es-object-atoms/package.json +80 -0
  202. package/node_modules/es-object-atoms/test/index.js +38 -0
  203. package/node_modules/es-object-atoms/tsconfig.json +6 -0
  204. package/node_modules/es-set-tostringtag/.eslintrc +13 -0
  205. package/node_modules/es-set-tostringtag/.nycrc +9 -0
  206. package/node_modules/es-set-tostringtag/CHANGELOG.md +67 -0
  207. package/node_modules/es-set-tostringtag/LICENSE +21 -0
  208. package/node_modules/es-set-tostringtag/README.md +53 -0
  209. package/node_modules/es-set-tostringtag/index.d.ts +10 -0
  210. package/node_modules/es-set-tostringtag/index.js +35 -0
  211. package/node_modules/es-set-tostringtag/package.json +78 -0
  212. package/node_modules/es-set-tostringtag/test/index.js +85 -0
  213. package/node_modules/es-set-tostringtag/tsconfig.json +9 -0
  214. package/node_modules/form-data/lib/form_data.js +24 -22
  215. package/node_modules/form-data/package.json +17 -14
  216. package/node_modules/function-bind/.eslintrc +21 -0
  217. package/node_modules/function-bind/.github/FUNDING.yml +12 -0
  218. package/node_modules/function-bind/.github/SECURITY.md +3 -0
  219. package/node_modules/function-bind/.nycrc +13 -0
  220. package/node_modules/function-bind/CHANGELOG.md +136 -0
  221. package/node_modules/function-bind/LICENSE +20 -0
  222. package/node_modules/function-bind/README.md +46 -0
  223. package/node_modules/function-bind/implementation.js +84 -0
  224. package/node_modules/function-bind/index.js +5 -0
  225. package/node_modules/function-bind/package.json +87 -0
  226. package/node_modules/function-bind/test/.eslintrc +9 -0
  227. package/node_modules/function-bind/test/index.js +252 -0
  228. package/node_modules/get-intrinsic/.eslintrc +42 -0
  229. package/node_modules/get-intrinsic/.github/FUNDING.yml +12 -0
  230. package/node_modules/get-intrinsic/.nycrc +9 -0
  231. package/node_modules/get-intrinsic/CHANGELOG.md +186 -0
  232. package/node_modules/get-intrinsic/LICENSE +21 -0
  233. package/node_modules/get-intrinsic/README.md +71 -0
  234. package/node_modules/get-intrinsic/index.js +378 -0
  235. package/node_modules/get-intrinsic/package.json +97 -0
  236. package/node_modules/get-intrinsic/test/GetIntrinsic.js +274 -0
  237. package/node_modules/get-proto/.eslintrc +10 -0
  238. package/node_modules/get-proto/.github/FUNDING.yml +12 -0
  239. package/node_modules/get-proto/.nycrc +9 -0
  240. package/node_modules/get-proto/CHANGELOG.md +21 -0
  241. package/node_modules/get-proto/LICENSE +21 -0
  242. package/node_modules/get-proto/Object.getPrototypeOf.d.ts +5 -0
  243. package/node_modules/get-proto/Object.getPrototypeOf.js +6 -0
  244. package/node_modules/get-proto/README.md +50 -0
  245. package/node_modules/get-proto/Reflect.getPrototypeOf.d.ts +3 -0
  246. package/node_modules/get-proto/Reflect.getPrototypeOf.js +4 -0
  247. package/node_modules/get-proto/index.d.ts +5 -0
  248. package/node_modules/get-proto/index.js +27 -0
  249. package/node_modules/get-proto/package.json +81 -0
  250. package/node_modules/get-proto/test/index.js +68 -0
  251. package/node_modules/get-proto/tsconfig.json +9 -0
  252. package/node_modules/gopd/.eslintrc +16 -0
  253. package/node_modules/gopd/.github/FUNDING.yml +12 -0
  254. package/node_modules/gopd/CHANGELOG.md +45 -0
  255. package/node_modules/gopd/LICENSE +21 -0
  256. package/node_modules/gopd/README.md +40 -0
  257. package/node_modules/gopd/gOPD.d.ts +1 -0
  258. package/node_modules/gopd/gOPD.js +4 -0
  259. package/node_modules/gopd/index.d.ts +5 -0
  260. package/node_modules/gopd/index.js +15 -0
  261. package/node_modules/gopd/package.json +77 -0
  262. package/node_modules/gopd/test/index.js +36 -0
  263. package/node_modules/gopd/tsconfig.json +9 -0
  264. package/node_modules/has-symbols/.eslintrc +11 -0
  265. package/node_modules/has-symbols/.github/FUNDING.yml +12 -0
  266. package/node_modules/has-symbols/.nycrc +9 -0
  267. package/node_modules/has-symbols/CHANGELOG.md +91 -0
  268. package/node_modules/has-symbols/LICENSE +21 -0
  269. package/node_modules/has-symbols/README.md +46 -0
  270. package/node_modules/has-symbols/index.d.ts +3 -0
  271. package/node_modules/has-symbols/index.js +14 -0
  272. package/node_modules/has-symbols/package.json +111 -0
  273. package/node_modules/has-symbols/shams.d.ts +3 -0
  274. package/node_modules/has-symbols/shams.js +45 -0
  275. package/node_modules/has-symbols/test/index.js +22 -0
  276. package/node_modules/has-symbols/test/shams/core-js.js +29 -0
  277. package/node_modules/has-symbols/test/shams/get-own-property-symbols.js +29 -0
  278. package/node_modules/has-symbols/test/tests.js +58 -0
  279. package/node_modules/has-symbols/tsconfig.json +10 -0
  280. package/node_modules/has-tostringtag/.eslintrc +5 -0
  281. package/node_modules/has-tostringtag/.github/FUNDING.yml +12 -0
  282. package/node_modules/has-tostringtag/.nycrc +13 -0
  283. package/node_modules/has-tostringtag/CHANGELOG.md +42 -0
  284. package/node_modules/has-tostringtag/LICENSE +21 -0
  285. package/node_modules/has-tostringtag/README.md +46 -0
  286. package/node_modules/has-tostringtag/index.d.ts +3 -0
  287. package/node_modules/has-tostringtag/index.js +8 -0
  288. package/node_modules/has-tostringtag/package.json +108 -0
  289. package/node_modules/has-tostringtag/shams.d.ts +3 -0
  290. package/node_modules/has-tostringtag/shams.js +8 -0
  291. package/node_modules/has-tostringtag/test/index.js +21 -0
  292. package/node_modules/has-tostringtag/test/shams/core-js.js +31 -0
  293. package/node_modules/has-tostringtag/test/shams/get-own-property-symbols.js +30 -0
  294. package/node_modules/has-tostringtag/test/tests.js +15 -0
  295. package/node_modules/has-tostringtag/tsconfig.json +49 -0
  296. package/node_modules/hasown/.eslintrc +5 -0
  297. package/node_modules/hasown/.github/FUNDING.yml +12 -0
  298. package/node_modules/hasown/.nycrc +13 -0
  299. package/node_modules/hasown/CHANGELOG.md +40 -0
  300. package/node_modules/hasown/LICENSE +21 -0
  301. package/node_modules/hasown/README.md +40 -0
  302. package/node_modules/hasown/index.d.ts +3 -0
  303. package/node_modules/hasown/index.js +8 -0
  304. package/node_modules/hasown/package.json +92 -0
  305. package/node_modules/hasown/tsconfig.json +6 -0
  306. package/node_modules/js-beautify/README.md +19 -8
  307. package/node_modules/js-beautify/js/lib/beautifier.js +35 -18
  308. package/node_modules/js-beautify/js/lib/beautifier.min.js +1 -1
  309. package/node_modules/js-beautify/js/lib/beautify-html.js +35 -18
  310. package/node_modules/js-beautify/js/lib/beautify.js +4 -0
  311. package/node_modules/js-beautify/js/src/core/templatablepattern.js +4 -0
  312. package/node_modules/js-beautify/js/src/html/beautifier.js +5 -4
  313. package/node_modules/js-beautify/js/src/html/tokenizer.js +26 -14
  314. package/node_modules/js-beautify/package.json +5 -5
  315. package/node_modules/math-intrinsics/.eslintrc +16 -0
  316. package/node_modules/math-intrinsics/.github/FUNDING.yml +12 -0
  317. package/node_modules/math-intrinsics/CHANGELOG.md +24 -0
  318. package/node_modules/math-intrinsics/LICENSE +21 -0
  319. package/node_modules/math-intrinsics/README.md +50 -0
  320. package/node_modules/math-intrinsics/abs.d.ts +1 -0
  321. package/node_modules/math-intrinsics/abs.js +4 -0
  322. package/node_modules/math-intrinsics/constants/maxArrayLength.d.ts +3 -0
  323. package/node_modules/math-intrinsics/constants/maxArrayLength.js +4 -0
  324. package/node_modules/math-intrinsics/constants/maxSafeInteger.d.ts +3 -0
  325. package/node_modules/math-intrinsics/constants/maxSafeInteger.js +5 -0
  326. package/node_modules/math-intrinsics/constants/maxValue.d.ts +3 -0
  327. package/node_modules/math-intrinsics/constants/maxValue.js +5 -0
  328. package/node_modules/math-intrinsics/floor.d.ts +1 -0
  329. package/node_modules/math-intrinsics/floor.js +4 -0
  330. package/node_modules/math-intrinsics/isFinite.d.ts +3 -0
  331. package/node_modules/math-intrinsics/isFinite.js +12 -0
  332. package/node_modules/math-intrinsics/isInteger.d.ts +3 -0
  333. package/node_modules/math-intrinsics/isInteger.js +16 -0
  334. package/node_modules/math-intrinsics/isNaN.d.ts +1 -0
  335. package/node_modules/math-intrinsics/isNaN.js +6 -0
  336. package/node_modules/math-intrinsics/isNegativeZero.d.ts +3 -0
  337. package/node_modules/math-intrinsics/isNegativeZero.js +6 -0
  338. package/node_modules/math-intrinsics/max.d.ts +1 -0
  339. package/node_modules/math-intrinsics/max.js +4 -0
  340. package/node_modules/math-intrinsics/min.d.ts +1 -0
  341. package/node_modules/math-intrinsics/min.js +4 -0
  342. package/node_modules/math-intrinsics/mod.d.ts +3 -0
  343. package/node_modules/math-intrinsics/mod.js +9 -0
  344. package/node_modules/math-intrinsics/package.json +86 -0
  345. package/node_modules/math-intrinsics/pow.d.ts +1 -0
  346. package/node_modules/math-intrinsics/pow.js +4 -0
  347. package/node_modules/math-intrinsics/round.d.ts +1 -0
  348. package/node_modules/math-intrinsics/round.js +4 -0
  349. package/node_modules/math-intrinsics/sign.d.ts +3 -0
  350. package/node_modules/math-intrinsics/sign.js +11 -0
  351. package/node_modules/math-intrinsics/test/index.js +192 -0
  352. package/node_modules/math-intrinsics/tsconfig.json +3 -0
  353. package/node_modules/nopt/README.md +9 -8
  354. package/node_modules/nopt/lib/nopt-lib.js +40 -5
  355. package/node_modules/nopt/lib/nopt.js +4 -0
  356. package/node_modules/nopt/package.json +10 -9
  357. package/node_modules/semver/README.md +14 -4
  358. package/node_modules/semver/bin/semver.js +2 -1
  359. package/node_modules/semver/classes/semver.js +22 -6
  360. package/node_modules/semver/functions/diff.js +5 -12
  361. package/node_modules/semver/internal/re.js +2 -0
  362. package/node_modules/semver/package.json +8 -7
  363. package/package.json +17 -17
  364. /package/node_modules/{path-scurry/node_modules/lru-cache → lru-cache}/LICENSE +0 -0
  365. /package/node_modules/{path-scurry/node_modules/lru-cache → lru-cache}/README.md +0 -0
  366. /package/node_modules/{path-scurry/node_modules/lru-cache → lru-cache}/dist/commonjs/index.d.ts +0 -0
  367. /package/node_modules/{path-scurry/node_modules/lru-cache → lru-cache}/dist/commonjs/index.d.ts.map +0 -0
  368. /package/node_modules/{path-scurry/node_modules/lru-cache → lru-cache}/dist/commonjs/index.js +0 -0
  369. /package/node_modules/{path-scurry/node_modules/lru-cache → lru-cache}/dist/commonjs/index.js.map +0 -0
  370. /package/node_modules/{path-scurry/node_modules/lru-cache → lru-cache}/dist/commonjs/index.min.js +0 -0
  371. /package/node_modules/{path-scurry/node_modules/lru-cache → lru-cache}/dist/commonjs/index.min.js.map +0 -0
  372. /package/node_modules/{path-scurry/node_modules/lru-cache → lru-cache}/dist/commonjs/package.json +0 -0
  373. /package/node_modules/{path-scurry/node_modules/lru-cache → lru-cache}/dist/esm/index.d.ts +0 -0
  374. /package/node_modules/{path-scurry/node_modules/lru-cache → lru-cache}/dist/esm/index.d.ts.map +0 -0
  375. /package/node_modules/{path-scurry/node_modules/lru-cache → lru-cache}/dist/esm/index.js +0 -0
  376. /package/node_modules/{path-scurry/node_modules/lru-cache → lru-cache}/dist/esm/index.js.map +0 -0
  377. /package/node_modules/{path-scurry/node_modules/lru-cache → lru-cache}/dist/esm/index.min.js +0 -0
  378. /package/node_modules/{path-scurry/node_modules/lru-cache → lru-cache}/dist/esm/index.min.js.map +0 -0
  379. /package/node_modules/{path-scurry/node_modules/lru-cache → lru-cache}/dist/esm/package.json +0 -0
  380. /package/node_modules/{path-scurry/node_modules/lru-cache → lru-cache}/package.json +0 -0
@@ -0,0 +1,186 @@
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.3.0](https://github.com/ljharb/get-intrinsic/compare/v1.2.7...v1.3.0) - 2025-02-22
9
+
10
+ ### Commits
11
+
12
+ - [Dev Deps] update `es-abstract`, `es-value-fixtures`, `for-each`, `object-inspect` [`9b61553`](https://github.com/ljharb/get-intrinsic/commit/9b61553c587f1c1edbd435597e88c7d387da97dd)
13
+ - [Deps] update `call-bind-apply-helpers`, `es-object-atoms`, `get-proto` [`a341fee`](https://github.com/ljharb/get-intrinsic/commit/a341fee0f39a403b0f0069e82c97642d5eb11043)
14
+ - [New] add `Float16Array` [`de22116`](https://github.com/ljharb/get-intrinsic/commit/de22116b492fb989a0341bceb6e573abfaed73dc)
15
+
16
+ ## [v1.2.7](https://github.com/ljharb/get-intrinsic/compare/v1.2.6...v1.2.7) - 2025-01-02
17
+
18
+ ### Commits
19
+
20
+ - [Refactor] use `get-proto` directly [`00ab955`](https://github.com/ljharb/get-intrinsic/commit/00ab95546a0980c8ad42a84253daaa8d2adcedf9)
21
+ - [Deps] update `math-intrinsics` [`c716cdd`](https://github.com/ljharb/get-intrinsic/commit/c716cdd6bbe36b438057025561b8bb5a879ac8a0)
22
+ - [Dev Deps] update `call-bound`, `es-abstract` [`dc648a6`](https://github.com/ljharb/get-intrinsic/commit/dc648a67eb359037dff8d8619bfa71d86debccb1)
23
+
24
+ ## [v1.2.6](https://github.com/ljharb/get-intrinsic/compare/v1.2.5...v1.2.6) - 2024-12-11
25
+
26
+ ### Commits
27
+
28
+ - [Refactor] use `math-intrinsics` [`841be86`](https://github.com/ljharb/get-intrinsic/commit/841be8641a9254c4c75483b30c8871b5d5065926)
29
+ - [Refactor] use `es-object-atoms` [`42057df`](https://github.com/ljharb/get-intrinsic/commit/42057dfa16f66f64787e66482af381cc6f31d2c1)
30
+ - [Deps] update `call-bind-apply-helpers` [`45afa24`](https://github.com/ljharb/get-intrinsic/commit/45afa24a9ee4d6d3c172db1f555b16cb27843ef4)
31
+ - [Dev Deps] update `call-bound` [`9cba9c6`](https://github.com/ljharb/get-intrinsic/commit/9cba9c6e70212bc163b7a5529cb25df46071646f)
32
+
33
+ ## [v1.2.5](https://github.com/ljharb/get-intrinsic/compare/v1.2.4...v1.2.5) - 2024-12-06
34
+
35
+ ### Commits
36
+
37
+ - [actions] split out node 10-20, and 20+ [`6e2b9dd`](https://github.com/ljharb/get-intrinsic/commit/6e2b9dd23902665681ebe453256ccfe21d7966f0)
38
+ - [Refactor] use `dunder-proto` and `call-bind-apply-helpers` instead of `has-proto` [`c095d17`](https://github.com/ljharb/get-intrinsic/commit/c095d179ad0f4fbfff20c8a3e0cb4fe668018998)
39
+ - [Refactor] use `gopd` [`9841d5b`](https://github.com/ljharb/get-intrinsic/commit/9841d5b35f7ab4fd2d193f0c741a50a077920e90)
40
+ - [Dev Deps] update `@ljharb/eslint-config`, `auto-changelog`, `es-abstract`, `es-value-fixtures`, `gopd`, `mock-property`, `object-inspect`, `tape` [`2d07e01`](https://github.com/ljharb/get-intrinsic/commit/2d07e01310cee2cbaedfead6903df128b1f5d425)
41
+ - [Deps] update `gopd`, `has-proto`, `has-symbols`, `hasown` [`974d8bf`](https://github.com/ljharb/get-intrinsic/commit/974d8bf5baad7939eef35c25cc1dd88c10a30fa6)
42
+ - [Dev Deps] update `call-bind`, `es-abstract`, `tape` [`df9dde1`](https://github.com/ljharb/get-intrinsic/commit/df9dde178186631ab8a3165ede056549918ce4bc)
43
+ - [Refactor] cache `es-define-property` as well [`43ef543`](https://github.com/ljharb/get-intrinsic/commit/43ef543cb02194401420e3a914a4ca9168691926)
44
+ - [Deps] update `has-proto`, `has-symbols`, `hasown` [`ad4949d`](https://github.com/ljharb/get-intrinsic/commit/ad4949d5467316505aad89bf75f9417ed782f7af)
45
+ - [Tests] use `call-bound` directly [`ad5c406`](https://github.com/ljharb/get-intrinsic/commit/ad5c4069774bfe90e520a35eead5fe5ca9d69e80)
46
+ - [Deps] update `has-proto`, `hasown` [`45414ca`](https://github.com/ljharb/get-intrinsic/commit/45414caa312333a2798953682c68f85c550627dd)
47
+ - [Tests] replace `aud` with `npm audit` [`18d3509`](https://github.com/ljharb/get-intrinsic/commit/18d3509f79460e7924da70409ee81e5053087523)
48
+ - [Deps] update `es-define-property` [`aadaa3b`](https://github.com/ljharb/get-intrinsic/commit/aadaa3b2188d77ad9bff394ce5d4249c49eb21f5)
49
+ - [Dev Deps] add missing peer dep [`c296a16`](https://github.com/ljharb/get-intrinsic/commit/c296a16246d0c9a5981944f4cc5cf61fbda0cf6a)
50
+
51
+ ## [v1.2.4](https://github.com/ljharb/get-intrinsic/compare/v1.2.3...v1.2.4) - 2024-02-05
52
+
53
+ ### Commits
54
+
55
+ - [Refactor] use all 7 <+ ES6 Errors from `es-errors` [`bcac811`](https://github.com/ljharb/get-intrinsic/commit/bcac811abdc1c982e12abf848a410d6aae148d14)
56
+
57
+ ## [v1.2.3](https://github.com/ljharb/get-intrinsic/compare/v1.2.2...v1.2.3) - 2024-02-03
58
+
59
+ ### Commits
60
+
61
+ - [Refactor] use `es-errors`, so things that only need those do not need `get-intrinsic` [`f11db9c`](https://github.com/ljharb/get-intrinsic/commit/f11db9c4fb97d87bbd53d3c73ac6b3db3613ad3b)
62
+ - [Dev Deps] update `aud`, `es-abstract`, `mock-property`, `npmignore` [`b7ac7d1`](https://github.com/ljharb/get-intrinsic/commit/b7ac7d1616fefb03877b1aed0c8f8d61aad32b6c)
63
+ - [meta] simplify `exports` [`faa0cc6`](https://github.com/ljharb/get-intrinsic/commit/faa0cc618e2830ffb51a8202490b0c215d965cbc)
64
+ - [meta] add missing `engines.node` [`774dd0b`](https://github.com/ljharb/get-intrinsic/commit/774dd0b3e8f741c3f05a6322d124d6087f146af1)
65
+ - [Dev Deps] update `tape` [`5828e8e`](https://github.com/ljharb/get-intrinsic/commit/5828e8e4a04e69312e87a36c0ea39428a7a4c3d8)
66
+ - [Robustness] use null objects for lookups [`eb9a11f`](https://github.com/ljharb/get-intrinsic/commit/eb9a11fa9eb3e13b193fcc05a7fb814341b1a7b7)
67
+ - [meta] add `sideEffects` flag [`89bcc7a`](https://github.com/ljharb/get-intrinsic/commit/89bcc7a42e19bf07b7c21e3094d5ab177109e6d2)
68
+
69
+ ## [v1.2.2](https://github.com/ljharb/get-intrinsic/compare/v1.2.1...v1.2.2) - 2023-10-20
70
+
71
+ ### Commits
72
+
73
+ - [Dev Deps] update `@ljharb/eslint-config`, `aud`, `call-bind`, `es-abstract`, `mock-property`, `object-inspect`, `tape` [`f51bcf2`](https://github.com/ljharb/get-intrinsic/commit/f51bcf26412d58d17ce17c91c9afd0ad271f0762)
74
+ - [Refactor] use `hasown` instead of `has` [`18d14b7`](https://github.com/ljharb/get-intrinsic/commit/18d14b799bea6b5765e1cec91890830cbcdb0587)
75
+ - [Deps] update `function-bind` [`6e109c8`](https://github.com/ljharb/get-intrinsic/commit/6e109c81e03804cc5e7824fb64353cdc3d8ee2c7)
76
+
77
+ ## [v1.2.1](https://github.com/ljharb/get-intrinsic/compare/v1.2.0...v1.2.1) - 2023-05-13
78
+
79
+ ### Commits
80
+
81
+ - [Fix] avoid a crash in envs without `__proto__` [`7bad8d0`](https://github.com/ljharb/get-intrinsic/commit/7bad8d061bf8721733b58b73a2565af2b6756b64)
82
+ - [Dev Deps] update `es-abstract` [`c60e6b7`](https://github.com/ljharb/get-intrinsic/commit/c60e6b7b4cf9660c7f27ed970970fd55fac48dc5)
83
+
84
+ ## [v1.2.0](https://github.com/ljharb/get-intrinsic/compare/v1.1.3...v1.2.0) - 2023-01-19
85
+
86
+ ### Commits
87
+
88
+ - [actions] update checkout action [`ca6b12f`](https://github.com/ljharb/get-intrinsic/commit/ca6b12f31eaacea4ea3b055e744cd61623385ffb)
89
+ - [Dev Deps] update `@ljharb/eslint-config`, `es-abstract`, `object-inspect`, `tape` [`41a3727`](https://github.com/ljharb/get-intrinsic/commit/41a3727d0026fa04273ae216a5f8e12eefd72da8)
90
+ - [Fix] ensure `Error.prototype` is undeniable [`c511e97`](https://github.com/ljharb/get-intrinsic/commit/c511e97ae99c764c4524b540dee7a70757af8da3)
91
+ - [Dev Deps] update `aud`, `es-abstract`, `tape` [`1bef8a8`](https://github.com/ljharb/get-intrinsic/commit/1bef8a8fd439ebb80863199b6189199e0851ac67)
92
+ - [Dev Deps] update `aud`, `es-abstract` [`0d41f16`](https://github.com/ljharb/get-intrinsic/commit/0d41f16bcd500bc28b7bfc98043ebf61ea081c26)
93
+ - [New] add `BigInt64Array` and `BigUint64Array` [`a6cca25`](https://github.com/ljharb/get-intrinsic/commit/a6cca25f29635889b7e9bd669baf9e04be90e48c)
94
+ - [Tests] use `gopd` [`ecf7722`](https://github.com/ljharb/get-intrinsic/commit/ecf7722240d15cfd16edda06acf63359c10fb9bd)
95
+
96
+ ## [v1.1.3](https://github.com/ljharb/get-intrinsic/compare/v1.1.2...v1.1.3) - 2022-09-12
97
+
98
+ ### Commits
99
+
100
+ - [Dev Deps] update `es-abstract`, `es-value-fixtures`, `tape` [`07ff291`](https://github.com/ljharb/get-intrinsic/commit/07ff291816406ebe5a12d7f16965bde0942dd688)
101
+ - [Fix] properly check for % signs [`50ac176`](https://github.com/ljharb/get-intrinsic/commit/50ac1760fe99c227e64eabde76e9c0e44cd881b5)
102
+
103
+ ## [v1.1.2](https://github.com/ljharb/get-intrinsic/compare/v1.1.1...v1.1.2) - 2022-06-08
104
+
105
+ ### Fixed
106
+
107
+ - [Fix] properly validate against extra % signs [`#16`](https://github.com/ljharb/get-intrinsic/issues/16)
108
+
109
+ ### Commits
110
+
111
+ - [actions] reuse common workflows [`0972547`](https://github.com/ljharb/get-intrinsic/commit/0972547efd0abc863fe4c445a6ca7eb4f8c6901d)
112
+ - [meta] use `npmignore` to autogenerate an npmignore file [`5ba0b51`](https://github.com/ljharb/get-intrinsic/commit/5ba0b51d8d8d4f1c31d426d74abc0770fd106bad)
113
+ - [actions] use `node/install` instead of `node/run`; use `codecov` action [`c364492`](https://github.com/ljharb/get-intrinsic/commit/c364492af4af51333e6f81c0bf21fd3d602c3661)
114
+ - [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `aud`, `auto-changelog`, `es-abstract`, `object-inspect`, `tape` [`dc04dad`](https://github.com/ljharb/get-intrinsic/commit/dc04dad86f6e5608775a2640cb0db5927ae29ed9)
115
+ - [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `es-abstract`, `object-inspect`, `safe-publish-latest`, `tape` [`1c14059`](https://github.com/ljharb/get-intrinsic/commit/1c1405984e86dd2dc9366c15d8a0294a96a146a5)
116
+ - [Tests] use `mock-property` [`b396ef0`](https://github.com/ljharb/get-intrinsic/commit/b396ef05bb73b1d699811abd64b0d9b97997fdda)
117
+ - [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `aud`, `auto-changelog`, `object-inspect`, `tape` [`c2c758d`](https://github.com/ljharb/get-intrinsic/commit/c2c758d3b90af4fef0a76910d8d3c292ec8d1d3e)
118
+ - [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `aud`, `es-abstract`, `es-value-fixtures`, `object-inspect`, `tape` [`29e3c09`](https://github.com/ljharb/get-intrinsic/commit/29e3c091c2bf3e17099969847e8729d0e46896de)
119
+ - [actions] update codecov uploader [`8cbc141`](https://github.com/ljharb/get-intrinsic/commit/8cbc1418940d7a8941f3a7985cbc4ac095c5e13d)
120
+ - [Dev Deps] update `@ljharb/eslint-config`, `es-abstract`, `es-value-fixtures`, `object-inspect`, `tape` [`10b6f5c`](https://github.com/ljharb/get-intrinsic/commit/10b6f5c02593fb3680c581d696ac124e30652932)
121
+ - [readme] add github actions/codecov badges [`4e25400`](https://github.com/ljharb/get-intrinsic/commit/4e25400d9f51ae9eb059cbe22d9144e70ea214e8)
122
+ - [Tests] use `for-each` instead of `foreach` [`c05b957`](https://github.com/ljharb/get-intrinsic/commit/c05b957ad9a7bc7721af7cc9e9be1edbfe057496)
123
+ - [Dev Deps] update `es-abstract` [`29b05ae`](https://github.com/ljharb/get-intrinsic/commit/29b05aec3e7330e9ad0b8e0f685a9112c20cdd97)
124
+ - [meta] use `prepublishOnly` script for npm 7+ [`95c285d`](https://github.com/ljharb/get-intrinsic/commit/95c285da810516057d3bbfa871176031af38f05d)
125
+ - [Deps] update `has-symbols` [`593cb4f`](https://github.com/ljharb/get-intrinsic/commit/593cb4fb38e7922e40e42c183f45274b636424cd)
126
+ - [readme] fix repo URLs [`1c8305b`](https://github.com/ljharb/get-intrinsic/commit/1c8305b5365827c9b6fc785434aac0e1328ff2f5)
127
+ - [Deps] update `has-symbols` [`c7138b6`](https://github.com/ljharb/get-intrinsic/commit/c7138b6c6d73132d859471fb8c13304e1e7c8b20)
128
+ - [Dev Deps] remove unused `has-bigints` [`bd63aff`](https://github.com/ljharb/get-intrinsic/commit/bd63aff6ad8f3a986c557fcda2914187bdaab359)
129
+
130
+ ## [v1.1.1](https://github.com/ljharb/get-intrinsic/compare/v1.1.0...v1.1.1) - 2021-02-03
131
+
132
+ ### Fixed
133
+
134
+ - [meta] export `./package.json` [`#9`](https://github.com/ljharb/get-intrinsic/issues/9)
135
+
136
+ ### Commits
137
+
138
+ - [readme] flesh out the readme; use `evalmd` [`d12f12c`](https://github.com/ljharb/get-intrinsic/commit/d12f12c15345a0a0772cc65a7c64369529abd614)
139
+ - [eslint] set up proper globals config [`5a8c098`](https://github.com/ljharb/get-intrinsic/commit/5a8c0984e3319d1ac0e64b102f8ec18b64e79f36)
140
+ - [Dev Deps] update `eslint` [`7b9a5c0`](https://github.com/ljharb/get-intrinsic/commit/7b9a5c0d31a90ca1a1234181c74988fb046701cd)
141
+
142
+ ## [v1.1.0](https://github.com/ljharb/get-intrinsic/compare/v1.0.2...v1.1.0) - 2021-01-25
143
+
144
+ ### Fixed
145
+
146
+ - [Refactor] delay `Function` eval until syntax-derived values are requested [`#3`](https://github.com/ljharb/get-intrinsic/issues/3)
147
+
148
+ ### Commits
149
+
150
+ - [Tests] migrate tests to Github Actions [`2ab762b`](https://github.com/ljharb/get-intrinsic/commit/2ab762b48164aea8af37a40ba105bbc8246ab8c4)
151
+ - [meta] do not publish github action workflow files [`5e7108e`](https://github.com/ljharb/get-intrinsic/commit/5e7108e4768b244d48d9567ba4f8a6cab9c65b8e)
152
+ - [Tests] add some coverage [`01ac7a8`](https://github.com/ljharb/get-intrinsic/commit/01ac7a87ac29738567e8524cd8c9e026b1fa8cb3)
153
+ - [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `call-bind`, `es-abstract`, `tape`; add `call-bind` [`911b672`](https://github.com/ljharb/get-intrinsic/commit/911b672fbffae433a96924c6ce013585e425f4b7)
154
+ - [Refactor] rearrange evalled constructors a bit [`7e7e4bf`](https://github.com/ljharb/get-intrinsic/commit/7e7e4bf583f3799c8ac1c6c5e10d2cb553957347)
155
+ - [meta] add Automatic Rebase and Require Allow Edits workflows [`0199968`](https://github.com/ljharb/get-intrinsic/commit/01999687a263ffce0a3cb011dfbcb761754aedbc)
156
+
157
+ ## [v1.0.2](https://github.com/ljharb/get-intrinsic/compare/v1.0.1...v1.0.2) - 2020-12-17
158
+
159
+ ### Commits
160
+
161
+ - [Fix] Throw for non‑existent intrinsics [`68f873b`](https://github.com/ljharb/get-intrinsic/commit/68f873b013c732a05ad6f5fc54f697e55515461b)
162
+ - [Fix] Throw for non‑existent segments in the intrinsic path [`8325dee`](https://github.com/ljharb/get-intrinsic/commit/8325deee43128f3654d3399aa9591741ebe17b21)
163
+ - [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `aud`, `has-bigints`, `object-inspect` [`0c227a7`](https://github.com/ljharb/get-intrinsic/commit/0c227a7d8b629166f25715fd242553892e458525)
164
+ - [meta] do not lint coverage output [`70d2419`](https://github.com/ljharb/get-intrinsic/commit/70d24199b620043cd9110fc5f426d214ebe21dc9)
165
+
166
+ ## [v1.0.1](https://github.com/ljharb/get-intrinsic/compare/v1.0.0...v1.0.1) - 2020-10-30
167
+
168
+ ### Commits
169
+
170
+ - [Tests] gather coverage data on every job [`d1d280d`](https://github.com/ljharb/get-intrinsic/commit/d1d280dec714e3f0519cc877dbcb193057d9cac6)
171
+ - [Fix] add missing dependencies [`5031771`](https://github.com/ljharb/get-intrinsic/commit/5031771bb1095b38be88ce7c41d5de88718e432e)
172
+ - [Tests] use `es-value-fixtures` [`af48765`](https://github.com/ljharb/get-intrinsic/commit/af48765a23c5323fb0b6b38dbf00eb5099c7bebc)
173
+
174
+ ## v1.0.0 - 2020-10-29
175
+
176
+ ### Commits
177
+
178
+ - Implementation [`bbce57c`](https://github.com/ljharb/get-intrinsic/commit/bbce57c6f33d05b2d8d3efa273ceeb3ee01127bb)
179
+ - Tests [`17b4f0d`](https://github.com/ljharb/get-intrinsic/commit/17b4f0d56dea6b4059b56fc30ef3ee4d9500ebc2)
180
+ - Initial commit [`3153294`](https://github.com/ljharb/get-intrinsic/commit/31532948de363b0a27dd9fd4649e7b7028ec4b44)
181
+ - npm init [`fb326c4`](https://github.com/ljharb/get-intrinsic/commit/fb326c4d2817c8419ec31de1295f06bb268a7902)
182
+ - [meta] add Automatic Rebase and Require Allow Edits workflows [`48862fb`](https://github.com/ljharb/get-intrinsic/commit/48862fb2508c8f6a57968e6d08b7c883afc9d550)
183
+ - [meta] add `auto-changelog` [`5f28ad0`](https://github.com/ljharb/get-intrinsic/commit/5f28ad019e060a353d8028f9f2591a9cc93074a1)
184
+ - [meta] add "funding"; create `FUNDING.yml` [`c2bbdde`](https://github.com/ljharb/get-intrinsic/commit/c2bbddeba73a875be61484ee4680b129a6d4e0a1)
185
+ - [Tests] add `npm run lint` [`0a84b98`](https://github.com/ljharb/get-intrinsic/commit/0a84b98b22b7cf7a748666f705b0003a493c35fd)
186
+ - Only apps should have lockfiles [`9586c75`](https://github.com/ljharb/get-intrinsic/commit/9586c75866c1ee678e4d5d4dbbdef6997e511b05)
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2020 Jordan Harband
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,71 @@
1
+ # get-intrinsic <sup>[![Version Badge][npm-version-svg]][package-url]</sup>
2
+
3
+ [![github actions][actions-image]][actions-url]
4
+ [![coverage][codecov-image]][codecov-url]
5
+ [![dependency status][deps-svg]][deps-url]
6
+ [![dev dependency status][dev-deps-svg]][dev-deps-url]
7
+ [![License][license-image]][license-url]
8
+ [![Downloads][downloads-image]][downloads-url]
9
+
10
+ [![npm badge][npm-badge-png]][package-url]
11
+
12
+ Get and robustly cache all JS language-level intrinsics at first require time.
13
+
14
+ See the syntax described [in the JS spec](https://tc39.es/ecma262/#sec-well-known-intrinsic-objects) for reference.
15
+
16
+ ## Example
17
+
18
+ ```js
19
+ var GetIntrinsic = require('get-intrinsic');
20
+ var assert = require('assert');
21
+
22
+ // static methods
23
+ assert.equal(GetIntrinsic('%Math.pow%'), Math.pow);
24
+ assert.equal(Math.pow(2, 3), 8);
25
+ assert.equal(GetIntrinsic('%Math.pow%')(2, 3), 8);
26
+ delete Math.pow;
27
+ assert.equal(GetIntrinsic('%Math.pow%')(2, 3), 8);
28
+
29
+ // instance methods
30
+ var arr = [1];
31
+ assert.equal(GetIntrinsic('%Array.prototype.push%'), Array.prototype.push);
32
+ assert.deepEqual(arr, [1]);
33
+
34
+ arr.push(2);
35
+ assert.deepEqual(arr, [1, 2]);
36
+
37
+ GetIntrinsic('%Array.prototype.push%').call(arr, 3);
38
+ assert.deepEqual(arr, [1, 2, 3]);
39
+
40
+ delete Array.prototype.push;
41
+ GetIntrinsic('%Array.prototype.push%').call(arr, 4);
42
+ assert.deepEqual(arr, [1, 2, 3, 4]);
43
+
44
+ // missing features
45
+ delete JSON.parse; // to simulate a real intrinsic that is missing in the environment
46
+ assert.throws(() => GetIntrinsic('%JSON.parse%'));
47
+ assert.equal(undefined, GetIntrinsic('%JSON.parse%', true));
48
+ ```
49
+
50
+ ## Tests
51
+ Simply clone the repo, `npm install`, and run `npm test`
52
+
53
+ ## Security
54
+
55
+ Please email [@ljharb](https://github.com/ljharb) or see https://tidelift.com/security if you have a potential security vulnerability to report.
56
+
57
+ [package-url]: https://npmjs.org/package/get-intrinsic
58
+ [npm-version-svg]: https://versionbadg.es/ljharb/get-intrinsic.svg
59
+ [deps-svg]: https://david-dm.org/ljharb/get-intrinsic.svg
60
+ [deps-url]: https://david-dm.org/ljharb/get-intrinsic
61
+ [dev-deps-svg]: https://david-dm.org/ljharb/get-intrinsic/dev-status.svg
62
+ [dev-deps-url]: https://david-dm.org/ljharb/get-intrinsic#info=devDependencies
63
+ [npm-badge-png]: https://nodei.co/npm/get-intrinsic.png?downloads=true&stars=true
64
+ [license-image]: https://img.shields.io/npm/l/get-intrinsic.svg
65
+ [license-url]: LICENSE
66
+ [downloads-image]: https://img.shields.io/npm/dm/get-intrinsic.svg
67
+ [downloads-url]: https://npm-stat.com/charts.html?package=get-intrinsic
68
+ [codecov-image]: https://codecov.io/gh/ljharb/get-intrinsic/branch/main/graphs/badge.svg
69
+ [codecov-url]: https://app.codecov.io/gh/ljharb/get-intrinsic/
70
+ [actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/ljharb/get-intrinsic
71
+ [actions-url]: https://github.com/ljharb/get-intrinsic/actions
@@ -0,0 +1,378 @@
1
+ 'use strict';
2
+
3
+ var undefined;
4
+
5
+ var $Object = require('es-object-atoms');
6
+
7
+ var $Error = require('es-errors');
8
+ var $EvalError = require('es-errors/eval');
9
+ var $RangeError = require('es-errors/range');
10
+ var $ReferenceError = require('es-errors/ref');
11
+ var $SyntaxError = require('es-errors/syntax');
12
+ var $TypeError = require('es-errors/type');
13
+ var $URIError = require('es-errors/uri');
14
+
15
+ var abs = require('math-intrinsics/abs');
16
+ var floor = require('math-intrinsics/floor');
17
+ var max = require('math-intrinsics/max');
18
+ var min = require('math-intrinsics/min');
19
+ var pow = require('math-intrinsics/pow');
20
+ var round = require('math-intrinsics/round');
21
+ var sign = require('math-intrinsics/sign');
22
+
23
+ var $Function = Function;
24
+
25
+ // eslint-disable-next-line consistent-return
26
+ var getEvalledConstructor = function (expressionSyntax) {
27
+ try {
28
+ return $Function('"use strict"; return (' + expressionSyntax + ').constructor;')();
29
+ } catch (e) {}
30
+ };
31
+
32
+ var $gOPD = require('gopd');
33
+ var $defineProperty = require('es-define-property');
34
+
35
+ var throwTypeError = function () {
36
+ throw new $TypeError();
37
+ };
38
+ var ThrowTypeError = $gOPD
39
+ ? (function () {
40
+ try {
41
+ // eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties
42
+ arguments.callee; // IE 8 does not throw here
43
+ return throwTypeError;
44
+ } catch (calleeThrows) {
45
+ try {
46
+ // IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')
47
+ return $gOPD(arguments, 'callee').get;
48
+ } catch (gOPDthrows) {
49
+ return throwTypeError;
50
+ }
51
+ }
52
+ }())
53
+ : throwTypeError;
54
+
55
+ var hasSymbols = require('has-symbols')();
56
+
57
+ var getProto = require('get-proto');
58
+ var $ObjectGPO = require('get-proto/Object.getPrototypeOf');
59
+ var $ReflectGPO = require('get-proto/Reflect.getPrototypeOf');
60
+
61
+ var $apply = require('call-bind-apply-helpers/functionApply');
62
+ var $call = require('call-bind-apply-helpers/functionCall');
63
+
64
+ var needsEval = {};
65
+
66
+ var TypedArray = typeof Uint8Array === 'undefined' || !getProto ? undefined : getProto(Uint8Array);
67
+
68
+ var INTRINSICS = {
69
+ __proto__: null,
70
+ '%AggregateError%': typeof AggregateError === 'undefined' ? undefined : AggregateError,
71
+ '%Array%': Array,
72
+ '%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined : ArrayBuffer,
73
+ '%ArrayIteratorPrototype%': hasSymbols && getProto ? getProto([][Symbol.iterator]()) : undefined,
74
+ '%AsyncFromSyncIteratorPrototype%': undefined,
75
+ '%AsyncFunction%': needsEval,
76
+ '%AsyncGenerator%': needsEval,
77
+ '%AsyncGeneratorFunction%': needsEval,
78
+ '%AsyncIteratorPrototype%': needsEval,
79
+ '%Atomics%': typeof Atomics === 'undefined' ? undefined : Atomics,
80
+ '%BigInt%': typeof BigInt === 'undefined' ? undefined : BigInt,
81
+ '%BigInt64Array%': typeof BigInt64Array === 'undefined' ? undefined : BigInt64Array,
82
+ '%BigUint64Array%': typeof BigUint64Array === 'undefined' ? undefined : BigUint64Array,
83
+ '%Boolean%': Boolean,
84
+ '%DataView%': typeof DataView === 'undefined' ? undefined : DataView,
85
+ '%Date%': Date,
86
+ '%decodeURI%': decodeURI,
87
+ '%decodeURIComponent%': decodeURIComponent,
88
+ '%encodeURI%': encodeURI,
89
+ '%encodeURIComponent%': encodeURIComponent,
90
+ '%Error%': $Error,
91
+ '%eval%': eval, // eslint-disable-line no-eval
92
+ '%EvalError%': $EvalError,
93
+ '%Float16Array%': typeof Float16Array === 'undefined' ? undefined : Float16Array,
94
+ '%Float32Array%': typeof Float32Array === 'undefined' ? undefined : Float32Array,
95
+ '%Float64Array%': typeof Float64Array === 'undefined' ? undefined : Float64Array,
96
+ '%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined : FinalizationRegistry,
97
+ '%Function%': $Function,
98
+ '%GeneratorFunction%': needsEval,
99
+ '%Int8Array%': typeof Int8Array === 'undefined' ? undefined : Int8Array,
100
+ '%Int16Array%': typeof Int16Array === 'undefined' ? undefined : Int16Array,
101
+ '%Int32Array%': typeof Int32Array === 'undefined' ? undefined : Int32Array,
102
+ '%isFinite%': isFinite,
103
+ '%isNaN%': isNaN,
104
+ '%IteratorPrototype%': hasSymbols && getProto ? getProto(getProto([][Symbol.iterator]())) : undefined,
105
+ '%JSON%': typeof JSON === 'object' ? JSON : undefined,
106
+ '%Map%': typeof Map === 'undefined' ? undefined : Map,
107
+ '%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols || !getProto ? undefined : getProto(new Map()[Symbol.iterator]()),
108
+ '%Math%': Math,
109
+ '%Number%': Number,
110
+ '%Object%': $Object,
111
+ '%Object.getOwnPropertyDescriptor%': $gOPD,
112
+ '%parseFloat%': parseFloat,
113
+ '%parseInt%': parseInt,
114
+ '%Promise%': typeof Promise === 'undefined' ? undefined : Promise,
115
+ '%Proxy%': typeof Proxy === 'undefined' ? undefined : Proxy,
116
+ '%RangeError%': $RangeError,
117
+ '%ReferenceError%': $ReferenceError,
118
+ '%Reflect%': typeof Reflect === 'undefined' ? undefined : Reflect,
119
+ '%RegExp%': RegExp,
120
+ '%Set%': typeof Set === 'undefined' ? undefined : Set,
121
+ '%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols || !getProto ? undefined : getProto(new Set()[Symbol.iterator]()),
122
+ '%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined : SharedArrayBuffer,
123
+ '%String%': String,
124
+ '%StringIteratorPrototype%': hasSymbols && getProto ? getProto(''[Symbol.iterator]()) : undefined,
125
+ '%Symbol%': hasSymbols ? Symbol : undefined,
126
+ '%SyntaxError%': $SyntaxError,
127
+ '%ThrowTypeError%': ThrowTypeError,
128
+ '%TypedArray%': TypedArray,
129
+ '%TypeError%': $TypeError,
130
+ '%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined : Uint8Array,
131
+ '%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined : Uint8ClampedArray,
132
+ '%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined : Uint16Array,
133
+ '%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined : Uint32Array,
134
+ '%URIError%': $URIError,
135
+ '%WeakMap%': typeof WeakMap === 'undefined' ? undefined : WeakMap,
136
+ '%WeakRef%': typeof WeakRef === 'undefined' ? undefined : WeakRef,
137
+ '%WeakSet%': typeof WeakSet === 'undefined' ? undefined : WeakSet,
138
+
139
+ '%Function.prototype.call%': $call,
140
+ '%Function.prototype.apply%': $apply,
141
+ '%Object.defineProperty%': $defineProperty,
142
+ '%Object.getPrototypeOf%': $ObjectGPO,
143
+ '%Math.abs%': abs,
144
+ '%Math.floor%': floor,
145
+ '%Math.max%': max,
146
+ '%Math.min%': min,
147
+ '%Math.pow%': pow,
148
+ '%Math.round%': round,
149
+ '%Math.sign%': sign,
150
+ '%Reflect.getPrototypeOf%': $ReflectGPO
151
+ };
152
+
153
+ if (getProto) {
154
+ try {
155
+ null.error; // eslint-disable-line no-unused-expressions
156
+ } catch (e) {
157
+ // https://github.com/tc39/proposal-shadowrealm/pull/384#issuecomment-1364264229
158
+ var errorProto = getProto(getProto(e));
159
+ INTRINSICS['%Error.prototype%'] = errorProto;
160
+ }
161
+ }
162
+
163
+ var doEval = function doEval(name) {
164
+ var value;
165
+ if (name === '%AsyncFunction%') {
166
+ value = getEvalledConstructor('async function () {}');
167
+ } else if (name === '%GeneratorFunction%') {
168
+ value = getEvalledConstructor('function* () {}');
169
+ } else if (name === '%AsyncGeneratorFunction%') {
170
+ value = getEvalledConstructor('async function* () {}');
171
+ } else if (name === '%AsyncGenerator%') {
172
+ var fn = doEval('%AsyncGeneratorFunction%');
173
+ if (fn) {
174
+ value = fn.prototype;
175
+ }
176
+ } else if (name === '%AsyncIteratorPrototype%') {
177
+ var gen = doEval('%AsyncGenerator%');
178
+ if (gen && getProto) {
179
+ value = getProto(gen.prototype);
180
+ }
181
+ }
182
+
183
+ INTRINSICS[name] = value;
184
+
185
+ return value;
186
+ };
187
+
188
+ var LEGACY_ALIASES = {
189
+ __proto__: null,
190
+ '%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'],
191
+ '%ArrayPrototype%': ['Array', 'prototype'],
192
+ '%ArrayProto_entries%': ['Array', 'prototype', 'entries'],
193
+ '%ArrayProto_forEach%': ['Array', 'prototype', 'forEach'],
194
+ '%ArrayProto_keys%': ['Array', 'prototype', 'keys'],
195
+ '%ArrayProto_values%': ['Array', 'prototype', 'values'],
196
+ '%AsyncFunctionPrototype%': ['AsyncFunction', 'prototype'],
197
+ '%AsyncGenerator%': ['AsyncGeneratorFunction', 'prototype'],
198
+ '%AsyncGeneratorPrototype%': ['AsyncGeneratorFunction', 'prototype', 'prototype'],
199
+ '%BooleanPrototype%': ['Boolean', 'prototype'],
200
+ '%DataViewPrototype%': ['DataView', 'prototype'],
201
+ '%DatePrototype%': ['Date', 'prototype'],
202
+ '%ErrorPrototype%': ['Error', 'prototype'],
203
+ '%EvalErrorPrototype%': ['EvalError', 'prototype'],
204
+ '%Float32ArrayPrototype%': ['Float32Array', 'prototype'],
205
+ '%Float64ArrayPrototype%': ['Float64Array', 'prototype'],
206
+ '%FunctionPrototype%': ['Function', 'prototype'],
207
+ '%Generator%': ['GeneratorFunction', 'prototype'],
208
+ '%GeneratorPrototype%': ['GeneratorFunction', 'prototype', 'prototype'],
209
+ '%Int8ArrayPrototype%': ['Int8Array', 'prototype'],
210
+ '%Int16ArrayPrototype%': ['Int16Array', 'prototype'],
211
+ '%Int32ArrayPrototype%': ['Int32Array', 'prototype'],
212
+ '%JSONParse%': ['JSON', 'parse'],
213
+ '%JSONStringify%': ['JSON', 'stringify'],
214
+ '%MapPrototype%': ['Map', 'prototype'],
215
+ '%NumberPrototype%': ['Number', 'prototype'],
216
+ '%ObjectPrototype%': ['Object', 'prototype'],
217
+ '%ObjProto_toString%': ['Object', 'prototype', 'toString'],
218
+ '%ObjProto_valueOf%': ['Object', 'prototype', 'valueOf'],
219
+ '%PromisePrototype%': ['Promise', 'prototype'],
220
+ '%PromiseProto_then%': ['Promise', 'prototype', 'then'],
221
+ '%Promise_all%': ['Promise', 'all'],
222
+ '%Promise_reject%': ['Promise', 'reject'],
223
+ '%Promise_resolve%': ['Promise', 'resolve'],
224
+ '%RangeErrorPrototype%': ['RangeError', 'prototype'],
225
+ '%ReferenceErrorPrototype%': ['ReferenceError', 'prototype'],
226
+ '%RegExpPrototype%': ['RegExp', 'prototype'],
227
+ '%SetPrototype%': ['Set', 'prototype'],
228
+ '%SharedArrayBufferPrototype%': ['SharedArrayBuffer', 'prototype'],
229
+ '%StringPrototype%': ['String', 'prototype'],
230
+ '%SymbolPrototype%': ['Symbol', 'prototype'],
231
+ '%SyntaxErrorPrototype%': ['SyntaxError', 'prototype'],
232
+ '%TypedArrayPrototype%': ['TypedArray', 'prototype'],
233
+ '%TypeErrorPrototype%': ['TypeError', 'prototype'],
234
+ '%Uint8ArrayPrototype%': ['Uint8Array', 'prototype'],
235
+ '%Uint8ClampedArrayPrototype%': ['Uint8ClampedArray', 'prototype'],
236
+ '%Uint16ArrayPrototype%': ['Uint16Array', 'prototype'],
237
+ '%Uint32ArrayPrototype%': ['Uint32Array', 'prototype'],
238
+ '%URIErrorPrototype%': ['URIError', 'prototype'],
239
+ '%WeakMapPrototype%': ['WeakMap', 'prototype'],
240
+ '%WeakSetPrototype%': ['WeakSet', 'prototype']
241
+ };
242
+
243
+ var bind = require('function-bind');
244
+ var hasOwn = require('hasown');
245
+ var $concat = bind.call($call, Array.prototype.concat);
246
+ var $spliceApply = bind.call($apply, Array.prototype.splice);
247
+ var $replace = bind.call($call, String.prototype.replace);
248
+ var $strSlice = bind.call($call, String.prototype.slice);
249
+ var $exec = bind.call($call, RegExp.prototype.exec);
250
+
251
+ /* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
252
+ var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
253
+ var reEscapeChar = /\\(\\)?/g; /** Used to match backslashes in property paths. */
254
+ var stringToPath = function stringToPath(string) {
255
+ var first = $strSlice(string, 0, 1);
256
+ var last = $strSlice(string, -1);
257
+ if (first === '%' && last !== '%') {
258
+ throw new $SyntaxError('invalid intrinsic syntax, expected closing `%`');
259
+ } else if (last === '%' && first !== '%') {
260
+ throw new $SyntaxError('invalid intrinsic syntax, expected opening `%`');
261
+ }
262
+ var result = [];
263
+ $replace(string, rePropName, function (match, number, quote, subString) {
264
+ result[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : number || match;
265
+ });
266
+ return result;
267
+ };
268
+ /* end adaptation */
269
+
270
+ var getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {
271
+ var intrinsicName = name;
272
+ var alias;
273
+ if (hasOwn(LEGACY_ALIASES, intrinsicName)) {
274
+ alias = LEGACY_ALIASES[intrinsicName];
275
+ intrinsicName = '%' + alias[0] + '%';
276
+ }
277
+
278
+ if (hasOwn(INTRINSICS, intrinsicName)) {
279
+ var value = INTRINSICS[intrinsicName];
280
+ if (value === needsEval) {
281
+ value = doEval(intrinsicName);
282
+ }
283
+ if (typeof value === 'undefined' && !allowMissing) {
284
+ throw new $TypeError('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
285
+ }
286
+
287
+ return {
288
+ alias: alias,
289
+ name: intrinsicName,
290
+ value: value
291
+ };
292
+ }
293
+
294
+ throw new $SyntaxError('intrinsic ' + name + ' does not exist!');
295
+ };
296
+
297
+ module.exports = function GetIntrinsic(name, allowMissing) {
298
+ if (typeof name !== 'string' || name.length === 0) {
299
+ throw new $TypeError('intrinsic name must be a non-empty string');
300
+ }
301
+ if (arguments.length > 1 && typeof allowMissing !== 'boolean') {
302
+ throw new $TypeError('"allowMissing" argument must be a boolean');
303
+ }
304
+
305
+ if ($exec(/^%?[^%]*%?$/, name) === null) {
306
+ throw new $SyntaxError('`%` may not be present anywhere but at the beginning and end of the intrinsic name');
307
+ }
308
+ var parts = stringToPath(name);
309
+ var intrinsicBaseName = parts.length > 0 ? parts[0] : '';
310
+
311
+ var intrinsic = getBaseIntrinsic('%' + intrinsicBaseName + '%', allowMissing);
312
+ var intrinsicRealName = intrinsic.name;
313
+ var value = intrinsic.value;
314
+ var skipFurtherCaching = false;
315
+
316
+ var alias = intrinsic.alias;
317
+ if (alias) {
318
+ intrinsicBaseName = alias[0];
319
+ $spliceApply(parts, $concat([0, 1], alias));
320
+ }
321
+
322
+ for (var i = 1, isOwn = true; i < parts.length; i += 1) {
323
+ var part = parts[i];
324
+ var first = $strSlice(part, 0, 1);
325
+ var last = $strSlice(part, -1);
326
+ if (
327
+ (
328
+ (first === '"' || first === "'" || first === '`')
329
+ || (last === '"' || last === "'" || last === '`')
330
+ )
331
+ && first !== last
332
+ ) {
333
+ throw new $SyntaxError('property names with quotes must have matching quotes');
334
+ }
335
+ if (part === 'constructor' || !isOwn) {
336
+ skipFurtherCaching = true;
337
+ }
338
+
339
+ intrinsicBaseName += '.' + part;
340
+ intrinsicRealName = '%' + intrinsicBaseName + '%';
341
+
342
+ if (hasOwn(INTRINSICS, intrinsicRealName)) {
343
+ value = INTRINSICS[intrinsicRealName];
344
+ } else if (value != null) {
345
+ if (!(part in value)) {
346
+ if (!allowMissing) {
347
+ throw new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');
348
+ }
349
+ return void undefined;
350
+ }
351
+ if ($gOPD && (i + 1) >= parts.length) {
352
+ var desc = $gOPD(value, part);
353
+ isOwn = !!desc;
354
+
355
+ // By convention, when a data property is converted to an accessor
356
+ // property to emulate a data property that does not suffer from
357
+ // the override mistake, that accessor's getter is marked with
358
+ // an `originalValue` property. Here, when we detect this, we
359
+ // uphold the illusion by pretending to see that original data
360
+ // property, i.e., returning the value rather than the getter
361
+ // itself.
362
+ if (isOwn && 'get' in desc && !('originalValue' in desc.get)) {
363
+ value = desc.get;
364
+ } else {
365
+ value = value[part];
366
+ }
367
+ } else {
368
+ isOwn = hasOwn(value, part);
369
+ value = value[part];
370
+ }
371
+
372
+ if (isOwn && !skipFurtherCaching) {
373
+ INTRINSICS[intrinsicRealName] = value;
374
+ }
375
+ }
376
+ }
377
+ return value;
378
+ };