cdktn 0.23.2 → 0.23.3

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 (363) hide show
  1. package/.jsii +34 -34
  2. package/README.md +1 -1
  3. package/lib/annotations.js +1 -1
  4. package/lib/app.js +1 -1
  5. package/lib/aspect.js +1 -1
  6. package/lib/backends/azurerm-backend.js +2 -2
  7. package/lib/backends/cloud-backend.js +4 -4
  8. package/lib/backends/consul-backend.js +2 -2
  9. package/lib/backends/cos-backend.js +2 -2
  10. package/lib/backends/gcs-backend.js +2 -2
  11. package/lib/backends/http-backend.js +2 -2
  12. package/lib/backends/local-backend.js +2 -2
  13. package/lib/backends/oss-backend.js +2 -2
  14. package/lib/backends/pg-backend.js +2 -2
  15. package/lib/backends/remote-backend.js +4 -4
  16. package/lib/backends/s3-backend.js +2 -2
  17. package/lib/backends/swift-backend.js +2 -2
  18. package/lib/complex-computed-list.js +25 -25
  19. package/lib/errors.d.ts +1 -2
  20. package/lib/errors.js +11 -8
  21. package/lib/functions/terraform-functions.generated.js +1 -1
  22. package/lib/importable-resource.js +1 -1
  23. package/lib/manifest.js +4 -5
  24. package/lib/resource.js +1 -1
  25. package/lib/synthesize/synthesizer.js +4 -5
  26. package/lib/terraform-asset.js +1 -1
  27. package/lib/terraform-backend.js +1 -1
  28. package/lib/terraform-count.js +1 -1
  29. package/lib/terraform-data-resource.js +1 -1
  30. package/lib/terraform-data-source.js +1 -1
  31. package/lib/terraform-dynamic-block.js +2 -2
  32. package/lib/terraform-dynamic-expression.js +2 -2
  33. package/lib/terraform-element.js +1 -1
  34. package/lib/terraform-functions.js +1 -1
  35. package/lib/terraform-hcl-module.js +1 -1
  36. package/lib/terraform-iterator.js +5 -5
  37. package/lib/terraform-local.js +1 -1
  38. package/lib/terraform-module.js +1 -1
  39. package/lib/terraform-operators.js +1 -1
  40. package/lib/terraform-output.js +1 -1
  41. package/lib/terraform-provider.js +1 -1
  42. package/lib/terraform-provisioner.js +1 -1
  43. package/lib/terraform-remote-state.js +1 -1
  44. package/lib/terraform-resource-targets.js +1 -1
  45. package/lib/terraform-resource.js +1 -1
  46. package/lib/terraform-stack.js +1 -1
  47. package/lib/terraform-variable.js +2 -2
  48. package/lib/testing/index.js +7 -8
  49. package/lib/testing/matchers.js +1 -1
  50. package/lib/tokens/lazy.js +4 -4
  51. package/lib/tokens/private/intrinsic.d.ts +0 -5
  52. package/lib/tokens/private/intrinsic.js +2 -9
  53. package/lib/tokens/private/stack-trace.d.ts +6 -0
  54. package/lib/tokens/private/stack-trace.js +14 -1
  55. package/lib/tokens/resolvable.js +4 -4
  56. package/lib/tokens/string-fragments.js +1 -1
  57. package/lib/tokens/token.js +2 -2
  58. package/lib/tsconfig.tsbuildinfo +1 -1
  59. package/lib/upgrade-id-aspect.js +1 -1
  60. package/node_modules/{call-bind-apply-helpers → safe-stable-stringify}/LICENSE +2 -2
  61. package/node_modules/safe-stable-stringify/esm/package.json +4 -0
  62. package/node_modules/safe-stable-stringify/esm/wrapper.d.ts +4 -0
  63. package/node_modules/safe-stable-stringify/esm/wrapper.js +6 -0
  64. package/node_modules/safe-stable-stringify/index.d.ts +22 -0
  65. package/node_modules/safe-stable-stringify/index.js +625 -0
  66. package/node_modules/safe-stable-stringify/package.json +65 -0
  67. package/node_modules/safe-stable-stringify/readme.md +179 -0
  68. package/package.json +5 -6
  69. package/node_modules/call-bind/.eslintignore +0 -1
  70. package/node_modules/call-bind/.eslintrc +0 -16
  71. package/node_modules/call-bind/.github/FUNDING.yml +0 -12
  72. package/node_modules/call-bind/.nycrc +0 -9
  73. package/node_modules/call-bind/CHANGELOG.md +0 -106
  74. package/node_modules/call-bind/LICENSE +0 -21
  75. package/node_modules/call-bind/README.md +0 -64
  76. package/node_modules/call-bind/callBound.js +0 -15
  77. package/node_modules/call-bind/index.js +0 -24
  78. package/node_modules/call-bind/package.json +0 -93
  79. package/node_modules/call-bind/test/callBound.js +0 -54
  80. package/node_modules/call-bind/test/index.js +0 -74
  81. package/node_modules/call-bind-apply-helpers/.eslintrc +0 -17
  82. package/node_modules/call-bind-apply-helpers/.github/FUNDING.yml +0 -12
  83. package/node_modules/call-bind-apply-helpers/.nycrc +0 -9
  84. package/node_modules/call-bind-apply-helpers/CHANGELOG.md +0 -30
  85. package/node_modules/call-bind-apply-helpers/README.md +0 -62
  86. package/node_modules/call-bind-apply-helpers/actualApply.d.ts +0 -1
  87. package/node_modules/call-bind-apply-helpers/actualApply.js +0 -10
  88. package/node_modules/call-bind-apply-helpers/applyBind.d.ts +0 -19
  89. package/node_modules/call-bind-apply-helpers/applyBind.js +0 -10
  90. package/node_modules/call-bind-apply-helpers/functionApply.d.ts +0 -1
  91. package/node_modules/call-bind-apply-helpers/functionApply.js +0 -4
  92. package/node_modules/call-bind-apply-helpers/functionCall.d.ts +0 -1
  93. package/node_modules/call-bind-apply-helpers/functionCall.js +0 -4
  94. package/node_modules/call-bind-apply-helpers/index.d.ts +0 -64
  95. package/node_modules/call-bind-apply-helpers/index.js +0 -15
  96. package/node_modules/call-bind-apply-helpers/package.json +0 -85
  97. package/node_modules/call-bind-apply-helpers/reflectApply.d.ts +0 -3
  98. package/node_modules/call-bind-apply-helpers/reflectApply.js +0 -4
  99. package/node_modules/call-bind-apply-helpers/test/index.js +0 -63
  100. package/node_modules/call-bind-apply-helpers/tsconfig.json +0 -9
  101. package/node_modules/call-bound/.eslintrc +0 -13
  102. package/node_modules/call-bound/.github/FUNDING.yml +0 -12
  103. package/node_modules/call-bound/.nycrc +0 -9
  104. package/node_modules/call-bound/CHANGELOG.md +0 -42
  105. package/node_modules/call-bound/LICENSE +0 -21
  106. package/node_modules/call-bound/README.md +0 -53
  107. package/node_modules/call-bound/index.d.ts +0 -94
  108. package/node_modules/call-bound/index.js +0 -19
  109. package/node_modules/call-bound/package.json +0 -99
  110. package/node_modules/call-bound/test/index.js +0 -61
  111. package/node_modules/call-bound/tsconfig.json +0 -10
  112. package/node_modules/define-data-property/.eslintrc +0 -24
  113. package/node_modules/define-data-property/.github/FUNDING.yml +0 -12
  114. package/node_modules/define-data-property/.nycrc +0 -13
  115. package/node_modules/define-data-property/CHANGELOG.md +0 -70
  116. package/node_modules/define-data-property/LICENSE +0 -21
  117. package/node_modules/define-data-property/README.md +0 -67
  118. package/node_modules/define-data-property/index.d.ts +0 -12
  119. package/node_modules/define-data-property/index.js +0 -56
  120. package/node_modules/define-data-property/package.json +0 -106
  121. package/node_modules/define-data-property/test/index.js +0 -392
  122. package/node_modules/define-data-property/tsconfig.json +0 -59
  123. package/node_modules/dunder-proto/.eslintrc +0 -5
  124. package/node_modules/dunder-proto/.github/FUNDING.yml +0 -12
  125. package/node_modules/dunder-proto/.nycrc +0 -13
  126. package/node_modules/dunder-proto/CHANGELOG.md +0 -24
  127. package/node_modules/dunder-proto/LICENSE +0 -21
  128. package/node_modules/dunder-proto/README.md +0 -54
  129. package/node_modules/dunder-proto/get.d.ts +0 -5
  130. package/node_modules/dunder-proto/get.js +0 -30
  131. package/node_modules/dunder-proto/package.json +0 -76
  132. package/node_modules/dunder-proto/set.d.ts +0 -5
  133. package/node_modules/dunder-proto/set.js +0 -35
  134. package/node_modules/dunder-proto/test/get.js +0 -34
  135. package/node_modules/dunder-proto/test/index.js +0 -4
  136. package/node_modules/dunder-proto/test/set.js +0 -50
  137. package/node_modules/dunder-proto/tsconfig.json +0 -9
  138. package/node_modules/es-define-property/.eslintrc +0 -13
  139. package/node_modules/es-define-property/.github/FUNDING.yml +0 -12
  140. package/node_modules/es-define-property/.nycrc +0 -9
  141. package/node_modules/es-define-property/CHANGELOG.md +0 -29
  142. package/node_modules/es-define-property/LICENSE +0 -21
  143. package/node_modules/es-define-property/README.md +0 -49
  144. package/node_modules/es-define-property/index.d.ts +0 -3
  145. package/node_modules/es-define-property/index.js +0 -14
  146. package/node_modules/es-define-property/package.json +0 -81
  147. package/node_modules/es-define-property/test/index.js +0 -56
  148. package/node_modules/es-define-property/tsconfig.json +0 -10
  149. package/node_modules/es-errors/.eslintrc +0 -5
  150. package/node_modules/es-errors/.github/FUNDING.yml +0 -12
  151. package/node_modules/es-errors/CHANGELOG.md +0 -40
  152. package/node_modules/es-errors/LICENSE +0 -21
  153. package/node_modules/es-errors/README.md +0 -55
  154. package/node_modules/es-errors/eval.d.ts +0 -3
  155. package/node_modules/es-errors/eval.js +0 -4
  156. package/node_modules/es-errors/index.d.ts +0 -3
  157. package/node_modules/es-errors/index.js +0 -4
  158. package/node_modules/es-errors/package.json +0 -80
  159. package/node_modules/es-errors/range.d.ts +0 -3
  160. package/node_modules/es-errors/range.js +0 -4
  161. package/node_modules/es-errors/ref.d.ts +0 -3
  162. package/node_modules/es-errors/ref.js +0 -4
  163. package/node_modules/es-errors/syntax.d.ts +0 -3
  164. package/node_modules/es-errors/syntax.js +0 -4
  165. package/node_modules/es-errors/test/index.js +0 -19
  166. package/node_modules/es-errors/tsconfig.json +0 -49
  167. package/node_modules/es-errors/type.d.ts +0 -3
  168. package/node_modules/es-errors/type.js +0 -4
  169. package/node_modules/es-errors/uri.d.ts +0 -3
  170. package/node_modules/es-errors/uri.js +0 -4
  171. package/node_modules/es-object-atoms/.eslintrc +0 -16
  172. package/node_modules/es-object-atoms/.github/FUNDING.yml +0 -12
  173. package/node_modules/es-object-atoms/CHANGELOG.md +0 -37
  174. package/node_modules/es-object-atoms/LICENSE +0 -21
  175. package/node_modules/es-object-atoms/README.md +0 -63
  176. package/node_modules/es-object-atoms/RequireObjectCoercible.d.ts +0 -3
  177. package/node_modules/es-object-atoms/RequireObjectCoercible.js +0 -11
  178. package/node_modules/es-object-atoms/ToObject.d.ts +0 -7
  179. package/node_modules/es-object-atoms/ToObject.js +0 -10
  180. package/node_modules/es-object-atoms/index.d.ts +0 -3
  181. package/node_modules/es-object-atoms/index.js +0 -4
  182. package/node_modules/es-object-atoms/isObject.d.ts +0 -3
  183. package/node_modules/es-object-atoms/isObject.js +0 -6
  184. package/node_modules/es-object-atoms/package.json +0 -80
  185. package/node_modules/es-object-atoms/test/index.js +0 -38
  186. package/node_modules/es-object-atoms/tsconfig.json +0 -6
  187. package/node_modules/function-bind/.eslintrc +0 -21
  188. package/node_modules/function-bind/.github/FUNDING.yml +0 -12
  189. package/node_modules/function-bind/.github/SECURITY.md +0 -3
  190. package/node_modules/function-bind/.nycrc +0 -13
  191. package/node_modules/function-bind/CHANGELOG.md +0 -136
  192. package/node_modules/function-bind/LICENSE +0 -20
  193. package/node_modules/function-bind/README.md +0 -46
  194. package/node_modules/function-bind/implementation.js +0 -84
  195. package/node_modules/function-bind/index.js +0 -5
  196. package/node_modules/function-bind/package.json +0 -87
  197. package/node_modules/function-bind/test/.eslintrc +0 -9
  198. package/node_modules/function-bind/test/index.js +0 -252
  199. package/node_modules/get-intrinsic/.eslintrc +0 -42
  200. package/node_modules/get-intrinsic/.github/FUNDING.yml +0 -12
  201. package/node_modules/get-intrinsic/.nycrc +0 -9
  202. package/node_modules/get-intrinsic/CHANGELOG.md +0 -186
  203. package/node_modules/get-intrinsic/LICENSE +0 -21
  204. package/node_modules/get-intrinsic/README.md +0 -71
  205. package/node_modules/get-intrinsic/index.js +0 -378
  206. package/node_modules/get-intrinsic/package.json +0 -97
  207. package/node_modules/get-intrinsic/test/GetIntrinsic.js +0 -274
  208. package/node_modules/get-proto/.eslintrc +0 -10
  209. package/node_modules/get-proto/.github/FUNDING.yml +0 -12
  210. package/node_modules/get-proto/.nycrc +0 -9
  211. package/node_modules/get-proto/CHANGELOG.md +0 -21
  212. package/node_modules/get-proto/LICENSE +0 -21
  213. package/node_modules/get-proto/Object.getPrototypeOf.d.ts +0 -5
  214. package/node_modules/get-proto/Object.getPrototypeOf.js +0 -6
  215. package/node_modules/get-proto/README.md +0 -50
  216. package/node_modules/get-proto/Reflect.getPrototypeOf.d.ts +0 -3
  217. package/node_modules/get-proto/Reflect.getPrototypeOf.js +0 -4
  218. package/node_modules/get-proto/index.d.ts +0 -5
  219. package/node_modules/get-proto/index.js +0 -27
  220. package/node_modules/get-proto/package.json +0 -81
  221. package/node_modules/get-proto/test/index.js +0 -68
  222. package/node_modules/get-proto/tsconfig.json +0 -9
  223. package/node_modules/gopd/.eslintrc +0 -16
  224. package/node_modules/gopd/.github/FUNDING.yml +0 -12
  225. package/node_modules/gopd/CHANGELOG.md +0 -45
  226. package/node_modules/gopd/LICENSE +0 -21
  227. package/node_modules/gopd/README.md +0 -40
  228. package/node_modules/gopd/gOPD.d.ts +0 -1
  229. package/node_modules/gopd/gOPD.js +0 -4
  230. package/node_modules/gopd/index.d.ts +0 -5
  231. package/node_modules/gopd/index.js +0 -15
  232. package/node_modules/gopd/package.json +0 -77
  233. package/node_modules/gopd/test/index.js +0 -36
  234. package/node_modules/gopd/tsconfig.json +0 -9
  235. package/node_modules/has-property-descriptors/.eslintrc +0 -13
  236. package/node_modules/has-property-descriptors/.github/FUNDING.yml +0 -12
  237. package/node_modules/has-property-descriptors/.nycrc +0 -9
  238. package/node_modules/has-property-descriptors/CHANGELOG.md +0 -35
  239. package/node_modules/has-property-descriptors/LICENSE +0 -21
  240. package/node_modules/has-property-descriptors/README.md +0 -43
  241. package/node_modules/has-property-descriptors/index.js +0 -22
  242. package/node_modules/has-property-descriptors/package.json +0 -77
  243. package/node_modules/has-property-descriptors/test/index.js +0 -57
  244. package/node_modules/has-symbols/.eslintrc +0 -11
  245. package/node_modules/has-symbols/.github/FUNDING.yml +0 -12
  246. package/node_modules/has-symbols/.nycrc +0 -9
  247. package/node_modules/has-symbols/CHANGELOG.md +0 -91
  248. package/node_modules/has-symbols/LICENSE +0 -21
  249. package/node_modules/has-symbols/README.md +0 -46
  250. package/node_modules/has-symbols/index.d.ts +0 -3
  251. package/node_modules/has-symbols/index.js +0 -14
  252. package/node_modules/has-symbols/package.json +0 -111
  253. package/node_modules/has-symbols/shams.d.ts +0 -3
  254. package/node_modules/has-symbols/shams.js +0 -45
  255. package/node_modules/has-symbols/test/index.js +0 -22
  256. package/node_modules/has-symbols/test/shams/core-js.js +0 -29
  257. package/node_modules/has-symbols/test/shams/get-own-property-symbols.js +0 -29
  258. package/node_modules/has-symbols/test/tests.js +0 -58
  259. package/node_modules/has-symbols/tsconfig.json +0 -10
  260. package/node_modules/hasown/.eslintrc +0 -5
  261. package/node_modules/hasown/.github/FUNDING.yml +0 -12
  262. package/node_modules/hasown/.nycrc +0 -13
  263. package/node_modules/hasown/CHANGELOG.md +0 -40
  264. package/node_modules/hasown/LICENSE +0 -21
  265. package/node_modules/hasown/README.md +0 -40
  266. package/node_modules/hasown/index.d.ts +0 -3
  267. package/node_modules/hasown/index.js +0 -8
  268. package/node_modules/hasown/package.json +0 -92
  269. package/node_modules/hasown/tsconfig.json +0 -6
  270. package/node_modules/isarray/LICENSE +0 -21
  271. package/node_modules/isarray/README.md +0 -38
  272. package/node_modules/isarray/index.js +0 -5
  273. package/node_modules/isarray/package.json +0 -48
  274. package/node_modules/json-stable-stringify/.eslintrc +0 -31
  275. package/node_modules/json-stable-stringify/.github/FUNDING.yml +0 -12
  276. package/node_modules/json-stable-stringify/CHANGELOG.md +0 -160
  277. package/node_modules/json-stable-stringify/LICENSE +0 -21
  278. package/node_modules/json-stable-stringify/README.md +0 -157
  279. package/node_modules/json-stable-stringify/example/key_cmp.js +0 -9
  280. package/node_modules/json-stable-stringify/example/nested.js +0 -7
  281. package/node_modules/json-stable-stringify/example/str.js +0 -7
  282. package/node_modules/json-stable-stringify/example/value_cmp.js +0 -12
  283. package/node_modules/json-stable-stringify/index.d.ts +0 -25
  284. package/node_modules/json-stable-stringify/index.js +0 -124
  285. package/node_modules/json-stable-stringify/package.json +0 -88
  286. package/node_modules/json-stable-stringify/test/cmp.js +0 -33
  287. package/node_modules/json-stable-stringify/test/nested.js +0 -48
  288. package/node_modules/json-stable-stringify/test/replacer.js +0 -81
  289. package/node_modules/json-stable-stringify/test/space.js +0 -127
  290. package/node_modules/json-stable-stringify/test/str.js +0 -46
  291. package/node_modules/json-stable-stringify/test/to-json.js +0 -22
  292. package/node_modules/json-stable-stringify/tsconfig.json +0 -10
  293. package/node_modules/jsonify/.eslintrc +0 -21
  294. package/node_modules/jsonify/.github/FUNDING.yml +0 -12
  295. package/node_modules/jsonify/CHANGELOG.md +0 -48
  296. package/node_modules/jsonify/README.md +0 -66
  297. package/node_modules/jsonify/index.js +0 -4
  298. package/node_modules/jsonify/lib/parse.js +0 -261
  299. package/node_modules/jsonify/lib/stringify.js +0 -151
  300. package/node_modules/jsonify/package.json +0 -62
  301. package/node_modules/jsonify/test/parse.js +0 -20
  302. package/node_modules/jsonify/test/stringify.js +0 -18
  303. package/node_modules/math-intrinsics/.eslintrc +0 -16
  304. package/node_modules/math-intrinsics/.github/FUNDING.yml +0 -12
  305. package/node_modules/math-intrinsics/CHANGELOG.md +0 -24
  306. package/node_modules/math-intrinsics/LICENSE +0 -21
  307. package/node_modules/math-intrinsics/README.md +0 -50
  308. package/node_modules/math-intrinsics/abs.d.ts +0 -1
  309. package/node_modules/math-intrinsics/abs.js +0 -4
  310. package/node_modules/math-intrinsics/constants/maxArrayLength.d.ts +0 -3
  311. package/node_modules/math-intrinsics/constants/maxArrayLength.js +0 -4
  312. package/node_modules/math-intrinsics/constants/maxSafeInteger.d.ts +0 -3
  313. package/node_modules/math-intrinsics/constants/maxSafeInteger.js +0 -5
  314. package/node_modules/math-intrinsics/constants/maxValue.d.ts +0 -3
  315. package/node_modules/math-intrinsics/constants/maxValue.js +0 -5
  316. package/node_modules/math-intrinsics/floor.d.ts +0 -1
  317. package/node_modules/math-intrinsics/floor.js +0 -4
  318. package/node_modules/math-intrinsics/isFinite.d.ts +0 -3
  319. package/node_modules/math-intrinsics/isFinite.js +0 -12
  320. package/node_modules/math-intrinsics/isInteger.d.ts +0 -3
  321. package/node_modules/math-intrinsics/isInteger.js +0 -16
  322. package/node_modules/math-intrinsics/isNaN.d.ts +0 -1
  323. package/node_modules/math-intrinsics/isNaN.js +0 -6
  324. package/node_modules/math-intrinsics/isNegativeZero.d.ts +0 -3
  325. package/node_modules/math-intrinsics/isNegativeZero.js +0 -6
  326. package/node_modules/math-intrinsics/max.d.ts +0 -1
  327. package/node_modules/math-intrinsics/max.js +0 -4
  328. package/node_modules/math-intrinsics/min.d.ts +0 -1
  329. package/node_modules/math-intrinsics/min.js +0 -4
  330. package/node_modules/math-intrinsics/mod.d.ts +0 -3
  331. package/node_modules/math-intrinsics/mod.js +0 -9
  332. package/node_modules/math-intrinsics/package.json +0 -86
  333. package/node_modules/math-intrinsics/pow.d.ts +0 -1
  334. package/node_modules/math-intrinsics/pow.js +0 -4
  335. package/node_modules/math-intrinsics/round.d.ts +0 -1
  336. package/node_modules/math-intrinsics/round.js +0 -4
  337. package/node_modules/math-intrinsics/sign.d.ts +0 -3
  338. package/node_modules/math-intrinsics/sign.js +0 -11
  339. package/node_modules/math-intrinsics/test/index.js +0 -192
  340. package/node_modules/math-intrinsics/tsconfig.json +0 -3
  341. package/node_modules/object-keys/.editorconfig +0 -13
  342. package/node_modules/object-keys/.eslintrc +0 -17
  343. package/node_modules/object-keys/.travis.yml +0 -277
  344. package/node_modules/object-keys/CHANGELOG.md +0 -232
  345. package/node_modules/object-keys/LICENSE +0 -21
  346. package/node_modules/object-keys/README.md +0 -76
  347. package/node_modules/object-keys/implementation.js +0 -122
  348. package/node_modules/object-keys/index.js +0 -32
  349. package/node_modules/object-keys/isArguments.js +0 -17
  350. package/node_modules/object-keys/package.json +0 -88
  351. package/node_modules/object-keys/test/index.js +0 -5
  352. package/node_modules/set-function-length/.eslintrc +0 -27
  353. package/node_modules/set-function-length/.github/FUNDING.yml +0 -12
  354. package/node_modules/set-function-length/.nycrc +0 -13
  355. package/node_modules/set-function-length/CHANGELOG.md +0 -70
  356. package/node_modules/set-function-length/LICENSE +0 -21
  357. package/node_modules/set-function-length/README.md +0 -56
  358. package/node_modules/set-function-length/env.d.ts +0 -9
  359. package/node_modules/set-function-length/env.js +0 -25
  360. package/node_modules/set-function-length/index.d.ts +0 -7
  361. package/node_modules/set-function-length/index.js +0 -42
  362. package/node_modules/set-function-length/package.json +0 -102
  363. package/node_modules/set-function-length/tsconfig.json +0 -9
@@ -1,378 +0,0 @@
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
- };
@@ -1,97 +0,0 @@
1
- {
2
- "name": "get-intrinsic",
3
- "version": "1.3.0",
4
- "description": "Get and robustly cache all JS language-level intrinsics at first require time",
5
- "main": "index.js",
6
- "exports": {
7
- ".": "./index.js",
8
- "./package.json": "./package.json"
9
- },
10
- "sideEffects": false,
11
- "scripts": {
12
- "prepack": "npmignore --auto --commentLines=autogenerated",
13
- "prepublish": "not-in-publish || npm run prepublishOnly",
14
- "prepublishOnly": "safe-publish-latest",
15
- "prelint": "evalmd README.md",
16
- "lint": "eslint --ext=.js,.mjs .",
17
- "pretest": "npm run lint",
18
- "tests-only": "nyc tape 'test/**/*.js'",
19
- "test": "npm run tests-only",
20
- "posttest": "npx npm@'>= 10.2' audit --production",
21
- "version": "auto-changelog && git add CHANGELOG.md",
22
- "postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\""
23
- },
24
- "repository": {
25
- "type": "git",
26
- "url": "git+https://github.com/ljharb/get-intrinsic.git"
27
- },
28
- "keywords": [
29
- "javascript",
30
- "ecmascript",
31
- "es",
32
- "js",
33
- "intrinsic",
34
- "getintrinsic",
35
- "es-abstract"
36
- ],
37
- "author": "Jordan Harband <ljharb@gmail.com>",
38
- "funding": {
39
- "url": "https://github.com/sponsors/ljharb"
40
- },
41
- "license": "MIT",
42
- "bugs": {
43
- "url": "https://github.com/ljharb/get-intrinsic/issues"
44
- },
45
- "homepage": "https://github.com/ljharb/get-intrinsic#readme",
46
- "dependencies": {
47
- "call-bind-apply-helpers": "^1.0.2",
48
- "es-define-property": "^1.0.1",
49
- "es-errors": "^1.3.0",
50
- "es-object-atoms": "^1.1.1",
51
- "function-bind": "^1.1.2",
52
- "get-proto": "^1.0.1",
53
- "gopd": "^1.2.0",
54
- "has-symbols": "^1.1.0",
55
- "hasown": "^2.0.2",
56
- "math-intrinsics": "^1.1.0"
57
- },
58
- "devDependencies": {
59
- "@ljharb/eslint-config": "^21.1.1",
60
- "auto-changelog": "^2.5.0",
61
- "call-bound": "^1.0.3",
62
- "encoding": "^0.1.13",
63
- "es-abstract": "^1.23.9",
64
- "es-value-fixtures": "^1.7.1",
65
- "eslint": "=8.8.0",
66
- "evalmd": "^0.0.19",
67
- "for-each": "^0.3.5",
68
- "make-async-function": "^1.0.0",
69
- "make-async-generator-function": "^1.0.0",
70
- "make-generator-function": "^2.0.0",
71
- "mock-property": "^1.1.0",
72
- "npmignore": "^0.3.1",
73
- "nyc": "^10.3.2",
74
- "object-inspect": "^1.13.4",
75
- "safe-publish-latest": "^2.0.0",
76
- "tape": "^5.9.0"
77
- },
78
- "auto-changelog": {
79
- "output": "CHANGELOG.md",
80
- "template": "keepachangelog",
81
- "unreleased": false,
82
- "commitLimit": false,
83
- "backfillLimit": false,
84
- "hideCredit": true
85
- },
86
- "testling": {
87
- "files": "test/GetIntrinsic.js"
88
- },
89
- "publishConfig": {
90
- "ignore": [
91
- ".github/workflows"
92
- ]
93
- },
94
- "engines": {
95
- "node": ">= 0.4"
96
- }
97
- }