@contrail/cli 3.4.3 → 3.4.4-alpha.03728c1

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 (2372) hide show
  1. package/README.md +1 -1
  2. package/bin/dev +0 -0
  3. package/bin/run +0 -0
  4. package/dist/__mocks__/@contrail/sdk.d.ts +123 -123
  5. package/dist/__mocks__/@contrail/sdk.js +716 -716
  6. package/dist/api/app-extension-deployments.d.ts +2 -2
  7. package/dist/api/app-extension-deployments.js +11 -11
  8. package/dist/api/app-extension-packages.d.ts +2 -2
  9. package/dist/api/app-extension-packages.js +11 -11
  10. package/dist/api/apps.d.ts +10 -10
  11. package/dist/api/apps.js +63 -63
  12. package/dist/api/event-workflow-action-definition.d.ts +3 -3
  13. package/dist/api/event-workflow-action-definition.js +18 -18
  14. package/dist/api/event-workflow-template-definition.d.ts +7 -7
  15. package/dist/api/event-workflow-template-definition.js +26 -26
  16. package/dist/api/event-workflow-templates.d.ts +8 -8
  17. package/dist/api/event-workflow-templates.js +32 -32
  18. package/dist/api/schedules.d.ts +7 -7
  19. package/dist/api/schedules.js +32 -32
  20. package/dist/api/types.d.ts +11 -11
  21. package/dist/api/types.js +79 -79
  22. package/dist/api/users.d.ts +2 -2
  23. package/dist/api/users.js +18 -18
  24. package/dist/api/webhooks.d.ts +4 -4
  25. package/dist/api/webhooks.js +16 -16
  26. package/dist/auth/login.d.ts +3 -3
  27. package/dist/auth/login.js +221 -221
  28. package/dist/auth/login.spec.d.ts +1 -1
  29. package/dist/auth/login.spec.js +10 -10
  30. package/dist/baseFlags.d.ts +10 -10
  31. package/dist/baseFlags.js +25 -25
  32. package/dist/basecommand.d.ts +15 -15
  33. package/dist/basecommand.js +83 -83
  34. package/dist/commands/app/create.d.ts +10 -10
  35. package/dist/commands/app/create.js +96 -96
  36. package/dist/commands/app/delete.d.ts +11 -11
  37. package/dist/commands/app/delete.js +40 -40
  38. package/dist/commands/app/extension/deploy.d.ts +18 -18
  39. package/dist/commands/app/extension/deploy.js +127 -127
  40. package/dist/commands/app/extension/deployment/list.d.ts +14 -14
  41. package/dist/commands/app/extension/deployment/list.js +82 -82
  42. package/dist/commands/app/getApiKey.d.ts +11 -11
  43. package/dist/commands/app/getApiKey.js +49 -49
  44. package/dist/commands/app/init.d.ts +10 -10
  45. package/dist/commands/app/init.js +67 -67
  46. package/dist/commands/app/install.d.ts +13 -13
  47. package/dist/commands/app/install.js +135 -135
  48. package/dist/commands/app/publish.d.ts +14 -14
  49. package/dist/commands/app/publish.js +69 -69
  50. package/dist/commands/app/uninstall.d.ts +12 -12
  51. package/dist/commands/app/uninstall.js +68 -68
  52. package/dist/commands/app/upgrade.d.ts +14 -14
  53. package/dist/commands/app/upgrade.js +108 -108
  54. package/dist/commands/app/version/major.d.ts +11 -11
  55. package/dist/commands/app/version/major.js +39 -39
  56. package/dist/commands/app/version/minor.d.ts +11 -11
  57. package/dist/commands/app/version/minor.js +39 -39
  58. package/dist/commands/app/version/patch.d.ts +11 -11
  59. package/dist/commands/app/version/patch.js +39 -39
  60. package/dist/commands/config/create.d.ts +12 -12
  61. package/dist/commands/config/create.js +27 -27
  62. package/dist/commands/config/describe.d.ts +14 -14
  63. package/dist/commands/config/describe.js +46 -46
  64. package/dist/commands/config/list.d.ts +11 -11
  65. package/dist/commands/config/list.js +38 -38
  66. package/dist/commands/config/set.d.ts +16 -16
  67. package/dist/commands/config/set.js +46 -46
  68. package/dist/commands/config/use.d.ts +14 -14
  69. package/dist/commands/config/use.js +47 -47
  70. package/dist/commands/file/upload.d.ts +15 -15
  71. package/dist/commands/file/upload.js +69 -69
  72. package/dist/commands/groups/export.d.ts +14 -14
  73. package/dist/commands/groups/export.js +103 -103
  74. package/dist/commands/groups/import.d.ts +14 -14
  75. package/dist/commands/groups/import.js +190 -190
  76. package/dist/commands/instance/export.d.ts +12 -12
  77. package/dist/commands/instance/export.js +36 -36
  78. package/dist/commands/instance/import.d.ts +11 -11
  79. package/dist/commands/instance/import.js +34 -34
  80. package/dist/commands/load/colors.d.ts +14 -14
  81. package/dist/commands/load/colors.js +53 -53
  82. package/dist/commands/load/custom-entity.d.ts +14 -14
  83. package/dist/commands/load/custom-entity.js +55 -55
  84. package/dist/commands/load/line-sheet.d.ts +14 -14
  85. package/dist/commands/load/line-sheet.js +55 -55
  86. package/dist/commands/load/upload-and-load.d.ts +14 -14
  87. package/dist/commands/load/upload-and-load.js +46 -46
  88. package/dist/commands/projects/export.d.ts +13 -13
  89. package/dist/commands/projects/export.js +35 -35
  90. package/dist/commands/projects/list.d.ts +10 -10
  91. package/dist/commands/projects/list.js +36 -36
  92. package/dist/commands/projects/load.d.ts +25 -25
  93. package/dist/commands/projects/load.js +198 -198
  94. package/dist/commands/types/exportOptionSetHierarchies.d.ts +11 -11
  95. package/dist/commands/types/exportOptionSetHierarchies.js +133 -133
  96. package/dist/commands/types/getAll.d.ts +21 -21
  97. package/dist/commands/types/getAll.js +180 -180
  98. package/dist/commands/types/getOptionSets.d.ts +16 -16
  99. package/dist/commands/types/getOptionSets.js +170 -170
  100. package/dist/commands/types/loadAll.d.ts +12 -12
  101. package/dist/commands/types/loadAll.js +55 -55
  102. package/dist/commands/types/mergeOptionSets.d.ts +13 -13
  103. package/dist/commands/types/mergeOptionSets.js +116 -116
  104. package/dist/commands/types/mergeTypeProperties.d.ts +15 -15
  105. package/dist/commands/types/mergeTypeProperties.js +95 -95
  106. package/dist/commands/types/parseOptionSetsHierarchyLocalFile.d.ts +14 -14
  107. package/dist/commands/types/parseOptionSetsHierarchyLocalFile.js +133 -133
  108. package/dist/commands/types/parseOptionSetsHierarchyValuesToKeysLocalFile.d.ts +14 -14
  109. package/dist/commands/types/parseOptionSetsHierarchyValuesToKeysLocalFile.js +102 -102
  110. package/dist/commands/types/parseOptionSetsLocalFiles.d.ts +39 -39
  111. package/dist/commands/types/parseOptionSetsLocalFiles.js +229 -229
  112. package/dist/commands/types/parseOptionSetsToFolderStructure.d.ts +13 -13
  113. package/dist/commands/types/parseOptionSetsToFolderStructure.js +68 -68
  114. package/dist/commands/types/parseTypesFromFiles.d.ts +14 -14
  115. package/dist/commands/types/parseTypesFromFiles.js +40 -40
  116. package/dist/commands/types/parseTypesFromLocalFiles.d.ts +14 -14
  117. package/dist/commands/types/parseTypesFromLocalFiles.js +37 -37
  118. package/dist/commands/types/parseTypesFromTemplateAndDataFromLocalFiles.d.ts +15 -15
  119. package/dist/commands/types/parseTypesFromTemplateAndDataFromLocalFiles.js +39 -39
  120. package/dist/commands/types/parseTypesFromTemplateFromLocalFiles.d.ts +14 -14
  121. package/dist/commands/types/parseTypesFromTemplateFromLocalFiles.js +38 -38
  122. package/dist/commands/types/uploadOptionSetHierarchies.d.ts +12 -12
  123. package/dist/commands/types/uploadOptionSetHierarchies.js +257 -257
  124. package/dist/commands/types/uploadOptionSets.d.ts +13 -13
  125. package/dist/commands/types/uploadOptionSets.js +155 -155
  126. package/dist/commands/types/uploadOptionSetsHierarchyLocalFile.d.ts +15 -15
  127. package/dist/commands/types/uploadOptionSetsHierarchyLocalFile.js +135 -135
  128. package/dist/commands/types/uploadRuleSets.d.ts +12 -12
  129. package/dist/commands/types/uploadRuleSets.js +197 -197
  130. package/dist/commands/types/uploadTypePolicies.d.ts +12 -12
  131. package/dist/commands/types/uploadTypePolicies.js +233 -233
  132. package/dist/commands/types/uploadTypePropertyPolicies.d.ts +13 -13
  133. package/dist/commands/types/uploadTypePropertyPolicies.js +286 -286
  134. package/dist/commands/types/uploadTypes.d.ts +13 -13
  135. package/dist/commands/types/uploadTypes.js +35 -35
  136. package/dist/commands/types/uploadUsageInfo.d.ts +15 -15
  137. package/dist/commands/types/uploadUsageInfo.js +179 -179
  138. package/dist/commands/types/uploadUsageInfo.spec.d.ts +1 -1
  139. package/dist/commands/types/uploadUsageInfo.spec.js +249 -249
  140. package/dist/commands/users/export.d.ts +14 -14
  141. package/dist/commands/users/export.js +76 -76
  142. package/dist/commands/users/import.d.ts +14 -14
  143. package/dist/commands/users/import.js +68 -68
  144. package/dist/commands/webhooks/create.d.ts +11 -11
  145. package/dist/commands/webhooks/create.js +25 -25
  146. package/dist/commands/webhooks/delete.d.ts +14 -14
  147. package/dist/commands/webhooks/delete.js +53 -53
  148. package/dist/commands/webhooks/getWebhookTrigger.d.ts +13 -13
  149. package/dist/commands/webhooks/getWebhookTrigger.js +40 -40
  150. package/dist/commands/webhooks/list.d.ts +12 -12
  151. package/dist/commands/webhooks/list.js +31 -31
  152. package/dist/commands/workflow-template-definitions/install.d.ts +10 -10
  153. package/dist/commands/workflow-template-definitions/install.js +19 -19
  154. package/dist/commands/workflow-template-definitions/list.d.ts +10 -10
  155. package/dist/commands/workflow-template-definitions/list.js +19 -19
  156. package/dist/commands/workflow-templates/delete.d.ts +10 -10
  157. package/dist/commands/workflow-templates/delete.js +19 -19
  158. package/dist/commands/workflow-templates/export.d.ts +14 -14
  159. package/dist/commands/workflow-templates/export.js +78 -78
  160. package/dist/commands/workflow-templates/list.d.ts +10 -10
  161. package/dist/commands/workflow-templates/list.js +19 -19
  162. package/dist/commands/workflow-templates/load.d.ts +13 -13
  163. package/dist/commands/workflow-templates/load.js +26 -26
  164. package/dist/common.d.ts +4 -4
  165. package/dist/common.js +18 -18
  166. package/dist/helpers/app/actions-deployer.d.ts +11 -11
  167. package/dist/helpers/app/actions-deployer.js +123 -123
  168. package/dist/helpers/app/app-config-validators.d.ts +22 -22
  169. package/dist/helpers/app/app-config-validators.js +100 -100
  170. package/dist/helpers/app/app-config-validators.spec.d.ts +1 -1
  171. package/dist/helpers/app/app-config-validators.spec.js +310 -310
  172. package/dist/helpers/app/app-deployer.d.ts +12 -12
  173. package/dist/helpers/app/app-deployer.js +278 -278
  174. package/dist/helpers/app/app-template-parsers.d.ts +14 -14
  175. package/dist/helpers/app/app-template-parsers.js +106 -106
  176. package/dist/helpers/app/extension-package-deployer.d.ts +7 -7
  177. package/dist/helpers/app/extension-package-deployer.js +175 -175
  178. package/dist/helpers/app/extensions-deployer.d.ts +9 -9
  179. package/dist/helpers/app/extensions-deployer.js +95 -95
  180. package/dist/helpers/app/load-app-config.d.ts +4 -4
  181. package/dist/helpers/app/load-app-config.js +22 -22
  182. package/dist/helpers/app/metadata-extractor.d.ts +1 -1
  183. package/dist/helpers/app/metadata-extractor.js +100 -100
  184. package/dist/helpers/app/setup-template.d.ts +8 -8
  185. package/dist/helpers/app/setup-template.js +48 -48
  186. package/dist/helpers/app/update-app-config.d.ts +2 -2
  187. package/dist/helpers/app/update-app-config.js +20 -20
  188. package/dist/helpers/app/upgrade-version.d.ts +16 -16
  189. package/dist/helpers/app/upgrade-version.js +37 -37
  190. package/dist/helpers/app/upgrade-version.spec.d.ts +1 -1
  191. package/dist/helpers/app/upgrade-version.spec.js +33 -33
  192. package/dist/helpers/colors/helpers.d.ts +12 -12
  193. package/dist/helpers/colors/helpers.js +84 -84
  194. package/dist/helpers/config/config.d.ts +16 -16
  195. package/dist/helpers/config/config.js +223 -223
  196. package/dist/helpers/file-helpers.d.ts +2 -2
  197. package/dist/helpers/file-helpers.js +36 -36
  198. package/dist/helpers/load/helpers.d.ts +20 -20
  199. package/dist/helpers/load/helpers.js +141 -141
  200. package/dist/helpers/load/helpers.spec.d.ts +1 -1
  201. package/dist/helpers/load/helpers.spec.js +62 -62
  202. package/dist/helpers/load/validators.d.ts +14 -14
  203. package/dist/helpers/load/validators.js +182 -182
  204. package/dist/helpers/load/validators.spec.d.ts +1 -1
  205. package/dist/helpers/load/validators.spec.js +450 -450
  206. package/dist/helpers/projects/helpers.d.ts +3 -3
  207. package/dist/helpers/projects/helpers.js +167 -167
  208. package/dist/helpers/types/csv-parser.d.ts +1 -1
  209. package/dist/helpers/types/csv-parser.js +59 -59
  210. package/dist/helpers/types/option-set-helper.d.ts +9 -9
  211. package/dist/helpers/types/option-set-helper.js +48 -48
  212. package/dist/helpers/types/option-set-helper.spec.d.ts +1 -1
  213. package/dist/helpers/types/option-set-helper.spec.js +64 -64
  214. package/dist/helpers/types/parseOptionSetsLocalFiles.spec.d.ts +1 -1
  215. package/dist/helpers/types/parseOptionSetsLocalFiles.spec.js +285 -285
  216. package/dist/helpers/types/type-extractor.d.ts +1 -1
  217. package/dist/helpers/types/type-extractor.js +36 -36
  218. package/dist/helpers/types/type-parser.d.ts +4 -4
  219. package/dist/helpers/types/type-parser.js +119 -119
  220. package/dist/helpers/types/type-uploader.d.ts +20 -20
  221. package/dist/helpers/types/type-uploader.js +336 -336
  222. package/dist/helpers/types/type-uploader.spec.d.ts +1 -1
  223. package/dist/helpers/types/type-uploader.spec.js +266 -266
  224. package/dist/helpers/types/uploadOptionSets.spec.d.ts +1 -1
  225. package/dist/helpers/types/uploadOptionSets.spec.js +19 -19
  226. package/dist/helpers/workflow-template-definitions/workflow-template-definition-deployer.d.ts +12 -12
  227. package/dist/helpers/workflow-template-definitions/workflow-template-definition-deployer.js +158 -158
  228. package/dist/helpers/workflow-templates/helper.d.ts +20 -20
  229. package/dist/helpers/workflow-templates/helper.js +285 -285
  230. package/dist/index.d.ts +1 -1
  231. package/dist/index.js +5 -5
  232. package/dist/interfaces.d.ts +470 -470
  233. package/dist/interfaces.js +163 -163
  234. package/dist/logger.d.ts +3 -3
  235. package/dist/logger.js +33 -33
  236. package/node_modules/@contrail/entity-types/.github/pull_request_template.md +31 -0
  237. package/node_modules/@contrail/entity-types/.github/workflows/empty.yml +10 -0
  238. package/node_modules/@contrail/entity-types/.github/workflows/generate-entity-types-docs.yml +32 -0
  239. package/node_modules/@contrail/entity-types/.prettierrc.yaml +2 -0
  240. package/node_modules/@contrail/entity-types/README.md +13 -0
  241. package/node_modules/@contrail/entity-types/home-hero.svg +11 -0
  242. package/node_modules/@contrail/entity-types/lib/action-definition-config.d.ts +6 -0
  243. package/node_modules/@contrail/entity-types/lib/action-definition-config.js +2 -0
  244. package/node_modules/@contrail/entity-types/lib/app-access-grant.d.ts +15 -0
  245. package/node_modules/@contrail/entity-types/lib/app-access-grant.js +7 -0
  246. package/node_modules/@contrail/entity-types/lib/app-api-key.d.ts +15 -0
  247. package/node_modules/@contrail/entity-types/lib/app-api-key.js +2 -0
  248. package/node_modules/@contrail/entity-types/lib/app-code-package.d.ts +17 -0
  249. package/node_modules/@contrail/entity-types/lib/app-code-package.js +2 -0
  250. package/node_modules/@contrail/entity-types/lib/app-extension-definition.d.ts +53 -0
  251. package/node_modules/@contrail/entity-types/lib/app-extension-definition.js +18 -0
  252. package/node_modules/@contrail/entity-types/lib/app-extension.d.ts +24 -0
  253. package/node_modules/@contrail/entity-types/lib/app-extension.js +2 -0
  254. package/node_modules/@contrail/entity-types/lib/app-org.d.ts +20 -0
  255. package/node_modules/@contrail/entity-types/lib/app-org.js +11 -0
  256. package/node_modules/@contrail/entity-types/lib/app-version.d.ts +57 -0
  257. package/node_modules/@contrail/entity-types/lib/app-version.js +21 -0
  258. package/node_modules/@contrail/entity-types/lib/app.d.ts +25 -0
  259. package/node_modules/@contrail/entity-types/lib/app.js +2 -0
  260. package/node_modules/@contrail/entity-types/lib/asset.d.ts +16 -0
  261. package/node_modules/@contrail/entity-types/lib/asset.js +2 -0
  262. package/node_modules/@contrail/entity-types/lib/assortment-item.d.ts +27 -0
  263. package/node_modules/@contrail/entity-types/lib/assortment-item.js +2 -0
  264. package/node_modules/@contrail/entity-types/lib/assortment-publish-change.d.ts +48 -0
  265. package/node_modules/@contrail/entity-types/lib/assortment-publish-change.js +2 -0
  266. package/node_modules/@contrail/entity-types/lib/assortment-summary.d.ts +15 -0
  267. package/node_modules/@contrail/entity-types/lib/assortment-summary.js +2 -0
  268. package/node_modules/@contrail/entity-types/lib/assortment.d.ts +39 -0
  269. package/node_modules/@contrail/entity-types/lib/assortment.js +11 -0
  270. package/node_modules/@contrail/entity-types/lib/base-managed-entity.d.ts +8 -0
  271. package/node_modules/@contrail/entity-types/lib/base-managed-entity.js +2 -0
  272. package/node_modules/@contrail/entity-types/lib/batch-fetch-response.d.ts +11 -0
  273. package/node_modules/@contrail/entity-types/lib/batch-fetch-response.js +2 -0
  274. package/node_modules/@contrail/entity-types/lib/client.d.ts +107 -0
  275. package/node_modules/@contrail/entity-types/lib/client.js +114 -0
  276. package/node_modules/@contrail/entity-types/lib/color.d.ts +14 -0
  277. package/node_modules/@contrail/entity-types/lib/color.js +2 -0
  278. package/node_modules/@contrail/entity-types/lib/composite-plans-summary.d.ts +15 -0
  279. package/node_modules/@contrail/entity-types/lib/composite-plans-summary.js +2 -0
  280. package/node_modules/@contrail/entity-types/lib/content-custom-size.d.ts +14 -0
  281. package/node_modules/@contrail/entity-types/lib/content-custom-size.js +2 -0
  282. package/node_modules/@contrail/entity-types/lib/content.d.ts +25 -0
  283. package/node_modules/@contrail/entity-types/lib/content.js +2 -0
  284. package/node_modules/@contrail/entity-types/lib/contentholder-content.d.ts +5 -0
  285. package/node_modules/@contrail/entity-types/lib/contentholder-content.js +2 -0
  286. package/node_modules/@contrail/entity-types/lib/event-workflow-action-definition.d.ts +21 -0
  287. package/node_modules/@contrail/entity-types/lib/event-workflow-action-definition.js +2 -0
  288. package/node_modules/@contrail/entity-types/lib/event-workflow-process.d.ts +27 -0
  289. package/node_modules/@contrail/entity-types/lib/event-workflow-process.js +11 -0
  290. package/node_modules/@contrail/entity-types/lib/event-workflow-task.d.ts +30 -0
  291. package/node_modules/@contrail/entity-types/lib/event-workflow-task.js +2 -0
  292. package/node_modules/@contrail/entity-types/lib/file.d.ts +13 -0
  293. package/node_modules/@contrail/entity-types/lib/file.js +2 -0
  294. package/node_modules/@contrail/entity-types/lib/index.d.ts +40 -0
  295. package/node_modules/@contrail/entity-types/lib/index.js +56 -0
  296. package/node_modules/@contrail/entity-types/lib/item.d.ts +20 -0
  297. package/node_modules/@contrail/entity-types/lib/item.js +2 -0
  298. package/node_modules/@contrail/entity-types/lib/loader.d.ts +234 -0
  299. package/node_modules/@contrail/entity-types/lib/loader.js +134 -0
  300. package/node_modules/@contrail/entity-types/lib/log-level.d.ts +8 -0
  301. package/node_modules/@contrail/entity-types/lib/log-level.js +12 -0
  302. package/node_modules/@contrail/entity-types/lib/org-managed-entity.d.ts +5 -0
  303. package/node_modules/@contrail/entity-types/lib/org-managed-entity.js +2 -0
  304. package/node_modules/@contrail/entity-types/lib/org.d.ts +11 -0
  305. package/node_modules/@contrail/entity-types/lib/org.js +2 -0
  306. package/node_modules/@contrail/entity-types/lib/project-configuration.d.ts +39 -0
  307. package/node_modules/@contrail/entity-types/lib/project-configuration.js +9 -0
  308. package/node_modules/@contrail/entity-types/lib/project-item.d.ts +9 -0
  309. package/node_modules/@contrail/entity-types/lib/project-item.js +2 -0
  310. package/node_modules/@contrail/entity-types/lib/project.d.ts +4 -0
  311. package/node_modules/@contrail/entity-types/lib/project.js +2 -0
  312. package/node_modules/@contrail/entity-types/lib/property-type.d.ts +32 -0
  313. package/node_modules/@contrail/entity-types/lib/property-type.js +31 -0
  314. package/node_modules/@contrail/entity-types/lib/shared-links.d.ts +46 -0
  315. package/node_modules/@contrail/entity-types/lib/shared-links.js +11 -0
  316. package/node_modules/@contrail/entity-types/lib/subscription.d.ts +38 -0
  317. package/node_modules/@contrail/entity-types/lib/subscription.js +22 -0
  318. package/node_modules/@contrail/entity-types/lib/type-managed-entity.d.ts +8 -0
  319. package/node_modules/@contrail/entity-types/lib/type-managed-entity.js +2 -0
  320. package/node_modules/@contrail/entity-types/lib/user.d.ts +79 -0
  321. package/node_modules/@contrail/entity-types/lib/user.js +20 -0
  322. package/node_modules/@contrail/entity-types/lib/workspace-managed-entity.d.ts +5 -0
  323. package/node_modules/@contrail/entity-types/lib/workspace-managed-entity.js +2 -0
  324. package/node_modules/@contrail/entity-types/lib/workspace-principal.d.ts +24 -0
  325. package/node_modules/@contrail/entity-types/lib/workspace-principal.js +9 -0
  326. package/node_modules/@contrail/entity-types/lib/workspace.d.ts +32 -0
  327. package/node_modules/@contrail/entity-types/lib/workspace.js +9 -0
  328. package/node_modules/@contrail/entity-types/package.json +56 -0
  329. package/node_modules/@contrail/org-config-migration/.husky/pre-commit +10 -0
  330. package/node_modules/@contrail/org-config-migration/.lintstagedrc-check.json +3 -0
  331. package/node_modules/@contrail/org-config-migration/.lintstagedrc-format.json +3 -0
  332. package/node_modules/@contrail/org-config-migration/.prettierrc.yaml +2 -0
  333. package/node_modules/@contrail/org-config-migration/lib/index.d.ts +3 -0
  334. package/node_modules/@contrail/org-config-migration/lib/index.js +19 -0
  335. package/node_modules/@contrail/org-config-migration/lib/interfaces.d.ts +97 -0
  336. package/node_modules/@contrail/org-config-migration/lib/interfaces.js +2 -0
  337. package/node_modules/@contrail/org-config-migration/lib/services/index.d.ts +1 -0
  338. package/node_modules/@contrail/org-config-migration/lib/services/index.js +17 -0
  339. package/node_modules/@contrail/org-config-migration/lib/services/types.d.ts +17 -0
  340. package/node_modules/@contrail/org-config-migration/lib/services/types.js +155 -0
  341. package/node_modules/@contrail/org-config-migration/lib/types/exportAll.d.ts +2 -0
  342. package/node_modules/@contrail/org-config-migration/lib/types/exportAll.js +40 -0
  343. package/node_modules/@contrail/org-config-migration/lib/types/exportOptionSet.d.ts +2 -0
  344. package/node_modules/@contrail/org-config-migration/lib/types/exportOptionSet.js +20 -0
  345. package/node_modules/@contrail/org-config-migration/lib/types/exportOptionSetHierarchies.d.ts +3 -0
  346. package/node_modules/@contrail/org-config-migration/lib/types/exportOptionSetHierarchies.js +47 -0
  347. package/node_modules/@contrail/org-config-migration/lib/types/exportOverrides.d.ts +2 -0
  348. package/node_modules/@contrail/org-config-migration/lib/types/exportOverrides.js +8 -0
  349. package/node_modules/@contrail/org-config-migration/lib/types/exportRuleSets.d.ts +3 -0
  350. package/node_modules/@contrail/org-config-migration/lib/types/exportRuleSets.js +39 -0
  351. package/node_modules/@contrail/org-config-migration/lib/types/exportTypePolicies.d.ts +3 -0
  352. package/node_modules/@contrail/org-config-migration/lib/types/exportTypePolicies.js +56 -0
  353. package/node_modules/@contrail/org-config-migration/lib/types/exportTypePropertyPolicies.d.ts +3 -0
  354. package/node_modules/@contrail/org-config-migration/lib/types/exportTypePropertyPolicies.js +71 -0
  355. package/node_modules/@contrail/org-config-migration/lib/types/exportTypes.d.ts +2 -0
  356. package/node_modules/@contrail/org-config-migration/lib/types/exportTypes.js +85 -0
  357. package/node_modules/@contrail/org-config-migration/lib/types/exportUsageInfo.d.ts +2 -0
  358. package/node_modules/@contrail/org-config-migration/lib/types/exportUsageInfo.js +39 -0
  359. package/node_modules/@contrail/org-config-migration/lib/types/importAll.d.ts +2 -0
  360. package/node_modules/@contrail/org-config-migration/lib/types/importAll.js +451 -0
  361. package/node_modules/@contrail/org-config-migration/lib/types/index.d.ts +9 -0
  362. package/node_modules/@contrail/org-config-migration/lib/types/index.js +25 -0
  363. package/node_modules/@contrail/org-config-migration/lib/types/parseOptionSetHierarchy.d.ts +3 -0
  364. package/node_modules/@contrail/org-config-migration/lib/types/parseOptionSetHierarchy.js +210 -0
  365. package/node_modules/@contrail/org-config-migration/lib/users/export.d.ts +2 -0
  366. package/node_modules/@contrail/org-config-migration/lib/users/export.js +40 -0
  367. package/node_modules/@contrail/org-config-migration/lib/users/import.d.ts +2 -0
  368. package/node_modules/@contrail/org-config-migration/lib/users/import.js +41 -0
  369. package/node_modules/@contrail/org-config-migration/lib/users/index.d.ts +2 -0
  370. package/node_modules/@contrail/org-config-migration/lib/users/index.js +18 -0
  371. package/node_modules/@contrail/org-config-migration/node_modules/commander/CHANGELOG.md +361 -0
  372. package/node_modules/@contrail/org-config-migration/node_modules/commander/LICENSE +22 -0
  373. package/node_modules/@contrail/org-config-migration/node_modules/commander/Readme.md +791 -0
  374. package/node_modules/@contrail/org-config-migration/node_modules/commander/index.js +1881 -0
  375. package/node_modules/@contrail/org-config-migration/node_modules/commander/package.json +51 -0
  376. package/node_modules/@contrail/org-config-migration/node_modules/commander/typings/index.d.ts +410 -0
  377. package/node_modules/@contrail/org-config-migration/node_modules/json2csv/.eslintrc +10 -0
  378. package/node_modules/@contrail/org-config-migration/node_modules/json2csv/.gitattributes +3 -0
  379. package/node_modules/@contrail/org-config-migration/node_modules/json2csv/.prettierrc.js +3 -0
  380. package/node_modules/@contrail/org-config-migration/node_modules/json2csv/LICENSE.md +14 -0
  381. package/node_modules/@contrail/org-config-migration/node_modules/json2csv/README.md +15 -0
  382. package/node_modules/@contrail/org-config-migration/node_modules/json2csv/bin/json2csv.js +192 -0
  383. package/node_modules/@contrail/org-config-migration/node_modules/json2csv/bin/utils/TablePrinter.js +117 -0
  384. package/node_modules/@contrail/org-config-migration/node_modules/json2csv/bin/utils/parseNdjson.js +11 -0
  385. package/node_modules/@contrail/org-config-migration/node_modules/json2csv/docs/cli-examples.md +73 -0
  386. package/node_modules/@contrail/org-config-migration/node_modules/json2csv/docs/parser-examples.md +488 -0
  387. package/node_modules/@contrail/org-config-migration/node_modules/json2csv/lib/JSON2CSVAsyncParser.js +35 -0
  388. package/node_modules/@contrail/org-config-migration/node_modules/json2csv/lib/JSON2CSVBase.js +175 -0
  389. package/node_modules/@contrail/org-config-migration/node_modules/json2csv/lib/JSON2CSVParser.js +72 -0
  390. package/node_modules/@contrail/org-config-migration/node_modules/json2csv/lib/JSON2CSVStreamParser.js +150 -0
  391. package/node_modules/@contrail/org-config-migration/node_modules/json2csv/lib/JSON2CSVTransform.js +74 -0
  392. package/node_modules/@contrail/org-config-migration/node_modules/json2csv/lib/formatters/default.js +7 -0
  393. package/node_modules/@contrail/org-config-migration/node_modules/json2csv/lib/formatters/number.js +26 -0
  394. package/node_modules/@contrail/org-config-migration/node_modules/json2csv/lib/formatters/object.js +17 -0
  395. package/node_modules/@contrail/org-config-migration/node_modules/json2csv/lib/formatters/string.js +18 -0
  396. package/node_modules/@contrail/org-config-migration/node_modules/json2csv/lib/formatters/stringExcel.js +8 -0
  397. package/node_modules/@contrail/org-config-migration/node_modules/json2csv/lib/formatters/stringQuoteOnlyIfNecessary.js +21 -0
  398. package/node_modules/@contrail/org-config-migration/node_modules/json2csv/lib/formatters/symbol.js +7 -0
  399. package/node_modules/@contrail/org-config-migration/node_modules/json2csv/lib/json2csv.js +43 -0
  400. package/node_modules/@contrail/org-config-migration/node_modules/json2csv/lib/transforms/flatten.js +37 -0
  401. package/node_modules/@contrail/org-config-migration/node_modules/json2csv/lib/transforms/unwind.js +60 -0
  402. package/node_modules/@contrail/org-config-migration/node_modules/json2csv/lib/utils.js +86 -0
  403. package/node_modules/@contrail/org-config-migration/node_modules/json2csv/package.json +73 -0
  404. package/node_modules/@contrail/org-config-migration/node_modules/json2csv/rollup.config.js +44 -0
  405. package/node_modules/@contrail/org-config-migration/package.json +50 -0
  406. package/node_modules/@contrail/policies/README.md +0 -0
  407. package/node_modules/@contrail/policies/lib/index.d.ts +1 -0
  408. package/node_modules/@contrail/policies/lib/index.js +17 -0
  409. package/node_modules/@contrail/policies/lib/policies/index.d.ts +1 -0
  410. package/node_modules/@contrail/policies/lib/policies/index.js +17 -0
  411. package/node_modules/@contrail/policies/lib/policies/policies.d.ts +41 -0
  412. package/node_modules/@contrail/policies/lib/policies/policies.js +132 -0
  413. package/node_modules/@contrail/policies/package.json +40 -0
  414. package/node_modules/@contrail/sdk/.github/pull_request_template.md +31 -0
  415. package/node_modules/@contrail/sdk/.github/workflows/check-code-formatting.yml +34 -0
  416. package/node_modules/@contrail/sdk/.github/workflows/empty.yml +10 -0
  417. package/node_modules/@contrail/sdk/.github/workflows/generate-sdk-docs.yml +32 -0
  418. package/node_modules/@contrail/sdk/.github/workflows/sdk-lib.yml +27 -0
  419. package/node_modules/@contrail/sdk/.prettierrc.yaml +2 -0
  420. package/node_modules/@contrail/sdk/README.md +72 -0
  421. package/node_modules/@contrail/sdk/home-hero.svg +11 -0
  422. package/node_modules/@contrail/sdk/lib/assets/assets.d.ts +9 -0
  423. package/node_modules/@contrail/sdk/lib/assets/assets.js +54 -0
  424. package/node_modules/@contrail/sdk/lib/assets/index.d.ts +1 -0
  425. package/node_modules/@contrail/sdk/lib/assets/index.js +17 -0
  426. package/node_modules/@contrail/sdk/lib/auth/auth.d.ts +10 -0
  427. package/node_modules/@contrail/sdk/lib/auth/auth.js +6 -0
  428. package/node_modules/@contrail/sdk/lib/auth/index.d.ts +2 -0
  429. package/node_modules/@contrail/sdk/lib/auth/index.js +18 -0
  430. package/node_modules/@contrail/sdk/lib/auth/login.d.ts +10 -0
  431. package/node_modules/@contrail/sdk/lib/auth/login.js +170 -0
  432. package/node_modules/@contrail/sdk/lib/config/config.d.ts +45 -0
  433. package/node_modules/@contrail/sdk/lib/config/config.js +36 -0
  434. package/node_modules/@contrail/sdk/lib/config/index.d.ts +1 -0
  435. package/node_modules/@contrail/sdk/lib/config/index.js +17 -0
  436. package/node_modules/@contrail/sdk/lib/content/content.d.ts +12 -0
  437. package/node_modules/@contrail/sdk/lib/content/content.js +70 -0
  438. package/node_modules/@contrail/sdk/lib/content/index.d.ts +1 -0
  439. package/node_modules/@contrail/sdk/lib/content/index.js +17 -0
  440. package/node_modules/@contrail/sdk/lib/core/index.d.ts +1 -0
  441. package/node_modules/@contrail/sdk/lib/core/index.js +17 -0
  442. package/node_modules/@contrail/sdk/lib/core/request.d.ts +12 -0
  443. package/node_modules/@contrail/sdk/lib/core/request.js +145 -0
  444. package/node_modules/@contrail/sdk/lib/entities/entities.client.d.ts +101 -0
  445. package/node_modules/@contrail/sdk/lib/entities/entities.client.js +306 -0
  446. package/node_modules/@contrail/sdk/lib/entities/entity-reference-expander.d.ts +9 -0
  447. package/node_modules/@contrail/sdk/lib/entities/entity-reference-expander.js +86 -0
  448. package/node_modules/@contrail/sdk/lib/entities/entity-reference.d.ts +6 -0
  449. package/node_modules/@contrail/sdk/lib/entities/entity-reference.js +19 -0
  450. package/node_modules/@contrail/sdk/lib/entities/entity.resource.registry.d.ts +5 -0
  451. package/node_modules/@contrail/sdk/lib/entities/entity.resource.registry.js +57 -0
  452. package/node_modules/@contrail/sdk/lib/entities/index.d.ts +3 -0
  453. package/node_modules/@contrail/sdk/lib/entities/index.js +19 -0
  454. package/node_modules/@contrail/sdk/lib/files/file-type-helper.d.ts +3 -0
  455. package/node_modules/@contrail/sdk/lib/files/file-type-helper.js +24 -0
  456. package/node_modules/@contrail/sdk/lib/files/files.d.ts +9 -0
  457. package/node_modules/@contrail/sdk/lib/files/files.js +110 -0
  458. package/node_modules/@contrail/sdk/lib/files/index.d.ts +1 -0
  459. package/node_modules/@contrail/sdk/lib/files/index.js +17 -0
  460. package/node_modules/@contrail/sdk/lib/index.d.ts +10 -0
  461. package/node_modules/@contrail/sdk/lib/index.js +26 -0
  462. package/node_modules/@contrail/sdk/lib/notifications/index.d.ts +1 -0
  463. package/node_modules/@contrail/sdk/lib/notifications/index.js +17 -0
  464. package/node_modules/@contrail/sdk/lib/notifications/notifications-dispatcher.d.ts +16 -0
  465. package/node_modules/@contrail/sdk/lib/notifications/notifications-dispatcher.js +37 -0
  466. package/node_modules/@contrail/sdk/lib/policies/index.d.ts +1 -0
  467. package/node_modules/@contrail/sdk/lib/policies/index.js +17 -0
  468. package/node_modules/@contrail/sdk/lib/policies/policies-cache.d.ts +12 -0
  469. package/node_modules/@contrail/sdk/lib/policies/policies-cache.js +55 -0
  470. package/node_modules/@contrail/sdk/lib/policies/policies.client.d.ts +9 -0
  471. package/node_modules/@contrail/sdk/lib/policies/policies.client.js +74 -0
  472. package/node_modules/@contrail/sdk/lib/types/index.d.ts +2 -0
  473. package/node_modules/@contrail/sdk/lib/types/index.js +18 -0
  474. package/node_modules/@contrail/sdk/lib/types/sub-types-helper.d.ts +18 -0
  475. package/node_modules/@contrail/sdk/lib/types/sub-types-helper.js +98 -0
  476. package/node_modules/@contrail/sdk/lib/types/types-cache.d.ts +19 -0
  477. package/node_modules/@contrail/sdk/lib/types/types-cache.js +73 -0
  478. package/node_modules/@contrail/sdk/lib/types/types.client.d.ts +42 -0
  479. package/node_modules/@contrail/sdk/lib/types/types.client.js +217 -0
  480. package/node_modules/@contrail/sdk/package.json +61 -0
  481. package/node_modules/@contrail/types/README.md +1 -0
  482. package/node_modules/@contrail/types/lib/copy/copy-helper.d.ts +16 -0
  483. package/node_modules/@contrail/types/lib/copy/copy-helper.js +103 -0
  484. package/node_modules/@contrail/types/lib/copy/index.d.ts +1 -0
  485. package/node_modules/@contrail/types/lib/copy/index.js +17 -0
  486. package/node_modules/@contrail/types/lib/formatter/formatDate.d.ts +3 -0
  487. package/node_modules/@contrail/types/lib/formatter/formatDate.js +77 -0
  488. package/node_modules/@contrail/types/lib/formatter/formatDateCache.d.ts +6 -0
  489. package/node_modules/@contrail/types/lib/formatter/formatDateCache.js +19 -0
  490. package/node_modules/@contrail/types/lib/formatter/formatNumber.d.ts +3 -0
  491. package/node_modules/@contrail/types/lib/formatter/formatNumber.js +40 -0
  492. package/node_modules/@contrail/types/lib/formatter/formatNumberCache.d.ts +6 -0
  493. package/node_modules/@contrail/types/lib/formatter/formatNumberCache.js +19 -0
  494. package/node_modules/@contrail/types/lib/formatter/formatSizeRange.d.ts +1 -0
  495. package/node_modules/@contrail/types/lib/formatter/formatSizeRange.js +25 -0
  496. package/node_modules/@contrail/types/lib/formatter/index.d.ts +1 -0
  497. package/node_modules/@contrail/types/lib/formatter/index.js +17 -0
  498. package/node_modules/@contrail/types/lib/formatter/property-value-formatter.d.ts +37 -0
  499. package/node_modules/@contrail/types/lib/formatter/property-value-formatter.js +332 -0
  500. package/node_modules/@contrail/types/lib/index.d.ts +11 -0
  501. package/node_modules/@contrail/types/lib/index.js +27 -0
  502. package/node_modules/@contrail/types/lib/mocks/type-mocks.d.ts +3 -0
  503. package/node_modules/@contrail/types/lib/mocks/type-mocks.js +5466 -0
  504. package/node_modules/@contrail/types/lib/relations/relation.d.ts +6 -0
  505. package/node_modules/@contrail/types/lib/relations/relation.js +2 -0
  506. package/node_modules/@contrail/types/lib/type-interfaces/index.d.ts +1 -0
  507. package/node_modules/@contrail/types/lib/type-interfaces/index.js +17 -0
  508. package/node_modules/@contrail/types/lib/type-interfaces/type-interface.d.ts +4 -0
  509. package/node_modules/@contrail/types/lib/type-interfaces/type-interface.js +2 -0
  510. package/node_modules/@contrail/types/lib/type-option-set-hierarchies/index.d.ts +2 -0
  511. package/node_modules/@contrail/types/lib/type-option-set-hierarchies/index.js +18 -0
  512. package/node_modules/@contrail/types/lib/type-option-set-hierarchies/option-set-hierarchy-helper.d.ts +10 -0
  513. package/node_modules/@contrail/types/lib/type-option-set-hierarchies/option-set-hierarchy-helper.js +37 -0
  514. package/node_modules/@contrail/types/lib/type-option-set-hierarchies/option-set-hierarchy.d.ts +20 -0
  515. package/node_modules/@contrail/types/lib/type-option-set-hierarchies/option-set-hierarchy.js +2 -0
  516. package/node_modules/@contrail/types/lib/type-policies/index.d.ts +1 -0
  517. package/node_modules/@contrail/types/lib/type-policies/index.js +17 -0
  518. package/node_modules/@contrail/types/lib/type-policies/type-policy.d.ts +9 -0
  519. package/node_modules/@contrail/types/lib/type-policies/type-policy.js +2 -0
  520. package/node_modules/@contrail/types/lib/type-properties/index.d.ts +3 -0
  521. package/node_modules/@contrail/types/lib/type-properties/index.js +19 -0
  522. package/node_modules/@contrail/types/lib/type-properties/property-types.d.ts +35 -0
  523. package/node_modules/@contrail/types/lib/type-properties/property-types.js +66 -0
  524. package/node_modules/@contrail/types/lib/type-properties/size-range/size-range.d.ts +12 -0
  525. package/node_modules/@contrail/types/lib/type-properties/size-range/size-range.js +2 -0
  526. package/node_modules/@contrail/types/lib/type-properties/type-property.d.ts +103 -0
  527. package/node_modules/@contrail/types/lib/type-properties/type-property.js +39 -0
  528. package/node_modules/@contrail/types/lib/type-property-policies/index.d.ts +1 -0
  529. package/node_modules/@contrail/types/lib/type-property-policies/index.js +17 -0
  530. package/node_modules/@contrail/types/lib/type-property-policies/type-property-policy.d.ts +9 -0
  531. package/node_modules/@contrail/types/lib/type-property-policies/type-property-policy.js +2 -0
  532. package/node_modules/@contrail/types/lib/type-roots/index.d.ts +1 -0
  533. package/node_modules/@contrail/types/lib/type-roots/index.js +17 -0
  534. package/node_modules/@contrail/types/lib/type-roots/type-root.d.ts +7 -0
  535. package/node_modules/@contrail/types/lib/type-roots/type-root.js +2 -0
  536. package/node_modules/@contrail/types/lib/type-rule-sets/index.d.ts +1 -0
  537. package/node_modules/@contrail/types/lib/type-rule-sets/index.js +17 -0
  538. package/node_modules/@contrail/types/lib/type-rule-sets/type-rules.d.ts +18 -0
  539. package/node_modules/@contrail/types/lib/type-rule-sets/type-rules.js +2 -0
  540. package/node_modules/@contrail/types/lib/types/index.d.ts +1 -0
  541. package/node_modules/@contrail/types/lib/types/index.js +17 -0
  542. package/node_modules/@contrail/types/lib/types/type.d.ts +28 -0
  543. package/node_modules/@contrail/types/lib/types/type.js +2 -0
  544. package/node_modules/@contrail/types/lib/types-processor/index.d.ts +3 -0
  545. package/node_modules/@contrail/types/lib/types-processor/index.js +19 -0
  546. package/node_modules/@contrail/types/lib/types-processor/interfaces.d.ts +32 -0
  547. package/node_modules/@contrail/types/lib/types-processor/interfaces.js +2 -0
  548. package/node_modules/@contrail/types/lib/types-processor/parse-optionSet.d.ts +3 -0
  549. package/node_modules/@contrail/types/lib/types-processor/parse-optionSet.js +57 -0
  550. package/node_modules/@contrail/types/lib/types-processor/process-orchestrator.d.ts +13 -0
  551. package/node_modules/@contrail/types/lib/types-processor/process-orchestrator.js +300 -0
  552. package/node_modules/@contrail/types/lib/types-processor/type-creation-helper.d.ts +10 -0
  553. package/node_modules/@contrail/types/lib/types-processor/type-creation-helper.js +147 -0
  554. package/node_modules/@contrail/types/package.json +46 -0
  555. package/node_modules/@contrail/util/CHANGELOG.md +17 -0
  556. package/node_modules/@contrail/util/README.md +1 -0
  557. package/node_modules/@contrail/util/lib/app-util/app-util.d.ts +25 -0
  558. package/node_modules/@contrail/util/lib/app-util/app-util.js +72 -0
  559. package/node_modules/@contrail/util/lib/compression-util/compression.d.ts +2 -0
  560. package/node_modules/@contrail/util/lib/compression-util/compression.js +25 -0
  561. package/node_modules/@contrail/util/lib/compression-util/index.d.ts +1 -0
  562. package/node_modules/@contrail/util/lib/compression-util/index.js +17 -0
  563. package/node_modules/@contrail/util/lib/date-util/date-util.d.ts +4 -0
  564. package/node_modules/@contrail/util/lib/date-util/date-util.js +8 -0
  565. package/node_modules/@contrail/util/lib/date-util/getIsoDatePart/getIsoDatePart.d.ts +1 -0
  566. package/node_modules/@contrail/util/lib/date-util/getIsoDatePart/getIsoDatePart.js +16 -0
  567. package/node_modules/@contrail/util/lib/index.d.ts +11 -0
  568. package/node_modules/@contrail/util/lib/index.js +27 -0
  569. package/node_modules/@contrail/util/lib/map-util/map-util.d.ts +3 -0
  570. package/node_modules/@contrail/util/lib/map-util/map-util.js +18 -0
  571. package/node_modules/@contrail/util/lib/object-util/applyChangesIfEqual/applyChangesIfEqual.d.ts +4 -0
  572. package/node_modules/@contrail/util/lib/object-util/applyChangesIfEqual/applyChangesIfEqual.js +83 -0
  573. package/node_modules/@contrail/util/lib/object-util/cloneDeep/cloneDeep.d.ts +9 -0
  574. package/node_modules/@contrail/util/lib/object-util/cloneDeep/cloneDeep.js +8 -0
  575. package/node_modules/@contrail/util/lib/object-util/cloneDeepPreserveDates/cloneDeepPreserveDates.d.ts +6 -0
  576. package/node_modules/@contrail/util/lib/object-util/cloneDeepPreserveDates/cloneDeepPreserveDates.js +37 -0
  577. package/node_modules/@contrail/util/lib/object-util/compareDeep/compareDeep.d.ts +7 -0
  578. package/node_modules/@contrail/util/lib/object-util/compareDeep/compareDeep.js +96 -0
  579. package/node_modules/@contrail/util/lib/object-util/compareDeep/mockData.d.ts +88 -0
  580. package/node_modules/@contrail/util/lib/object-util/compareDeep/mockData.js +91 -0
  581. package/node_modules/@contrail/util/lib/object-util/flattenObject/flattenObject.d.ts +4 -0
  582. package/node_modules/@contrail/util/lib/object-util/flattenObject/flattenObject.js +60 -0
  583. package/node_modules/@contrail/util/lib/object-util/isObject/isObject.d.ts +1 -0
  584. package/node_modules/@contrail/util/lib/object-util/isObject/isObject.js +6 -0
  585. package/node_modules/@contrail/util/lib/object-util/mergeDeep/mergeDeep.d.ts +1 -0
  586. package/node_modules/@contrail/util/lib/object-util/mergeDeep/mergeDeep.js +25 -0
  587. package/node_modules/@contrail/util/lib/object-util/object-util.d.ts +26 -0
  588. package/node_modules/@contrail/util/lib/object-util/object-util.js +91 -0
  589. package/node_modules/@contrail/util/lib/object-util/retainOnlyProperties/retainOnlyProperties.d.ts +8 -0
  590. package/node_modules/@contrail/util/lib/object-util/retainOnlyProperties/retainOnlyProperties.js +30 -0
  591. package/node_modules/@contrail/util/lib/order-util/order-util.d.ts +3 -0
  592. package/node_modules/@contrail/util/lib/order-util/order-util.js +13 -0
  593. package/node_modules/@contrail/util/lib/performance-util/example-usage.d.ts +1 -0
  594. package/node_modules/@contrail/util/lib/performance-util/example-usage.js +298 -0
  595. package/node_modules/@contrail/util/lib/performance-util/performance-util.d.ts +35 -0
  596. package/node_modules/@contrail/util/lib/performance-util/performance-util.js +257 -0
  597. package/node_modules/@contrail/util/lib/promise-util/promise-util.d.ts +4 -0
  598. package/node_modules/@contrail/util/lib/promise-util/promise-util.js +34 -0
  599. package/node_modules/@contrail/util/lib/retry-util/retry-util.d.ts +6 -0
  600. package/node_modules/@contrail/util/lib/retry-util/retry-util.js +41 -0
  601. package/node_modules/@contrail/util/lib/string-util/string-util.d.ts +10 -0
  602. package/node_modules/@contrail/util/lib/string-util/string-util.js +85 -0
  603. package/node_modules/@contrail/util/lib/timer-util/timer-util.d.ts +32 -0
  604. package/node_modules/@contrail/util/lib/timer-util/timer-util.js +119 -0
  605. package/node_modules/@contrail/util/package.json +46 -0
  606. package/node_modules/@streamparser/json/.eslintrc.js +16 -0
  607. package/node_modules/@streamparser/json/.github/workflows/on-push.yaml +33 -0
  608. package/node_modules/@streamparser/json/.github/workflows/on-release.yaml +19 -0
  609. package/node_modules/@streamparser/json/LICENSE +21 -0
  610. package/node_modules/@streamparser/json/README.md +329 -0
  611. package/node_modules/@streamparser/json/build.deno.js +57 -0
  612. package/node_modules/@streamparser/json/build.mjs.js +35 -0
  613. package/node_modules/@streamparser/json/dist/cjs/index.d.ts +5 -0
  614. package/node_modules/@streamparser/json/dist/cjs/index.js +12 -0
  615. package/node_modules/@streamparser/json/dist/cjs/jsonparser.d.ts +18 -0
  616. package/node_modules/@streamparser/json/dist/cjs/jsonparser.js +46 -0
  617. package/node_modules/@streamparser/json/dist/cjs/tokenizer.d.ts +45 -0
  618. package/node_modules/@streamparser/json/dist/cjs/tokenizer.js +517 -0
  619. package/node_modules/@streamparser/json/dist/cjs/tokenparser.d.ts +55 -0
  620. package/node_modules/@streamparser/json/dist/cjs/tokenparser.js +269 -0
  621. package/node_modules/@streamparser/json/dist/cjs/utils/bufferedString.d.ts +29 -0
  622. package/node_modules/@streamparser/json/dist/cjs/utils/bufferedString.js +63 -0
  623. package/node_modules/@streamparser/json/dist/cjs/utils/constants.d.ts +14 -0
  624. package/node_modules/@streamparser/json/dist/cjs/utils/constants.js +18 -0
  625. package/node_modules/@streamparser/json/dist/cjs/utils/types.d.ts +7 -0
  626. package/node_modules/@streamparser/json/dist/cjs/utils/types.js +2 -0
  627. package/node_modules/@streamparser/json/dist/cjs/utils/utf-8.d.ts +105 -0
  628. package/node_modules/@streamparser/json/dist/cjs/utils/utf-8.js +116 -0
  629. package/node_modules/@streamparser/json/dist/deno/README.md +329 -0
  630. package/node_modules/@streamparser/json/dist/deno/index.ts +5 -0
  631. package/node_modules/@streamparser/json/dist/deno/jsonparser.ts +65 -0
  632. package/node_modules/@streamparser/json/dist/deno/tokenizer.ts +678 -0
  633. package/node_modules/@streamparser/json/dist/deno/tokenparser.ts +390 -0
  634. package/node_modules/@streamparser/json/dist/deno/utils/bufferedString.ts +75 -0
  635. package/node_modules/@streamparser/json/dist/deno/utils/constants.ts +14 -0
  636. package/node_modules/@streamparser/json/dist/deno/utils/types.ts +5 -0
  637. package/node_modules/@streamparser/json/dist/deno/utils/utf-8.ts +113 -0
  638. package/node_modules/@streamparser/json/dist/mjs/index.d.ts +5 -0
  639. package/node_modules/@streamparser/json/dist/mjs/jsonparser.d.ts +18 -0
  640. package/node_modules/@streamparser/json/dist/mjs/tokenizer.d.ts +45 -0
  641. package/node_modules/@streamparser/json/dist/mjs/tokenparser.d.ts +55 -0
  642. package/node_modules/@streamparser/json/dist/mjs/utils/bufferedString.d.ts +29 -0
  643. package/node_modules/@streamparser/json/dist/mjs/utils/constants.d.ts +14 -0
  644. package/node_modules/@streamparser/json/dist/mjs/utils/types.d.ts +7 -0
  645. package/node_modules/@streamparser/json/dist/mjs/utils/utf-8.d.ts +105 -0
  646. package/node_modules/@streamparser/json/dist/umd/index.d.ts +5 -0
  647. package/node_modules/@streamparser/json/dist/umd/index.js +1111 -0
  648. package/node_modules/@streamparser/json/dist/umd/jsonparser.d.ts +18 -0
  649. package/node_modules/@streamparser/json/dist/umd/tokenizer.d.ts +45 -0
  650. package/node_modules/@streamparser/json/dist/umd/tokenparser.d.ts +55 -0
  651. package/node_modules/@streamparser/json/dist/umd/utils/bufferedString.d.ts +29 -0
  652. package/node_modules/@streamparser/json/dist/umd/utils/constants.d.ts +14 -0
  653. package/node_modules/@streamparser/json/dist/umd/utils/types.d.ts +7 -0
  654. package/node_modules/@streamparser/json/dist/umd/utils/utf-8.d.ts +105 -0
  655. package/node_modules/@streamparser/json/package.json +45 -0
  656. package/node_modules/@streamparser/json/performance/index.deno.ts +61 -0
  657. package/node_modules/@streamparser/json/performance/index.node.mjs +62 -0
  658. package/node_modules/@streamparser/json/performance/package-lock.json +32 -0
  659. package/node_modules/@streamparser/json/performance/package.json +17 -0
  660. package/node_modules/@streamparser/json/rollup.config.js +22 -0
  661. package/node_modules/@streamparser/json/samplejson/basic-no-numbers.json +353 -0
  662. package/node_modules/@streamparser/json/samplejson/basic.json +353 -0
  663. package/node_modules/@streamparser/json/src/index.ts +5 -0
  664. package/node_modules/@streamparser/json/src/jsonparser.ts +65 -0
  665. package/node_modules/@streamparser/json/src/tokenizer.ts +678 -0
  666. package/node_modules/@streamparser/json/src/tokenparser.ts +390 -0
  667. package/node_modules/@streamparser/json/src/utils/bufferedString.ts +75 -0
  668. package/node_modules/@streamparser/json/src/utils/constants.ts +14 -0
  669. package/node_modules/@streamparser/json/src/utils/types.ts +5 -0
  670. package/node_modules/@streamparser/json/src/utils/utf-8.ts +113 -0
  671. package/node_modules/@streamparser/json/test/callbacks.ts +89 -0
  672. package/node_modules/@streamparser/json/test/end.ts +127 -0
  673. package/node_modules/@streamparser/json/test/inputs.ts +89 -0
  674. package/node_modules/@streamparser/json/test/keepStack.ts +45 -0
  675. package/node_modules/@streamparser/json/test/offset.ts +89 -0
  676. package/node_modules/@streamparser/json/test/performance.ts +151 -0
  677. package/node_modules/@streamparser/json/test/selectors.ts +87 -0
  678. package/node_modules/@streamparser/json/test/separator.ts +106 -0
  679. package/node_modules/@streamparser/json/test/types/arrays.ts +108 -0
  680. package/node_modules/@streamparser/json/test/types/booleans.ts +75 -0
  681. package/node_modules/@streamparser/json/test/types/null.ts +67 -0
  682. package/node_modules/@streamparser/json/test/types/numbers.ts +117 -0
  683. package/node_modules/@streamparser/json/test/types/objects.ts +134 -0
  684. package/node_modules/@streamparser/json/test/types/strings.ts +233 -0
  685. package/node_modules/@streamparser/json/tsconfig.json +18 -0
  686. package/node_modules/amazon-cognito-identity-js/.eslintignore +1 -0
  687. package/node_modules/amazon-cognito-identity-js/.eslintrc.yaml +30 -0
  688. package/node_modules/amazon-cognito-identity-js/CHANGELOG.md +1756 -0
  689. package/node_modules/amazon-cognito-identity-js/LICENSE.txt +73 -0
  690. package/node_modules/amazon-cognito-identity-js/NOTICE.txt +63 -0
  691. package/node_modules/amazon-cognito-identity-js/README.md +1121 -0
  692. package/node_modules/amazon-cognito-identity-js/RNAWSCognito.podspec +23 -0
  693. package/node_modules/amazon-cognito-identity-js/__mocks__/mocks.js +73 -0
  694. package/node_modules/amazon-cognito-identity-js/__tests__/AuthenticationDetails.test.js +32 -0
  695. package/node_modules/amazon-cognito-identity-js/__tests__/AuthenticationHelper.test.js +893 -0
  696. package/node_modules/amazon-cognito-identity-js/__tests__/BigInteger.test.js +17 -0
  697. package/node_modules/amazon-cognito-identity-js/__tests__/Client.test.js +108 -0
  698. package/node_modules/amazon-cognito-identity-js/__tests__/CognitoAccessToken.test.js +16 -0
  699. package/node_modules/amazon-cognito-identity-js/__tests__/CognitoIdToken.test.js +8 -0
  700. package/node_modules/amazon-cognito-identity-js/__tests__/CognitoJwtToken.test.js +40 -0
  701. package/node_modules/amazon-cognito-identity-js/__tests__/CognitoRefreshToken.test.js +13 -0
  702. package/node_modules/amazon-cognito-identity-js/__tests__/CognitoUser.test.js +1660 -0
  703. package/node_modules/amazon-cognito-identity-js/__tests__/CognitoUserAttribute.test.js +57 -0
  704. package/node_modules/amazon-cognito-identity-js/__tests__/CognitoUserPool.test.js +92 -0
  705. package/node_modules/amazon-cognito-identity-js/__tests__/CognitoUserSession.test.js +78 -0
  706. package/node_modules/amazon-cognito-identity-js/__tests__/CookieStorage.test.js +72 -0
  707. package/node_modules/amazon-cognito-identity-js/__tests__/DateHelper.test.js +12 -0
  708. package/node_modules/amazon-cognito-identity-js/__tests__/StorageHelper.test.js +65 -0
  709. package/node_modules/amazon-cognito-identity-js/__tests__/StorageHelperRN.test.js +120 -0
  710. package/node_modules/amazon-cognito-identity-js/__tests__/UserAgent.test.js +42 -0
  711. package/node_modules/amazon-cognito-identity-js/__tests__/UserAgentDefault.test.js +9 -0
  712. package/node_modules/amazon-cognito-identity-js/__tests__/constants.js +122 -0
  713. package/node_modules/amazon-cognito-identity-js/__tests__/cryptoSecureRandomInt.test.js +59 -0
  714. package/node_modules/amazon-cognito-identity-js/__tests__/index.test.js +23 -0
  715. package/node_modules/amazon-cognito-identity-js/__tests__/util.js +24 -0
  716. package/node_modules/amazon-cognito-identity-js/android/.gradle/5.4/fileChanges/last-build.bin +0 -0
  717. package/node_modules/amazon-cognito-identity-js/android/.gradle/5.4/fileHashes/fileHashes.lock +0 -0
  718. package/node_modules/amazon-cognito-identity-js/android/.gradle/5.4/gc.properties +0 -0
  719. package/node_modules/amazon-cognito-identity-js/android/.gradle/vcs-1/gc.properties +0 -0
  720. package/node_modules/amazon-cognito-identity-js/android/.project +17 -0
  721. package/node_modules/amazon-cognito-identity-js/android/.settings/org.eclipse.buildship.core.prefs +13 -0
  722. package/node_modules/amazon-cognito-identity-js/android/build.gradle +38 -0
  723. package/node_modules/amazon-cognito-identity-js/android/src/main/AndroidManifest.xml +4 -0
  724. package/node_modules/amazon-cognito-identity-js/android/src/main/java/com/amazonaws/RNAWSCognitoModule.java +88 -0
  725. package/node_modules/amazon-cognito-identity-js/android/src/main/java/com/amazonaws/RNAWSCognitoPackage.java +27 -0
  726. package/node_modules/amazon-cognito-identity-js/dist/amazon-cognito-identity.js +8036 -0
  727. package/node_modules/amazon-cognito-identity-js/dist/amazon-cognito-identity.min.js +40 -0
  728. package/node_modules/amazon-cognito-identity-js/dist/amazon-cognito-identity.min.js.gz +0 -0
  729. package/node_modules/amazon-cognito-identity-js/enhance-rn.js +50 -0
  730. package/node_modules/amazon-cognito-identity-js/es/AuthenticationDetails.js +66 -0
  731. package/node_modules/amazon-cognito-identity-js/es/AuthenticationHelper.js +343 -0
  732. package/node_modules/amazon-cognito-identity-js/es/BigInteger.js +758 -0
  733. package/node_modules/amazon-cognito-identity-js/es/Client.js +215 -0
  734. package/node_modules/amazon-cognito-identity-js/es/CognitoAccessToken.js +24 -0
  735. package/node_modules/amazon-cognito-identity-js/es/CognitoIdToken.js +24 -0
  736. package/node_modules/amazon-cognito-identity-js/es/CognitoJwtToken.js +55 -0
  737. package/node_modules/amazon-cognito-identity-js/es/CognitoRefreshToken.js +27 -0
  738. package/node_modules/amazon-cognito-identity-js/es/CognitoUser.js +1807 -0
  739. package/node_modules/amazon-cognito-identity-js/es/CognitoUserAttribute.js +73 -0
  740. package/node_modules/amazon-cognito-identity-js/es/CognitoUserPool.js +174 -0
  741. package/node_modules/amazon-cognito-identity-js/es/CognitoUserSession.js +79 -0
  742. package/node_modules/amazon-cognito-identity-js/es/CookieStorage.js +112 -0
  743. package/node_modules/amazon-cognito-identity-js/es/DateHelper.js +41 -0
  744. package/node_modules/amazon-cognito-identity-js/es/Platform/index.js +34 -0
  745. package/node_modules/amazon-cognito-identity-js/es/Platform/version.js +2 -0
  746. package/node_modules/amazon-cognito-identity-js/es/StorageHelper-rn.js +102 -0
  747. package/node_modules/amazon-cognito-identity-js/es/StorageHelper.js +78 -0
  748. package/node_modules/amazon-cognito-identity-js/es/UserAgent.js +19 -0
  749. package/node_modules/amazon-cognito-identity-js/es/index.js +18 -0
  750. package/node_modules/amazon-cognito-identity-js/es/utils/WordArray.js +46 -0
  751. package/node_modules/amazon-cognito-identity-js/es/utils/cryptoSecureRandomInt.js +46 -0
  752. package/node_modules/amazon-cognito-identity-js/es/utils/cryptoSecureRandomInt.native.js +9 -0
  753. package/node_modules/amazon-cognito-identity-js/es/utils/cryptoSecureRandomInt.web.js +34 -0
  754. package/node_modules/amazon-cognito-identity-js/es/utils/getRandomBase64.native.js +5 -0
  755. package/node_modules/amazon-cognito-identity-js/es/utils/getRandomValues.native.js +58 -0
  756. package/node_modules/amazon-cognito-identity-js/index.d.ts +426 -0
  757. package/node_modules/amazon-cognito-identity-js/ios/JKBigInteger/JKBigDecimal.h +40 -0
  758. package/node_modules/amazon-cognito-identity-js/ios/JKBigInteger/JKBigDecimal.m +224 -0
  759. package/node_modules/amazon-cognito-identity-js/ios/JKBigInteger/JKBigInteger.h +58 -0
  760. package/node_modules/amazon-cognito-identity-js/ios/JKBigInteger/JKBigInteger.m +419 -0
  761. package/node_modules/amazon-cognito-identity-js/ios/JKBigInteger/LICENSE.txt +18 -0
  762. package/node_modules/amazon-cognito-identity-js/ios/JKBigInteger/LibTomMath/tommath.c +6925 -0
  763. package/node_modules/amazon-cognito-identity-js/ios/JKBigInteger/LibTomMath/tommath.h +584 -0
  764. package/node_modules/amazon-cognito-identity-js/ios/JKBigInteger/LibTomMath/tommath_class.h +999 -0
  765. package/node_modules/amazon-cognito-identity-js/ios/JKBigInteger/LibTomMath/tommath_superclass.h +76 -0
  766. package/node_modules/amazon-cognito-identity-js/ios/RNAWSCognito.h +9 -0
  767. package/node_modules/amazon-cognito-identity-js/ios/RNAWSCognito.m +59 -0
  768. package/node_modules/amazon-cognito-identity-js/ios/RNAWSCognito.xcodeproj/project.pbxproj +295 -0
  769. package/node_modules/amazon-cognito-identity-js/ios/RNAWSCognito.xcodeproj/project.xcworkspace/contents.xcworkspacedata +7 -0
  770. package/node_modules/amazon-cognito-identity-js/jest.config.js +41 -0
  771. package/node_modules/amazon-cognito-identity-js/lib/AuthenticationDetails.js +70 -0
  772. package/node_modules/amazon-cognito-identity-js/lib/AuthenticationHelper.js +348 -0
  773. package/node_modules/amazon-cognito-identity-js/lib/BigInteger.js +760 -0
  774. package/node_modules/amazon-cognito-identity-js/lib/Client.js +220 -0
  775. package/node_modules/amazon-cognito-identity-js/lib/CognitoAccessToken.js +23 -0
  776. package/node_modules/amazon-cognito-identity-js/lib/CognitoIdToken.js +23 -0
  777. package/node_modules/amazon-cognito-identity-js/lib/CognitoJwtToken.js +57 -0
  778. package/node_modules/amazon-cognito-identity-js/lib/CognitoRefreshToken.js +31 -0
  779. package/node_modules/amazon-cognito-identity-js/lib/CognitoUser.js +1813 -0
  780. package/node_modules/amazon-cognito-identity-js/lib/CognitoUserAttribute.js +77 -0
  781. package/node_modules/amazon-cognito-identity-js/lib/CognitoUserPool.js +179 -0
  782. package/node_modules/amazon-cognito-identity-js/lib/CognitoUserSession.js +83 -0
  783. package/node_modules/amazon-cognito-identity-js/lib/CookieStorage.js +117 -0
  784. package/node_modules/amazon-cognito-identity-js/lib/DateHelper.js +45 -0
  785. package/node_modules/amazon-cognito-identity-js/lib/Platform/index.js +42 -0
  786. package/node_modules/amazon-cognito-identity-js/lib/Platform/version.js +7 -0
  787. package/node_modules/amazon-cognito-identity-js/lib/StorageHelper-rn.js +107 -0
  788. package/node_modules/amazon-cognito-identity-js/lib/StorageHelper.js +82 -0
  789. package/node_modules/amazon-cognito-identity-js/lib/UserAgent.js +25 -0
  790. package/node_modules/amazon-cognito-identity-js/lib/index.js +31 -0
  791. package/node_modules/amazon-cognito-identity-js/lib/utils/WordArray.js +50 -0
  792. package/node_modules/amazon-cognito-identity-js/lib/utils/cryptoSecureRandomInt.js +50 -0
  793. package/node_modules/amazon-cognito-identity-js/lib/utils/cryptoSecureRandomInt.native.js +13 -0
  794. package/node_modules/amazon-cognito-identity-js/lib/utils/cryptoSecureRandomInt.web.js +38 -0
  795. package/node_modules/amazon-cognito-identity-js/lib/utils/getRandomBase64.native.js +10 -0
  796. package/node_modules/amazon-cognito-identity-js/lib/utils/getRandomValues.native.js +63 -0
  797. package/node_modules/amazon-cognito-identity-js/package.json +94 -0
  798. package/node_modules/amazon-cognito-identity-js/src/AuthenticationDetails.js +65 -0
  799. package/node_modules/amazon-cognito-identity-js/src/AuthenticationHelper.js +416 -0
  800. package/node_modules/amazon-cognito-identity-js/src/BigInteger.js +809 -0
  801. package/node_modules/amazon-cognito-identity-js/src/Client.js +224 -0
  802. package/node_modules/amazon-cognito-identity-js/src/CognitoAccessToken.js +17 -0
  803. package/node_modules/amazon-cognito-identity-js/src/CognitoIdToken.js +17 -0
  804. package/node_modules/amazon-cognito-identity-js/src/CognitoJwtToken.js +52 -0
  805. package/node_modules/amazon-cognito-identity-js/src/CognitoRefreshToken.js +23 -0
  806. package/node_modules/amazon-cognito-identity-js/src/CognitoUser.js +2205 -0
  807. package/node_modules/amazon-cognito-identity-js/src/CognitoUserAttribute.js +68 -0
  808. package/node_modules/amazon-cognito-identity-js/src/CognitoUserPool.js +194 -0
  809. package/node_modules/amazon-cognito-identity-js/src/CognitoUserSession.js +82 -0
  810. package/node_modules/amazon-cognito-identity-js/src/CookieStorage.js +117 -0
  811. package/node_modules/amazon-cognito-identity-js/src/DateHelper.js +56 -0
  812. package/node_modules/amazon-cognito-identity-js/src/Platform/index.js +38 -0
  813. package/node_modules/amazon-cognito-identity-js/src/Platform/version.js +2 -0
  814. package/node_modules/amazon-cognito-identity-js/src/StorageHelper-rn.js +99 -0
  815. package/node_modules/amazon-cognito-identity-js/src/StorageHelper.js +75 -0
  816. package/node_modules/amazon-cognito-identity-js/src/UserAgent.js +26 -0
  817. package/node_modules/amazon-cognito-identity-js/src/index.js +18 -0
  818. package/node_modules/amazon-cognito-identity-js/src/utils/WordArray.js +50 -0
  819. package/node_modules/amazon-cognito-identity-js/src/utils/cryptoSecureRandomInt.js +49 -0
  820. package/node_modules/amazon-cognito-identity-js/src/utils/cryptoSecureRandomInt.native.js +9 -0
  821. package/node_modules/amazon-cognito-identity-js/src/utils/cryptoSecureRandomInt.web.js +37 -0
  822. package/node_modules/amazon-cognito-identity-js/src/utils/getRandomBase64.native.js +12 -0
  823. package/node_modules/amazon-cognito-identity-js/src/utils/getRandomValues.native.js +61 -0
  824. package/node_modules/amazon-cognito-identity-js/webpack.config.js +58 -0
  825. package/node_modules/asynckit/LICENSE +21 -0
  826. package/node_modules/asynckit/README.md +233 -0
  827. package/node_modules/asynckit/bench.js +76 -0
  828. package/node_modules/asynckit/index.js +6 -0
  829. package/node_modules/asynckit/lib/abort.js +29 -0
  830. package/node_modules/asynckit/lib/async.js +34 -0
  831. package/node_modules/asynckit/lib/defer.js +26 -0
  832. package/node_modules/asynckit/lib/iterate.js +75 -0
  833. package/node_modules/asynckit/lib/readable_asynckit.js +91 -0
  834. package/node_modules/asynckit/lib/readable_parallel.js +25 -0
  835. package/node_modules/asynckit/lib/readable_serial.js +25 -0
  836. package/node_modules/asynckit/lib/readable_serial_ordered.js +29 -0
  837. package/node_modules/asynckit/lib/state.js +37 -0
  838. package/node_modules/asynckit/lib/streamify.js +141 -0
  839. package/node_modules/asynckit/lib/terminator.js +29 -0
  840. package/node_modules/asynckit/package.json +63 -0
  841. package/node_modules/asynckit/parallel.js +43 -0
  842. package/node_modules/asynckit/serial.js +17 -0
  843. package/node_modules/asynckit/serialOrdered.js +75 -0
  844. package/node_modules/asynckit/stream.js +21 -0
  845. package/node_modules/base64-js/LICENSE +21 -0
  846. package/node_modules/base64-js/README.md +34 -0
  847. package/node_modules/base64-js/base64js.min.js +1 -0
  848. package/node_modules/base64-js/index.d.ts +3 -0
  849. package/node_modules/base64-js/index.js +150 -0
  850. package/node_modules/base64-js/package.json +47 -0
  851. package/node_modules/buffer/.travis.yml +8 -0
  852. package/node_modules/buffer/AUTHORS.md +44 -0
  853. package/node_modules/buffer/LICENSE +21 -0
  854. package/node_modules/buffer/README.md +378 -0
  855. package/node_modules/buffer/bin/download-node-tests.js +106 -0
  856. package/node_modules/buffer/bin/test.js +41 -0
  857. package/node_modules/buffer/bin/update-authors.sh +21 -0
  858. package/node_modules/buffer/bin/zuul-es5.yml +14 -0
  859. package/node_modules/buffer/bin/zuul-es6.yml +6 -0
  860. package/node_modules/buffer/index.js +1789 -0
  861. package/node_modules/buffer/package.json +77 -0
  862. package/node_modules/buffer/test/_polyfill.js +150 -0
  863. package/node_modules/buffer/test/base64.js +47 -0
  864. package/node_modules/buffer/test/basic.js +85 -0
  865. package/node_modules/buffer/test/compare.js +59 -0
  866. package/node_modules/buffer/test/constructor.js +193 -0
  867. package/node_modules/buffer/test/from-string.js +132 -0
  868. package/node_modules/buffer/test/is-buffer.js +22 -0
  869. package/node_modules/buffer/test/methods.js +127 -0
  870. package/node_modules/buffer/test/node/test-buffer-alloc.js +1501 -0
  871. package/node_modules/buffer/test/node/test-buffer-arraybuffer.js +112 -0
  872. package/node_modules/buffer/test/node/test-buffer-ascii.js +28 -0
  873. package/node_modules/buffer/test/node/test-buffer-bad-overload.js +18 -0
  874. package/node_modules/buffer/test/node/test-buffer-badhex.js +46 -0
  875. package/node_modules/buffer/test/node/test-buffer-bytelength.js +90 -0
  876. package/node_modules/buffer/test/node/test-buffer-compare-offset.js +66 -0
  877. package/node_modules/buffer/test/node/test-buffer-concat.js +40 -0
  878. package/node_modules/buffer/test/node/test-buffer-fill.js +272 -0
  879. package/node_modules/buffer/test/node/test-buffer-includes.js +305 -0
  880. package/node_modules/buffer/test/node/test-buffer-indexof.js +523 -0
  881. package/node_modules/buffer/test/node/test-buffer-inheritance.js +42 -0
  882. package/node_modules/buffer/test/node/test-buffer-inspect.js +41 -0
  883. package/node_modules/buffer/test/node/test-buffer-iterator.js +65 -0
  884. package/node_modules/buffer/test/node/test-buffer-safe-unsafe.js +27 -0
  885. package/node_modules/buffer/test/node/test-buffer-slow.js +63 -0
  886. package/node_modules/buffer/test/node/test-buffer-swap.js +141 -0
  887. package/node_modules/buffer/test/node/test-buffer-zero-fill-cli.js +35 -0
  888. package/node_modules/buffer/test/node/test-buffer-zero-fill-reset.js +22 -0
  889. package/node_modules/buffer/test/node/test-buffer.js +1534 -0
  890. package/node_modules/buffer/test/slice.js +37 -0
  891. package/node_modules/buffer/test/static.js +17 -0
  892. package/node_modules/buffer/test/to-string.js +233 -0
  893. package/node_modules/buffer/test/write.js +131 -0
  894. package/node_modules/buffer/test/write_infinity.js +45 -0
  895. package/node_modules/call-bind-apply-helpers/.eslintrc +17 -0
  896. package/node_modules/call-bind-apply-helpers/.github/FUNDING.yml +12 -0
  897. package/node_modules/call-bind-apply-helpers/.nycrc +9 -0
  898. package/node_modules/call-bind-apply-helpers/CHANGELOG.md +30 -0
  899. package/node_modules/call-bind-apply-helpers/LICENSE +21 -0
  900. package/node_modules/call-bind-apply-helpers/README.md +62 -0
  901. package/node_modules/call-bind-apply-helpers/actualApply.d.ts +1 -0
  902. package/node_modules/call-bind-apply-helpers/actualApply.js +10 -0
  903. package/node_modules/call-bind-apply-helpers/applyBind.d.ts +19 -0
  904. package/node_modules/call-bind-apply-helpers/applyBind.js +10 -0
  905. package/node_modules/call-bind-apply-helpers/functionApply.d.ts +1 -0
  906. package/node_modules/call-bind-apply-helpers/functionApply.js +4 -0
  907. package/node_modules/call-bind-apply-helpers/functionCall.d.ts +1 -0
  908. package/node_modules/call-bind-apply-helpers/functionCall.js +4 -0
  909. package/node_modules/call-bind-apply-helpers/index.d.ts +64 -0
  910. package/node_modules/call-bind-apply-helpers/index.js +15 -0
  911. package/node_modules/call-bind-apply-helpers/package.json +85 -0
  912. package/node_modules/call-bind-apply-helpers/reflectApply.d.ts +3 -0
  913. package/node_modules/call-bind-apply-helpers/reflectApply.js +4 -0
  914. package/node_modules/call-bind-apply-helpers/test/index.js +63 -0
  915. package/node_modules/call-bind-apply-helpers/tsconfig.json +9 -0
  916. package/node_modules/combined-stream/License +19 -0
  917. package/node_modules/combined-stream/Readme.md +138 -0
  918. package/node_modules/combined-stream/lib/combined_stream.js +208 -0
  919. package/node_modules/combined-stream/package.json +25 -0
  920. package/node_modules/crypto-js/CONTRIBUTING.md +28 -0
  921. package/node_modules/crypto-js/LICENSE +24 -0
  922. package/node_modules/crypto-js/README.md +275 -0
  923. package/node_modules/crypto-js/aes.js +234 -0
  924. package/node_modules/crypto-js/blowfish.js +471 -0
  925. package/node_modules/crypto-js/bower.json +39 -0
  926. package/node_modules/crypto-js/cipher-core.js +895 -0
  927. package/node_modules/crypto-js/core.js +807 -0
  928. package/node_modules/crypto-js/crypto-js.js +6657 -0
  929. package/node_modules/crypto-js/docs/QuickStartGuide.wiki +470 -0
  930. package/node_modules/crypto-js/enc-base64.js +136 -0
  931. package/node_modules/crypto-js/enc-base64url.js +148 -0
  932. package/node_modules/crypto-js/enc-hex.js +18 -0
  933. package/node_modules/crypto-js/enc-latin1.js +18 -0
  934. package/node_modules/crypto-js/enc-utf16.js +149 -0
  935. package/node_modules/crypto-js/enc-utf8.js +18 -0
  936. package/node_modules/crypto-js/evpkdf.js +134 -0
  937. package/node_modules/crypto-js/format-hex.js +66 -0
  938. package/node_modules/crypto-js/format-openssl.js +18 -0
  939. package/node_modules/crypto-js/hmac-md5.js +18 -0
  940. package/node_modules/crypto-js/hmac-ripemd160.js +18 -0
  941. package/node_modules/crypto-js/hmac-sha1.js +18 -0
  942. package/node_modules/crypto-js/hmac-sha224.js +18 -0
  943. package/node_modules/crypto-js/hmac-sha256.js +18 -0
  944. package/node_modules/crypto-js/hmac-sha3.js +18 -0
  945. package/node_modules/crypto-js/hmac-sha384.js +18 -0
  946. package/node_modules/crypto-js/hmac-sha512.js +18 -0
  947. package/node_modules/crypto-js/hmac.js +143 -0
  948. package/node_modules/crypto-js/index.js +18 -0
  949. package/node_modules/crypto-js/lib-typedarrays.js +76 -0
  950. package/node_modules/crypto-js/md5.js +268 -0
  951. package/node_modules/crypto-js/mode-cfb.js +80 -0
  952. package/node_modules/crypto-js/mode-ctr-gladman.js +116 -0
  953. package/node_modules/crypto-js/mode-ctr.js +58 -0
  954. package/node_modules/crypto-js/mode-ecb.js +40 -0
  955. package/node_modules/crypto-js/mode-ofb.js +54 -0
  956. package/node_modules/crypto-js/package.json +42 -0
  957. package/node_modules/crypto-js/pad-ansix923.js +49 -0
  958. package/node_modules/crypto-js/pad-iso10126.js +44 -0
  959. package/node_modules/crypto-js/pad-iso97971.js +40 -0
  960. package/node_modules/crypto-js/pad-nopadding.js +30 -0
  961. package/node_modules/crypto-js/pad-pkcs7.js +18 -0
  962. package/node_modules/crypto-js/pad-zeropadding.js +47 -0
  963. package/node_modules/crypto-js/pbkdf2.js +145 -0
  964. package/node_modules/crypto-js/rabbit-legacy.js +190 -0
  965. package/node_modules/crypto-js/rabbit.js +192 -0
  966. package/node_modules/crypto-js/rc4.js +139 -0
  967. package/node_modules/crypto-js/ripemd160.js +267 -0
  968. package/node_modules/crypto-js/sha1.js +150 -0
  969. package/node_modules/crypto-js/sha224.js +80 -0
  970. package/node_modules/crypto-js/sha256.js +199 -0
  971. package/node_modules/crypto-js/sha3.js +326 -0
  972. package/node_modules/crypto-js/sha384.js +83 -0
  973. package/node_modules/crypto-js/sha512.js +326 -0
  974. package/node_modules/crypto-js/tripledes.js +779 -0
  975. package/node_modules/crypto-js/x64-core.js +304 -0
  976. package/node_modules/delayed-stream/.npmignore +1 -0
  977. package/node_modules/delayed-stream/License +19 -0
  978. package/node_modules/delayed-stream/Makefile +7 -0
  979. package/node_modules/delayed-stream/Readme.md +141 -0
  980. package/node_modules/delayed-stream/lib/delayed_stream.js +107 -0
  981. package/node_modules/delayed-stream/package.json +27 -0
  982. package/node_modules/dunder-proto/.eslintrc +5 -0
  983. package/node_modules/dunder-proto/.github/FUNDING.yml +12 -0
  984. package/node_modules/dunder-proto/.nycrc +13 -0
  985. package/node_modules/dunder-proto/CHANGELOG.md +24 -0
  986. package/node_modules/dunder-proto/LICENSE +21 -0
  987. package/node_modules/dunder-proto/README.md +54 -0
  988. package/node_modules/dunder-proto/get.d.ts +5 -0
  989. package/node_modules/dunder-proto/get.js +30 -0
  990. package/node_modules/dunder-proto/package.json +76 -0
  991. package/node_modules/dunder-proto/set.d.ts +5 -0
  992. package/node_modules/dunder-proto/set.js +35 -0
  993. package/node_modules/dunder-proto/test/get.js +34 -0
  994. package/node_modules/dunder-proto/test/index.js +4 -0
  995. package/node_modules/dunder-proto/test/set.js +50 -0
  996. package/node_modules/dunder-proto/tsconfig.json +9 -0
  997. package/node_modules/es-define-property/.eslintrc +13 -0
  998. package/node_modules/es-define-property/.github/FUNDING.yml +12 -0
  999. package/node_modules/es-define-property/.nycrc +9 -0
  1000. package/node_modules/es-define-property/CHANGELOG.md +29 -0
  1001. package/node_modules/es-define-property/LICENSE +21 -0
  1002. package/node_modules/es-define-property/README.md +49 -0
  1003. package/node_modules/es-define-property/index.d.ts +3 -0
  1004. package/node_modules/es-define-property/index.js +14 -0
  1005. package/node_modules/es-define-property/package.json +81 -0
  1006. package/node_modules/es-define-property/test/index.js +56 -0
  1007. package/node_modules/es-define-property/tsconfig.json +10 -0
  1008. package/node_modules/es-errors/.eslintrc +5 -0
  1009. package/node_modules/es-errors/.github/FUNDING.yml +12 -0
  1010. package/node_modules/es-errors/CHANGELOG.md +40 -0
  1011. package/node_modules/es-errors/LICENSE +21 -0
  1012. package/node_modules/es-errors/README.md +55 -0
  1013. package/node_modules/es-errors/eval.d.ts +3 -0
  1014. package/node_modules/es-errors/eval.js +4 -0
  1015. package/node_modules/es-errors/index.d.ts +3 -0
  1016. package/node_modules/es-errors/index.js +4 -0
  1017. package/node_modules/es-errors/package.json +80 -0
  1018. package/node_modules/es-errors/range.d.ts +3 -0
  1019. package/node_modules/es-errors/range.js +4 -0
  1020. package/node_modules/es-errors/ref.d.ts +3 -0
  1021. package/node_modules/es-errors/ref.js +4 -0
  1022. package/node_modules/es-errors/syntax.d.ts +3 -0
  1023. package/node_modules/es-errors/syntax.js +4 -0
  1024. package/node_modules/es-errors/test/index.js +19 -0
  1025. package/node_modules/es-errors/tsconfig.json +49 -0
  1026. package/node_modules/es-errors/type.d.ts +3 -0
  1027. package/node_modules/es-errors/type.js +4 -0
  1028. package/node_modules/es-errors/uri.d.ts +3 -0
  1029. package/node_modules/es-errors/uri.js +4 -0
  1030. package/node_modules/es-object-atoms/.eslintrc +16 -0
  1031. package/node_modules/es-object-atoms/.github/FUNDING.yml +12 -0
  1032. package/node_modules/es-object-atoms/CHANGELOG.md +37 -0
  1033. package/node_modules/es-object-atoms/LICENSE +21 -0
  1034. package/node_modules/es-object-atoms/README.md +63 -0
  1035. package/node_modules/es-object-atoms/RequireObjectCoercible.d.ts +3 -0
  1036. package/node_modules/es-object-atoms/RequireObjectCoercible.js +11 -0
  1037. package/node_modules/es-object-atoms/ToObject.d.ts +7 -0
  1038. package/node_modules/es-object-atoms/ToObject.js +10 -0
  1039. package/node_modules/es-object-atoms/index.d.ts +3 -0
  1040. package/node_modules/es-object-atoms/index.js +4 -0
  1041. package/node_modules/es-object-atoms/isObject.d.ts +3 -0
  1042. package/node_modules/es-object-atoms/isObject.js +6 -0
  1043. package/node_modules/es-object-atoms/package.json +80 -0
  1044. package/node_modules/es-object-atoms/test/index.js +38 -0
  1045. package/node_modules/es-object-atoms/tsconfig.json +6 -0
  1046. package/node_modules/es-set-tostringtag/.eslintrc +13 -0
  1047. package/node_modules/es-set-tostringtag/.nycrc +9 -0
  1048. package/node_modules/es-set-tostringtag/CHANGELOG.md +67 -0
  1049. package/node_modules/es-set-tostringtag/LICENSE +21 -0
  1050. package/node_modules/es-set-tostringtag/README.md +53 -0
  1051. package/node_modules/es-set-tostringtag/index.d.ts +10 -0
  1052. package/node_modules/es-set-tostringtag/index.js +35 -0
  1053. package/node_modules/es-set-tostringtag/package.json +78 -0
  1054. package/node_modules/es-set-tostringtag/test/index.js +85 -0
  1055. package/node_modules/es-set-tostringtag/tsconfig.json +9 -0
  1056. package/node_modules/es6-promisify/LICENSE +19 -0
  1057. package/node_modules/es6-promisify/README.md +99 -0
  1058. package/node_modules/es6-promisify/dist/promisify.js +76 -0
  1059. package/node_modules/es6-promisify/package.json +41 -0
  1060. package/node_modules/fast-base64-decode/index.d.ts +2 -0
  1061. package/node_modules/fast-base64-decode/index.js +33 -0
  1062. package/node_modules/fast-base64-decode/package.json +21 -0
  1063. package/node_modules/fast-base64-decode/readme.md +21 -0
  1064. package/node_modules/fflate/CHANGELOG.md +115 -0
  1065. package/node_modules/fflate/LICENSE +21 -0
  1066. package/node_modules/fflate/README.md +558 -0
  1067. package/node_modules/fflate/esm/browser.d.ts +1501 -0
  1068. package/node_modules/fflate/esm/browser.js +2665 -0
  1069. package/node_modules/fflate/esm/index.d.mts +1501 -0
  1070. package/node_modules/fflate/esm/index.mjs +2679 -0
  1071. package/node_modules/fflate/lib/browser.cjs +2688 -0
  1072. package/node_modules/fflate/lib/browser.d.cts +1501 -0
  1073. package/node_modules/fflate/lib/index.cjs +2668 -0
  1074. package/node_modules/fflate/lib/index.d.ts +1501 -0
  1075. package/node_modules/fflate/lib/node-worker.cjs +32 -0
  1076. package/node_modules/fflate/lib/node.cjs +2700 -0
  1077. package/node_modules/fflate/lib/node.d.cts +1501 -0
  1078. package/node_modules/fflate/lib/worker.cjs +20 -0
  1079. package/node_modules/fflate/package.json +127 -0
  1080. package/node_modules/fflate/umd/index.js +1 -0
  1081. package/node_modules/form-data/CHANGELOG.md +601 -0
  1082. package/node_modules/form-data/License +19 -0
  1083. package/node_modules/form-data/README.md +355 -0
  1084. package/node_modules/form-data/index.d.ts +62 -0
  1085. package/node_modules/form-data/lib/browser.js +4 -0
  1086. package/node_modules/form-data/lib/form_data.js +494 -0
  1087. package/node_modules/form-data/lib/populate.js +10 -0
  1088. package/node_modules/form-data/package.json +82 -0
  1089. package/node_modules/function-bind/.eslintrc +21 -0
  1090. package/node_modules/function-bind/.github/FUNDING.yml +12 -0
  1091. package/node_modules/function-bind/.github/SECURITY.md +3 -0
  1092. package/node_modules/function-bind/.nycrc +13 -0
  1093. package/node_modules/function-bind/CHANGELOG.md +136 -0
  1094. package/node_modules/function-bind/LICENSE +20 -0
  1095. package/node_modules/function-bind/README.md +46 -0
  1096. package/node_modules/function-bind/implementation.js +84 -0
  1097. package/node_modules/function-bind/index.js +5 -0
  1098. package/node_modules/function-bind/package.json +87 -0
  1099. package/node_modules/function-bind/test/.eslintrc +9 -0
  1100. package/node_modules/function-bind/test/index.js +252 -0
  1101. package/node_modules/get-intrinsic/.eslintrc +42 -0
  1102. package/node_modules/get-intrinsic/.github/FUNDING.yml +12 -0
  1103. package/node_modules/get-intrinsic/.nycrc +9 -0
  1104. package/node_modules/get-intrinsic/CHANGELOG.md +186 -0
  1105. package/node_modules/get-intrinsic/LICENSE +21 -0
  1106. package/node_modules/get-intrinsic/README.md +71 -0
  1107. package/node_modules/get-intrinsic/index.js +378 -0
  1108. package/node_modules/get-intrinsic/package.json +97 -0
  1109. package/node_modules/get-intrinsic/test/GetIntrinsic.js +274 -0
  1110. package/node_modules/get-proto/.eslintrc +10 -0
  1111. package/node_modules/get-proto/.github/FUNDING.yml +12 -0
  1112. package/node_modules/get-proto/.nycrc +9 -0
  1113. package/node_modules/get-proto/CHANGELOG.md +21 -0
  1114. package/node_modules/get-proto/LICENSE +21 -0
  1115. package/node_modules/get-proto/Object.getPrototypeOf.d.ts +5 -0
  1116. package/node_modules/get-proto/Object.getPrototypeOf.js +6 -0
  1117. package/node_modules/get-proto/README.md +50 -0
  1118. package/node_modules/get-proto/Reflect.getPrototypeOf.d.ts +3 -0
  1119. package/node_modules/get-proto/Reflect.getPrototypeOf.js +4 -0
  1120. package/node_modules/get-proto/index.d.ts +5 -0
  1121. package/node_modules/get-proto/index.js +27 -0
  1122. package/node_modules/get-proto/package.json +81 -0
  1123. package/node_modules/get-proto/test/index.js +68 -0
  1124. package/node_modules/get-proto/tsconfig.json +9 -0
  1125. package/node_modules/gopd/.eslintrc +16 -0
  1126. package/node_modules/gopd/.github/FUNDING.yml +12 -0
  1127. package/node_modules/gopd/CHANGELOG.md +45 -0
  1128. package/node_modules/gopd/LICENSE +21 -0
  1129. package/node_modules/gopd/README.md +40 -0
  1130. package/node_modules/gopd/gOPD.d.ts +1 -0
  1131. package/node_modules/gopd/gOPD.js +4 -0
  1132. package/node_modules/gopd/index.d.ts +5 -0
  1133. package/node_modules/gopd/index.js +15 -0
  1134. package/node_modules/gopd/package.json +77 -0
  1135. package/node_modules/gopd/test/index.js +36 -0
  1136. package/node_modules/gopd/tsconfig.json +9 -0
  1137. package/node_modules/has-symbols/.eslintrc +11 -0
  1138. package/node_modules/has-symbols/.github/FUNDING.yml +12 -0
  1139. package/node_modules/has-symbols/.nycrc +9 -0
  1140. package/node_modules/has-symbols/CHANGELOG.md +91 -0
  1141. package/node_modules/has-symbols/LICENSE +21 -0
  1142. package/node_modules/has-symbols/README.md +46 -0
  1143. package/node_modules/has-symbols/index.d.ts +3 -0
  1144. package/node_modules/has-symbols/index.js +14 -0
  1145. package/node_modules/has-symbols/package.json +111 -0
  1146. package/node_modules/has-symbols/shams.d.ts +3 -0
  1147. package/node_modules/has-symbols/shams.js +45 -0
  1148. package/node_modules/has-symbols/test/index.js +22 -0
  1149. package/node_modules/has-symbols/test/shams/core-js.js +29 -0
  1150. package/node_modules/has-symbols/test/shams/get-own-property-symbols.js +29 -0
  1151. package/node_modules/has-symbols/test/tests.js +58 -0
  1152. package/node_modules/has-symbols/tsconfig.json +10 -0
  1153. package/node_modules/has-tostringtag/.eslintrc +5 -0
  1154. package/node_modules/has-tostringtag/.github/FUNDING.yml +12 -0
  1155. package/node_modules/has-tostringtag/.nycrc +13 -0
  1156. package/node_modules/has-tostringtag/CHANGELOG.md +42 -0
  1157. package/node_modules/has-tostringtag/LICENSE +21 -0
  1158. package/node_modules/has-tostringtag/README.md +46 -0
  1159. package/node_modules/has-tostringtag/index.d.ts +3 -0
  1160. package/node_modules/has-tostringtag/index.js +8 -0
  1161. package/node_modules/has-tostringtag/package.json +108 -0
  1162. package/node_modules/has-tostringtag/shams.d.ts +3 -0
  1163. package/node_modules/has-tostringtag/shams.js +8 -0
  1164. package/node_modules/has-tostringtag/test/index.js +21 -0
  1165. package/node_modules/has-tostringtag/test/shams/core-js.js +31 -0
  1166. package/node_modules/has-tostringtag/test/shams/get-own-property-symbols.js +30 -0
  1167. package/node_modules/has-tostringtag/test/tests.js +15 -0
  1168. package/node_modules/has-tostringtag/tsconfig.json +49 -0
  1169. package/node_modules/hasown/.eslintrc +5 -0
  1170. package/node_modules/hasown/.github/FUNDING.yml +12 -0
  1171. package/node_modules/hasown/.nycrc +13 -0
  1172. package/node_modules/hasown/CHANGELOG.md +40 -0
  1173. package/node_modules/hasown/LICENSE +21 -0
  1174. package/node_modules/hasown/README.md +40 -0
  1175. package/node_modules/hasown/index.d.ts +3 -0
  1176. package/node_modules/hasown/index.js +8 -0
  1177. package/node_modules/hasown/package.json +92 -0
  1178. package/node_modules/hasown/tsconfig.json +6 -0
  1179. package/node_modules/ieee754/LICENSE +11 -0
  1180. package/node_modules/ieee754/README.md +53 -0
  1181. package/node_modules/ieee754/index.js +84 -0
  1182. package/node_modules/ieee754/package.json +37 -0
  1183. package/node_modules/isarray/.npmignore +1 -0
  1184. package/node_modules/isarray/.travis.yml +4 -0
  1185. package/node_modules/isarray/Makefile +6 -0
  1186. package/node_modules/isarray/README.md +60 -0
  1187. package/node_modules/isarray/component.json +19 -0
  1188. package/node_modules/isarray/index.js +5 -0
  1189. package/node_modules/isarray/package.json +45 -0
  1190. package/node_modules/isarray/test.js +20 -0
  1191. package/node_modules/isomorphic-unfetch/browser.js +1 -0
  1192. package/node_modules/isomorphic-unfetch/index.d.ts +19 -0
  1193. package/node_modules/isomorphic-unfetch/index.js +6 -0
  1194. package/node_modules/isomorphic-unfetch/package.json +19 -0
  1195. package/node_modules/isomorphic-unfetch/readme.md +53 -0
  1196. package/node_modules/js-cookie/CONTRIBUTING.md +79 -0
  1197. package/node_modules/js-cookie/LICENSE +21 -0
  1198. package/node_modules/js-cookie/README.md +327 -0
  1199. package/node_modules/js-cookie/SERVER_SIDE.md +107 -0
  1200. package/node_modules/js-cookie/package.json +47 -0
  1201. package/node_modules/js-cookie/src/js.cookie.js +163 -0
  1202. package/node_modules/jsurl/.npmignore +2 -0
  1203. package/node_modules/jsurl/.travis.yml +6 -0
  1204. package/node_modules/jsurl/AUTHORS +3 -0
  1205. package/node_modules/jsurl/README.md +76 -0
  1206. package/node_modules/jsurl/bower.json +18 -0
  1207. package/node_modules/jsurl/examples/demo.css +40 -0
  1208. package/node_modules/jsurl/examples/demo.html +52 -0
  1209. package/node_modules/jsurl/examples/simple.js +12 -0
  1210. package/node_modules/jsurl/index.js +1 -0
  1211. package/node_modules/jsurl/lib/jsurl.js +169 -0
  1212. package/node_modules/jsurl/package.json +22 -0
  1213. package/node_modules/jsurl/test/common/jsurlTest.js +83 -0
  1214. package/node_modules/jsurl/test/index.js +25 -0
  1215. package/node_modules/lodash/LICENSE +47 -0
  1216. package/node_modules/lodash/README.md +39 -0
  1217. package/node_modules/lodash/_DataView.js +7 -0
  1218. package/node_modules/lodash/_Hash.js +32 -0
  1219. package/node_modules/lodash/_LazyWrapper.js +28 -0
  1220. package/node_modules/lodash/_ListCache.js +32 -0
  1221. package/node_modules/lodash/_LodashWrapper.js +22 -0
  1222. package/node_modules/lodash/_Map.js +7 -0
  1223. package/node_modules/lodash/_MapCache.js +32 -0
  1224. package/node_modules/lodash/_Promise.js +7 -0
  1225. package/node_modules/lodash/_Set.js +7 -0
  1226. package/node_modules/lodash/_SetCache.js +27 -0
  1227. package/node_modules/lodash/_Stack.js +27 -0
  1228. package/node_modules/lodash/_Symbol.js +6 -0
  1229. package/node_modules/lodash/_Uint8Array.js +6 -0
  1230. package/node_modules/lodash/_WeakMap.js +7 -0
  1231. package/node_modules/lodash/_apply.js +21 -0
  1232. package/node_modules/lodash/_arrayAggregator.js +22 -0
  1233. package/node_modules/lodash/_arrayEach.js +22 -0
  1234. package/node_modules/lodash/_arrayEachRight.js +21 -0
  1235. package/node_modules/lodash/_arrayEvery.js +23 -0
  1236. package/node_modules/lodash/_arrayFilter.js +25 -0
  1237. package/node_modules/lodash/_arrayIncludes.js +17 -0
  1238. package/node_modules/lodash/_arrayIncludesWith.js +22 -0
  1239. package/node_modules/lodash/_arrayLikeKeys.js +49 -0
  1240. package/node_modules/lodash/_arrayMap.js +21 -0
  1241. package/node_modules/lodash/_arrayPush.js +20 -0
  1242. package/node_modules/lodash/_arrayReduce.js +26 -0
  1243. package/node_modules/lodash/_arrayReduceRight.js +24 -0
  1244. package/node_modules/lodash/_arraySample.js +15 -0
  1245. package/node_modules/lodash/_arraySampleSize.js +17 -0
  1246. package/node_modules/lodash/_arrayShuffle.js +15 -0
  1247. package/node_modules/lodash/_arraySome.js +23 -0
  1248. package/node_modules/lodash/_asciiSize.js +12 -0
  1249. package/node_modules/lodash/_asciiToArray.js +12 -0
  1250. package/node_modules/lodash/_asciiWords.js +15 -0
  1251. package/node_modules/lodash/_assignMergeValue.js +20 -0
  1252. package/node_modules/lodash/_assignValue.js +28 -0
  1253. package/node_modules/lodash/_assocIndexOf.js +21 -0
  1254. package/node_modules/lodash/_baseAggregator.js +21 -0
  1255. package/node_modules/lodash/_baseAssign.js +17 -0
  1256. package/node_modules/lodash/_baseAssignIn.js +17 -0
  1257. package/node_modules/lodash/_baseAssignValue.js +25 -0
  1258. package/node_modules/lodash/_baseAt.js +23 -0
  1259. package/node_modules/lodash/_baseClamp.js +22 -0
  1260. package/node_modules/lodash/_baseClone.js +166 -0
  1261. package/node_modules/lodash/_baseConforms.js +18 -0
  1262. package/node_modules/lodash/_baseConformsTo.js +27 -0
  1263. package/node_modules/lodash/_baseCreate.js +30 -0
  1264. package/node_modules/lodash/_baseDelay.js +21 -0
  1265. package/node_modules/lodash/_baseDifference.js +67 -0
  1266. package/node_modules/lodash/_baseEach.js +14 -0
  1267. package/node_modules/lodash/_baseEachRight.js +14 -0
  1268. package/node_modules/lodash/_baseEvery.js +21 -0
  1269. package/node_modules/lodash/_baseExtremum.js +32 -0
  1270. package/node_modules/lodash/_baseFill.js +32 -0
  1271. package/node_modules/lodash/_baseFilter.js +21 -0
  1272. package/node_modules/lodash/_baseFindIndex.js +24 -0
  1273. package/node_modules/lodash/_baseFindKey.js +23 -0
  1274. package/node_modules/lodash/_baseFlatten.js +38 -0
  1275. package/node_modules/lodash/_baseFor.js +16 -0
  1276. package/node_modules/lodash/_baseForOwn.js +16 -0
  1277. package/node_modules/lodash/_baseForOwnRight.js +16 -0
  1278. package/node_modules/lodash/_baseForRight.js +15 -0
  1279. package/node_modules/lodash/_baseFunctions.js +19 -0
  1280. package/node_modules/lodash/_baseGet.js +24 -0
  1281. package/node_modules/lodash/_baseGetAllKeys.js +20 -0
  1282. package/node_modules/lodash/_baseGetTag.js +28 -0
  1283. package/node_modules/lodash/_baseGt.js +14 -0
  1284. package/node_modules/lodash/_baseHas.js +19 -0
  1285. package/node_modules/lodash/_baseHasIn.js +13 -0
  1286. package/node_modules/lodash/_baseInRange.js +18 -0
  1287. package/node_modules/lodash/_baseIndexOf.js +20 -0
  1288. package/node_modules/lodash/_baseIndexOfWith.js +23 -0
  1289. package/node_modules/lodash/_baseIntersection.js +74 -0
  1290. package/node_modules/lodash/_baseInverter.js +21 -0
  1291. package/node_modules/lodash/_baseInvoke.js +24 -0
  1292. package/node_modules/lodash/_baseIsArguments.js +18 -0
  1293. package/node_modules/lodash/_baseIsArrayBuffer.js +17 -0
  1294. package/node_modules/lodash/_baseIsDate.js +18 -0
  1295. package/node_modules/lodash/_baseIsEqual.js +28 -0
  1296. package/node_modules/lodash/_baseIsEqualDeep.js +83 -0
  1297. package/node_modules/lodash/_baseIsMap.js +18 -0
  1298. package/node_modules/lodash/_baseIsMatch.js +62 -0
  1299. package/node_modules/lodash/_baseIsNaN.js +12 -0
  1300. package/node_modules/lodash/_baseIsNative.js +47 -0
  1301. package/node_modules/lodash/_baseIsRegExp.js +18 -0
  1302. package/node_modules/lodash/_baseIsSet.js +18 -0
  1303. package/node_modules/lodash/_baseIsTypedArray.js +60 -0
  1304. package/node_modules/lodash/_baseIteratee.js +31 -0
  1305. package/node_modules/lodash/_baseKeys.js +30 -0
  1306. package/node_modules/lodash/_baseKeysIn.js +33 -0
  1307. package/node_modules/lodash/_baseLodash.js +10 -0
  1308. package/node_modules/lodash/_baseLt.js +14 -0
  1309. package/node_modules/lodash/_baseMap.js +22 -0
  1310. package/node_modules/lodash/_baseMatches.js +22 -0
  1311. package/node_modules/lodash/_baseMatchesProperty.js +33 -0
  1312. package/node_modules/lodash/_baseMean.js +20 -0
  1313. package/node_modules/lodash/_baseMerge.js +42 -0
  1314. package/node_modules/lodash/_baseMergeDeep.js +94 -0
  1315. package/node_modules/lodash/_baseNth.js +20 -0
  1316. package/node_modules/lodash/_baseOrderBy.js +49 -0
  1317. package/node_modules/lodash/_basePick.js +19 -0
  1318. package/node_modules/lodash/_basePickBy.js +30 -0
  1319. package/node_modules/lodash/_baseProperty.js +14 -0
  1320. package/node_modules/lodash/_basePropertyDeep.js +16 -0
  1321. package/node_modules/lodash/_basePropertyOf.js +14 -0
  1322. package/node_modules/lodash/_basePullAll.js +51 -0
  1323. package/node_modules/lodash/_basePullAt.js +37 -0
  1324. package/node_modules/lodash/_baseRandom.js +18 -0
  1325. package/node_modules/lodash/_baseRange.js +28 -0
  1326. package/node_modules/lodash/_baseReduce.js +23 -0
  1327. package/node_modules/lodash/_baseRepeat.js +35 -0
  1328. package/node_modules/lodash/_baseRest.js +17 -0
  1329. package/node_modules/lodash/_baseSample.js +15 -0
  1330. package/node_modules/lodash/_baseSampleSize.js +18 -0
  1331. package/node_modules/lodash/_baseSet.js +51 -0
  1332. package/node_modules/lodash/_baseSetData.js +17 -0
  1333. package/node_modules/lodash/_baseSetToString.js +22 -0
  1334. package/node_modules/lodash/_baseShuffle.js +15 -0
  1335. package/node_modules/lodash/_baseSlice.js +31 -0
  1336. package/node_modules/lodash/_baseSome.js +22 -0
  1337. package/node_modules/lodash/_baseSortBy.js +21 -0
  1338. package/node_modules/lodash/_baseSortedIndex.js +42 -0
  1339. package/node_modules/lodash/_baseSortedIndexBy.js +67 -0
  1340. package/node_modules/lodash/_baseSortedUniq.js +30 -0
  1341. package/node_modules/lodash/_baseSum.js +24 -0
  1342. package/node_modules/lodash/_baseTimes.js +20 -0
  1343. package/node_modules/lodash/_baseToNumber.js +24 -0
  1344. package/node_modules/lodash/_baseToPairs.js +18 -0
  1345. package/node_modules/lodash/_baseToString.js +37 -0
  1346. package/node_modules/lodash/_baseTrim.js +19 -0
  1347. package/node_modules/lodash/_baseUnary.js +14 -0
  1348. package/node_modules/lodash/_baseUniq.js +72 -0
  1349. package/node_modules/lodash/_baseUnset.js +20 -0
  1350. package/node_modules/lodash/_baseUpdate.js +18 -0
  1351. package/node_modules/lodash/_baseValues.js +19 -0
  1352. package/node_modules/lodash/_baseWhile.js +26 -0
  1353. package/node_modules/lodash/_baseWrapperValue.js +25 -0
  1354. package/node_modules/lodash/_baseXor.js +36 -0
  1355. package/node_modules/lodash/_baseZipObject.js +23 -0
  1356. package/node_modules/lodash/_cacheHas.js +13 -0
  1357. package/node_modules/lodash/_castArrayLikeObject.js +14 -0
  1358. package/node_modules/lodash/_castFunction.js +14 -0
  1359. package/node_modules/lodash/_castPath.js +21 -0
  1360. package/node_modules/lodash/_castRest.js +14 -0
  1361. package/node_modules/lodash/_castSlice.js +18 -0
  1362. package/node_modules/lodash/_charsEndIndex.js +19 -0
  1363. package/node_modules/lodash/_charsStartIndex.js +20 -0
  1364. package/node_modules/lodash/_cloneArrayBuffer.js +16 -0
  1365. package/node_modules/lodash/_cloneBuffer.js +35 -0
  1366. package/node_modules/lodash/_cloneDataView.js +16 -0
  1367. package/node_modules/lodash/_cloneRegExp.js +17 -0
  1368. package/node_modules/lodash/_cloneSymbol.js +18 -0
  1369. package/node_modules/lodash/_cloneTypedArray.js +16 -0
  1370. package/node_modules/lodash/_compareAscending.js +41 -0
  1371. package/node_modules/lodash/_compareMultiple.js +44 -0
  1372. package/node_modules/lodash/_composeArgs.js +39 -0
  1373. package/node_modules/lodash/_composeArgsRight.js +41 -0
  1374. package/node_modules/lodash/_copyArray.js +20 -0
  1375. package/node_modules/lodash/_copyObject.js +40 -0
  1376. package/node_modules/lodash/_copySymbols.js +16 -0
  1377. package/node_modules/lodash/_copySymbolsIn.js +16 -0
  1378. package/node_modules/lodash/_coreJsData.js +6 -0
  1379. package/node_modules/lodash/_countHolders.js +21 -0
  1380. package/node_modules/lodash/_createAggregator.js +23 -0
  1381. package/node_modules/lodash/_createAssigner.js +37 -0
  1382. package/node_modules/lodash/_createBaseEach.js +32 -0
  1383. package/node_modules/lodash/_createBaseFor.js +25 -0
  1384. package/node_modules/lodash/_createBind.js +28 -0
  1385. package/node_modules/lodash/_createCaseFirst.js +33 -0
  1386. package/node_modules/lodash/_createCompounder.js +24 -0
  1387. package/node_modules/lodash/_createCtor.js +37 -0
  1388. package/node_modules/lodash/_createCurry.js +46 -0
  1389. package/node_modules/lodash/_createFind.js +25 -0
  1390. package/node_modules/lodash/_createFlow.js +78 -0
  1391. package/node_modules/lodash/_createHybrid.js +92 -0
  1392. package/node_modules/lodash/_createInverter.js +17 -0
  1393. package/node_modules/lodash/_createMathOperation.js +38 -0
  1394. package/node_modules/lodash/_createOver.js +27 -0
  1395. package/node_modules/lodash/_createPadding.js +33 -0
  1396. package/node_modules/lodash/_createPartial.js +43 -0
  1397. package/node_modules/lodash/_createRange.js +30 -0
  1398. package/node_modules/lodash/_createRecurry.js +56 -0
  1399. package/node_modules/lodash/_createRelationalOperation.js +20 -0
  1400. package/node_modules/lodash/_createRound.js +35 -0
  1401. package/node_modules/lodash/_createSet.js +19 -0
  1402. package/node_modules/lodash/_createToPairs.js +30 -0
  1403. package/node_modules/lodash/_createWrap.js +106 -0
  1404. package/node_modules/lodash/_customDefaultsAssignIn.js +29 -0
  1405. package/node_modules/lodash/_customDefaultsMerge.js +28 -0
  1406. package/node_modules/lodash/_customOmitClone.js +16 -0
  1407. package/node_modules/lodash/_deburrLetter.js +71 -0
  1408. package/node_modules/lodash/_defineProperty.js +11 -0
  1409. package/node_modules/lodash/_equalArrays.js +84 -0
  1410. package/node_modules/lodash/_equalByTag.js +112 -0
  1411. package/node_modules/lodash/_equalObjects.js +90 -0
  1412. package/node_modules/lodash/_escapeHtmlChar.js +21 -0
  1413. package/node_modules/lodash/_escapeStringChar.js +22 -0
  1414. package/node_modules/lodash/_flatRest.js +16 -0
  1415. package/node_modules/lodash/_freeGlobal.js +4 -0
  1416. package/node_modules/lodash/_getAllKeys.js +16 -0
  1417. package/node_modules/lodash/_getAllKeysIn.js +17 -0
  1418. package/node_modules/lodash/_getData.js +15 -0
  1419. package/node_modules/lodash/_getFuncName.js +31 -0
  1420. package/node_modules/lodash/_getHolder.js +13 -0
  1421. package/node_modules/lodash/_getMapData.js +18 -0
  1422. package/node_modules/lodash/_getMatchData.js +24 -0
  1423. package/node_modules/lodash/_getNative.js +17 -0
  1424. package/node_modules/lodash/_getPrototype.js +6 -0
  1425. package/node_modules/lodash/_getRawTag.js +46 -0
  1426. package/node_modules/lodash/_getSymbols.js +30 -0
  1427. package/node_modules/lodash/_getSymbolsIn.js +25 -0
  1428. package/node_modules/lodash/_getTag.js +58 -0
  1429. package/node_modules/lodash/_getValue.js +13 -0
  1430. package/node_modules/lodash/_getView.js +33 -0
  1431. package/node_modules/lodash/_getWrapDetails.js +17 -0
  1432. package/node_modules/lodash/_hasPath.js +39 -0
  1433. package/node_modules/lodash/_hasUnicode.js +26 -0
  1434. package/node_modules/lodash/_hasUnicodeWord.js +15 -0
  1435. package/node_modules/lodash/_hashClear.js +15 -0
  1436. package/node_modules/lodash/_hashDelete.js +17 -0
  1437. package/node_modules/lodash/_hashGet.js +30 -0
  1438. package/node_modules/lodash/_hashHas.js +23 -0
  1439. package/node_modules/lodash/_hashSet.js +23 -0
  1440. package/node_modules/lodash/_initCloneArray.js +26 -0
  1441. package/node_modules/lodash/_initCloneByTag.js +77 -0
  1442. package/node_modules/lodash/_initCloneObject.js +18 -0
  1443. package/node_modules/lodash/_insertWrapDetails.js +23 -0
  1444. package/node_modules/lodash/_isFlattenable.js +20 -0
  1445. package/node_modules/lodash/_isIndex.js +25 -0
  1446. package/node_modules/lodash/_isIterateeCall.js +30 -0
  1447. package/node_modules/lodash/_isKey.js +29 -0
  1448. package/node_modules/lodash/_isKeyable.js +15 -0
  1449. package/node_modules/lodash/_isLaziable.js +28 -0
  1450. package/node_modules/lodash/_isMaskable.js +14 -0
  1451. package/node_modules/lodash/_isMasked.js +20 -0
  1452. package/node_modules/lodash/_isPrototype.js +18 -0
  1453. package/node_modules/lodash/_isStrictComparable.js +15 -0
  1454. package/node_modules/lodash/_iteratorToArray.js +18 -0
  1455. package/node_modules/lodash/_lazyClone.js +23 -0
  1456. package/node_modules/lodash/_lazyReverse.js +23 -0
  1457. package/node_modules/lodash/_lazyValue.js +69 -0
  1458. package/node_modules/lodash/_listCacheClear.js +13 -0
  1459. package/node_modules/lodash/_listCacheDelete.js +35 -0
  1460. package/node_modules/lodash/_listCacheGet.js +19 -0
  1461. package/node_modules/lodash/_listCacheHas.js +16 -0
  1462. package/node_modules/lodash/_listCacheSet.js +26 -0
  1463. package/node_modules/lodash/_mapCacheClear.js +21 -0
  1464. package/node_modules/lodash/_mapCacheDelete.js +18 -0
  1465. package/node_modules/lodash/_mapCacheGet.js +16 -0
  1466. package/node_modules/lodash/_mapCacheHas.js +16 -0
  1467. package/node_modules/lodash/_mapCacheSet.js +22 -0
  1468. package/node_modules/lodash/_mapToArray.js +18 -0
  1469. package/node_modules/lodash/_matchesStrictComparable.js +20 -0
  1470. package/node_modules/lodash/_memoizeCapped.js +26 -0
  1471. package/node_modules/lodash/_mergeData.js +90 -0
  1472. package/node_modules/lodash/_metaMap.js +6 -0
  1473. package/node_modules/lodash/_nativeCreate.js +6 -0
  1474. package/node_modules/lodash/_nativeKeys.js +6 -0
  1475. package/node_modules/lodash/_nativeKeysIn.js +20 -0
  1476. package/node_modules/lodash/_nodeUtil.js +30 -0
  1477. package/node_modules/lodash/_objectToString.js +22 -0
  1478. package/node_modules/lodash/_overArg.js +15 -0
  1479. package/node_modules/lodash/_overRest.js +36 -0
  1480. package/node_modules/lodash/_parent.js +16 -0
  1481. package/node_modules/lodash/_reEscape.js +4 -0
  1482. package/node_modules/lodash/_reEvaluate.js +4 -0
  1483. package/node_modules/lodash/_reInterpolate.js +4 -0
  1484. package/node_modules/lodash/_realNames.js +4 -0
  1485. package/node_modules/lodash/_reorder.js +29 -0
  1486. package/node_modules/lodash/_replaceHolders.js +29 -0
  1487. package/node_modules/lodash/_root.js +9 -0
  1488. package/node_modules/lodash/_safeGet.js +21 -0
  1489. package/node_modules/lodash/_setCacheAdd.js +19 -0
  1490. package/node_modules/lodash/_setCacheHas.js +14 -0
  1491. package/node_modules/lodash/_setData.js +20 -0
  1492. package/node_modules/lodash/_setToArray.js +18 -0
  1493. package/node_modules/lodash/_setToPairs.js +18 -0
  1494. package/node_modules/lodash/_setToString.js +14 -0
  1495. package/node_modules/lodash/_setWrapToString.js +21 -0
  1496. package/node_modules/lodash/_shortOut.js +37 -0
  1497. package/node_modules/lodash/_shuffleSelf.js +28 -0
  1498. package/node_modules/lodash/_stackClear.js +15 -0
  1499. package/node_modules/lodash/_stackDelete.js +18 -0
  1500. package/node_modules/lodash/_stackGet.js +14 -0
  1501. package/node_modules/lodash/_stackHas.js +14 -0
  1502. package/node_modules/lodash/_stackSet.js +34 -0
  1503. package/node_modules/lodash/_strictIndexOf.js +23 -0
  1504. package/node_modules/lodash/_strictLastIndexOf.js +21 -0
  1505. package/node_modules/lodash/_stringSize.js +18 -0
  1506. package/node_modules/lodash/_stringToArray.js +18 -0
  1507. package/node_modules/lodash/_stringToPath.js +27 -0
  1508. package/node_modules/lodash/_toKey.js +21 -0
  1509. package/node_modules/lodash/_toSource.js +26 -0
  1510. package/node_modules/lodash/_trimmedEndIndex.js +19 -0
  1511. package/node_modules/lodash/_unescapeHtmlChar.js +21 -0
  1512. package/node_modules/lodash/_unicodeSize.js +44 -0
  1513. package/node_modules/lodash/_unicodeToArray.js +40 -0
  1514. package/node_modules/lodash/_unicodeWords.js +69 -0
  1515. package/node_modules/lodash/_updateWrapDetails.js +46 -0
  1516. package/node_modules/lodash/_wrapperClone.js +23 -0
  1517. package/node_modules/lodash/add.js +22 -0
  1518. package/node_modules/lodash/after.js +42 -0
  1519. package/node_modules/lodash/array.js +67 -0
  1520. package/node_modules/lodash/ary.js +29 -0
  1521. package/node_modules/lodash/assign.js +58 -0
  1522. package/node_modules/lodash/assignIn.js +40 -0
  1523. package/node_modules/lodash/assignInWith.js +38 -0
  1524. package/node_modules/lodash/assignWith.js +37 -0
  1525. package/node_modules/lodash/at.js +23 -0
  1526. package/node_modules/lodash/attempt.js +35 -0
  1527. package/node_modules/lodash/before.js +40 -0
  1528. package/node_modules/lodash/bind.js +57 -0
  1529. package/node_modules/lodash/bindAll.js +41 -0
  1530. package/node_modules/lodash/bindKey.js +68 -0
  1531. package/node_modules/lodash/camelCase.js +29 -0
  1532. package/node_modules/lodash/capitalize.js +23 -0
  1533. package/node_modules/lodash/castArray.js +44 -0
  1534. package/node_modules/lodash/ceil.js +26 -0
  1535. package/node_modules/lodash/chain.js +38 -0
  1536. package/node_modules/lodash/chunk.js +50 -0
  1537. package/node_modules/lodash/clamp.js +39 -0
  1538. package/node_modules/lodash/clone.js +36 -0
  1539. package/node_modules/lodash/cloneDeep.js +29 -0
  1540. package/node_modules/lodash/cloneDeepWith.js +40 -0
  1541. package/node_modules/lodash/cloneWith.js +42 -0
  1542. package/node_modules/lodash/collection.js +30 -0
  1543. package/node_modules/lodash/commit.js +33 -0
  1544. package/node_modules/lodash/compact.js +31 -0
  1545. package/node_modules/lodash/concat.js +43 -0
  1546. package/node_modules/lodash/cond.js +60 -0
  1547. package/node_modules/lodash/conforms.js +35 -0
  1548. package/node_modules/lodash/conformsTo.js +32 -0
  1549. package/node_modules/lodash/constant.js +26 -0
  1550. package/node_modules/lodash/core.js +3877 -0
  1551. package/node_modules/lodash/core.min.js +29 -0
  1552. package/node_modules/lodash/countBy.js +40 -0
  1553. package/node_modules/lodash/create.js +43 -0
  1554. package/node_modules/lodash/curry.js +57 -0
  1555. package/node_modules/lodash/curryRight.js +54 -0
  1556. package/node_modules/lodash/date.js +3 -0
  1557. package/node_modules/lodash/debounce.js +191 -0
  1558. package/node_modules/lodash/deburr.js +45 -0
  1559. package/node_modules/lodash/defaultTo.js +25 -0
  1560. package/node_modules/lodash/defaults.js +64 -0
  1561. package/node_modules/lodash/defaultsDeep.js +30 -0
  1562. package/node_modules/lodash/defer.js +26 -0
  1563. package/node_modules/lodash/delay.js +28 -0
  1564. package/node_modules/lodash/difference.js +33 -0
  1565. package/node_modules/lodash/differenceBy.js +44 -0
  1566. package/node_modules/lodash/differenceWith.js +40 -0
  1567. package/node_modules/lodash/divide.js +22 -0
  1568. package/node_modules/lodash/drop.js +38 -0
  1569. package/node_modules/lodash/dropRight.js +39 -0
  1570. package/node_modules/lodash/dropRightWhile.js +45 -0
  1571. package/node_modules/lodash/dropWhile.js +45 -0
  1572. package/node_modules/lodash/each.js +1 -0
  1573. package/node_modules/lodash/eachRight.js +1 -0
  1574. package/node_modules/lodash/endsWith.js +43 -0
  1575. package/node_modules/lodash/entries.js +1 -0
  1576. package/node_modules/lodash/entriesIn.js +1 -0
  1577. package/node_modules/lodash/eq.js +37 -0
  1578. package/node_modules/lodash/escape.js +43 -0
  1579. package/node_modules/lodash/escapeRegExp.js +32 -0
  1580. package/node_modules/lodash/every.js +56 -0
  1581. package/node_modules/lodash/extend.js +1 -0
  1582. package/node_modules/lodash/extendWith.js +1 -0
  1583. package/node_modules/lodash/fill.js +45 -0
  1584. package/node_modules/lodash/filter.js +52 -0
  1585. package/node_modules/lodash/find.js +42 -0
  1586. package/node_modules/lodash/findIndex.js +55 -0
  1587. package/node_modules/lodash/findKey.js +44 -0
  1588. package/node_modules/lodash/findLast.js +25 -0
  1589. package/node_modules/lodash/findLastIndex.js +59 -0
  1590. package/node_modules/lodash/findLastKey.js +44 -0
  1591. package/node_modules/lodash/first.js +1 -0
  1592. package/node_modules/lodash/flake.lock +40 -0
  1593. package/node_modules/lodash/flake.nix +20 -0
  1594. package/node_modules/lodash/flatMap.js +29 -0
  1595. package/node_modules/lodash/flatMapDeep.js +31 -0
  1596. package/node_modules/lodash/flatMapDepth.js +31 -0
  1597. package/node_modules/lodash/flatten.js +22 -0
  1598. package/node_modules/lodash/flattenDeep.js +25 -0
  1599. package/node_modules/lodash/flattenDepth.js +33 -0
  1600. package/node_modules/lodash/flip.js +28 -0
  1601. package/node_modules/lodash/floor.js +26 -0
  1602. package/node_modules/lodash/flow.js +27 -0
  1603. package/node_modules/lodash/flowRight.js +26 -0
  1604. package/node_modules/lodash/forEach.js +41 -0
  1605. package/node_modules/lodash/forEachRight.js +31 -0
  1606. package/node_modules/lodash/forIn.js +39 -0
  1607. package/node_modules/lodash/forInRight.js +37 -0
  1608. package/node_modules/lodash/forOwn.js +36 -0
  1609. package/node_modules/lodash/forOwnRight.js +34 -0
  1610. package/node_modules/lodash/fp/F.js +1 -0
  1611. package/node_modules/lodash/fp/T.js +1 -0
  1612. package/node_modules/lodash/fp/__.js +1 -0
  1613. package/node_modules/lodash/fp/_baseConvert.js +569 -0
  1614. package/node_modules/lodash/fp/_convertBrowser.js +18 -0
  1615. package/node_modules/lodash/fp/_falseOptions.js +7 -0
  1616. package/node_modules/lodash/fp/_mapping.js +358 -0
  1617. package/node_modules/lodash/fp/_util.js +16 -0
  1618. package/node_modules/lodash/fp/add.js +5 -0
  1619. package/node_modules/lodash/fp/after.js +5 -0
  1620. package/node_modules/lodash/fp/all.js +1 -0
  1621. package/node_modules/lodash/fp/allPass.js +1 -0
  1622. package/node_modules/lodash/fp/always.js +1 -0
  1623. package/node_modules/lodash/fp/any.js +1 -0
  1624. package/node_modules/lodash/fp/anyPass.js +1 -0
  1625. package/node_modules/lodash/fp/apply.js +1 -0
  1626. package/node_modules/lodash/fp/array.js +2 -0
  1627. package/node_modules/lodash/fp/ary.js +5 -0
  1628. package/node_modules/lodash/fp/assign.js +5 -0
  1629. package/node_modules/lodash/fp/assignAll.js +5 -0
  1630. package/node_modules/lodash/fp/assignAllWith.js +5 -0
  1631. package/node_modules/lodash/fp/assignIn.js +5 -0
  1632. package/node_modules/lodash/fp/assignInAll.js +5 -0
  1633. package/node_modules/lodash/fp/assignInAllWith.js +5 -0
  1634. package/node_modules/lodash/fp/assignInWith.js +5 -0
  1635. package/node_modules/lodash/fp/assignWith.js +5 -0
  1636. package/node_modules/lodash/fp/assoc.js +1 -0
  1637. package/node_modules/lodash/fp/assocPath.js +1 -0
  1638. package/node_modules/lodash/fp/at.js +5 -0
  1639. package/node_modules/lodash/fp/attempt.js +5 -0
  1640. package/node_modules/lodash/fp/before.js +5 -0
  1641. package/node_modules/lodash/fp/bind.js +5 -0
  1642. package/node_modules/lodash/fp/bindAll.js +5 -0
  1643. package/node_modules/lodash/fp/bindKey.js +5 -0
  1644. package/node_modules/lodash/fp/camelCase.js +5 -0
  1645. package/node_modules/lodash/fp/capitalize.js +5 -0
  1646. package/node_modules/lodash/fp/castArray.js +5 -0
  1647. package/node_modules/lodash/fp/ceil.js +5 -0
  1648. package/node_modules/lodash/fp/chain.js +5 -0
  1649. package/node_modules/lodash/fp/chunk.js +5 -0
  1650. package/node_modules/lodash/fp/clamp.js +5 -0
  1651. package/node_modules/lodash/fp/clone.js +5 -0
  1652. package/node_modules/lodash/fp/cloneDeep.js +5 -0
  1653. package/node_modules/lodash/fp/cloneDeepWith.js +5 -0
  1654. package/node_modules/lodash/fp/cloneWith.js +5 -0
  1655. package/node_modules/lodash/fp/collection.js +2 -0
  1656. package/node_modules/lodash/fp/commit.js +5 -0
  1657. package/node_modules/lodash/fp/compact.js +5 -0
  1658. package/node_modules/lodash/fp/complement.js +1 -0
  1659. package/node_modules/lodash/fp/compose.js +1 -0
  1660. package/node_modules/lodash/fp/concat.js +5 -0
  1661. package/node_modules/lodash/fp/cond.js +5 -0
  1662. package/node_modules/lodash/fp/conforms.js +1 -0
  1663. package/node_modules/lodash/fp/conformsTo.js +5 -0
  1664. package/node_modules/lodash/fp/constant.js +5 -0
  1665. package/node_modules/lodash/fp/contains.js +1 -0
  1666. package/node_modules/lodash/fp/convert.js +18 -0
  1667. package/node_modules/lodash/fp/countBy.js +5 -0
  1668. package/node_modules/lodash/fp/create.js +5 -0
  1669. package/node_modules/lodash/fp/curry.js +5 -0
  1670. package/node_modules/lodash/fp/curryN.js +5 -0
  1671. package/node_modules/lodash/fp/curryRight.js +5 -0
  1672. package/node_modules/lodash/fp/curryRightN.js +5 -0
  1673. package/node_modules/lodash/fp/date.js +2 -0
  1674. package/node_modules/lodash/fp/debounce.js +5 -0
  1675. package/node_modules/lodash/fp/deburr.js +5 -0
  1676. package/node_modules/lodash/fp/defaultTo.js +5 -0
  1677. package/node_modules/lodash/fp/defaults.js +5 -0
  1678. package/node_modules/lodash/fp/defaultsAll.js +5 -0
  1679. package/node_modules/lodash/fp/defaultsDeep.js +5 -0
  1680. package/node_modules/lodash/fp/defaultsDeepAll.js +5 -0
  1681. package/node_modules/lodash/fp/defer.js +5 -0
  1682. package/node_modules/lodash/fp/delay.js +5 -0
  1683. package/node_modules/lodash/fp/difference.js +5 -0
  1684. package/node_modules/lodash/fp/differenceBy.js +5 -0
  1685. package/node_modules/lodash/fp/differenceWith.js +5 -0
  1686. package/node_modules/lodash/fp/dissoc.js +1 -0
  1687. package/node_modules/lodash/fp/dissocPath.js +1 -0
  1688. package/node_modules/lodash/fp/divide.js +5 -0
  1689. package/node_modules/lodash/fp/drop.js +5 -0
  1690. package/node_modules/lodash/fp/dropLast.js +1 -0
  1691. package/node_modules/lodash/fp/dropLastWhile.js +1 -0
  1692. package/node_modules/lodash/fp/dropRight.js +5 -0
  1693. package/node_modules/lodash/fp/dropRightWhile.js +5 -0
  1694. package/node_modules/lodash/fp/dropWhile.js +5 -0
  1695. package/node_modules/lodash/fp/each.js +1 -0
  1696. package/node_modules/lodash/fp/eachRight.js +1 -0
  1697. package/node_modules/lodash/fp/endsWith.js +5 -0
  1698. package/node_modules/lodash/fp/entries.js +1 -0
  1699. package/node_modules/lodash/fp/entriesIn.js +1 -0
  1700. package/node_modules/lodash/fp/eq.js +5 -0
  1701. package/node_modules/lodash/fp/equals.js +1 -0
  1702. package/node_modules/lodash/fp/escape.js +5 -0
  1703. package/node_modules/lodash/fp/escapeRegExp.js +5 -0
  1704. package/node_modules/lodash/fp/every.js +5 -0
  1705. package/node_modules/lodash/fp/extend.js +1 -0
  1706. package/node_modules/lodash/fp/extendAll.js +1 -0
  1707. package/node_modules/lodash/fp/extendAllWith.js +1 -0
  1708. package/node_modules/lodash/fp/extendWith.js +1 -0
  1709. package/node_modules/lodash/fp/fill.js +5 -0
  1710. package/node_modules/lodash/fp/filter.js +5 -0
  1711. package/node_modules/lodash/fp/find.js +5 -0
  1712. package/node_modules/lodash/fp/findFrom.js +5 -0
  1713. package/node_modules/lodash/fp/findIndex.js +5 -0
  1714. package/node_modules/lodash/fp/findIndexFrom.js +5 -0
  1715. package/node_modules/lodash/fp/findKey.js +5 -0
  1716. package/node_modules/lodash/fp/findLast.js +5 -0
  1717. package/node_modules/lodash/fp/findLastFrom.js +5 -0
  1718. package/node_modules/lodash/fp/findLastIndex.js +5 -0
  1719. package/node_modules/lodash/fp/findLastIndexFrom.js +5 -0
  1720. package/node_modules/lodash/fp/findLastKey.js +5 -0
  1721. package/node_modules/lodash/fp/first.js +1 -0
  1722. package/node_modules/lodash/fp/flatMap.js +5 -0
  1723. package/node_modules/lodash/fp/flatMapDeep.js +5 -0
  1724. package/node_modules/lodash/fp/flatMapDepth.js +5 -0
  1725. package/node_modules/lodash/fp/flatten.js +5 -0
  1726. package/node_modules/lodash/fp/flattenDeep.js +5 -0
  1727. package/node_modules/lodash/fp/flattenDepth.js +5 -0
  1728. package/node_modules/lodash/fp/flip.js +5 -0
  1729. package/node_modules/lodash/fp/floor.js +5 -0
  1730. package/node_modules/lodash/fp/flow.js +5 -0
  1731. package/node_modules/lodash/fp/flowRight.js +5 -0
  1732. package/node_modules/lodash/fp/forEach.js +5 -0
  1733. package/node_modules/lodash/fp/forEachRight.js +5 -0
  1734. package/node_modules/lodash/fp/forIn.js +5 -0
  1735. package/node_modules/lodash/fp/forInRight.js +5 -0
  1736. package/node_modules/lodash/fp/forOwn.js +5 -0
  1737. package/node_modules/lodash/fp/forOwnRight.js +5 -0
  1738. package/node_modules/lodash/fp/fromPairs.js +5 -0
  1739. package/node_modules/lodash/fp/function.js +2 -0
  1740. package/node_modules/lodash/fp/functions.js +5 -0
  1741. package/node_modules/lodash/fp/functionsIn.js +5 -0
  1742. package/node_modules/lodash/fp/get.js +5 -0
  1743. package/node_modules/lodash/fp/getOr.js +5 -0
  1744. package/node_modules/lodash/fp/groupBy.js +5 -0
  1745. package/node_modules/lodash/fp/gt.js +5 -0
  1746. package/node_modules/lodash/fp/gte.js +5 -0
  1747. package/node_modules/lodash/fp/has.js +5 -0
  1748. package/node_modules/lodash/fp/hasIn.js +5 -0
  1749. package/node_modules/lodash/fp/head.js +5 -0
  1750. package/node_modules/lodash/fp/identical.js +1 -0
  1751. package/node_modules/lodash/fp/identity.js +5 -0
  1752. package/node_modules/lodash/fp/inRange.js +5 -0
  1753. package/node_modules/lodash/fp/includes.js +5 -0
  1754. package/node_modules/lodash/fp/includesFrom.js +5 -0
  1755. package/node_modules/lodash/fp/indexBy.js +1 -0
  1756. package/node_modules/lodash/fp/indexOf.js +5 -0
  1757. package/node_modules/lodash/fp/indexOfFrom.js +5 -0
  1758. package/node_modules/lodash/fp/init.js +1 -0
  1759. package/node_modules/lodash/fp/initial.js +5 -0
  1760. package/node_modules/lodash/fp/intersection.js +5 -0
  1761. package/node_modules/lodash/fp/intersectionBy.js +5 -0
  1762. package/node_modules/lodash/fp/intersectionWith.js +5 -0
  1763. package/node_modules/lodash/fp/invert.js +5 -0
  1764. package/node_modules/lodash/fp/invertBy.js +5 -0
  1765. package/node_modules/lodash/fp/invertObj.js +1 -0
  1766. package/node_modules/lodash/fp/invoke.js +5 -0
  1767. package/node_modules/lodash/fp/invokeArgs.js +5 -0
  1768. package/node_modules/lodash/fp/invokeArgsMap.js +5 -0
  1769. package/node_modules/lodash/fp/invokeMap.js +5 -0
  1770. package/node_modules/lodash/fp/isArguments.js +5 -0
  1771. package/node_modules/lodash/fp/isArray.js +5 -0
  1772. package/node_modules/lodash/fp/isArrayBuffer.js +5 -0
  1773. package/node_modules/lodash/fp/isArrayLike.js +5 -0
  1774. package/node_modules/lodash/fp/isArrayLikeObject.js +5 -0
  1775. package/node_modules/lodash/fp/isBoolean.js +5 -0
  1776. package/node_modules/lodash/fp/isBuffer.js +5 -0
  1777. package/node_modules/lodash/fp/isDate.js +5 -0
  1778. package/node_modules/lodash/fp/isElement.js +5 -0
  1779. package/node_modules/lodash/fp/isEmpty.js +5 -0
  1780. package/node_modules/lodash/fp/isEqual.js +5 -0
  1781. package/node_modules/lodash/fp/isEqualWith.js +5 -0
  1782. package/node_modules/lodash/fp/isError.js +5 -0
  1783. package/node_modules/lodash/fp/isFinite.js +5 -0
  1784. package/node_modules/lodash/fp/isFunction.js +5 -0
  1785. package/node_modules/lodash/fp/isInteger.js +5 -0
  1786. package/node_modules/lodash/fp/isLength.js +5 -0
  1787. package/node_modules/lodash/fp/isMap.js +5 -0
  1788. package/node_modules/lodash/fp/isMatch.js +5 -0
  1789. package/node_modules/lodash/fp/isMatchWith.js +5 -0
  1790. package/node_modules/lodash/fp/isNaN.js +5 -0
  1791. package/node_modules/lodash/fp/isNative.js +5 -0
  1792. package/node_modules/lodash/fp/isNil.js +5 -0
  1793. package/node_modules/lodash/fp/isNull.js +5 -0
  1794. package/node_modules/lodash/fp/isNumber.js +5 -0
  1795. package/node_modules/lodash/fp/isObject.js +5 -0
  1796. package/node_modules/lodash/fp/isObjectLike.js +5 -0
  1797. package/node_modules/lodash/fp/isPlainObject.js +5 -0
  1798. package/node_modules/lodash/fp/isRegExp.js +5 -0
  1799. package/node_modules/lodash/fp/isSafeInteger.js +5 -0
  1800. package/node_modules/lodash/fp/isSet.js +5 -0
  1801. package/node_modules/lodash/fp/isString.js +5 -0
  1802. package/node_modules/lodash/fp/isSymbol.js +5 -0
  1803. package/node_modules/lodash/fp/isTypedArray.js +5 -0
  1804. package/node_modules/lodash/fp/isUndefined.js +5 -0
  1805. package/node_modules/lodash/fp/isWeakMap.js +5 -0
  1806. package/node_modules/lodash/fp/isWeakSet.js +5 -0
  1807. package/node_modules/lodash/fp/iteratee.js +5 -0
  1808. package/node_modules/lodash/fp/join.js +5 -0
  1809. package/node_modules/lodash/fp/juxt.js +1 -0
  1810. package/node_modules/lodash/fp/kebabCase.js +5 -0
  1811. package/node_modules/lodash/fp/keyBy.js +5 -0
  1812. package/node_modules/lodash/fp/keys.js +5 -0
  1813. package/node_modules/lodash/fp/keysIn.js +5 -0
  1814. package/node_modules/lodash/fp/lang.js +2 -0
  1815. package/node_modules/lodash/fp/last.js +5 -0
  1816. package/node_modules/lodash/fp/lastIndexOf.js +5 -0
  1817. package/node_modules/lodash/fp/lastIndexOfFrom.js +5 -0
  1818. package/node_modules/lodash/fp/lowerCase.js +5 -0
  1819. package/node_modules/lodash/fp/lowerFirst.js +5 -0
  1820. package/node_modules/lodash/fp/lt.js +5 -0
  1821. package/node_modules/lodash/fp/lte.js +5 -0
  1822. package/node_modules/lodash/fp/map.js +5 -0
  1823. package/node_modules/lodash/fp/mapKeys.js +5 -0
  1824. package/node_modules/lodash/fp/mapValues.js +5 -0
  1825. package/node_modules/lodash/fp/matches.js +1 -0
  1826. package/node_modules/lodash/fp/matchesProperty.js +5 -0
  1827. package/node_modules/lodash/fp/math.js +2 -0
  1828. package/node_modules/lodash/fp/max.js +5 -0
  1829. package/node_modules/lodash/fp/maxBy.js +5 -0
  1830. package/node_modules/lodash/fp/mean.js +5 -0
  1831. package/node_modules/lodash/fp/meanBy.js +5 -0
  1832. package/node_modules/lodash/fp/memoize.js +5 -0
  1833. package/node_modules/lodash/fp/merge.js +5 -0
  1834. package/node_modules/lodash/fp/mergeAll.js +5 -0
  1835. package/node_modules/lodash/fp/mergeAllWith.js +5 -0
  1836. package/node_modules/lodash/fp/mergeWith.js +5 -0
  1837. package/node_modules/lodash/fp/method.js +5 -0
  1838. package/node_modules/lodash/fp/methodOf.js +5 -0
  1839. package/node_modules/lodash/fp/min.js +5 -0
  1840. package/node_modules/lodash/fp/minBy.js +5 -0
  1841. package/node_modules/lodash/fp/mixin.js +5 -0
  1842. package/node_modules/lodash/fp/multiply.js +5 -0
  1843. package/node_modules/lodash/fp/nAry.js +1 -0
  1844. package/node_modules/lodash/fp/negate.js +5 -0
  1845. package/node_modules/lodash/fp/next.js +5 -0
  1846. package/node_modules/lodash/fp/noop.js +5 -0
  1847. package/node_modules/lodash/fp/now.js +5 -0
  1848. package/node_modules/lodash/fp/nth.js +5 -0
  1849. package/node_modules/lodash/fp/nthArg.js +5 -0
  1850. package/node_modules/lodash/fp/number.js +2 -0
  1851. package/node_modules/lodash/fp/object.js +2 -0
  1852. package/node_modules/lodash/fp/omit.js +5 -0
  1853. package/node_modules/lodash/fp/omitAll.js +1 -0
  1854. package/node_modules/lodash/fp/omitBy.js +5 -0
  1855. package/node_modules/lodash/fp/once.js +5 -0
  1856. package/node_modules/lodash/fp/orderBy.js +5 -0
  1857. package/node_modules/lodash/fp/over.js +5 -0
  1858. package/node_modules/lodash/fp/overArgs.js +5 -0
  1859. package/node_modules/lodash/fp/overEvery.js +5 -0
  1860. package/node_modules/lodash/fp/overSome.js +5 -0
  1861. package/node_modules/lodash/fp/pad.js +5 -0
  1862. package/node_modules/lodash/fp/padChars.js +5 -0
  1863. package/node_modules/lodash/fp/padCharsEnd.js +5 -0
  1864. package/node_modules/lodash/fp/padCharsStart.js +5 -0
  1865. package/node_modules/lodash/fp/padEnd.js +5 -0
  1866. package/node_modules/lodash/fp/padStart.js +5 -0
  1867. package/node_modules/lodash/fp/parseInt.js +5 -0
  1868. package/node_modules/lodash/fp/partial.js +5 -0
  1869. package/node_modules/lodash/fp/partialRight.js +5 -0
  1870. package/node_modules/lodash/fp/partition.js +5 -0
  1871. package/node_modules/lodash/fp/path.js +1 -0
  1872. package/node_modules/lodash/fp/pathEq.js +1 -0
  1873. package/node_modules/lodash/fp/pathOr.js +1 -0
  1874. package/node_modules/lodash/fp/paths.js +1 -0
  1875. package/node_modules/lodash/fp/pick.js +5 -0
  1876. package/node_modules/lodash/fp/pickAll.js +1 -0
  1877. package/node_modules/lodash/fp/pickBy.js +5 -0
  1878. package/node_modules/lodash/fp/pipe.js +1 -0
  1879. package/node_modules/lodash/fp/placeholder.js +6 -0
  1880. package/node_modules/lodash/fp/plant.js +5 -0
  1881. package/node_modules/lodash/fp/pluck.js +1 -0
  1882. package/node_modules/lodash/fp/prop.js +1 -0
  1883. package/node_modules/lodash/fp/propEq.js +1 -0
  1884. package/node_modules/lodash/fp/propOr.js +1 -0
  1885. package/node_modules/lodash/fp/property.js +1 -0
  1886. package/node_modules/lodash/fp/propertyOf.js +5 -0
  1887. package/node_modules/lodash/fp/props.js +1 -0
  1888. package/node_modules/lodash/fp/pull.js +5 -0
  1889. package/node_modules/lodash/fp/pullAll.js +5 -0
  1890. package/node_modules/lodash/fp/pullAllBy.js +5 -0
  1891. package/node_modules/lodash/fp/pullAllWith.js +5 -0
  1892. package/node_modules/lodash/fp/pullAt.js +5 -0
  1893. package/node_modules/lodash/fp/random.js +5 -0
  1894. package/node_modules/lodash/fp/range.js +5 -0
  1895. package/node_modules/lodash/fp/rangeRight.js +5 -0
  1896. package/node_modules/lodash/fp/rangeStep.js +5 -0
  1897. package/node_modules/lodash/fp/rangeStepRight.js +5 -0
  1898. package/node_modules/lodash/fp/rearg.js +5 -0
  1899. package/node_modules/lodash/fp/reduce.js +5 -0
  1900. package/node_modules/lodash/fp/reduceRight.js +5 -0
  1901. package/node_modules/lodash/fp/reject.js +5 -0
  1902. package/node_modules/lodash/fp/remove.js +5 -0
  1903. package/node_modules/lodash/fp/repeat.js +5 -0
  1904. package/node_modules/lodash/fp/replace.js +5 -0
  1905. package/node_modules/lodash/fp/rest.js +5 -0
  1906. package/node_modules/lodash/fp/restFrom.js +5 -0
  1907. package/node_modules/lodash/fp/result.js +5 -0
  1908. package/node_modules/lodash/fp/reverse.js +5 -0
  1909. package/node_modules/lodash/fp/round.js +5 -0
  1910. package/node_modules/lodash/fp/sample.js +5 -0
  1911. package/node_modules/lodash/fp/sampleSize.js +5 -0
  1912. package/node_modules/lodash/fp/seq.js +2 -0
  1913. package/node_modules/lodash/fp/set.js +5 -0
  1914. package/node_modules/lodash/fp/setWith.js +5 -0
  1915. package/node_modules/lodash/fp/shuffle.js +5 -0
  1916. package/node_modules/lodash/fp/size.js +5 -0
  1917. package/node_modules/lodash/fp/slice.js +5 -0
  1918. package/node_modules/lodash/fp/snakeCase.js +5 -0
  1919. package/node_modules/lodash/fp/some.js +5 -0
  1920. package/node_modules/lodash/fp/sortBy.js +5 -0
  1921. package/node_modules/lodash/fp/sortedIndex.js +5 -0
  1922. package/node_modules/lodash/fp/sortedIndexBy.js +5 -0
  1923. package/node_modules/lodash/fp/sortedIndexOf.js +5 -0
  1924. package/node_modules/lodash/fp/sortedLastIndex.js +5 -0
  1925. package/node_modules/lodash/fp/sortedLastIndexBy.js +5 -0
  1926. package/node_modules/lodash/fp/sortedLastIndexOf.js +5 -0
  1927. package/node_modules/lodash/fp/sortedUniq.js +5 -0
  1928. package/node_modules/lodash/fp/sortedUniqBy.js +5 -0
  1929. package/node_modules/lodash/fp/split.js +5 -0
  1930. package/node_modules/lodash/fp/spread.js +5 -0
  1931. package/node_modules/lodash/fp/spreadFrom.js +5 -0
  1932. package/node_modules/lodash/fp/startCase.js +5 -0
  1933. package/node_modules/lodash/fp/startsWith.js +5 -0
  1934. package/node_modules/lodash/fp/string.js +2 -0
  1935. package/node_modules/lodash/fp/stubArray.js +5 -0
  1936. package/node_modules/lodash/fp/stubFalse.js +5 -0
  1937. package/node_modules/lodash/fp/stubObject.js +5 -0
  1938. package/node_modules/lodash/fp/stubString.js +5 -0
  1939. package/node_modules/lodash/fp/stubTrue.js +5 -0
  1940. package/node_modules/lodash/fp/subtract.js +5 -0
  1941. package/node_modules/lodash/fp/sum.js +5 -0
  1942. package/node_modules/lodash/fp/sumBy.js +5 -0
  1943. package/node_modules/lodash/fp/symmetricDifference.js +1 -0
  1944. package/node_modules/lodash/fp/symmetricDifferenceBy.js +1 -0
  1945. package/node_modules/lodash/fp/symmetricDifferenceWith.js +1 -0
  1946. package/node_modules/lodash/fp/tail.js +5 -0
  1947. package/node_modules/lodash/fp/take.js +5 -0
  1948. package/node_modules/lodash/fp/takeLast.js +1 -0
  1949. package/node_modules/lodash/fp/takeLastWhile.js +1 -0
  1950. package/node_modules/lodash/fp/takeRight.js +5 -0
  1951. package/node_modules/lodash/fp/takeRightWhile.js +5 -0
  1952. package/node_modules/lodash/fp/takeWhile.js +5 -0
  1953. package/node_modules/lodash/fp/tap.js +5 -0
  1954. package/node_modules/lodash/fp/template.js +5 -0
  1955. package/node_modules/lodash/fp/templateSettings.js +5 -0
  1956. package/node_modules/lodash/fp/throttle.js +5 -0
  1957. package/node_modules/lodash/fp/thru.js +5 -0
  1958. package/node_modules/lodash/fp/times.js +5 -0
  1959. package/node_modules/lodash/fp/toArray.js +5 -0
  1960. package/node_modules/lodash/fp/toFinite.js +5 -0
  1961. package/node_modules/lodash/fp/toInteger.js +5 -0
  1962. package/node_modules/lodash/fp/toIterator.js +5 -0
  1963. package/node_modules/lodash/fp/toJSON.js +5 -0
  1964. package/node_modules/lodash/fp/toLength.js +5 -0
  1965. package/node_modules/lodash/fp/toLower.js +5 -0
  1966. package/node_modules/lodash/fp/toNumber.js +5 -0
  1967. package/node_modules/lodash/fp/toPairs.js +5 -0
  1968. package/node_modules/lodash/fp/toPairsIn.js +5 -0
  1969. package/node_modules/lodash/fp/toPath.js +5 -0
  1970. package/node_modules/lodash/fp/toPlainObject.js +5 -0
  1971. package/node_modules/lodash/fp/toSafeInteger.js +5 -0
  1972. package/node_modules/lodash/fp/toString.js +5 -0
  1973. package/node_modules/lodash/fp/toUpper.js +5 -0
  1974. package/node_modules/lodash/fp/transform.js +5 -0
  1975. package/node_modules/lodash/fp/trim.js +5 -0
  1976. package/node_modules/lodash/fp/trimChars.js +5 -0
  1977. package/node_modules/lodash/fp/trimCharsEnd.js +5 -0
  1978. package/node_modules/lodash/fp/trimCharsStart.js +5 -0
  1979. package/node_modules/lodash/fp/trimEnd.js +5 -0
  1980. package/node_modules/lodash/fp/trimStart.js +5 -0
  1981. package/node_modules/lodash/fp/truncate.js +5 -0
  1982. package/node_modules/lodash/fp/unapply.js +1 -0
  1983. package/node_modules/lodash/fp/unary.js +5 -0
  1984. package/node_modules/lodash/fp/unescape.js +5 -0
  1985. package/node_modules/lodash/fp/union.js +5 -0
  1986. package/node_modules/lodash/fp/unionBy.js +5 -0
  1987. package/node_modules/lodash/fp/unionWith.js +5 -0
  1988. package/node_modules/lodash/fp/uniq.js +5 -0
  1989. package/node_modules/lodash/fp/uniqBy.js +5 -0
  1990. package/node_modules/lodash/fp/uniqWith.js +5 -0
  1991. package/node_modules/lodash/fp/uniqueId.js +5 -0
  1992. package/node_modules/lodash/fp/unnest.js +1 -0
  1993. package/node_modules/lodash/fp/unset.js +5 -0
  1994. package/node_modules/lodash/fp/unzip.js +5 -0
  1995. package/node_modules/lodash/fp/unzipWith.js +5 -0
  1996. package/node_modules/lodash/fp/update.js +5 -0
  1997. package/node_modules/lodash/fp/updateWith.js +5 -0
  1998. package/node_modules/lodash/fp/upperCase.js +5 -0
  1999. package/node_modules/lodash/fp/upperFirst.js +5 -0
  2000. package/node_modules/lodash/fp/useWith.js +1 -0
  2001. package/node_modules/lodash/fp/util.js +2 -0
  2002. package/node_modules/lodash/fp/value.js +5 -0
  2003. package/node_modules/lodash/fp/valueOf.js +5 -0
  2004. package/node_modules/lodash/fp/values.js +5 -0
  2005. package/node_modules/lodash/fp/valuesIn.js +5 -0
  2006. package/node_modules/lodash/fp/where.js +1 -0
  2007. package/node_modules/lodash/fp/whereEq.js +1 -0
  2008. package/node_modules/lodash/fp/without.js +5 -0
  2009. package/node_modules/lodash/fp/words.js +5 -0
  2010. package/node_modules/lodash/fp/wrap.js +5 -0
  2011. package/node_modules/lodash/fp/wrapperAt.js +5 -0
  2012. package/node_modules/lodash/fp/wrapperChain.js +5 -0
  2013. package/node_modules/lodash/fp/wrapperLodash.js +5 -0
  2014. package/node_modules/lodash/fp/wrapperReverse.js +5 -0
  2015. package/node_modules/lodash/fp/wrapperValue.js +5 -0
  2016. package/node_modules/lodash/fp/xor.js +5 -0
  2017. package/node_modules/lodash/fp/xorBy.js +5 -0
  2018. package/node_modules/lodash/fp/xorWith.js +5 -0
  2019. package/node_modules/lodash/fp/zip.js +5 -0
  2020. package/node_modules/lodash/fp/zipAll.js +5 -0
  2021. package/node_modules/lodash/fp/zipObj.js +1 -0
  2022. package/node_modules/lodash/fp/zipObject.js +5 -0
  2023. package/node_modules/lodash/fp/zipObjectDeep.js +5 -0
  2024. package/node_modules/lodash/fp/zipWith.js +5 -0
  2025. package/node_modules/lodash/fp.js +2 -0
  2026. package/node_modules/lodash/fromPairs.js +28 -0
  2027. package/node_modules/lodash/function.js +25 -0
  2028. package/node_modules/lodash/functions.js +31 -0
  2029. package/node_modules/lodash/functionsIn.js +31 -0
  2030. package/node_modules/lodash/get.js +33 -0
  2031. package/node_modules/lodash/groupBy.js +41 -0
  2032. package/node_modules/lodash/gt.js +29 -0
  2033. package/node_modules/lodash/gte.js +30 -0
  2034. package/node_modules/lodash/has.js +35 -0
  2035. package/node_modules/lodash/hasIn.js +34 -0
  2036. package/node_modules/lodash/head.js +23 -0
  2037. package/node_modules/lodash/identity.js +21 -0
  2038. package/node_modules/lodash/inRange.js +55 -0
  2039. package/node_modules/lodash/includes.js +53 -0
  2040. package/node_modules/lodash/index.js +1 -0
  2041. package/node_modules/lodash/indexOf.js +42 -0
  2042. package/node_modules/lodash/initial.js +22 -0
  2043. package/node_modules/lodash/intersection.js +30 -0
  2044. package/node_modules/lodash/intersectionBy.js +45 -0
  2045. package/node_modules/lodash/intersectionWith.js +41 -0
  2046. package/node_modules/lodash/invert.js +42 -0
  2047. package/node_modules/lodash/invertBy.js +56 -0
  2048. package/node_modules/lodash/invoke.js +24 -0
  2049. package/node_modules/lodash/invokeMap.js +41 -0
  2050. package/node_modules/lodash/isArguments.js +36 -0
  2051. package/node_modules/lodash/isArray.js +26 -0
  2052. package/node_modules/lodash/isArrayBuffer.js +27 -0
  2053. package/node_modules/lodash/isArrayLike.js +33 -0
  2054. package/node_modules/lodash/isArrayLikeObject.js +33 -0
  2055. package/node_modules/lodash/isBoolean.js +29 -0
  2056. package/node_modules/lodash/isBuffer.js +38 -0
  2057. package/node_modules/lodash/isDate.js +27 -0
  2058. package/node_modules/lodash/isElement.js +25 -0
  2059. package/node_modules/lodash/isEmpty.js +77 -0
  2060. package/node_modules/lodash/isEqual.js +35 -0
  2061. package/node_modules/lodash/isEqualWith.js +41 -0
  2062. package/node_modules/lodash/isError.js +36 -0
  2063. package/node_modules/lodash/isFinite.js +36 -0
  2064. package/node_modules/lodash/isFunction.js +37 -0
  2065. package/node_modules/lodash/isInteger.js +33 -0
  2066. package/node_modules/lodash/isLength.js +35 -0
  2067. package/node_modules/lodash/isMap.js +27 -0
  2068. package/node_modules/lodash/isMatch.js +36 -0
  2069. package/node_modules/lodash/isMatchWith.js +41 -0
  2070. package/node_modules/lodash/isNaN.js +38 -0
  2071. package/node_modules/lodash/isNative.js +40 -0
  2072. package/node_modules/lodash/isNil.js +25 -0
  2073. package/node_modules/lodash/isNull.js +22 -0
  2074. package/node_modules/lodash/isNumber.js +38 -0
  2075. package/node_modules/lodash/isObject.js +31 -0
  2076. package/node_modules/lodash/isObjectLike.js +29 -0
  2077. package/node_modules/lodash/isPlainObject.js +62 -0
  2078. package/node_modules/lodash/isRegExp.js +27 -0
  2079. package/node_modules/lodash/isSafeInteger.js +37 -0
  2080. package/node_modules/lodash/isSet.js +27 -0
  2081. package/node_modules/lodash/isString.js +30 -0
  2082. package/node_modules/lodash/isSymbol.js +29 -0
  2083. package/node_modules/lodash/isTypedArray.js +27 -0
  2084. package/node_modules/lodash/isUndefined.js +22 -0
  2085. package/node_modules/lodash/isWeakMap.js +28 -0
  2086. package/node_modules/lodash/isWeakSet.js +28 -0
  2087. package/node_modules/lodash/iteratee.js +53 -0
  2088. package/node_modules/lodash/join.js +26 -0
  2089. package/node_modules/lodash/kebabCase.js +28 -0
  2090. package/node_modules/lodash/keyBy.js +36 -0
  2091. package/node_modules/lodash/keys.js +37 -0
  2092. package/node_modules/lodash/keysIn.js +32 -0
  2093. package/node_modules/lodash/lang.js +58 -0
  2094. package/node_modules/lodash/last.js +20 -0
  2095. package/node_modules/lodash/lastIndexOf.js +46 -0
  2096. package/node_modules/lodash/lodash.js +17209 -0
  2097. package/node_modules/lodash/lodash.min.js +140 -0
  2098. package/node_modules/lodash/lowerCase.js +27 -0
  2099. package/node_modules/lodash/lowerFirst.js +22 -0
  2100. package/node_modules/lodash/lt.js +29 -0
  2101. package/node_modules/lodash/lte.js +30 -0
  2102. package/node_modules/lodash/map.js +53 -0
  2103. package/node_modules/lodash/mapKeys.js +36 -0
  2104. package/node_modules/lodash/mapValues.js +43 -0
  2105. package/node_modules/lodash/matches.js +46 -0
  2106. package/node_modules/lodash/matchesProperty.js +44 -0
  2107. package/node_modules/lodash/math.js +17 -0
  2108. package/node_modules/lodash/max.js +29 -0
  2109. package/node_modules/lodash/maxBy.js +34 -0
  2110. package/node_modules/lodash/mean.js +22 -0
  2111. package/node_modules/lodash/meanBy.js +31 -0
  2112. package/node_modules/lodash/memoize.js +73 -0
  2113. package/node_modules/lodash/merge.js +39 -0
  2114. package/node_modules/lodash/mergeWith.js +39 -0
  2115. package/node_modules/lodash/method.js +34 -0
  2116. package/node_modules/lodash/methodOf.js +33 -0
  2117. package/node_modules/lodash/min.js +29 -0
  2118. package/node_modules/lodash/minBy.js +34 -0
  2119. package/node_modules/lodash/mixin.js +74 -0
  2120. package/node_modules/lodash/multiply.js +22 -0
  2121. package/node_modules/lodash/negate.js +40 -0
  2122. package/node_modules/lodash/next.js +35 -0
  2123. package/node_modules/lodash/noop.js +17 -0
  2124. package/node_modules/lodash/now.js +23 -0
  2125. package/node_modules/lodash/nth.js +29 -0
  2126. package/node_modules/lodash/nthArg.js +32 -0
  2127. package/node_modules/lodash/number.js +5 -0
  2128. package/node_modules/lodash/object.js +49 -0
  2129. package/node_modules/lodash/omit.js +57 -0
  2130. package/node_modules/lodash/omitBy.js +29 -0
  2131. package/node_modules/lodash/once.js +25 -0
  2132. package/node_modules/lodash/orderBy.js +47 -0
  2133. package/node_modules/lodash/over.js +24 -0
  2134. package/node_modules/lodash/overArgs.js +61 -0
  2135. package/node_modules/lodash/overEvery.js +34 -0
  2136. package/node_modules/lodash/overSome.js +37 -0
  2137. package/node_modules/lodash/package.json +17 -0
  2138. package/node_modules/lodash/pad.js +49 -0
  2139. package/node_modules/lodash/padEnd.js +39 -0
  2140. package/node_modules/lodash/padStart.js +39 -0
  2141. package/node_modules/lodash/parseInt.js +43 -0
  2142. package/node_modules/lodash/partial.js +50 -0
  2143. package/node_modules/lodash/partialRight.js +49 -0
  2144. package/node_modules/lodash/partition.js +43 -0
  2145. package/node_modules/lodash/pick.js +25 -0
  2146. package/node_modules/lodash/pickBy.js +37 -0
  2147. package/node_modules/lodash/plant.js +48 -0
  2148. package/node_modules/lodash/property.js +32 -0
  2149. package/node_modules/lodash/propertyOf.js +30 -0
  2150. package/node_modules/lodash/pull.js +29 -0
  2151. package/node_modules/lodash/pullAll.js +29 -0
  2152. package/node_modules/lodash/pullAllBy.js +33 -0
  2153. package/node_modules/lodash/pullAllWith.js +32 -0
  2154. package/node_modules/lodash/pullAt.js +43 -0
  2155. package/node_modules/lodash/random.js +82 -0
  2156. package/node_modules/lodash/range.js +46 -0
  2157. package/node_modules/lodash/rangeRight.js +41 -0
  2158. package/node_modules/lodash/rearg.js +33 -0
  2159. package/node_modules/lodash/reduce.js +51 -0
  2160. package/node_modules/lodash/reduceRight.js +36 -0
  2161. package/node_modules/lodash/reject.js +46 -0
  2162. package/node_modules/lodash/release.md +48 -0
  2163. package/node_modules/lodash/remove.js +53 -0
  2164. package/node_modules/lodash/repeat.js +37 -0
  2165. package/node_modules/lodash/replace.js +29 -0
  2166. package/node_modules/lodash/rest.js +40 -0
  2167. package/node_modules/lodash/result.js +56 -0
  2168. package/node_modules/lodash/reverse.js +34 -0
  2169. package/node_modules/lodash/round.js +26 -0
  2170. package/node_modules/lodash/sample.js +24 -0
  2171. package/node_modules/lodash/sampleSize.js +37 -0
  2172. package/node_modules/lodash/seq.js +16 -0
  2173. package/node_modules/lodash/set.js +35 -0
  2174. package/node_modules/lodash/setWith.js +32 -0
  2175. package/node_modules/lodash/shuffle.js +25 -0
  2176. package/node_modules/lodash/size.js +46 -0
  2177. package/node_modules/lodash/slice.js +37 -0
  2178. package/node_modules/lodash/snakeCase.js +28 -0
  2179. package/node_modules/lodash/some.js +51 -0
  2180. package/node_modules/lodash/sortBy.js +48 -0
  2181. package/node_modules/lodash/sortedIndex.js +24 -0
  2182. package/node_modules/lodash/sortedIndexBy.js +33 -0
  2183. package/node_modules/lodash/sortedIndexOf.js +31 -0
  2184. package/node_modules/lodash/sortedLastIndex.js +25 -0
  2185. package/node_modules/lodash/sortedLastIndexBy.js +33 -0
  2186. package/node_modules/lodash/sortedLastIndexOf.js +31 -0
  2187. package/node_modules/lodash/sortedUniq.js +24 -0
  2188. package/node_modules/lodash/sortedUniqBy.js +26 -0
  2189. package/node_modules/lodash/split.js +52 -0
  2190. package/node_modules/lodash/spread.js +63 -0
  2191. package/node_modules/lodash/startCase.js +29 -0
  2192. package/node_modules/lodash/startsWith.js +39 -0
  2193. package/node_modules/lodash/string.js +33 -0
  2194. package/node_modules/lodash/stubArray.js +23 -0
  2195. package/node_modules/lodash/stubFalse.js +18 -0
  2196. package/node_modules/lodash/stubObject.js +23 -0
  2197. package/node_modules/lodash/stubString.js +18 -0
  2198. package/node_modules/lodash/stubTrue.js +18 -0
  2199. package/node_modules/lodash/subtract.js +22 -0
  2200. package/node_modules/lodash/sum.js +24 -0
  2201. package/node_modules/lodash/sumBy.js +33 -0
  2202. package/node_modules/lodash/tail.js +22 -0
  2203. package/node_modules/lodash/take.js +37 -0
  2204. package/node_modules/lodash/takeRight.js +39 -0
  2205. package/node_modules/lodash/takeRightWhile.js +45 -0
  2206. package/node_modules/lodash/takeWhile.js +45 -0
  2207. package/node_modules/lodash/tap.js +29 -0
  2208. package/node_modules/lodash/template.js +272 -0
  2209. package/node_modules/lodash/templateSettings.js +67 -0
  2210. package/node_modules/lodash/throttle.js +69 -0
  2211. package/node_modules/lodash/thru.js +28 -0
  2212. package/node_modules/lodash/times.js +51 -0
  2213. package/node_modules/lodash/toArray.js +58 -0
  2214. package/node_modules/lodash/toFinite.js +42 -0
  2215. package/node_modules/lodash/toInteger.js +36 -0
  2216. package/node_modules/lodash/toIterator.js +23 -0
  2217. package/node_modules/lodash/toJSON.js +1 -0
  2218. package/node_modules/lodash/toLength.js +38 -0
  2219. package/node_modules/lodash/toLower.js +28 -0
  2220. package/node_modules/lodash/toNumber.js +64 -0
  2221. package/node_modules/lodash/toPairs.js +30 -0
  2222. package/node_modules/lodash/toPairsIn.js +30 -0
  2223. package/node_modules/lodash/toPath.js +33 -0
  2224. package/node_modules/lodash/toPlainObject.js +32 -0
  2225. package/node_modules/lodash/toSafeInteger.js +37 -0
  2226. package/node_modules/lodash/toString.js +28 -0
  2227. package/node_modules/lodash/toUpper.js +28 -0
  2228. package/node_modules/lodash/transform.js +65 -0
  2229. package/node_modules/lodash/trim.js +47 -0
  2230. package/node_modules/lodash/trimEnd.js +41 -0
  2231. package/node_modules/lodash/trimStart.js +43 -0
  2232. package/node_modules/lodash/truncate.js +111 -0
  2233. package/node_modules/lodash/unary.js +22 -0
  2234. package/node_modules/lodash/unescape.js +34 -0
  2235. package/node_modules/lodash/union.js +26 -0
  2236. package/node_modules/lodash/unionBy.js +39 -0
  2237. package/node_modules/lodash/unionWith.js +34 -0
  2238. package/node_modules/lodash/uniq.js +25 -0
  2239. package/node_modules/lodash/uniqBy.js +31 -0
  2240. package/node_modules/lodash/uniqWith.js +28 -0
  2241. package/node_modules/lodash/uniqueId.js +28 -0
  2242. package/node_modules/lodash/unset.js +34 -0
  2243. package/node_modules/lodash/unzip.js +45 -0
  2244. package/node_modules/lodash/unzipWith.js +39 -0
  2245. package/node_modules/lodash/update.js +35 -0
  2246. package/node_modules/lodash/updateWith.js +33 -0
  2247. package/node_modules/lodash/upperCase.js +27 -0
  2248. package/node_modules/lodash/upperFirst.js +22 -0
  2249. package/node_modules/lodash/util.js +34 -0
  2250. package/node_modules/lodash/value.js +1 -0
  2251. package/node_modules/lodash/valueOf.js +1 -0
  2252. package/node_modules/lodash/values.js +34 -0
  2253. package/node_modules/lodash/valuesIn.js +32 -0
  2254. package/node_modules/lodash/without.js +31 -0
  2255. package/node_modules/lodash/words.js +35 -0
  2256. package/node_modules/lodash/wrap.js +30 -0
  2257. package/node_modules/lodash/wrapperAt.js +48 -0
  2258. package/node_modules/lodash/wrapperChain.js +34 -0
  2259. package/node_modules/lodash/wrapperLodash.js +147 -0
  2260. package/node_modules/lodash/wrapperReverse.js +44 -0
  2261. package/node_modules/lodash/wrapperValue.js +21 -0
  2262. package/node_modules/lodash/xor.js +28 -0
  2263. package/node_modules/lodash/xorBy.js +39 -0
  2264. package/node_modules/lodash/xorWith.js +34 -0
  2265. package/node_modules/lodash/zip.js +22 -0
  2266. package/node_modules/lodash/zipObject.js +24 -0
  2267. package/node_modules/lodash/zipObjectDeep.js +23 -0
  2268. package/node_modules/lodash/zipWith.js +32 -0
  2269. package/node_modules/lodash.get/LICENSE +47 -0
  2270. package/node_modules/lodash.get/README.md +18 -0
  2271. package/node_modules/lodash.get/index.js +931 -0
  2272. package/node_modules/lodash.get/package.json +17 -0
  2273. package/node_modules/math-intrinsics/.eslintrc +16 -0
  2274. package/node_modules/math-intrinsics/.github/FUNDING.yml +12 -0
  2275. package/node_modules/math-intrinsics/CHANGELOG.md +24 -0
  2276. package/node_modules/math-intrinsics/LICENSE +21 -0
  2277. package/node_modules/math-intrinsics/README.md +50 -0
  2278. package/node_modules/math-intrinsics/abs.d.ts +1 -0
  2279. package/node_modules/math-intrinsics/abs.js +4 -0
  2280. package/node_modules/math-intrinsics/constants/maxArrayLength.d.ts +3 -0
  2281. package/node_modules/math-intrinsics/constants/maxArrayLength.js +4 -0
  2282. package/node_modules/math-intrinsics/constants/maxSafeInteger.d.ts +3 -0
  2283. package/node_modules/math-intrinsics/constants/maxSafeInteger.js +5 -0
  2284. package/node_modules/math-intrinsics/constants/maxValue.d.ts +3 -0
  2285. package/node_modules/math-intrinsics/constants/maxValue.js +5 -0
  2286. package/node_modules/math-intrinsics/floor.d.ts +1 -0
  2287. package/node_modules/math-intrinsics/floor.js +4 -0
  2288. package/node_modules/math-intrinsics/isFinite.d.ts +3 -0
  2289. package/node_modules/math-intrinsics/isFinite.js +12 -0
  2290. package/node_modules/math-intrinsics/isInteger.d.ts +3 -0
  2291. package/node_modules/math-intrinsics/isInteger.js +16 -0
  2292. package/node_modules/math-intrinsics/isNaN.d.ts +1 -0
  2293. package/node_modules/math-intrinsics/isNaN.js +6 -0
  2294. package/node_modules/math-intrinsics/isNegativeZero.d.ts +3 -0
  2295. package/node_modules/math-intrinsics/isNegativeZero.js +6 -0
  2296. package/node_modules/math-intrinsics/max.d.ts +1 -0
  2297. package/node_modules/math-intrinsics/max.js +4 -0
  2298. package/node_modules/math-intrinsics/min.d.ts +1 -0
  2299. package/node_modules/math-intrinsics/min.js +4 -0
  2300. package/node_modules/math-intrinsics/mod.d.ts +3 -0
  2301. package/node_modules/math-intrinsics/mod.js +9 -0
  2302. package/node_modules/math-intrinsics/package.json +86 -0
  2303. package/node_modules/math-intrinsics/pow.d.ts +1 -0
  2304. package/node_modules/math-intrinsics/pow.js +4 -0
  2305. package/node_modules/math-intrinsics/round.d.ts +1 -0
  2306. package/node_modules/math-intrinsics/round.js +4 -0
  2307. package/node_modules/math-intrinsics/sign.d.ts +3 -0
  2308. package/node_modules/math-intrinsics/sign.js +11 -0
  2309. package/node_modules/math-intrinsics/test/index.js +192 -0
  2310. package/node_modules/math-intrinsics/tsconfig.json +3 -0
  2311. package/node_modules/mime-db/HISTORY.md +507 -0
  2312. package/node_modules/mime-db/LICENSE +23 -0
  2313. package/node_modules/mime-db/README.md +100 -0
  2314. package/node_modules/mime-db/db.json +8519 -0
  2315. package/node_modules/mime-db/index.js +12 -0
  2316. package/node_modules/mime-db/package.json +60 -0
  2317. package/node_modules/mime-types/HISTORY.md +397 -0
  2318. package/node_modules/mime-types/LICENSE +23 -0
  2319. package/node_modules/mime-types/README.md +113 -0
  2320. package/node_modules/mime-types/index.js +188 -0
  2321. package/node_modules/mime-types/package.json +44 -0
  2322. package/node_modules/node-fetch/LICENSE.md +22 -0
  2323. package/node_modules/node-fetch/README.md +590 -0
  2324. package/node_modules/node-fetch/browser.js +25 -0
  2325. package/node_modules/node-fetch/lib/index.es.js +1688 -0
  2326. package/node_modules/node-fetch/lib/index.js +1697 -0
  2327. package/node_modules/node-fetch/lib/index.mjs +1686 -0
  2328. package/node_modules/node-fetch/package.json +76 -0
  2329. package/node_modules/p-limit/index.d.ts +42 -0
  2330. package/node_modules/p-limit/index.js +71 -0
  2331. package/node_modules/p-limit/license +9 -0
  2332. package/node_modules/p-limit/package.json +52 -0
  2333. package/node_modules/p-limit/readme.md +101 -0
  2334. package/node_modules/tr46/.npmignore +4 -0
  2335. package/node_modules/tr46/index.js +193 -0
  2336. package/node_modules/tr46/lib/.gitkeep +0 -0
  2337. package/node_modules/tr46/lib/mappingTable.json +1 -0
  2338. package/node_modules/tr46/package.json +31 -0
  2339. package/node_modules/unfetch/LICENSE.md +21 -0
  2340. package/node_modules/unfetch/README.md +247 -0
  2341. package/node_modules/unfetch/dist/unfetch.es.js +2 -0
  2342. package/node_modules/unfetch/dist/unfetch.js +2 -0
  2343. package/node_modules/unfetch/dist/unfetch.js.map +1 -0
  2344. package/node_modules/unfetch/dist/unfetch.module.js +2 -0
  2345. package/node_modules/unfetch/dist/unfetch.module.js.map +1 -0
  2346. package/node_modules/unfetch/dist/unfetch.umd.js +2 -0
  2347. package/node_modules/unfetch/dist/unfetch.umd.js.map +1 -0
  2348. package/node_modules/unfetch/package.json +67 -0
  2349. package/node_modules/unfetch/polyfill/index.js +1 -0
  2350. package/node_modules/unfetch/polyfill/package.json +5 -0
  2351. package/node_modules/unfetch/polyfill/polyfill.mjs +2 -0
  2352. package/node_modules/unfetch/src/index.d.ts +46 -0
  2353. package/node_modules/unfetch/src/index.mjs +47 -0
  2354. package/node_modules/webidl-conversions/LICENSE.md +12 -0
  2355. package/node_modules/webidl-conversions/README.md +53 -0
  2356. package/node_modules/webidl-conversions/lib/index.js +189 -0
  2357. package/node_modules/webidl-conversions/package.json +23 -0
  2358. package/node_modules/whatwg-url/LICENSE.txt +21 -0
  2359. package/node_modules/whatwg-url/README.md +67 -0
  2360. package/node_modules/whatwg-url/lib/URL-impl.js +200 -0
  2361. package/node_modules/whatwg-url/lib/URL.js +196 -0
  2362. package/node_modules/whatwg-url/lib/public-api.js +11 -0
  2363. package/node_modules/whatwg-url/lib/url-state-machine.js +1297 -0
  2364. package/node_modules/whatwg-url/lib/utils.js +20 -0
  2365. package/node_modules/whatwg-url/package.json +32 -0
  2366. package/node_modules/yocto-queue/index.d.ts +56 -0
  2367. package/node_modules/yocto-queue/index.js +68 -0
  2368. package/node_modules/yocto-queue/license +9 -0
  2369. package/node_modules/yocto-queue/package.json +43 -0
  2370. package/node_modules/yocto-queue/readme.md +64 -0
  2371. package/oclif.manifest.json +1 -1
  2372. package/package.json +9 -2
@@ -0,0 +1,1660 @@
1
+ import CognitoUser from '../src/CognitoUser';
2
+
3
+ import CognitoUserPool from '../src/CognitoUserPool';
4
+ import AuthenticationDetails from '../src/AuthenticationDetails';
5
+ import AuthenticationHelper from '../src/AuthenticationHelper';
6
+ import Client from '../src/Client';
7
+ import CognitoIdToken from '../src/CognitoIdToken';
8
+ import CognitoAccessToken from '../src/CognitoAccessToken';
9
+ import CognitoRefreshToken from '../src/CognitoRefreshToken';
10
+
11
+ import {
12
+ callback,
13
+ authHelperMock,
14
+ netRequestMockSuccess,
15
+ } from '../__mocks__/mocks';
16
+
17
+ import {
18
+ clientId,
19
+ userPoolId,
20
+ authDetailData,
21
+ vCognitoUserSession,
22
+ deviceName,
23
+ totpCode,
24
+ ivCognitoUserSession,
25
+ networkError,
26
+ genHashDevices,
27
+ getSalt,
28
+ getVerifiers,
29
+ passwordErr,
30
+ vRefreshToken,
31
+ ivRefreshToken,
32
+ } from './constants';
33
+ import { CognitoUserSession } from 'amazon-cognito-identity-js';
34
+
35
+ const minimalData = { UserPoolId: userPoolId, ClientId: clientId };
36
+ const cognitoUserPool = new CognitoUserPool(minimalData);
37
+ const userDefaults = {
38
+ Username: 'username',
39
+ Pool: cognitoUserPool,
40
+ };
41
+
42
+ describe('CognitoUser constructor', () => {
43
+ test('constructor throws error when bad (or no) data is passed', () => {
44
+ const errorMsg = 'Username and Pool information are required.';
45
+
46
+ // no data at all
47
+ expect(() => {
48
+ new CognitoUser({});
49
+ }).toThrow(errorMsg);
50
+
51
+ // missing Pool
52
+ expect(() => {
53
+ new CognitoUser({
54
+ Username: 'username',
55
+ Pool: null,
56
+ });
57
+ }).toThrow(errorMsg);
58
+
59
+ // missing Username
60
+ expect(() => {
61
+ new CognitoUser({
62
+ Username: null,
63
+ Pool: userPoolId,
64
+ });
65
+ }).toThrow(errorMsg);
66
+ });
67
+
68
+ test('happy case constructor', () => {
69
+ const spyon = jest.spyOn(cognitoUserPool, 'getClientId');
70
+
71
+ expect(() => {
72
+ new CognitoUser({ ...userDefaults });
73
+ }).not.toThrowError();
74
+
75
+ expect(spyon).toBeCalled();
76
+ });
77
+ });
78
+
79
+ describe('getters and setters', () => {
80
+ const user = new CognitoUser({ ...userDefaults });
81
+ const refreshTokenKey =
82
+ 'CognitoIdentityServiceProvider.3pu8tnp684l4lmlfoth25ojmd2.username.refreshToken';
83
+
84
+ describe('setSignInUserSession()', () => {
85
+ const cacheSpy = jest.spyOn(CognitoUser.prototype, 'clearCachedUserData');
86
+ const cacheTokenSpy = jest.spyOn(CognitoUser.prototype, 'cacheTokens');
87
+
88
+ test('happy path should have an empty cache, after user session is set, cache tokens', () => {
89
+ // precondition
90
+ expect(user.getSignInUserSession()).toEqual(null);
91
+ expect(user.storage.getItem('')).toEqual(null);
92
+
93
+ user.setSignInUserSession(vCognitoUserSession);
94
+ expect(cacheSpy).toBeCalled();
95
+ expect(cacheTokenSpy).toBeCalled();
96
+
97
+ // post-condition
98
+ expect(user.getSignInUserSession()).toEqual(vCognitoUserSession);
99
+ expect(user.storage.getItem(refreshTokenKey)).toEqual(
100
+ vRefreshToken.token
101
+ );
102
+ });
103
+
104
+ test('checking that tokens are cleared properly', () => {
105
+ // precondition
106
+ expect(user.getSignInUserSession()).toEqual(vCognitoUserSession);
107
+ user.setSignInUserSession(ivCognitoUserSession);
108
+ expect(cacheSpy).toBeCalled();
109
+ expect(cacheTokenSpy).toBeCalled();
110
+
111
+ // post-condition
112
+ expect(user.getSignInUserSession()).toEqual(ivCognitoUserSession);
113
+ expect(user.storage.getItem(refreshTokenKey)).toEqual(
114
+ ivRefreshToken.token
115
+ );
116
+ });
117
+ });
118
+
119
+ test('getUsername()', () => {
120
+ expect(user.getUsername()).toEqual(user.username);
121
+ });
122
+
123
+ test('get and set authenticationFlowType', () => {
124
+ // initial state
125
+ expect(user.getAuthenticationFlowType()).toEqual('USER_SRP_AUTH');
126
+
127
+ // setting explicitly
128
+ user.setAuthenticationFlowType('TEST_FLOW_TYPE');
129
+
130
+ // getter after set explicitly
131
+ expect(user.getAuthenticationFlowType()).toEqual('TEST_FLOW_TYPE');
132
+ });
133
+ });
134
+
135
+ describe('initiateAuth()', () => {
136
+ let user;
137
+ beforeEach(() => {
138
+ user = new CognitoUser({ ...userDefaults });
139
+ });
140
+
141
+ afterAll(() => {
142
+ jest.restoreAllMocks();
143
+ });
144
+
145
+ afterEach(() => {
146
+ callback.onFailure.mockClear();
147
+ callback.onSuccess.mockClear();
148
+ callback.customChallenge.mockClear();
149
+ });
150
+
151
+ test('Client request called once and throws an error', async () => {
152
+ netRequestMockSuccess(false);
153
+
154
+ const authDetails = new AuthenticationDetails(authDetailData);
155
+ user.initiateAuth(authDetails, callback);
156
+ expect(callback.onFailure.mock.calls.length).toBe(1);
157
+ });
158
+
159
+ test('Client request called once with challenge name and params', async () => {
160
+ netRequestMockSuccess(true, {
161
+ ChallengeName: 'CUSTOM_CHALLENGE',
162
+ Session: vCognitoUserSession,
163
+ ChallengeParameters: 'Custom challenge params',
164
+ });
165
+
166
+ const authDetails = new AuthenticationDetails(authDetailData);
167
+ user.initiateAuth(authDetails, callback);
168
+
169
+ expect(user.Session).toMatchObject(vCognitoUserSession);
170
+ expect(callback.customChallenge.mock.calls.length).toBe(1);
171
+ expect(callback.customChallenge).toBeCalledWith('Custom challenge params');
172
+ });
173
+
174
+ test('Client request sets signInUserSession and is successful', async () => {
175
+ netRequestMockSuccess(true, { AuthenticationResult: 'great success' });
176
+
177
+ const getCognitoUserSessionSpy = jest.spyOn(user, 'getCognitoUserSession');
178
+ const cacheTokensSpy = jest.spyOn(user, 'cacheTokens');
179
+
180
+ const authDetails = new AuthenticationDetails(authDetailData);
181
+ user.initiateAuth(authDetails, callback);
182
+
183
+ expect(getCognitoUserSessionSpy).toBeCalledWith('great success');
184
+ expect(cacheTokensSpy).toBeCalled();
185
+ expect(callback.onSuccess.mock.calls.length).toBe(1);
186
+ });
187
+ });
188
+
189
+ describe('authenticateUser()', () => {
190
+ afterAll(() => {
191
+ jest.restoreAllMocks();
192
+ });
193
+
194
+ const user = new CognitoUser({ ...userDefaults });
195
+ const authDetails = new AuthenticationDetails(authDetailData);
196
+
197
+ test('USER_PASSWORD_AUTH flow type', () => {
198
+ const spyon = jest.spyOn(user, 'authenticateUserPlainUsernamePassword');
199
+
200
+ user.setAuthenticationFlowType('USER_PASSWORD_AUTH');
201
+ user.authenticateUser(authDetails, callback);
202
+
203
+ expect(spyon).toHaveBeenCalledWith(authDetails, callback);
204
+ });
205
+
206
+ test('USER_SRP_AUTH and CUSTOM_AUTH flow types', () => {
207
+ const spyon = jest.spyOn(user, 'authenticateUserDefaultAuth');
208
+
209
+ user.setAuthenticationFlowType('USER_SRP_AUTH');
210
+ user.authenticateUser(authDetails, callback);
211
+
212
+ expect(spyon).toHaveBeenCalledWith(authDetails, callback);
213
+
214
+ user.setAuthenticationFlowType('CUSTOM_AUTH');
215
+ user.authenticateUser(authDetails, callback);
216
+
217
+ expect(spyon).toHaveBeenCalledWith(authDetails, callback);
218
+ });
219
+
220
+ test('throws error for invalid Authentication flow type', () => {
221
+ user.setAuthenticationFlowType('WRONG_AUTH_FLOW_TYPE');
222
+ user.authenticateUser(authDetails, callback);
223
+ expect(callback.onFailure.mock.calls.length).toBe(1);
224
+ });
225
+ });
226
+
227
+ describe('authenticateUserDefaultAuth()', () => {
228
+ const user = new CognitoUser({ ...userDefaults });
229
+ const authDetails = new AuthenticationDetails(authDetailData);
230
+
231
+ afterEach(() => {
232
+ jest.restoreAllMocks();
233
+ callback.onFailure.mockClear();
234
+ callback.customChallenge.mockClear();
235
+ });
236
+
237
+ afterAll(() => {
238
+ jest.clearAllMocks();
239
+ });
240
+
241
+ test('Happy case default initialization process', () => {
242
+ expect(() => {
243
+ user.authenticateUserDefaultAuth(authDetails, callback);
244
+ }).not.toThrowError();
245
+ });
246
+
247
+ test('errOnAValue fails gracefully', () => {
248
+ jest
249
+ .spyOn(AuthenticationHelper.prototype, 'getLargeAValue')
250
+ .mockImplementation(cb => cb('test error', 12345));
251
+
252
+ user.authenticateUserDefaultAuth(authDetails, callback);
253
+
254
+ expect(callback.onFailure.mock.calls.length).toBe(1);
255
+ });
256
+
257
+ test('Client request fails gracefully', () => {
258
+ netRequestMockSuccess(false);
259
+ user.authenticateUserDefaultAuth(authDetails, callback);
260
+ expect(callback.onFailure.mock.calls.length).toBe(1);
261
+ });
262
+ });
263
+
264
+ describe('authenticateUserPlainUsernamePassword()', () => {
265
+ const user = new CognitoUser({ ...userDefaults });
266
+
267
+ afterEach(() => {
268
+ jest.restoreAllMocks();
269
+ callback.onFailure.mockClear();
270
+ });
271
+
272
+ test('Missing password throws an error', () => {
273
+ const authDetails = new AuthenticationDetails({
274
+ Username: 'user@amzn.com',
275
+ Password: undefined,
276
+ });
277
+
278
+ user.authenticateUserPlainUsernamePassword(authDetails, callback);
279
+
280
+ expect(callback.onFailure).toBeCalledWith(
281
+ new Error('PASSWORD parameter is required')
282
+ );
283
+ });
284
+
285
+ test('Client request fails gracefully', () => {
286
+ netRequestMockSuccess(false);
287
+ const authDetails = new AuthenticationDetails(authDetailData);
288
+
289
+ user.authenticateUserPlainUsernamePassword(authDetails, callback);
290
+
291
+ expect(callback.onFailure.mock.calls.length).toBe(1);
292
+ expect(callback.onFailure).toBeCalledWith(networkError);
293
+ });
294
+
295
+ test('Authenticate user happy case', () => {
296
+ const userSpy = jest.spyOn(user, 'getCachedDeviceKeyAndPassword');
297
+ const userSpy2 = jest.spyOn(user, 'getUserContextData');
298
+ userSpy2.mockReturnValue(true);
299
+ const userSpy3 = jest.spyOn(user, 'authenticateUserInternal');
300
+ userSpy3.mockReturnValue('test return value');
301
+
302
+ netRequestMockSuccess(true, 'test auth result');
303
+ const authDetails = new AuthenticationDetails(authDetailData);
304
+ user.authenticateUserPlainUsernamePassword(authDetails, callback);
305
+
306
+ expect(userSpy).toBeCalled();
307
+ expect(userSpy3).toBeCalledWith(
308
+ 'test auth result',
309
+ userSpy3.mock.calls[0][1],
310
+ callback
311
+ );
312
+ expect(userSpy3.mock.results[0].value).toBe('test return value');
313
+ });
314
+ });
315
+
316
+ describe('authenticateUserInternal()', () => {
317
+ const user = new CognitoUser({ ...userDefaults });
318
+
319
+ // same approach as used in CognitoUser.js
320
+ const authHelper = new AuthenticationHelper(user.pool.getUserPoolName());
321
+
322
+ const authData = Object.assign(vCognitoUserSession, {
323
+ ChallengeParameters: {
324
+ userAttributes: '[]',
325
+ requiredAttributes: '[]',
326
+ },
327
+ AuthenticationResult: {
328
+ NewDeviceMetadata: {
329
+ DeviceGroupKey: 'abc123',
330
+ DeviceKey: '123abc',
331
+ },
332
+ },
333
+ Session: vCognitoUserSession,
334
+ });
335
+
336
+ afterEach(() => {
337
+ jest.restoreAllMocks();
338
+ jest.clearAllMocks();
339
+ });
340
+
341
+ test.each([
342
+ ['SMS_MFA', callback.mfaRequired],
343
+ ['SELECT_MFA_TYPE', callback.selectMFAType],
344
+ ['MFA_SETUP', callback.mfaSetup],
345
+ ['SOFTWARE_TOKEN_MFA', callback.totpRequired],
346
+ ['CUSTOM_CHALLENGE', callback.customChallenge],
347
+ ])(
348
+ '%s challenge sets user session and calls the corresponding cb',
349
+ (challengeName, cbMethod) => {
350
+ Object.assign(authData, { ChallengeName: challengeName });
351
+ user.authenticateUserInternal(authData, authHelper, callback);
352
+
353
+ expect(user.Session).toMatchObject(vCognitoUserSession);
354
+
355
+ if (challengeName === 'CUSTOM_CHALLENGE') {
356
+ // this cb signature only expects one arg
357
+ expect(cbMethod).toHaveBeenCalledWith(authData.ChallengeParameters);
358
+ } else {
359
+ // the rest expect two args
360
+ expect(cbMethod).toHaveBeenCalledWith(
361
+ challengeName,
362
+ authData.ChallengeParameters
363
+ );
364
+ }
365
+ }
366
+ );
367
+
368
+ test('user and required attributes get parsed and call newPasswordRequired', () => {
369
+ Object.assign(authData, { ChallengeName: 'NEW_PASSWORD_REQUIRED' });
370
+
371
+ expect(user.Session).toMatchObject(vCognitoUserSession);
372
+
373
+ const spyon = jest.spyOn(
374
+ authHelper,
375
+ 'getNewPasswordRequiredChallengeUserAttributePrefix'
376
+ );
377
+ user.authenticateUserInternal(authData, authHelper, callback);
378
+ expect(spyon).toHaveBeenCalledTimes(1);
379
+ expect(callback.newPasswordRequired).toHaveBeenCalledTimes(1);
380
+ callback.newPasswordRequired.mockClear();
381
+ });
382
+
383
+ test('DEVICE_SRP_AUTH calls getDeviceResponse and sends session', () => {
384
+ const clientSpy = jest
385
+ .spyOn(Client.prototype, 'request')
386
+ .mockImplementation((...args) => {});
387
+ const authDataGetDeviceResponse = {
388
+ ...authData,
389
+ ChallengeName: 'DEVICE_SRP_AUTH',
390
+ Session: 'abcd',
391
+ };
392
+ const spyon = jest.spyOn(user, 'getDeviceResponse');
393
+
394
+ user.authenticateUserInternal(
395
+ authDataGetDeviceResponse,
396
+ authHelper,
397
+ callback
398
+ );
399
+ expect(clientSpy.mock.calls[0][1]).toMatchObject({ Session: 'abcd' });
400
+ expect(spyon).toHaveBeenCalledTimes(1);
401
+ });
402
+
403
+ test('All other challenge names trigger method calls and success cb', () => {
404
+ Object.assign(authData, {
405
+ AuthenticationResult: {
406
+ NewDeviceMetadata: null,
407
+ },
408
+ ChallengeName: 'random challenge',
409
+ });
410
+
411
+ const spyon = jest.spyOn(user, 'getCognitoUserSession');
412
+ const spyon2 = jest.spyOn(user, 'cacheTokens');
413
+
414
+ user.authenticateUserInternal(authData, authHelper, callback);
415
+
416
+ expect(user.challengeName).toBe(authData.ChallengeName);
417
+ expect(spyon).toHaveBeenCalledWith(authData.AuthenticationResult);
418
+ expect(spyon2).toBeCalledTimes(1);
419
+
420
+ const signInUserSession = user.getCognitoUserSession(
421
+ authData.AuthenticationResult
422
+ );
423
+ expect(callback.onSuccess).toBeCalledWith(signInUserSession);
424
+ });
425
+
426
+ test('AuthHelper generateHashDevice is called and can log errors properly', () => {
427
+ Object.assign(authData, {
428
+ AuthenticationResult: {
429
+ NewDeviceMetadata: {
430
+ DeviceGroupKey: 'abc123',
431
+ DeviceKey: '123abc',
432
+ },
433
+ },
434
+ ChallengeName: 'random challenge',
435
+ });
436
+
437
+ netRequestMockSuccess(false);
438
+ user.authenticateUserInternal(authData, authHelper, callback);
439
+
440
+ expect(callback.onFailure).toBeCalledWith(networkError);
441
+ });
442
+
443
+ test('AuthHelper generateHashDevice with no error calls auth methods', () => {
444
+ const randomPasswordSpy = jest.spyOn(
445
+ AuthenticationHelper.prototype,
446
+ 'getRandomPassword'
447
+ );
448
+ const getVerifierDevicesSpy = jest.spyOn(
449
+ AuthenticationHelper.prototype,
450
+ 'getVerifierDevices'
451
+ );
452
+ const hashDeviceSpy = jest.spyOn(
453
+ AuthenticationHelper.prototype,
454
+ 'generateHashDevice'
455
+ );
456
+
457
+ user.authenticateUserInternal(authData, authHelper, callback);
458
+
459
+ expect(randomPasswordSpy).toBeCalledTimes(1);
460
+ expect(getVerifierDevicesSpy).toBeCalledTimes(1);
461
+ expect(hashDeviceSpy).toBeCalledTimes(1);
462
+ });
463
+
464
+ test('Client request fails gracefully', () => {
465
+ netRequestMockSuccess(false);
466
+ user.authenticateUserInternal(authData, authHelper, callback);
467
+ expect(callback.onFailure).toBeCalledWith(networkError);
468
+ });
469
+
470
+ test('Successful client request passes data properly to cb', () => {
471
+ netRequestMockSuccess(true, { UserConfirmationNecessary: true });
472
+
473
+ user.authenticateUserInternal(authData, authHelper, callback);
474
+ expect(callback.onSuccess).toBeCalledWith(user.signInUserSession, true);
475
+ });
476
+
477
+ test('Successful client request passing empty object to cb', () => {
478
+ netRequestMockSuccess(true, {
479
+ UserConfirmationNecessary: true,
480
+ });
481
+
482
+ user.authenticateUserInternal(authData, authHelper, callback);
483
+ expect(callback.onSuccess).toBeCalledWith(user.signInUserSession, true);
484
+ });
485
+ });
486
+
487
+ describe('completeNewPasswordChallenge()', () => {
488
+ const user = new CognitoUser({ ...userDefaults });
489
+ const requiredAttributeData = {
490
+ attr1: true,
491
+ attr2: 'important',
492
+ attr3: [123, 'abc', true],
493
+ };
494
+ const clientMetadata = {
495
+ meta1: false,
496
+ meta2: 'test val',
497
+ meta3: [456, 'xyz', false],
498
+ };
499
+
500
+ afterEach(() => {
501
+ jest.restoreAllMocks();
502
+ callback.onFailure.mockClear();
503
+ });
504
+
505
+ test('No newPassword triggers an error', () => {
506
+ user.completeNewPasswordChallenge(null, null, callback, null);
507
+ expect(callback.onFailure).toBeCalledWith(passwordErr);
508
+ });
509
+
510
+ test('completeNewPasswordChallenge calls expected helper methods', () => {
511
+ const spyon = jest.spyOn(
512
+ AuthenticationHelper.prototype,
513
+ 'getNewPasswordRequiredChallengeUserAttributePrefix'
514
+ );
515
+ const spyon2 = jest.spyOn(user, 'getUserContextData');
516
+
517
+ user.completeNewPasswordChallenge(
518
+ 'NEWp@ssw0rd',
519
+ requiredAttributeData,
520
+ callback,
521
+ clientMetadata
522
+ );
523
+
524
+ expect(spyon).toBeCalledTimes(1);
525
+ expect(spyon2).toHaveBeenCalled();
526
+ });
527
+
528
+ test('Client request fails gracefully', () => {
529
+ const err = new Error('Respond to auth challenge error.');
530
+
531
+ jest
532
+ .spyOn(Client.prototype, 'request')
533
+ .mockImplementationOnce((...args) => {
534
+ args[2](err, {});
535
+ });
536
+
537
+ user.completeNewPasswordChallenge(
538
+ 'NEWp@ssw0rd',
539
+ requiredAttributeData,
540
+ callback,
541
+ clientMetadata
542
+ );
543
+
544
+ expect(callback.onFailure).toBeCalledWith(err);
545
+ });
546
+
547
+ test('Client request happy path', () => {
548
+ jest
549
+ .spyOn(Client.prototype, 'request')
550
+ .mockImplementationOnce((...args) => {
551
+ args[2](null, vCognitoUserSession);
552
+ });
553
+ const spyon2 = jest.spyOn(user, 'authenticateUserInternal');
554
+
555
+ user.completeNewPasswordChallenge(
556
+ 'NEWp@ssw0rd',
557
+ requiredAttributeData,
558
+ callback,
559
+ clientMetadata
560
+ );
561
+ expect(spyon2).toBeCalledTimes(1);
562
+ });
563
+ });
564
+
565
+ describe('getDeviceResponse()', () => {
566
+ const user = new CognitoUser({ ...userDefaults });
567
+
568
+ afterAll(() => {
569
+ jest.restoreAllMocks();
570
+ jest.onFailure.mockClear();
571
+ jest.onSuccess.mockClear();
572
+ });
573
+
574
+ afterEach(() => {
575
+ jest.clearAllMocks();
576
+ });
577
+
578
+ test('incorrect value for getLargeAValue fails gracefully', () => {
579
+ const err = new Error('Cannot get large A value for some reason.');
580
+ jest
581
+ .spyOn(AuthenticationHelper.prototype, 'getLargeAValue')
582
+ .mockImplementation(cb => cb(err, 12345));
583
+
584
+ user.getDeviceResponse(callback, {});
585
+ expect(callback.onFailure).toBeCalledWith(err);
586
+ });
587
+
588
+ test('Auth helper getLargeAValue happy path', () => {
589
+ jest
590
+ .spyOn(AuthenticationHelper.prototype, 'getLargeAValue')
591
+ .mockImplementation(cb => cb(null, 12345));
592
+ const spyon2 = jest.spyOn(user, 'getUserContextData');
593
+
594
+ user.getDeviceResponse(callback, {});
595
+
596
+ expect(callback.onFailure).not.toBeCalled();
597
+ expect(spyon2).toBeCalled();
598
+ });
599
+
600
+ test('Client request RespondToAuthChallenge fails gracefully', () => {
601
+ netRequestMockSuccess(false);
602
+ user.getDeviceResponse(callback, {});
603
+ expect(callback.onFailure).toBeCalledWith(networkError);
604
+ });
605
+
606
+ /**TODO: Check this clientRequestSpy */
607
+ describe('RespondToAuthChallenge nested Client method suite', () => {
608
+ let clientRequestSpy;
609
+ let defaultConfig = {
610
+ ChallengeName: 'CUSTOM_CHALLENGE',
611
+ Session: vCognitoUserSession,
612
+ ChallengeParameters: {
613
+ USER_ID_FOR_SRP: 'abc123',
614
+ SRP_B: 'abc123',
615
+ SALT: 'abc123',
616
+ SECRET_BLOCK: 'verysecret',
617
+ },
618
+ };
619
+
620
+ beforeEach(() => {
621
+ user.deviceGroupKey = 'abc123';
622
+ user.deviceKey = '123abc';
623
+
624
+ clientRequestSpy = jest
625
+ .spyOn(Client.prototype, 'request')
626
+ .mockImplementation((...args) => {
627
+ args[2](null, defaultConfig);
628
+ });
629
+ });
630
+
631
+ afterEach(() => {
632
+ jest.clearAllMocks();
633
+ });
634
+
635
+ test('Client request RespondToAuthChallenge - getPasswordAuthenticationKey cb fails gracefully', () => {
636
+ const err = new Error('errHkdf Error');
637
+ jest
638
+ .spyOn(AuthenticationHelper.prototype, 'getPasswordAuthenticationKey')
639
+ .mockImplementation((...args) => {
640
+ args[4](err, null);
641
+ });
642
+
643
+ user.getDeviceResponse(callback, {});
644
+ expect(callback.onFailure).toBeCalledWith(err);
645
+ });
646
+
647
+ test('Client request RespondToAuthChallenge - getPasswordAuthenticationKey CryptoJS code runs smoothly', () => {
648
+ jest
649
+ .spyOn(AuthenticationHelper.prototype, 'getPasswordAuthenticationKey')
650
+ .mockImplementation((...args) => {
651
+ args[4](null, 'hkdf value');
652
+ });
653
+
654
+ const spyon2 = jest.spyOn(user, 'getUserContextData');
655
+ user.getDeviceResponse(callback, {});
656
+ expect(spyon2).toBeCalled();
657
+ });
658
+
659
+ test('Client request RespondToAuthChallenge nested client fails gracefully', () => {
660
+ netRequestMockSuccess(false);
661
+ user.getDeviceResponse(callback, {});
662
+ expect(callback.onFailure).toBeCalledWith(networkError);
663
+ });
664
+
665
+ test('Client request RespondToAuthChallenge nested client calls success callbacks', () => {
666
+ const spyon = jest.spyOn(user, 'getCognitoUserSession');
667
+ const spyon2 = jest.spyOn(user, 'cacheTokens');
668
+
669
+ user.getDeviceResponse(callback, {});
670
+
671
+ expect(spyon).toBeCalledTimes(1);
672
+ expect(spyon2).toBeCalledTimes(1);
673
+ expect(callback.onSuccess).toBeCalledWith(user.signInUserSession);
674
+ });
675
+ });
676
+ });
677
+
678
+ describe('confirmRegistration()', () => {
679
+ const user = new CognitoUser({ ...userDefaults });
680
+ const callback = jest.fn();
681
+ let [confirmationCode, forceAliasCreation] = ['abc123', true];
682
+ const clientMetadata = { meta1: 'value 1', meta2: 'value 2' };
683
+
684
+ afterEach(() => {
685
+ jest.clearAllMocks();
686
+ });
687
+
688
+ test('ConfirmSignUp fails gracefully', () => {
689
+ netRequestMockSuccess(false);
690
+
691
+ const spyon2 = jest.spyOn(user, 'getUserContextData');
692
+ user.confirmRegistration(
693
+ confirmationCode,
694
+ forceAliasCreation,
695
+ callback,
696
+ clientMetadata
697
+ );
698
+
699
+ expect(spyon2).toBeCalled();
700
+ expect(callback).toBeCalledWith(networkError, null);
701
+ });
702
+
703
+ test('ConfirmSignUp returns SUCCESS', () => {
704
+ jest.spyOn(Client.prototype, 'request').mockImplementation((...args) => {
705
+ args[2](null);
706
+ });
707
+
708
+ const spyon2 = jest.spyOn(user, 'getUserContextData');
709
+ user.confirmRegistration(
710
+ confirmationCode,
711
+ forceAliasCreation,
712
+ callback,
713
+ clientMetadata
714
+ );
715
+
716
+ expect(spyon2).toBeCalled();
717
+ expect(callback).toBeCalledWith(null, 'SUCCESS');
718
+ });
719
+ });
720
+
721
+ describe('sendCustomChallengeAnswer()', () => {
722
+ const user = new CognitoUser({ ...userDefaults });
723
+ let answerChallenge = 'the answer';
724
+ let clientMetadata = { meta1: 'value 1', meta2: 'value2' };
725
+
726
+ user.Session = vCognitoUserSession;
727
+ Object.assign(vCognitoUserSession, {
728
+ AuthenticationResult: {
729
+ NewDeviceMetadata: {
730
+ DeviceGroupKey: 'abc123',
731
+ DeviceKey: '123abc',
732
+ },
733
+ },
734
+ ChallengeName: 'random challenge',
735
+ });
736
+
737
+ afterEach(() => {
738
+ jest.clearAllMocks();
739
+ });
740
+
741
+ test('send custom challenge happy path', () => {
742
+ jest.spyOn(Client.prototype, 'request').mockImplementation((...args) => {
743
+ args[2](null, vCognitoUserSession);
744
+ });
745
+
746
+ const spyon2 = jest.spyOn(user, 'getCachedDeviceKeyAndPassword');
747
+ const spyon3 = jest.spyOn(user, 'authenticateUserInternal');
748
+
749
+ user.sendCustomChallengeAnswer(answerChallenge, callback, clientMetadata);
750
+
751
+ expect(spyon2).toBeCalledTimes(1);
752
+ expect(spyon3).toBeCalledWith(
753
+ vCognitoUserSession,
754
+ expect.any(AuthenticationHelper),
755
+ callback
756
+ );
757
+ });
758
+
759
+ test('send custom challenge fails gracefully', () => {
760
+ const err = new Error('RespondToAuthChallenge error.');
761
+ jest.spyOn(Client.prototype, 'request').mockImplementation((...args) => {
762
+ args[2](err, vCognitoUserSession);
763
+ });
764
+
765
+ user.sendCustomChallengeAnswer(answerChallenge, callback, clientMetadata);
766
+ expect(callback.onFailure).toBeCalledWith(err);
767
+ });
768
+ });
769
+
770
+ describe('verifySoftwareToken()', () => {
771
+ const cognitoUser = new CognitoUser({ ...userDefaults });
772
+
773
+ afterEach(() => {
774
+ callback.onSuccess.mockClear();
775
+ callback.onFailure.mockClear();
776
+ });
777
+
778
+ afterAll(() => {
779
+ jest.restoreAllMocks();
780
+ });
781
+
782
+ test('happy case should callback onSuccess with the token', () => {
783
+ netRequestMockSuccess(true);
784
+ netRequestMockSuccess(true);
785
+
786
+ cognitoUser.verifySoftwareToken(totpCode, deviceName, callback);
787
+ expect(callback.onSuccess.mock.calls.length).toBe(1);
788
+ });
789
+
790
+ test('Verify software token first callback fails', () => {
791
+ netRequestMockSuccess(false);
792
+ cognitoUser.verifySoftwareToken(totpCode, deviceName, callback);
793
+ expect(callback.onFailure.mock.calls.length).toBe(1);
794
+ });
795
+
796
+ test('Verify Software Token second callback fails', () => {
797
+ netRequestMockSuccess(true);
798
+ netRequestMockSuccess(false);
799
+
800
+ cognitoUser.verifySoftwareToken(totpCode, deviceName, callback);
801
+ expect(callback.onFailure.mock.calls.length).toBe(1);
802
+ });
803
+
804
+ test('Happy case for signed in user session', () => {
805
+ cognitoUser.setSignInUserSession(vCognitoUserSession);
806
+ netRequestMockSuccess(true);
807
+ cognitoUser.verifySoftwareToken(totpCode, deviceName, callback);
808
+ expect(callback.onSuccess.mock.calls.length).toBe(1);
809
+ });
810
+
811
+ test('Error case for signed in user session', () => {
812
+ netRequestMockSuccess(false);
813
+ cognitoUser.verifySoftwareToken(totpCode, deviceName, callback);
814
+ expect(callback.onFailure.mock.calls.length).toBe(1);
815
+ });
816
+ });
817
+
818
+ describe('associateSoftwareToken()', () => {
819
+ const cognitoUser = new CognitoUser({ ...userDefaults });
820
+
821
+ afterAll(() => {
822
+ jest.restoreAllMocks();
823
+ });
824
+
825
+ afterEach(() => {
826
+ callback.associateSecretCode.mockClear();
827
+ callback.onFailure.mockClear();
828
+ });
829
+
830
+ test('Happy path for associate software token without a userSession ', () => {
831
+ netRequestMockSuccess(true);
832
+ cognitoUser.associateSoftwareToken(callback);
833
+ expect(callback.associateSecretCode.mock.calls.length).toBe(1);
834
+ });
835
+
836
+ test('Failing in the first requeset to client', () => {
837
+ netRequestMockSuccess(false);
838
+ cognitoUser.associateSoftwareToken(callback);
839
+ expect(callback.onFailure.mock.calls.length).toBe(1);
840
+ });
841
+ test('Happy path for a user with a validUserSession ', () => {
842
+ netRequestMockSuccess(true);
843
+ cognitoUser.setSignInUserSession(vCognitoUserSession);
844
+ cognitoUser.associateSoftwareToken(callback);
845
+ expect(callback.associateSecretCode.mock.calls.length).toBe(1);
846
+ });
847
+ test('Error path for a user with a validUserSession ', () => {
848
+ netRequestMockSuccess(false);
849
+ cognitoUser.associateSoftwareToken(callback);
850
+ expect(callback.onFailure.mock.calls.length).toBe(1);
851
+ });
852
+ });
853
+
854
+ describe('sendMFASelectionAnswer()', () => {
855
+ const cognitoUser = new CognitoUser({ ...userDefaults });
856
+
857
+ afterAll(() => {
858
+ jest.restoreAllMocks();
859
+ });
860
+
861
+ test('happy case with SMS_MFA', () => {
862
+ netRequestMockSuccess(true, { Session: 'sessionData' });
863
+ cognitoUser.sendMFASelectionAnswer('SMS_MFA', callback);
864
+ expect(callback.mfaRequired.mock.calls.length).toEqual(1);
865
+ });
866
+
867
+ test('happy case with software token MFA', () => {
868
+ netRequestMockSuccess(true, { Session: 'sessionData' });
869
+ cognitoUser.sendMFASelectionAnswer('SOFTWARE_TOKEN_MFA', callback);
870
+ expect(callback.totpRequired.mock.calls.length).toEqual(1);
871
+ });
872
+
873
+ test('error case with software token MFA', () => {
874
+ netRequestMockSuccess(false);
875
+ cognitoUser.sendMFASelectionAnswer('SOFTWARE_TOKEN_MFA', callback);
876
+ expect(callback.onFailure.mock.calls.length).toEqual(1);
877
+ });
878
+ test('error case with undefined answer challenge', () => {
879
+ netRequestMockSuccess(true, { Session: 'sessionData' });
880
+ const res = cognitoUser.sendMFASelectionAnswer('WRONG_CHALLENGE', callback);
881
+ expect(res).toEqual(undefined);
882
+ });
883
+ });
884
+
885
+ describe('signOut() and globalSignOut', () => {
886
+ const cognitoUser = new CognitoUser({ ...userDefaults });
887
+
888
+ afterAll(() => {
889
+ jest.restoreAllMocks();
890
+ });
891
+
892
+ afterEach(() => {
893
+ callback.onSuccess.mockClear();
894
+ callback.onFailure.mockClear();
895
+ });
896
+
897
+ test('signOut expected to set signinUserSession to equal null', () => {
898
+ cognitoUser.signOut();
899
+ expect(cognitoUser.storage.getItem('')).toEqual(null);
900
+ expect(cognitoUser.signInUserSession).toEqual(null);
901
+ });
902
+
903
+ test('global signOut Happy Path', () => {
904
+ netRequestMockSuccess(true);
905
+ cognitoUser.setSignInUserSession(vCognitoUserSession);
906
+ cognitoUser.globalSignOut(callback);
907
+ expect(callback.onSuccess.mock.calls.length).toEqual(1);
908
+ });
909
+
910
+ test('global signOut catching an error', () => {
911
+ netRequestMockSuccess(false);
912
+ cognitoUser.globalSignOut(callback);
913
+ expect(callback.onFailure.mock.calls.length).toEqual(1);
914
+ });
915
+
916
+ test('Global signout when user session is null', () => {
917
+ cognitoUser.setSignInUserSession(ivCognitoUserSession);
918
+ cognitoUser.globalSignOut(callback);
919
+ expect(callback.onFailure.mock.calls.length).toEqual(1);
920
+ });
921
+ });
922
+
923
+ describe('listDevices', () => {
924
+ const cognitoUser = new CognitoUser({ ...userDefaults });
925
+
926
+ afterAll(() => {
927
+ jest.restoreAllMocks();
928
+ });
929
+
930
+ afterEach(() => {
931
+ callback.onSuccess.mockClear();
932
+ callback.onFailure.mockClear();
933
+ });
934
+ cognitoUser.setSignInUserSession(vCognitoUserSession);
935
+
936
+ test('Happy path for device list', () => {
937
+ netRequestMockSuccess(true, ['deviceName', 'device2Name']);
938
+ cognitoUser.listDevices(1, 'paginationToken', callback);
939
+ expect(callback.onSuccess.mock.calls.length).toEqual(1);
940
+ });
941
+
942
+ test('Client request throws an error', () => {
943
+ netRequestMockSuccess(false);
944
+ cognitoUser.listDevices(1, null, callback);
945
+ expect(callback.onFailure.mock.calls.length).toEqual(1);
946
+ });
947
+ test('Invalid userSession throws an error', () => {
948
+ cognitoUser.setSignInUserSession(ivCognitoUserSession);
949
+ cognitoUser.listDevices(1, null, callback);
950
+ expect(callback.onFailure.mock.calls.length).toEqual(1);
951
+ });
952
+ });
953
+
954
+ describe('setDeviceStatus[remembered,notRemembered]()', () => {
955
+ const cognitoUser = new CognitoUser({ ...userDefaults });
956
+ cognitoUser.setSignInUserSession(vCognitoUserSession);
957
+
958
+ afterAll(() => {
959
+ jest.restoreAllMocks();
960
+ });
961
+
962
+ afterEach(() => {
963
+ callback.onSuccess.mockClear();
964
+ callback.onFailure.mockClear();
965
+ });
966
+
967
+ test('Happy path should callback success', () => {
968
+ netRequestMockSuccess(true);
969
+ cognitoUser.setDeviceStatusNotRemembered(callback);
970
+ expect(callback.onSuccess.mock.calls.length).toEqual(1);
971
+ });
972
+
973
+ test('Callback catches an error from client request', () => {
974
+ netRequestMockSuccess(false);
975
+ cognitoUser.setDeviceStatusNotRemembered(callback);
976
+ expect(callback.onFailure.mock.calls.length).toEqual(1);
977
+ });
978
+
979
+ test('Client request does not work and method returns undefined', () => {
980
+ cognitoUser.setSignInUserSession(vCognitoUserSession);
981
+ expect(cognitoUser.setDeviceStatusNotRemembered(callback)).toEqual(
982
+ undefined
983
+ );
984
+ });
985
+
986
+ test('Happy path for setDeviceStatusRemembered should callback with onSuccess ', () => {
987
+ netRequestMockSuccess(true);
988
+ cognitoUser.setDeviceStatusRemembered(callback);
989
+ expect(callback.onSuccess.mock.calls.length).toEqual(1);
990
+ });
991
+
992
+ test('Client throws and error should callback onFailure', () => {
993
+ netRequestMockSuccess(false);
994
+ cognitoUser.setDeviceStatusRemembered(callback);
995
+ expect(callback.onFailure.mock.calls.length).toEqual(1);
996
+ });
997
+
998
+ test('Client request does not work and method returns undefined', () => {
999
+ expect(cognitoUser.setDeviceStatusRemembered(callback)).toEqual(undefined);
1000
+ });
1001
+
1002
+ test('Invalid user session throws an error', () => {
1003
+ cognitoUser.setSignInUserSession(ivCognitoUserSession);
1004
+ cognitoUser.setDeviceStatusNotRemembered(callback);
1005
+ expect(callback.onFailure.mock.calls.length).toEqual(1);
1006
+ });
1007
+
1008
+ test('Invalid user session throws an error', () => {
1009
+ cognitoUser.setDeviceStatusRemembered(callback);
1010
+ expect(callback.onFailure.mock.calls.length).toEqual(1);
1011
+ });
1012
+ });
1013
+
1014
+ describe('forgetDevices()', () => {
1015
+ const cognitoUser = new CognitoUser({ ...userDefaults });
1016
+ cognitoUser.setSignInUserSession(vCognitoUserSession);
1017
+
1018
+ afterAll(() => {
1019
+ jest.restoreAllMocks();
1020
+ });
1021
+
1022
+ afterEach(() => {
1023
+ callback.onSuccess.mockClear();
1024
+ callback.onFailure.mockClear();
1025
+ });
1026
+
1027
+ test('Forget specific device happy path should callback onSuccess', () => {
1028
+ netRequestMockSuccess(true);
1029
+ cognitoUser.forgetSpecificDevice('deviceKey', callback);
1030
+ expect(callback.onSuccess.mock.calls.length).toEqual(1);
1031
+ });
1032
+ test('Client request throws an error for forget specific device', () => {
1033
+ netRequestMockSuccess(false);
1034
+ cognitoUser.forgetSpecificDevice('deviceKey', callback);
1035
+ expect(callback.onFailure.mock.calls.length).toEqual(1);
1036
+ });
1037
+
1038
+ test('Returns undefined when client request does not work properly', () => {
1039
+ expect(cognitoUser.forgetSpecificDevice('deviceKey', callback)).toEqual(
1040
+ undefined
1041
+ );
1042
+ });
1043
+ test('forgetSpecificDevice happy path should callback onSuccess', () => {
1044
+ netRequestMockSuccess(true);
1045
+ cognitoUser.forgetDevice(callback);
1046
+ expect(callback.onSuccess.mock.calls.length).toEqual(1);
1047
+ });
1048
+ test('Invalid user session throws and error for forget specific device', () => {
1049
+ cognitoUser.setSignInUserSession(ivCognitoUserSession);
1050
+ cognitoUser.forgetSpecificDevice('deviceKey', callback);
1051
+ expect(callback.onFailure.mock.calls.length).toEqual(1);
1052
+ });
1053
+ });
1054
+
1055
+ describe('getDevice()', () => {
1056
+ const cognitoUser = new CognitoUser({ ...userDefaults });
1057
+ cognitoUser.setSignInUserSession(vCognitoUserSession);
1058
+
1059
+ afterAll(() => {
1060
+ jest.restoreAllMocks();
1061
+ });
1062
+
1063
+ afterEach(() => {
1064
+ callback.onSuccess.mockClear();
1065
+ callback.onFailure.mockClear();
1066
+ });
1067
+
1068
+ test('Happy path for getDevice should callback onSuccess', () => {
1069
+ netRequestMockSuccess(true);
1070
+ cognitoUser.getDevice(callback);
1071
+ expect(callback.onSuccess.mock.calls.length).toEqual(1);
1072
+ });
1073
+
1074
+ test('client request returns an error and onFailure is called', () => {
1075
+ netRequestMockSuccess(false);
1076
+ cognitoUser.getDevice(callback);
1077
+ expect(callback.onFailure.mock.calls.length).toEqual(1);
1078
+ });
1079
+
1080
+ test('No client request method implementations, return undefined', () => {
1081
+ expect(cognitoUser.getDevice(callback)).toEqual(undefined);
1082
+ });
1083
+
1084
+ test('invalid user session should callback onFailure', () => {
1085
+ cognitoUser.setSignInUserSession(ivCognitoUserSession);
1086
+ cognitoUser.getDevice(callback);
1087
+ expect(callback.onFailure.mock.calls.length).toEqual(1);
1088
+ });
1089
+ });
1090
+
1091
+ describe('verifyAttribute(), getAttributeVerificationCode', () => {
1092
+ const cognitoUser = new CognitoUser({ ...userDefaults });
1093
+ cognitoUser.setSignInUserSession(vCognitoUserSession);
1094
+ const verifyAttributeDefaults = ['username', '123456', callback];
1095
+
1096
+ afterAll(() => {
1097
+ jest.restoreAllMocks();
1098
+ });
1099
+
1100
+ afterEach(() => {
1101
+ jest.clearAllMocks();
1102
+ });
1103
+
1104
+ test('Happy path for verifyAttribute should callback onSuccess', () => {
1105
+ netRequestMockSuccess(true);
1106
+ cognitoUser.verifyAttribute(...verifyAttributeDefaults);
1107
+ expect(callback.onSuccess.mock.calls.length).toEqual(1);
1108
+ });
1109
+
1110
+ test('client request returns an error and onFailure is called', () => {
1111
+ netRequestMockSuccess(false);
1112
+ cognitoUser.verifyAttribute(...verifyAttributeDefaults);
1113
+ expect(callback.onFailure.mock.calls.length).toEqual(1);
1114
+ });
1115
+
1116
+ test('No client request method implementations, return undefined', () => {
1117
+ expect(cognitoUser.verifyAttribute(...verifyAttributeDefaults)).toEqual(
1118
+ undefined
1119
+ );
1120
+ });
1121
+
1122
+ const getAttrsVerifCodeDefaults = ['username', callback, {}];
1123
+ test('happy path for getAttributeVerificationCode', () => {
1124
+ //callback.inputVerification needs to be set to null before the call to avoid the conditional in the method.
1125
+ callback.inputVerificationCode = null;
1126
+
1127
+ netRequestMockSuccess(true);
1128
+ cognitoUser.getAttributeVerificationCode(...getAttrsVerifCodeDefaults);
1129
+ callback.inputVerificationCode = jest.fn();
1130
+ expect(callback.onSuccess).toHaveBeenCalledWith('SUCCESS');
1131
+ });
1132
+
1133
+ test('when inputVerificationCode exists in the callback, call inputVerifier with the data', () => {
1134
+ netRequestMockSuccess(true);
1135
+ cognitoUser.getAttributeVerificationCode(...getAttrsVerifCodeDefaults);
1136
+ expect(callback.inputVerificationCode.mock.calls.length).toEqual(1);
1137
+ });
1138
+
1139
+ test('when inputVerificationCode with a failed network request', () => {
1140
+ netRequestMockSuccess(false);
1141
+ cognitoUser.getAttributeVerificationCode(...getAttrsVerifCodeDefaults);
1142
+ expect(callback.onFailure.mock.calls.length).toEqual(1);
1143
+ });
1144
+
1145
+ test('invalid user session should callback onFailure for verifyAttributes', () => {
1146
+ cognitoUser.setSignInUserSession(ivCognitoUserSession);
1147
+ cognitoUser.verifyAttribute(...verifyAttributeDefaults);
1148
+ expect(callback.onFailure.mock.calls.length).toEqual(1);
1149
+ });
1150
+
1151
+ test('invalid user session should callback onFailure for getAttrsVerifCodeDefaults', () => {
1152
+ cognitoUser.getAttributeVerificationCode(...getAttrsVerifCodeDefaults);
1153
+ expect(callback.onFailure.mock.calls.length).toEqual(1);
1154
+ });
1155
+ });
1156
+
1157
+ describe('confirmPassword() and forgotPassword()', () => {
1158
+ const cognitoUser = new CognitoUser({ ...userDefaults });
1159
+ cognitoUser.setSignInUserSession(vCognitoUserSession);
1160
+ const confirmPasswordDefaults = [
1161
+ 'confirmCode',
1162
+ 'newSecurePassword',
1163
+ callback,
1164
+ {},
1165
+ ];
1166
+ const forgotPasswordDefaults = [callback, {}];
1167
+
1168
+ afterAll(() => {
1169
+ jest.restoreAllMocks();
1170
+ });
1171
+
1172
+ afterEach(() => {
1173
+ jest.clearAllMocks();
1174
+ });
1175
+
1176
+ test('happy path should callback onSuccess', () => {
1177
+ netRequestMockSuccess(true);
1178
+ cognitoUser.confirmPassword(...confirmPasswordDefaults);
1179
+ expect(callback.onSuccess).toHaveBeenCalledWith('SUCCESS');
1180
+ });
1181
+
1182
+ test('client request throws an error', () => {
1183
+ netRequestMockSuccess(false);
1184
+ cognitoUser.confirmPassword(...confirmPasswordDefaults);
1185
+ expect(callback.onFailure.mock.calls.length).toEqual(1);
1186
+ });
1187
+
1188
+ test('happy path should callback onSuccess', () => {
1189
+ callback.inputVerificationCode = null;
1190
+ netRequestMockSuccess(true);
1191
+ cognitoUser.forgotPassword(...forgotPasswordDefaults);
1192
+ expect(callback.onSuccess.mock.calls.length).toEqual(1);
1193
+ });
1194
+
1195
+ test('inputVerification code is a function should callback inputVerificationCode', () => {
1196
+ callback.inputVerificationCode = jest.fn();
1197
+ netRequestMockSuccess(true);
1198
+ cognitoUser.forgotPassword(...forgotPasswordDefaults);
1199
+ expect(callback.inputVerificationCode.mock.calls.length).toEqual(1);
1200
+ });
1201
+
1202
+ test('client returning an error should call onFailure', () => {
1203
+ netRequestMockSuccess(false);
1204
+ cognitoUser.forgotPassword(...forgotPasswordDefaults);
1205
+ expect(callback.onFailure.mock.calls.length).toEqual(1);
1206
+ });
1207
+ });
1208
+
1209
+ describe('MFA test suite', () => {
1210
+ const cognitoUser = new CognitoUser({ ...userDefaults });
1211
+ cognitoUser.setSignInUserSession(vCognitoUserSession);
1212
+ const sendMfaDefaults = ['abc123', callback, 'SMS_MFA', {}];
1213
+
1214
+ afterAll(() => {
1215
+ jest.restoreAllMocks();
1216
+ });
1217
+
1218
+ afterEach(() => {
1219
+ jest.clearAllMocks();
1220
+ });
1221
+
1222
+ const payload = {
1223
+ ChallengeName: 'SMS_MFA',
1224
+ AuthenticationResult: { NewDeviceMetadata: 'deviceMetaData' },
1225
+ };
1226
+
1227
+ /** sendMFA() */
1228
+ test('Happy path for sendMFACode should call onSuccess', () => {
1229
+ netRequestMockSuccess(true, payload);
1230
+ authHelperMock(genHashDevices);
1231
+ authHelperMock(getSalt);
1232
+ authHelperMock(getVerifiers);
1233
+ netRequestMockSuccess(true, { UserConfirmationNecessary: false });
1234
+ cognitoUser.sendMFACode(...sendMfaDefaults);
1235
+ expect(callback.onSuccess.mock.calls.length).toEqual(1);
1236
+ });
1237
+
1238
+ test('when userConfirmation is true, should callback onSuccess', () => {
1239
+ netRequestMockSuccess(true, payload);
1240
+ authHelperMock(genHashDevices);
1241
+ authHelperMock(getSalt);
1242
+ authHelperMock(getVerifiers);
1243
+ netRequestMockSuccess(true, { UserConfirmationNecessary: true });
1244
+ cognitoUser.sendMFACode(...sendMfaDefaults);
1245
+ expect(callback.onSuccess.mock.calls.length).toEqual(1);
1246
+ });
1247
+
1248
+ test('second client request fails so sendMFACode should call onFailure', () => {
1249
+ netRequestMockSuccess(true, payload);
1250
+ authHelperMock(genHashDevices);
1251
+ authHelperMock(getSalt);
1252
+ authHelperMock(getVerifiers);
1253
+ netRequestMockSuccess(false);
1254
+ cognitoUser.sendMFACode(...sendMfaDefaults);
1255
+ expect(callback.onFailure.mock.calls.length).toEqual(1);
1256
+ });
1257
+
1258
+ test('when generateHashDevice fails, sendMFACode should call onFailure', () => {
1259
+ netRequestMockSuccess(true, payload);
1260
+ jest
1261
+ .spyOn(AuthenticationHelper.prototype, 'generateHashDevice')
1262
+ .mockImplementationOnce((...args) => {
1263
+ args[2](new Error('Network Error'), null);
1264
+ });
1265
+ cognitoUser.sendMFACode(...sendMfaDefaults);
1266
+ expect(callback.onFailure.mock.calls.length).toEqual(1);
1267
+ });
1268
+
1269
+ test('when AuthenticationResult.NewDeviceMetadata == null, callback onSuccess', () => {
1270
+ jest
1271
+ .spyOn(Client.prototype, 'request')
1272
+ .mockImplementationOnce((...args) => {
1273
+ args[2](null, {
1274
+ ChallengeName: 'SMS_MFA',
1275
+ AuthenticationResult: { NewDeviceMetadata: null },
1276
+ });
1277
+ });
1278
+
1279
+ cognitoUser.sendMFACode(...sendMfaDefaults);
1280
+ expect(callback.onSuccess.mock.calls.length).toEqual(1);
1281
+ });
1282
+
1283
+ test('first network request throws an error calls onFailure', () => {
1284
+ netRequestMockSuccess(false);
1285
+ cognitoUser.sendMFACode(...sendMfaDefaults);
1286
+ expect(callback.onFailure.mock.calls.length).toEqual(1);
1287
+ });
1288
+
1289
+ test('first client request does not exist so sendMFACode should return undefined', () => {
1290
+ expect(cognitoUser.sendMFACode(...sendMfaDefaults)).toEqual(undefined);
1291
+ });
1292
+ });
1293
+
1294
+ describe('enableMFA()', () => {
1295
+ const cognitoUser = new CognitoUser({ ...userDefaults });
1296
+ cognitoUser.setSignInUserSession(vCognitoUserSession);
1297
+ const callback = jest.fn();
1298
+
1299
+ afterAll(() => {
1300
+ jest.restoreAllMocks();
1301
+ });
1302
+
1303
+ afterEach(() => {
1304
+ callback.mockClear();
1305
+ });
1306
+
1307
+ test('enableMFA happy path should callback on success ', () => {
1308
+ netRequestMockSuccess(true);
1309
+ cognitoUser.enableMFA(callback);
1310
+ expect(callback.mock.calls[0][1]).toEqual('SUCCESS');
1311
+ });
1312
+
1313
+ test('enableMFA should have an error when client request fails', () => {
1314
+ netRequestMockSuccess(false);
1315
+ cognitoUser.enableMFA(callback);
1316
+ expect(callback.mock.calls[0][0]).toMatchObject(networkError);
1317
+ });
1318
+
1319
+ test('enableMFA should return undefined when no client request is defined', () => {
1320
+ expect(cognitoUser.enableMFA(callback)).toEqual(undefined);
1321
+ });
1322
+
1323
+ test('enableMFA should callback with an error when userSession is invalid', () => {
1324
+ cognitoUser.setSignInUserSession(ivCognitoUserSession);
1325
+ cognitoUser.enableMFA(callback);
1326
+ expect(callback.mock.calls[0][0]).toMatchObject(
1327
+ Error('User is not authenticated')
1328
+ );
1329
+ });
1330
+ });
1331
+
1332
+ describe('setUserMfaPreference', () => {
1333
+ const cognitoUser = new CognitoUser({ ...userDefaults });
1334
+ cognitoUser.setSignInUserSession(vCognitoUserSession);
1335
+ const callback = jest.fn();
1336
+
1337
+ const setUserMfaPreferenceDefaults = [
1338
+ 'smsMFASetting',
1339
+ 'swTokenMFASetting',
1340
+ callback,
1341
+ ];
1342
+
1343
+ afterAll(() => {
1344
+ jest.restoreAllMocks();
1345
+ });
1346
+
1347
+ afterEach(() => {
1348
+ callback.mockClear();
1349
+ });
1350
+ test('happy path for setUserMfaPreferences should callback(null,SUCCESS)', () => {
1351
+ netRequestMockSuccess(true);
1352
+ cognitoUser.setUserMfaPreference(...setUserMfaPreferenceDefaults);
1353
+ expect(callback.mock.calls[0][1]).toEqual('SUCCESS');
1354
+ });
1355
+ test('client request throws an error path for setUserMfaPreferences should callback(null,SUCCESS)', () => {
1356
+ netRequestMockSuccess(false);
1357
+ cognitoUser.setUserMfaPreference(...setUserMfaPreferenceDefaults);
1358
+ expect(callback.mock.calls[0][0]).toMatchObject(Error('Network Error'));
1359
+ });
1360
+
1361
+ test('happy path for setUserMfaPreferences should callback(null,SUCCESS)', () => {
1362
+ expect(
1363
+ cognitoUser.setUserMfaPreference(...setUserMfaPreferenceDefaults)
1364
+ ).toEqual(undefined);
1365
+ });
1366
+
1367
+ test('should callback error when cognito user session is invalid', () => {
1368
+ cognitoUser.setSignInUserSession(ivCognitoUserSession);
1369
+ cognitoUser.setUserMfaPreference(...setUserMfaPreferenceDefaults);
1370
+ expect(callback.mock.calls[0][0]).toMatchObject(
1371
+ new Error('User is not authenticated')
1372
+ );
1373
+ });
1374
+ });
1375
+
1376
+ describe('disableMFA()', () => {
1377
+ const cognitoUser = new CognitoUser({ ...userDefaults });
1378
+ cognitoUser.setSignInUserSession(vCognitoUserSession);
1379
+ const callback = jest.fn();
1380
+
1381
+ afterAll(() => {
1382
+ jest.restoreAllMocks();
1383
+ });
1384
+
1385
+ afterEach(() => {
1386
+ callback.mockClear();
1387
+ });
1388
+
1389
+ test('happy path should callback with (null, SUCCESS)', () => {
1390
+ netRequestMockSuccess(true);
1391
+ cognitoUser.disableMFA(callback);
1392
+ expect(callback.mock.calls[0][1]).toEqual('SUCCESS');
1393
+ });
1394
+ test('client request throws an error and should callback with (err, null)', () => {
1395
+ netRequestMockSuccess(false);
1396
+ cognitoUser.disableMFA(callback);
1397
+ expect(callback.mock.calls[0][0]).toMatchObject(new Error('Network Error'));
1398
+ });
1399
+
1400
+ test('client request does not exist and disableMFA should callback with (err, null)', () => {
1401
+ expect(cognitoUser.disableMFA(callback)).toEqual(undefined);
1402
+ });
1403
+
1404
+ test('when user is invalid, return callback with error', () => {
1405
+ cognitoUser.setSignInUserSession(ivCognitoUserSession);
1406
+ cognitoUser.disableMFA(callback);
1407
+ expect(callback.mock.calls[0][0]).toMatchObject(
1408
+ new Error('User is not authenticated')
1409
+ );
1410
+ });
1411
+ });
1412
+
1413
+ describe('getMFAOptions()', () => {
1414
+ const cognitoUser = new CognitoUser({ ...userDefaults });
1415
+ cognitoUser.setSignInUserSession(vCognitoUserSession);
1416
+ const callback = jest.fn();
1417
+
1418
+ afterAll(() => {
1419
+ jest.restoreAllMocks();
1420
+ });
1421
+
1422
+ afterEach(() => {
1423
+ callback.mockClear();
1424
+ });
1425
+
1426
+ test('happy path for getMFAOptions should callback onSuccess', () => {
1427
+ netRequestMockSuccess(true, { MFAOptions: 'SMS_MFA' });
1428
+ cognitoUser.getMFAOptions(callback);
1429
+ expect(callback.mock.calls[0][1]).toEqual('SMS_MFA');
1430
+ });
1431
+ test('client request throws an error and should callback with (err, null)', () => {
1432
+ netRequestMockSuccess(false);
1433
+ cognitoUser.getMFAOptions(callback);
1434
+ expect(callback.mock.calls[0][0]).toMatchObject(new Error('Network Error'));
1435
+ });
1436
+
1437
+ test('when user is invalid, return callback with error', () => {
1438
+ cognitoUser.setSignInUserSession(ivCognitoUserSession);
1439
+ cognitoUser.getMFAOptions(callback);
1440
+ expect(callback.mock.calls[0][0]).toMatchObject(
1441
+ new Error('User is not authenticated')
1442
+ );
1443
+ });
1444
+ });
1445
+
1446
+ describe('deleteUser()', () => {
1447
+ const cognitoUser = new CognitoUser({ ...userDefaults });
1448
+ cognitoUser.setSignInUserSession(vCognitoUserSession);
1449
+ const callback = jest.fn();
1450
+
1451
+ afterAll(() => {
1452
+ jest.restoreAllMocks();
1453
+ });
1454
+
1455
+ afterEach(() => {
1456
+ callback.mockClear();
1457
+ });
1458
+
1459
+ test('happy path should callback SUCCESS', () => {
1460
+ netRequestMockSuccess(true, null);
1461
+ cognitoUser.deleteUser(callback, {});
1462
+ expect(callback.mock.calls[0][1]).toEqual('SUCCESS');
1463
+ });
1464
+
1465
+ test('client request throws an error', () => {
1466
+ netRequestMockSuccess(false);
1467
+ cognitoUser.deleteUser(callback, {});
1468
+ expect(callback.mock.calls[0][0]).toMatchObject(new Error('Network Error'));
1469
+ });
1470
+
1471
+ test('having an invalid user session should callback with a new error', () => {
1472
+ cognitoUser.setSignInUserSession(ivCognitoUserSession);
1473
+ cognitoUser.deleteUser(callback, {});
1474
+ expect(callback.mock.calls[0][0]).toMatchObject(
1475
+ new Error('User is not authenticated')
1476
+ );
1477
+ });
1478
+ });
1479
+
1480
+ describe('getUserAttributes()', () => {
1481
+ const cognitoUser = new CognitoUser({ ...userDefaults });
1482
+ cognitoUser.setSignInUserSession(vCognitoUserSession);
1483
+ const callback = jest.fn();
1484
+
1485
+ afterAll(() => {
1486
+ jest.restoreAllMocks();
1487
+ });
1488
+
1489
+ afterEach(() => {
1490
+ callback.mockClear();
1491
+ });
1492
+
1493
+ test('happy path for getUserAttributes', () => {
1494
+ const userAttributesObject = {
1495
+ UserAttributes: [{ Name: 'name1', Value: 'value1' }],
1496
+ };
1497
+ netRequestMockSuccess(true, userAttributesObject);
1498
+ cognitoUser.getUserAttributes(callback);
1499
+ expect(callback.mock.calls[0][1]).toMatchObject(
1500
+ userAttributesObject.UserAttributes
1501
+ );
1502
+ });
1503
+
1504
+ test('client request throws an error', () => {
1505
+ netRequestMockSuccess(false);
1506
+ cognitoUser.getUserAttributes(callback);
1507
+ expect(callback.mock.calls[0][0]).toMatchObject(new Error('Network Error'));
1508
+ });
1509
+
1510
+ test('having an invalid user session should callback with a new error', () => {
1511
+ cognitoUser.setSignInUserSession(ivCognitoUserSession);
1512
+ cognitoUser.getUserAttributes(callback);
1513
+ expect(callback.mock.calls[0][0]).toMatchObject(
1514
+ new Error('User is not authenticated')
1515
+ );
1516
+ });
1517
+ });
1518
+
1519
+ describe('deleteAttributes()', () => {
1520
+ const callback = jest.fn();
1521
+ const cognitoUser = new CognitoUser({ ...userDefaults });
1522
+ cognitoUser.setSignInUserSession(vCognitoUserSession);
1523
+
1524
+ afterAll(() => {
1525
+ jest.restoreAllMocks();
1526
+ });
1527
+
1528
+ afterEach(() => {
1529
+ callback.mockClear();
1530
+ });
1531
+
1532
+ test('happy path for deleteAttrbutes should call getUserData to update cache', () => {
1533
+ netRequestMockSuccess(true);
1534
+
1535
+ const getUserDataSpy = jest
1536
+ .spyOn(cognitoUser, 'getUserData')
1537
+ .mockImplementationOnce(cb => cb());
1538
+
1539
+ cognitoUser.deleteAttributes([], callback);
1540
+ expect(getUserDataSpy).toBeCalled();
1541
+ expect(callback.mock.calls[0][1]).toEqual('SUCCESS');
1542
+ });
1543
+
1544
+ test('client request throws an error', () => {
1545
+ netRequestMockSuccess(false);
1546
+ cognitoUser.deleteAttributes([], callback);
1547
+ expect(callback.mock.calls[0][0]).toMatchObject(new Error('Network Error'));
1548
+ });
1549
+
1550
+ test('having an invalid user session should callback with a new error', () => {
1551
+ cognitoUser.setSignInUserSession(ivCognitoUserSession);
1552
+ cognitoUser.deleteAttributes([], callback);
1553
+ expect(callback.mock.calls[0][0]).toMatchObject(
1554
+ new Error('User is not authenticated')
1555
+ );
1556
+ });
1557
+ });
1558
+
1559
+ describe('getCognitoUserSession()', () => {
1560
+ const cognitoUser = new CognitoUser({ ...userDefaults });
1561
+ const idToken = new CognitoIdToken();
1562
+ const accessToken = new CognitoAccessToken();
1563
+ const refreshToken = new CognitoRefreshToken();
1564
+
1565
+ const sessionData = {
1566
+ IdToken: idToken,
1567
+ AccessToken: accessToken,
1568
+ RefreshToken: refreshToken,
1569
+ };
1570
+ test('happy path should return a new CognitoUserSession', () => {
1571
+ expect(cognitoUser.getCognitoUserSession({ sessionData })).toMatchObject(
1572
+ new CognitoUserSession(sessionData)
1573
+ );
1574
+ });
1575
+ });
1576
+
1577
+ describe('refreshSession()', () => {
1578
+ const cognitoUser = new CognitoUser({ ...userDefaults });
1579
+ const callback = jest.fn();
1580
+ const refreshSessionDefaults = [new CognitoRefreshToken(), callback, {}];
1581
+
1582
+ const keyPrefix = `CognitoIdentityServiceProvider.${cognitoUser.pool.getClientId()}.${
1583
+ cognitoUser.username
1584
+ }`;
1585
+
1586
+ const idTokenKey = `${keyPrefix}.idToken`;
1587
+ const accessTokenKey = `${keyPrefix}.accessToken`;
1588
+ const refreshTokenKey = `${keyPrefix}.refreshToken`;
1589
+ const clockDriftKey = `${keyPrefix}.clockDrift`;
1590
+
1591
+ const idToken = new CognitoIdToken();
1592
+ const accessToken = new CognitoAccessToken();
1593
+ const refreshToken = new CognitoRefreshToken();
1594
+ const sessionData = {
1595
+ IdToken: idToken,
1596
+ AccessToken: accessToken,
1597
+ RefreshToken: refreshToken,
1598
+ };
1599
+
1600
+ afterAll(() => {
1601
+ jest.restoreAllMocks();
1602
+ });
1603
+
1604
+ afterEach(() => {
1605
+ callback.mockClear();
1606
+ });
1607
+
1608
+ test('happy path for refresh session ', () => {
1609
+ netRequestMockSuccess(true, {
1610
+ AuthenticationResult: { RefreshToken: null },
1611
+ });
1612
+ cognitoUser.refreshSession(...refreshSessionDefaults);
1613
+ expect(callback.mock.calls[0][1]).toMatchObject(
1614
+ new CognitoUserSession(sessionData)
1615
+ );
1616
+ });
1617
+ test('client throws an error ', () => {
1618
+ netRequestMockSuccess(false);
1619
+ cognitoUser.refreshSession(...refreshSessionDefaults);
1620
+ expect(callback.mock.calls[0][0]).toMatchObject(new Error('Network Error'));
1621
+ });
1622
+
1623
+ test('getSession()', () => {
1624
+ cognitoUser.setSignInUserSession(ivCognitoUserSession);
1625
+ cognitoUser.storage.setItem(
1626
+ idTokenKey,
1627
+ vCognitoUserSession.getIdToken().getJwtToken()
1628
+ );
1629
+ cognitoUser.storage.setItem(
1630
+ accessTokenKey,
1631
+ vCognitoUserSession.getAccessToken().getJwtToken()
1632
+ );
1633
+ cognitoUser.storage.setItem(
1634
+ refreshTokenKey,
1635
+ vCognitoUserSession.getRefreshToken().getToken()
1636
+ );
1637
+ cognitoUser.storage.setItem(
1638
+ clockDriftKey,
1639
+ vCognitoUserSession.getClockDrift()
1640
+ );
1641
+ cognitoUser.getSession(callback);
1642
+ expect(callback.mock.calls[0][0]).toEqual(null);
1643
+ });
1644
+
1645
+ test('when a valid userSession exists, return callback(null, signInUserSession) from instance vars', () => {
1646
+ cognitoUser.setSignInUserSession(vCognitoUserSession);
1647
+ cognitoUser.getSession(callback);
1648
+ expect(callback.mock.calls[0][1]).toMatchObject(
1649
+ cognitoUser.signInUserSession
1650
+ );
1651
+ });
1652
+
1653
+ test('when a username is null, callback with an error', () => {
1654
+ cognitoUser.username = null;
1655
+ cognitoUser.getSession(callback);
1656
+ expect(callback.mock.calls[0][0]).toMatchObject(
1657
+ new Error('Username is null. Cannot retrieve a new session')
1658
+ );
1659
+ });
1660
+ });