projen-cdktf-hybrid-construct 0.1.52 → 0.1.55

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 (319) hide show
  1. package/.gitattributes +0 -1
  2. package/.jsii +574 -0
  3. package/.projenrc.ts +17 -5
  4. package/API.md +7347 -0
  5. package/CHANGELOG.md +1 -8
  6. package/README.md +30 -11
  7. package/lib/defaults.d.ts +0 -1
  8. package/lib/defaults.js +1 -1
  9. package/lib/hybrid-module.d.ts +48 -20
  10. package/lib/hybrid-module.js +28 -20
  11. package/lib/index.js +3 -7
  12. package/lib/publishing.d.ts +6 -4
  13. package/lib/publishing.js +22 -3
  14. package/lib/terraform-module.d.ts +35 -16
  15. package/lib/terraform-module.js +19 -10
  16. package/node_modules/camel-case/LICENSE +21 -0
  17. package/node_modules/camel-case/README.md +47 -0
  18. package/node_modules/camel-case/dist/index.d.ts +5 -0
  19. package/node_modules/camel-case/dist/index.js +23 -0
  20. package/node_modules/camel-case/dist/index.js.map +1 -0
  21. package/node_modules/camel-case/dist/index.spec.d.ts +1 -0
  22. package/node_modules/camel-case/dist/index.spec.js +26 -0
  23. package/node_modules/camel-case/dist/index.spec.js.map +1 -0
  24. package/node_modules/camel-case/dist.es2015/index.d.ts +5 -0
  25. package/node_modules/camel-case/dist.es2015/index.js +17 -0
  26. package/node_modules/camel-case/dist.es2015/index.js.map +1 -0
  27. package/node_modules/camel-case/dist.es2015/index.spec.d.ts +1 -0
  28. package/node_modules/camel-case/dist.es2015/index.spec.js +24 -0
  29. package/node_modules/camel-case/dist.es2015/index.spec.js.map +1 -0
  30. package/node_modules/camel-case/package.json +89 -0
  31. package/node_modules/capital-case/LICENSE +21 -0
  32. package/node_modules/capital-case/README.md +37 -0
  33. package/node_modules/capital-case/dist/index.d.ts +4 -0
  34. package/node_modules/capital-case/dist/index.js +16 -0
  35. package/node_modules/capital-case/dist/index.js.map +1 -0
  36. package/node_modules/capital-case/dist/index.spec.d.ts +1 -0
  37. package/node_modules/capital-case/dist/index.spec.js +24 -0
  38. package/node_modules/capital-case/dist/index.spec.js.map +1 -0
  39. package/node_modules/capital-case/dist.es2015/index.d.ts +4 -0
  40. package/node_modules/capital-case/dist.es2015/index.js +11 -0
  41. package/node_modules/capital-case/dist.es2015/index.js.map +1 -0
  42. package/node_modules/capital-case/dist.es2015/index.spec.d.ts +1 -0
  43. package/node_modules/capital-case/dist.es2015/index.spec.js +22 -0
  44. package/node_modules/capital-case/dist.es2015/index.spec.js.map +1 -0
  45. package/node_modules/capital-case/package.json +90 -0
  46. package/node_modules/change-case/LICENSE +21 -0
  47. package/node_modules/change-case/README.md +44 -0
  48. package/node_modules/change-case/dist/index.d.ts +11 -0
  49. package/node_modules/change-case/dist/index.js +15 -0
  50. package/node_modules/change-case/dist/index.js.map +1 -0
  51. package/node_modules/change-case/dist/index.spec.d.ts +1 -0
  52. package/node_modules/change-case/dist/index.spec.js +9 -0
  53. package/node_modules/change-case/dist/index.spec.js.map +1 -0
  54. package/node_modules/change-case/dist.es2015/index.d.ts +11 -0
  55. package/node_modules/change-case/dist.es2015/index.js +12 -0
  56. package/node_modules/change-case/dist.es2015/index.js.map +1 -0
  57. package/node_modules/change-case/dist.es2015/index.spec.d.ts +1 -0
  58. package/node_modules/change-case/dist.es2015/index.spec.js +7 -0
  59. package/node_modules/change-case/dist.es2015/index.spec.js.map +1 -0
  60. package/node_modules/change-case/package.json +101 -0
  61. package/node_modules/constant-case/LICENSE +21 -0
  62. package/node_modules/constant-case/README.md +37 -0
  63. package/node_modules/constant-case/dist/index.d.ts +3 -0
  64. package/node_modules/constant-case/dist/index.js +12 -0
  65. package/node_modules/constant-case/dist/index.js.map +1 -0
  66. package/node_modules/constant-case/dist/index.spec.d.ts +1 -0
  67. package/node_modules/constant-case/dist/index.spec.js +26 -0
  68. package/node_modules/constant-case/dist/index.spec.js.map +1 -0
  69. package/node_modules/constant-case/dist.es2015/index.d.ts +3 -0
  70. package/node_modules/constant-case/dist.es2015/index.js +8 -0
  71. package/node_modules/constant-case/dist.es2015/index.js.map +1 -0
  72. package/node_modules/constant-case/dist.es2015/index.spec.d.ts +1 -0
  73. package/node_modules/constant-case/dist.es2015/index.spec.js +24 -0
  74. package/node_modules/constant-case/dist.es2015/index.spec.js.map +1 -0
  75. package/node_modules/constant-case/package.json +90 -0
  76. package/node_modules/dot-case/LICENSE +21 -0
  77. package/node_modules/dot-case/README.md +37 -0
  78. package/node_modules/dot-case/dist/index.d.ts +3 -0
  79. package/node_modules/dot-case/dist/index.js +11 -0
  80. package/node_modules/dot-case/dist/index.js.map +1 -0
  81. package/node_modules/dot-case/dist/index.spec.d.ts +1 -0
  82. package/node_modules/dot-case/dist/index.spec.js +26 -0
  83. package/node_modules/dot-case/dist/index.spec.js.map +1 -0
  84. package/node_modules/dot-case/dist.es2015/index.d.ts +3 -0
  85. package/node_modules/dot-case/dist.es2015/index.js +7 -0
  86. package/node_modules/dot-case/dist.es2015/index.js.map +1 -0
  87. package/node_modules/dot-case/dist.es2015/index.spec.d.ts +1 -0
  88. package/node_modules/dot-case/dist.es2015/index.spec.js +24 -0
  89. package/node_modules/dot-case/dist.es2015/index.spec.js.map +1 -0
  90. package/node_modules/dot-case/package.json +89 -0
  91. package/node_modules/header-case/LICENSE +21 -0
  92. package/node_modules/header-case/README.md +37 -0
  93. package/node_modules/header-case/dist/index.d.ts +3 -0
  94. package/node_modules/header-case/dist/index.js +11 -0
  95. package/node_modules/header-case/dist/index.js.map +1 -0
  96. package/node_modules/header-case/dist/index.spec.d.ts +1 -0
  97. package/node_modules/header-case/dist/index.spec.js +24 -0
  98. package/node_modules/header-case/dist/index.spec.js.map +1 -0
  99. package/node_modules/header-case/dist.es2015/index.d.ts +3 -0
  100. package/node_modules/header-case/dist.es2015/index.js +7 -0
  101. package/node_modules/header-case/dist.es2015/index.js.map +1 -0
  102. package/node_modules/header-case/dist.es2015/index.spec.d.ts +1 -0
  103. package/node_modules/header-case/dist.es2015/index.spec.js +22 -0
  104. package/node_modules/header-case/dist.es2015/index.spec.js.map +1 -0
  105. package/node_modules/header-case/package.json +89 -0
  106. package/node_modules/lower-case/LICENSE +21 -0
  107. package/node_modules/lower-case/README.md +35 -0
  108. package/node_modules/lower-case/dist/index.d.ts +8 -0
  109. package/node_modules/lower-case/dist/index.js +53 -0
  110. package/node_modules/lower-case/dist/index.js.map +1 -0
  111. package/node_modules/lower-case/dist/index.spec.d.ts +1 -0
  112. package/node_modules/lower-case/dist/index.spec.js +36 -0
  113. package/node_modules/lower-case/dist/index.spec.js.map +1 -0
  114. package/node_modules/lower-case/dist.es2015/index.d.ts +8 -0
  115. package/node_modules/lower-case/dist.es2015/index.js +48 -0
  116. package/node_modules/lower-case/dist.es2015/index.js.map +1 -0
  117. package/node_modules/lower-case/dist.es2015/index.spec.d.ts +1 -0
  118. package/node_modules/lower-case/dist.es2015/index.spec.js +34 -0
  119. package/node_modules/lower-case/dist.es2015/index.spec.js.map +1 -0
  120. package/node_modules/lower-case/package.json +87 -0
  121. package/node_modules/no-case/LICENSE +21 -0
  122. package/node_modules/no-case/README.md +37 -0
  123. package/node_modules/no-case/dist/index.d.ts +10 -0
  124. package/node_modules/no-case/dist/index.js +35 -0
  125. package/node_modules/no-case/dist/index.js.map +1 -0
  126. package/node_modules/no-case/dist/index.spec.d.ts +1 -0
  127. package/node_modules/no-case/dist/index.spec.js +59 -0
  128. package/node_modules/no-case/dist/index.spec.js.map +1 -0
  129. package/node_modules/no-case/dist.es2015/index.d.ts +10 -0
  130. package/node_modules/no-case/dist.es2015/index.js +31 -0
  131. package/node_modules/no-case/dist.es2015/index.js.map +1 -0
  132. package/node_modules/no-case/dist.es2015/index.spec.d.ts +1 -0
  133. package/node_modules/no-case/dist.es2015/index.spec.js +57 -0
  134. package/node_modules/no-case/dist.es2015/index.spec.js.map +1 -0
  135. package/node_modules/no-case/package.json +85 -0
  136. package/node_modules/param-case/LICENSE +21 -0
  137. package/node_modules/param-case/README.md +37 -0
  138. package/node_modules/param-case/dist/index.d.ts +3 -0
  139. package/node_modules/param-case/dist/index.js +11 -0
  140. package/node_modules/param-case/dist/index.js.map +1 -0
  141. package/node_modules/param-case/dist/index.spec.d.ts +1 -0
  142. package/node_modules/param-case/dist/index.spec.js +24 -0
  143. package/node_modules/param-case/dist/index.spec.js.map +1 -0
  144. package/node_modules/param-case/dist.es2015/index.d.ts +3 -0
  145. package/node_modules/param-case/dist.es2015/index.js +7 -0
  146. package/node_modules/param-case/dist.es2015/index.js.map +1 -0
  147. package/node_modules/param-case/dist.es2015/index.spec.d.ts +1 -0
  148. package/node_modules/param-case/dist.es2015/index.spec.js +22 -0
  149. package/node_modules/param-case/dist.es2015/index.spec.js.map +1 -0
  150. package/node_modules/param-case/package.json +91 -0
  151. package/node_modules/pascal-case/LICENSE +21 -0
  152. package/node_modules/pascal-case/README.md +47 -0
  153. package/node_modules/pascal-case/dist/index.d.ts +5 -0
  154. package/node_modules/pascal-case/dist/index.js +24 -0
  155. package/node_modules/pascal-case/dist/index.js.map +1 -0
  156. package/node_modules/pascal-case/dist/index.spec.d.ts +1 -0
  157. package/node_modules/pascal-case/dist/index.spec.js +25 -0
  158. package/node_modules/pascal-case/dist/index.spec.js.map +1 -0
  159. package/node_modules/pascal-case/dist.es2015/index.d.ts +5 -0
  160. package/node_modules/pascal-case/dist.es2015/index.js +18 -0
  161. package/node_modules/pascal-case/dist.es2015/index.js.map +1 -0
  162. package/node_modules/pascal-case/dist.es2015/index.spec.d.ts +1 -0
  163. package/node_modules/pascal-case/dist.es2015/index.spec.js +23 -0
  164. package/node_modules/pascal-case/dist.es2015/index.spec.js.map +1 -0
  165. package/node_modules/pascal-case/package.json +90 -0
  166. package/node_modules/path-case/LICENSE +21 -0
  167. package/node_modules/path-case/README.md +37 -0
  168. package/node_modules/path-case/dist/index.d.ts +3 -0
  169. package/node_modules/path-case/dist/index.js +11 -0
  170. package/node_modules/path-case/dist/index.js.map +1 -0
  171. package/node_modules/path-case/dist/index.spec.d.ts +1 -0
  172. package/node_modules/path-case/dist/index.spec.js +24 -0
  173. package/node_modules/path-case/dist/index.spec.js.map +1 -0
  174. package/node_modules/path-case/dist.es2015/index.d.ts +3 -0
  175. package/node_modules/path-case/dist.es2015/index.js +7 -0
  176. package/node_modules/path-case/dist.es2015/index.js.map +1 -0
  177. package/node_modules/path-case/dist.es2015/index.spec.d.ts +1 -0
  178. package/node_modules/path-case/dist.es2015/index.spec.js +22 -0
  179. package/node_modules/path-case/dist.es2015/index.spec.js.map +1 -0
  180. package/node_modules/path-case/package.json +88 -0
  181. package/node_modules/sentence-case/LICENSE +21 -0
  182. package/node_modules/sentence-case/README.md +37 -0
  183. package/node_modules/sentence-case/dist/index.d.ts +4 -0
  184. package/node_modules/sentence-case/dist/index.js +19 -0
  185. package/node_modules/sentence-case/dist/index.js.map +1 -0
  186. package/node_modules/sentence-case/dist/index.spec.d.ts +1 -0
  187. package/node_modules/sentence-case/dist/index.spec.js +24 -0
  188. package/node_modules/sentence-case/dist/index.spec.js.map +1 -0
  189. package/node_modules/sentence-case/dist.es2015/index.d.ts +4 -0
  190. package/node_modules/sentence-case/dist.es2015/index.js +14 -0
  191. package/node_modules/sentence-case/dist.es2015/index.js.map +1 -0
  192. package/node_modules/sentence-case/dist.es2015/index.spec.d.ts +1 -0
  193. package/node_modules/sentence-case/dist.es2015/index.spec.js +22 -0
  194. package/node_modules/sentence-case/dist.es2015/index.spec.js.map +1 -0
  195. package/node_modules/sentence-case/package.json +89 -0
  196. package/node_modules/snake-case/LICENSE +21 -0
  197. package/node_modules/snake-case/README.md +37 -0
  198. package/node_modules/snake-case/dist/index.d.ts +3 -0
  199. package/node_modules/snake-case/dist/index.js +11 -0
  200. package/node_modules/snake-case/dist/index.js.map +1 -0
  201. package/node_modules/snake-case/dist/index.spec.d.ts +1 -0
  202. package/node_modules/snake-case/dist/index.spec.js +25 -0
  203. package/node_modules/snake-case/dist/index.spec.js.map +1 -0
  204. package/node_modules/snake-case/dist.es2015/index.d.ts +3 -0
  205. package/node_modules/snake-case/dist.es2015/index.js +7 -0
  206. package/node_modules/snake-case/dist.es2015/index.js.map +1 -0
  207. package/node_modules/snake-case/dist.es2015/index.spec.d.ts +1 -0
  208. package/node_modules/snake-case/dist.es2015/index.spec.js +23 -0
  209. package/node_modules/snake-case/dist.es2015/index.spec.js.map +1 -0
  210. package/node_modules/snake-case/package.json +90 -0
  211. package/node_modules/tslib/CopyrightNotice.txt +15 -0
  212. package/node_modules/tslib/LICENSE.txt +12 -0
  213. package/node_modules/tslib/README.md +164 -0
  214. package/node_modules/tslib/modules/index.js +55 -0
  215. package/node_modules/tslib/modules/package.json +3 -0
  216. package/node_modules/tslib/package.json +38 -0
  217. package/node_modules/tslib/tslib.d.ts +398 -0
  218. package/node_modules/tslib/tslib.es6.html +1 -0
  219. package/node_modules/tslib/tslib.es6.js +248 -0
  220. package/node_modules/tslib/tslib.html +1 -0
  221. package/node_modules/tslib/tslib.js +317 -0
  222. package/node_modules/upper-case/README.md +34 -0
  223. package/node_modules/upper-case/dist/index.d.ts +8 -0
  224. package/node_modules/upper-case/dist/index.js +49 -0
  225. package/node_modules/upper-case/dist/index.js.map +1 -0
  226. package/node_modules/upper-case/dist/index.spec.d.ts +1 -0
  227. package/node_modules/upper-case/dist/index.spec.js +34 -0
  228. package/node_modules/upper-case/dist/index.spec.js.map +1 -0
  229. package/node_modules/upper-case/dist.es2015/index.d.ts +8 -0
  230. package/node_modules/upper-case/dist.es2015/index.js +44 -0
  231. package/node_modules/upper-case/dist.es2015/index.js.map +1 -0
  232. package/node_modules/upper-case/dist.es2015/index.spec.d.ts +1 -0
  233. package/node_modules/upper-case/dist.es2015/index.spec.js +32 -0
  234. package/node_modules/upper-case/dist.es2015/index.spec.js.map +1 -0
  235. package/node_modules/upper-case/package.json +86 -0
  236. package/node_modules/upper-case-first/LICENSE +21 -0
  237. package/node_modules/upper-case-first/README.md +32 -0
  238. package/node_modules/upper-case-first/dist/index.d.ts +4 -0
  239. package/node_modules/upper-case-first/dist/index.js +11 -0
  240. package/node_modules/upper-case-first/dist/index.js.map +1 -0
  241. package/node_modules/upper-case-first/dist/index.spec.d.ts +1 -0
  242. package/node_modules/upper-case-first/dist/index.spec.js +20 -0
  243. package/node_modules/upper-case-first/dist/index.spec.js.map +1 -0
  244. package/node_modules/upper-case-first/dist.es2015/index.d.ts +4 -0
  245. package/node_modules/upper-case-first/dist.es2015/index.js +7 -0
  246. package/node_modules/upper-case-first/dist.es2015/index.js.map +1 -0
  247. package/node_modules/upper-case-first/dist.es2015/index.spec.d.ts +1 -0
  248. package/node_modules/upper-case-first/dist.es2015/index.spec.js +18 -0
  249. package/node_modules/upper-case-first/dist.es2015/index.spec.js.map +1 -0
  250. package/node_modules/upper-case-first/package.json +87 -0
  251. package/node_modules/uuid/CHANGELOG.md +229 -0
  252. package/node_modules/uuid/CONTRIBUTING.md +18 -0
  253. package/node_modules/uuid/LICENSE.md +9 -0
  254. package/node_modules/uuid/README.md +505 -0
  255. package/node_modules/uuid/dist/bin/uuid +2 -0
  256. package/node_modules/uuid/dist/esm-browser/index.js +9 -0
  257. package/node_modules/uuid/dist/esm-browser/md5.js +215 -0
  258. package/node_modules/uuid/dist/esm-browser/nil.js +1 -0
  259. package/node_modules/uuid/dist/esm-browser/parse.js +35 -0
  260. package/node_modules/uuid/dist/esm-browser/regex.js +1 -0
  261. package/node_modules/uuid/dist/esm-browser/rng.js +19 -0
  262. package/node_modules/uuid/dist/esm-browser/sha1.js +96 -0
  263. package/node_modules/uuid/dist/esm-browser/stringify.js +30 -0
  264. package/node_modules/uuid/dist/esm-browser/v1.js +95 -0
  265. package/node_modules/uuid/dist/esm-browser/v3.js +4 -0
  266. package/node_modules/uuid/dist/esm-browser/v35.js +64 -0
  267. package/node_modules/uuid/dist/esm-browser/v4.js +24 -0
  268. package/node_modules/uuid/dist/esm-browser/v5.js +4 -0
  269. package/node_modules/uuid/dist/esm-browser/validate.js +7 -0
  270. package/node_modules/uuid/dist/esm-browser/version.js +11 -0
  271. package/node_modules/uuid/dist/esm-node/index.js +9 -0
  272. package/node_modules/uuid/dist/esm-node/md5.js +13 -0
  273. package/node_modules/uuid/dist/esm-node/nil.js +1 -0
  274. package/node_modules/uuid/dist/esm-node/parse.js +35 -0
  275. package/node_modules/uuid/dist/esm-node/regex.js +1 -0
  276. package/node_modules/uuid/dist/esm-node/rng.js +12 -0
  277. package/node_modules/uuid/dist/esm-node/sha1.js +13 -0
  278. package/node_modules/uuid/dist/esm-node/stringify.js +29 -0
  279. package/node_modules/uuid/dist/esm-node/v1.js +95 -0
  280. package/node_modules/uuid/dist/esm-node/v3.js +4 -0
  281. package/node_modules/uuid/dist/esm-node/v35.js +64 -0
  282. package/node_modules/uuid/dist/esm-node/v4.js +24 -0
  283. package/node_modules/uuid/dist/esm-node/v5.js +4 -0
  284. package/node_modules/uuid/dist/esm-node/validate.js +7 -0
  285. package/node_modules/uuid/dist/esm-node/version.js +11 -0
  286. package/node_modules/uuid/dist/index.js +79 -0
  287. package/node_modules/uuid/dist/md5-browser.js +223 -0
  288. package/node_modules/uuid/dist/md5.js +23 -0
  289. package/node_modules/uuid/dist/nil.js +8 -0
  290. package/node_modules/uuid/dist/parse.js +45 -0
  291. package/node_modules/uuid/dist/regex.js +8 -0
  292. package/node_modules/uuid/dist/rng-browser.js +26 -0
  293. package/node_modules/uuid/dist/rng.js +24 -0
  294. package/node_modules/uuid/dist/sha1-browser.js +104 -0
  295. package/node_modules/uuid/dist/sha1.js +23 -0
  296. package/node_modules/uuid/dist/stringify.js +39 -0
  297. package/node_modules/uuid/dist/umd/uuid.min.js +1 -0
  298. package/node_modules/uuid/dist/umd/uuidNIL.min.js +1 -0
  299. package/node_modules/uuid/dist/umd/uuidParse.min.js +1 -0
  300. package/node_modules/uuid/dist/umd/uuidStringify.min.js +1 -0
  301. package/node_modules/uuid/dist/umd/uuidValidate.min.js +1 -0
  302. package/node_modules/uuid/dist/umd/uuidVersion.min.js +1 -0
  303. package/node_modules/uuid/dist/umd/uuidv1.min.js +1 -0
  304. package/node_modules/uuid/dist/umd/uuidv3.min.js +1 -0
  305. package/node_modules/uuid/dist/umd/uuidv4.min.js +1 -0
  306. package/node_modules/uuid/dist/umd/uuidv5.min.js +1 -0
  307. package/node_modules/uuid/dist/uuid-bin.js +85 -0
  308. package/node_modules/uuid/dist/v1.js +107 -0
  309. package/node_modules/uuid/dist/v3.js +16 -0
  310. package/node_modules/uuid/dist/v35.js +78 -0
  311. package/node_modules/uuid/dist/v4.js +37 -0
  312. package/node_modules/uuid/dist/v5.js +16 -0
  313. package/node_modules/uuid/dist/validate.js +17 -0
  314. package/node_modules/uuid/dist/version.js +21 -0
  315. package/node_modules/uuid/package.json +135 -0
  316. package/node_modules/uuid/wrapper.mjs +10 -0
  317. package/package.json +37 -6
  318. package/releasetag.txt +1 -0
  319. package/version.txt +1 -0
@@ -0,0 +1,164 @@
1
+ # tslib
2
+
3
+ This is a runtime library for [TypeScript](http://www.typescriptlang.org/) that contains all of the TypeScript helper functions.
4
+
5
+ This library is primarily used by the `--importHelpers` flag in TypeScript.
6
+ When using `--importHelpers`, a module that uses helper functions like `__extends` and `__assign` in the following emitted file:
7
+
8
+ ```ts
9
+ var __assign = (this && this.__assign) || Object.assign || function(t) {
10
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
11
+ s = arguments[i];
12
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
13
+ t[p] = s[p];
14
+ }
15
+ return t;
16
+ };
17
+ exports.x = {};
18
+ exports.y = __assign({}, exports.x);
19
+
20
+ ```
21
+
22
+ will instead be emitted as something like the following:
23
+
24
+ ```ts
25
+ var tslib_1 = require("tslib");
26
+ exports.x = {};
27
+ exports.y = tslib_1.__assign({}, exports.x);
28
+ ```
29
+
30
+ Because this can avoid duplicate declarations of things like `__extends`, `__assign`, etc., this means delivering users smaller files on average, as well as less runtime overhead.
31
+ For optimized bundles with TypeScript, you should absolutely consider using `tslib` and `--importHelpers`.
32
+
33
+ # Installing
34
+
35
+ For the latest stable version, run:
36
+
37
+ ## npm
38
+
39
+ ```sh
40
+ # TypeScript 3.9.2 or later
41
+ npm install tslib
42
+
43
+ # TypeScript 3.8.4 or earlier
44
+ npm install tslib@^1
45
+
46
+ # TypeScript 2.3.2 or earlier
47
+ npm install tslib@1.6.1
48
+ ```
49
+
50
+ ## yarn
51
+
52
+ ```sh
53
+ # TypeScript 3.9.2 or later
54
+ yarn add tslib
55
+
56
+ # TypeScript 3.8.4 or earlier
57
+ yarn add tslib@^1
58
+
59
+ # TypeScript 2.3.2 or earlier
60
+ yarn add tslib@1.6.1
61
+ ```
62
+
63
+ ## bower
64
+
65
+ ```sh
66
+ # TypeScript 3.9.2 or later
67
+ bower install tslib
68
+
69
+ # TypeScript 3.8.4 or earlier
70
+ bower install tslib@^1
71
+
72
+ # TypeScript 2.3.2 or earlier
73
+ bower install tslib@1.6.1
74
+ ```
75
+
76
+ ## JSPM
77
+
78
+ ```sh
79
+ # TypeScript 3.9.2 or later
80
+ jspm install tslib
81
+
82
+ # TypeScript 3.8.4 or earlier
83
+ jspm install tslib@^1
84
+
85
+ # TypeScript 2.3.2 or earlier
86
+ jspm install tslib@1.6.1
87
+ ```
88
+
89
+ # Usage
90
+
91
+ Set the `importHelpers` compiler option on the command line:
92
+
93
+ ```
94
+ tsc --importHelpers file.ts
95
+ ```
96
+
97
+ or in your tsconfig.json:
98
+
99
+ ```json
100
+ {
101
+ "compilerOptions": {
102
+ "importHelpers": true
103
+ }
104
+ }
105
+ ```
106
+
107
+ #### For bower and JSPM users
108
+
109
+ You will need to add a `paths` mapping for `tslib`, e.g. For Bower users:
110
+
111
+ ```json
112
+ {
113
+ "compilerOptions": {
114
+ "module": "amd",
115
+ "importHelpers": true,
116
+ "baseUrl": "./",
117
+ "paths": {
118
+ "tslib" : ["bower_components/tslib/tslib.d.ts"]
119
+ }
120
+ }
121
+ }
122
+ ```
123
+
124
+ For JSPM users:
125
+
126
+ ```json
127
+ {
128
+ "compilerOptions": {
129
+ "module": "system",
130
+ "importHelpers": true,
131
+ "baseUrl": "./",
132
+ "paths": {
133
+ "tslib" : ["jspm_packages/npm/tslib@2.x.y/tslib.d.ts"]
134
+ }
135
+ }
136
+ }
137
+ ```
138
+
139
+ ## Deployment
140
+
141
+ - Choose your new version number
142
+ - Set it in `package.json` and `bower.json`
143
+ - Create a tag: `git tag [version]`
144
+ - Push the tag: `git push --tags`
145
+ - Create a [release in GitHub](https://github.com/microsoft/tslib/releases)
146
+ - Run the [publish to npm](https://github.com/microsoft/tslib/actions?query=workflow%3A%22Publish+to+NPM%22) workflow
147
+
148
+ Done.
149
+
150
+ # Contribute
151
+
152
+ There are many ways to [contribute](https://github.com/Microsoft/TypeScript/blob/master/CONTRIBUTING.md) to TypeScript.
153
+
154
+ * [Submit bugs](https://github.com/Microsoft/TypeScript/issues) and help us verify fixes as they are checked in.
155
+ * Review the [source code changes](https://github.com/Microsoft/TypeScript/pulls).
156
+ * Engage with other TypeScript users and developers on [StackOverflow](http://stackoverflow.com/questions/tagged/typescript).
157
+ * Join the [#typescript](http://twitter.com/#!/search/realtime/%23typescript) discussion on Twitter.
158
+ * [Contribute bug fixes](https://github.com/Microsoft/TypeScript/blob/master/CONTRIBUTING.md).
159
+
160
+ # Documentation
161
+
162
+ * [Quick tutorial](http://www.typescriptlang.org/Tutorial)
163
+ * [Programming handbook](http://www.typescriptlang.org/Handbook)
164
+ * [Homepage](http://www.typescriptlang.org/)
@@ -0,0 +1,55 @@
1
+ import tslib from '../tslib.js';
2
+ const {
3
+ __extends,
4
+ __assign,
5
+ __rest,
6
+ __decorate,
7
+ __param,
8
+ __metadata,
9
+ __awaiter,
10
+ __generator,
11
+ __exportStar,
12
+ __createBinding,
13
+ __values,
14
+ __read,
15
+ __spread,
16
+ __spreadArrays,
17
+ __spreadArray,
18
+ __await,
19
+ __asyncGenerator,
20
+ __asyncDelegator,
21
+ __asyncValues,
22
+ __makeTemplateObject,
23
+ __importStar,
24
+ __importDefault,
25
+ __classPrivateFieldGet,
26
+ __classPrivateFieldSet,
27
+ __classPrivateFieldIn,
28
+ } = tslib;
29
+ export {
30
+ __extends,
31
+ __assign,
32
+ __rest,
33
+ __decorate,
34
+ __param,
35
+ __metadata,
36
+ __awaiter,
37
+ __generator,
38
+ __exportStar,
39
+ __createBinding,
40
+ __values,
41
+ __read,
42
+ __spread,
43
+ __spreadArrays,
44
+ __spreadArray,
45
+ __await,
46
+ __asyncGenerator,
47
+ __asyncDelegator,
48
+ __asyncValues,
49
+ __makeTemplateObject,
50
+ __importStar,
51
+ __importDefault,
52
+ __classPrivateFieldGet,
53
+ __classPrivateFieldSet,
54
+ __classPrivateFieldIn,
55
+ };
@@ -0,0 +1,3 @@
1
+ {
2
+ "type": "module"
3
+ }
@@ -0,0 +1,38 @@
1
+ {
2
+ "name": "tslib",
3
+ "author": "Microsoft Corp.",
4
+ "homepage": "https://www.typescriptlang.org/",
5
+ "version": "2.4.0",
6
+ "license": "0BSD",
7
+ "description": "Runtime library for TypeScript helper functions",
8
+ "keywords": [
9
+ "TypeScript",
10
+ "Microsoft",
11
+ "compiler",
12
+ "language",
13
+ "javascript",
14
+ "tslib",
15
+ "runtime"
16
+ ],
17
+ "bugs": {
18
+ "url": "https://github.com/Microsoft/TypeScript/issues"
19
+ },
20
+ "repository": {
21
+ "type": "git",
22
+ "url": "https://github.com/Microsoft/tslib.git"
23
+ },
24
+ "main": "tslib.js",
25
+ "module": "tslib.es6.js",
26
+ "jsnext:main": "tslib.es6.js",
27
+ "typings": "tslib.d.ts",
28
+ "sideEffects": false,
29
+ "exports": {
30
+ ".": {
31
+ "module": "./tslib.es6.js",
32
+ "import": "./modules/index.js",
33
+ "default": "./tslib.js"
34
+ },
35
+ "./*": "./*",
36
+ "./": "./"
37
+ }
38
+ }
@@ -0,0 +1,398 @@
1
+ /******************************************************************************
2
+ Copyright (c) Microsoft Corporation.
3
+
4
+ Permission to use, copy, modify, and/or distribute this software for any
5
+ purpose with or without fee is hereby granted.
6
+
7
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
8
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
9
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
10
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
11
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
12
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
13
+ PERFORMANCE OF THIS SOFTWARE.
14
+ ***************************************************************************** */
15
+
16
+ /**
17
+ * Used to shim class extends.
18
+ *
19
+ * @param d The derived class.
20
+ * @param b The base class.
21
+ */
22
+ export declare function __extends(d: Function, b: Function): void;
23
+
24
+ /**
25
+ * Copy the values of all of the enumerable own properties from one or more source objects to a
26
+ * target object. Returns the target object.
27
+ *
28
+ * @param t The target object to copy to.
29
+ * @param sources One or more source objects from which to copy properties
30
+ */
31
+ export declare function __assign(t: any, ...sources: any[]): any;
32
+
33
+ /**
34
+ * Performs a rest spread on an object.
35
+ *
36
+ * @param t The source value.
37
+ * @param propertyNames The property names excluded from the rest spread.
38
+ */
39
+ export declare function __rest(t: any, propertyNames: (string | symbol)[]): any;
40
+
41
+ /**
42
+ * Applies decorators to a target object
43
+ *
44
+ * @param decorators The set of decorators to apply.
45
+ * @param target The target object.
46
+ * @param key If specified, the own property to apply the decorators to.
47
+ * @param desc The property descriptor, defaults to fetching the descriptor from the target object.
48
+ * @experimental
49
+ */
50
+ export declare function __decorate(decorators: Function[], target: any, key?: string | symbol, desc?: any): any;
51
+
52
+ /**
53
+ * Creates an observing function decorator from a parameter decorator.
54
+ *
55
+ * @param paramIndex The parameter index to apply the decorator to.
56
+ * @param decorator The parameter decorator to apply. Note that the return value is ignored.
57
+ * @experimental
58
+ */
59
+ export declare function __param(paramIndex: number, decorator: Function): Function;
60
+
61
+ /**
62
+ * Creates a decorator that sets metadata.
63
+ *
64
+ * @param metadataKey The metadata key
65
+ * @param metadataValue The metadata value
66
+ * @experimental
67
+ */
68
+ export declare function __metadata(metadataKey: any, metadataValue: any): Function;
69
+
70
+ /**
71
+ * Converts a generator function into a pseudo-async function, by treating each `yield` as an `await`.
72
+ *
73
+ * @param thisArg The reference to use as the `this` value in the generator function
74
+ * @param _arguments The optional arguments array
75
+ * @param P The optional promise constructor argument, defaults to the `Promise` property of the global object.
76
+ * @param generator The generator function
77
+ */
78
+ export declare function __awaiter(thisArg: any, _arguments: any, P: Function, generator: Function): any;
79
+
80
+ /**
81
+ * Creates an Iterator object using the body as the implementation.
82
+ *
83
+ * @param thisArg The reference to use as the `this` value in the function
84
+ * @param body The generator state-machine based implementation.
85
+ *
86
+ * @see [./docs/generator.md]
87
+ */
88
+ export declare function __generator(thisArg: any, body: Function): any;
89
+
90
+ /**
91
+ * Creates bindings for all enumerable properties of `m` on `exports`
92
+ *
93
+ * @param m The source object
94
+ * @param exports The `exports` object.
95
+ */
96
+ export declare function __exportStar(m: any, o: any): void;
97
+
98
+ /**
99
+ * Creates a value iterator from an `Iterable` or `ArrayLike` object.
100
+ *
101
+ * @param o The object.
102
+ * @throws {TypeError} If `o` is neither `Iterable`, nor an `ArrayLike`.
103
+ */
104
+ export declare function __values(o: any): any;
105
+
106
+ /**
107
+ * Reads values from an `Iterable` or `ArrayLike` object and returns the resulting array.
108
+ *
109
+ * @param o The object to read from.
110
+ * @param n The maximum number of arguments to read, defaults to `Infinity`.
111
+ */
112
+ export declare function __read(o: any, n?: number): any[];
113
+
114
+ /**
115
+ * Creates an array from iterable spread.
116
+ *
117
+ * @param args The Iterable objects to spread.
118
+ * @deprecated since TypeScript 4.2 - Use `__spreadArray`
119
+ */
120
+ export declare function __spread(...args: any[][]): any[];
121
+
122
+ /**
123
+ * Creates an array from array spread.
124
+ *
125
+ * @param args The ArrayLikes to spread into the resulting array.
126
+ * @deprecated since TypeScript 4.2 - Use `__spreadArray`
127
+ */
128
+ export declare function __spreadArrays(...args: any[][]): any[];
129
+
130
+ /**
131
+ * Spreads the `from` array into the `to` array.
132
+ *
133
+ * @param pack Replace empty elements with `undefined`.
134
+ */
135
+ export declare function __spreadArray(to: any[], from: any[], pack?: boolean): any[];
136
+
137
+ /**
138
+ * Creates an object that signals to `__asyncGenerator` that it shouldn't be yielded,
139
+ * and instead should be awaited and the resulting value passed back to the generator.
140
+ *
141
+ * @param v The value to await.
142
+ */
143
+ export declare function __await(v: any): any;
144
+
145
+ /**
146
+ * Converts a generator function into an async generator function, by using `yield __await`
147
+ * in place of normal `await`.
148
+ *
149
+ * @param thisArg The reference to use as the `this` value in the generator function
150
+ * @param _arguments The optional arguments array
151
+ * @param generator The generator function
152
+ */
153
+ export declare function __asyncGenerator(thisArg: any, _arguments: any, generator: Function): any;
154
+
155
+ /**
156
+ * Used to wrap a potentially async iterator in such a way so that it wraps the result
157
+ * of calling iterator methods of `o` in `__await` instances, and then yields the awaited values.
158
+ *
159
+ * @param o The potentially async iterator.
160
+ * @returns A synchronous iterator yielding `__await` instances on every odd invocation
161
+ * and returning the awaited `IteratorResult` passed to `next` every even invocation.
162
+ */
163
+ export declare function __asyncDelegator(o: any): any;
164
+
165
+ /**
166
+ * Creates a value async iterator from an `AsyncIterable`, `Iterable` or `ArrayLike` object.
167
+ *
168
+ * @param o The object.
169
+ * @throws {TypeError} If `o` is neither `AsyncIterable`, `Iterable`, nor an `ArrayLike`.
170
+ */
171
+ export declare function __asyncValues(o: any): any;
172
+
173
+ /**
174
+ * Creates a `TemplateStringsArray` frozen object from the `cooked` and `raw` arrays.
175
+ *
176
+ * @param cooked The cooked possibly-sparse array.
177
+ * @param raw The raw string content.
178
+ */
179
+ export declare function __makeTemplateObject(cooked: string[], raw: string[]): TemplateStringsArray;
180
+
181
+ /**
182
+ * Used to shim default and named imports in ECMAScript Modules transpiled to CommonJS.
183
+ *
184
+ * ```js
185
+ * import Default, { Named, Other } from "mod";
186
+ * // or
187
+ * import { default as Default, Named, Other } from "mod";
188
+ * ```
189
+ *
190
+ * @param mod The CommonJS module exports object.
191
+ */
192
+ export declare function __importStar<T>(mod: T): T;
193
+
194
+ /**
195
+ * Used to shim default imports in ECMAScript Modules transpiled to CommonJS.
196
+ *
197
+ * ```js
198
+ * import Default from "mod";
199
+ * ```
200
+ *
201
+ * @param mod The CommonJS module exports object.
202
+ */
203
+ export declare function __importDefault<T>(mod: T): T | { default: T };
204
+
205
+ /**
206
+ * Emulates reading a private instance field.
207
+ *
208
+ * @param receiver The instance from which to read the private field.
209
+ * @param state A WeakMap containing the private field value for an instance.
210
+ * @param kind Either `"f"` for a field, `"a"` for an accessor, or `"m"` for a method.
211
+ *
212
+ * @throws {TypeError} If `state` doesn't have an entry for `receiver`.
213
+ */
214
+ export declare function __classPrivateFieldGet<T extends object, V>(
215
+ receiver: T,
216
+ state: { has(o: T): boolean, get(o: T): V | undefined },
217
+ kind?: "f"
218
+ ): V;
219
+
220
+ /**
221
+ * Emulates reading a private static field.
222
+ *
223
+ * @param receiver The object from which to read the private static field.
224
+ * @param state The class constructor containing the definition of the static field.
225
+ * @param kind Either `"f"` for a field, `"a"` for an accessor, or `"m"` for a method.
226
+ * @param f The descriptor that holds the static field value.
227
+ *
228
+ * @throws {TypeError} If `receiver` is not `state`.
229
+ */
230
+ export declare function __classPrivateFieldGet<T extends new (...args: any[]) => unknown, V>(
231
+ receiver: T,
232
+ state: T,
233
+ kind: "f",
234
+ f: { value: V }
235
+ ): V;
236
+
237
+ /**
238
+ * Emulates evaluating a private instance "get" accessor.
239
+ *
240
+ * @param receiver The instance on which to evaluate the private "get" accessor.
241
+ * @param state A WeakSet used to verify an instance supports the private "get" accessor.
242
+ * @param kind Either `"f"` for a field, `"a"` for an accessor, or `"m"` for a method.
243
+ * @param f The "get" accessor function to evaluate.
244
+ *
245
+ * @throws {TypeError} If `state` doesn't have an entry for `receiver`.
246
+ */
247
+ export declare function __classPrivateFieldGet<T extends object, V>(
248
+ receiver: T,
249
+ state: { has(o: T): boolean },
250
+ kind: "a",
251
+ f: () => V
252
+ ): V;
253
+
254
+ /**
255
+ * Emulates evaluating a private static "get" accessor.
256
+ *
257
+ * @param receiver The object on which to evaluate the private static "get" accessor.
258
+ * @param state The class constructor containing the definition of the static "get" accessor.
259
+ * @param kind Either `"f"` for a field, `"a"` for an accessor, or `"m"` for a method.
260
+ * @param f The "get" accessor function to evaluate.
261
+ *
262
+ * @throws {TypeError} If `receiver` is not `state`.
263
+ */
264
+ export declare function __classPrivateFieldGet<T extends new (...args: any[]) => unknown, V>(
265
+ receiver: T,
266
+ state: T,
267
+ kind: "a",
268
+ f: () => V
269
+ ): V;
270
+
271
+ /**
272
+ * Emulates reading a private instance method.
273
+ *
274
+ * @param receiver The instance from which to read a private method.
275
+ * @param state A WeakSet used to verify an instance supports the private method.
276
+ * @param kind Either `"f"` for a field, `"a"` for an accessor, or `"m"` for a method.
277
+ * @param f The function to return as the private instance method.
278
+ *
279
+ * @throws {TypeError} If `state` doesn't have an entry for `receiver`.
280
+ */
281
+ export declare function __classPrivateFieldGet<T extends object, V extends (...args: any[]) => unknown>(
282
+ receiver: T,
283
+ state: { has(o: T): boolean },
284
+ kind: "m",
285
+ f: V
286
+ ): V;
287
+
288
+ /**
289
+ * Emulates reading a private static method.
290
+ *
291
+ * @param receiver The object from which to read the private static method.
292
+ * @param state The class constructor containing the definition of the static method.
293
+ * @param kind Either `"f"` for a field, `"a"` for an accessor, or `"m"` for a method.
294
+ * @param f The function to return as the private static method.
295
+ *
296
+ * @throws {TypeError} If `receiver` is not `state`.
297
+ */
298
+ export declare function __classPrivateFieldGet<T extends new (...args: any[]) => unknown, V extends (...args: any[]) => unknown>(
299
+ receiver: T,
300
+ state: T,
301
+ kind: "m",
302
+ f: V
303
+ ): V;
304
+
305
+ /**
306
+ * Emulates writing to a private instance field.
307
+ *
308
+ * @param receiver The instance on which to set a private field value.
309
+ * @param state A WeakMap used to store the private field value for an instance.
310
+ * @param value The value to store in the private field.
311
+ * @param kind Either `"f"` for a field, `"a"` for an accessor, or `"m"` for a method.
312
+ *
313
+ * @throws {TypeError} If `state` doesn't have an entry for `receiver`.
314
+ */
315
+ export declare function __classPrivateFieldSet<T extends object, V>(
316
+ receiver: T,
317
+ state: { has(o: T): boolean, set(o: T, value: V): unknown },
318
+ value: V,
319
+ kind?: "f"
320
+ ): V;
321
+
322
+ /**
323
+ * Emulates writing to a private static field.
324
+ *
325
+ * @param receiver The object on which to set the private static field.
326
+ * @param state The class constructor containing the definition of the private static field.
327
+ * @param value The value to store in the private field.
328
+ * @param kind Either `"f"` for a field, `"a"` for an accessor, or `"m"` for a method.
329
+ * @param f The descriptor that holds the static field value.
330
+ *
331
+ * @throws {TypeError} If `receiver` is not `state`.
332
+ */
333
+ export declare function __classPrivateFieldSet<T extends new (...args: any[]) => unknown, V>(
334
+ receiver: T,
335
+ state: T,
336
+ value: V,
337
+ kind: "f",
338
+ f: { value: V }
339
+ ): V;
340
+
341
+ /**
342
+ * Emulates writing to a private instance "set" accessor.
343
+ *
344
+ * @param receiver The instance on which to evaluate the private instance "set" accessor.
345
+ * @param state A WeakSet used to verify an instance supports the private "set" accessor.
346
+ * @param value The value to store in the private accessor.
347
+ * @param kind Either `"f"` for a field, `"a"` for an accessor, or `"m"` for a method.
348
+ * @param f The "set" accessor function to evaluate.
349
+ *
350
+ * @throws {TypeError} If `state` doesn't have an entry for `receiver`.
351
+ */
352
+ export declare function __classPrivateFieldSet<T extends object, V>(
353
+ receiver: T,
354
+ state: { has(o: T): boolean },
355
+ value: V,
356
+ kind: "a",
357
+ f: (v: V) => void
358
+ ): V;
359
+
360
+ /**
361
+ * Emulates writing to a private static "set" accessor.
362
+ *
363
+ * @param receiver The object on which to evaluate the private static "set" accessor.
364
+ * @param state The class constructor containing the definition of the static "set" accessor.
365
+ * @param value The value to store in the private field.
366
+ * @param kind Either `"f"` for a field, `"a"` for an accessor, or `"m"` for a method.
367
+ * @param f The "set" accessor function to evaluate.
368
+ *
369
+ * @throws {TypeError} If `receiver` is not `state`.
370
+ */
371
+ export declare function __classPrivateFieldSet<T extends new (...args: any[]) => unknown, V>(
372
+ receiver: T,
373
+ state: T,
374
+ value: V,
375
+ kind: "a",
376
+ f: (v: V) => void
377
+ ): V;
378
+
379
+ /**
380
+ * Checks for the existence of a private field/method/accessor.
381
+ *
382
+ * @param state The class constructor containing the static member, or the WeakMap or WeakSet associated with a private instance member.
383
+ * @param receiver The object for which to test the presence of the private member.
384
+ */
385
+ export declare function __classPrivateFieldIn(
386
+ state: (new (...args: any[]) => unknown) | { has(o: any): boolean },
387
+ receiver: unknown,
388
+ ): boolean;
389
+
390
+ /**
391
+ * Creates a re-export binding on `object` with key `objectKey` that references `target[key]`.
392
+ *
393
+ * @param object The local `exports` object.
394
+ * @param target The object to re-export from.
395
+ * @param key The property key of `target` to re-export.
396
+ * @param objectKey The property key to re-export as. Defaults to `key`.
397
+ */
398
+ export declare function __createBinding(object: object, target: object, key: PropertyKey, objectKey?: PropertyKey): void;
@@ -0,0 +1 @@
1
+ <script src="tslib.es6.js"></script>