@contrail/cli 3.4.4-alpha.1 → 3.4.4-alpha.3b13bd5
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.
- package/README.md +1 -38
- package/node_modules/@contrail/entity-types/.github/pull_request_template.md +31 -0
- package/node_modules/@contrail/entity-types/.github/workflows/empty.yml +10 -0
- package/node_modules/@contrail/entity-types/.github/workflows/generate-entity-types-docs.yml +32 -0
- package/node_modules/@contrail/entity-types/.prettierrc.yaml +2 -0
- package/node_modules/@contrail/entity-types/README.md +13 -0
- package/node_modules/@contrail/entity-types/home-hero.svg +11 -0
- package/node_modules/@contrail/entity-types/lib/action-definition-config.d.ts +6 -0
- package/node_modules/@contrail/entity-types/lib/action-definition-config.js +2 -0
- package/node_modules/@contrail/entity-types/lib/app-access-grant.d.ts +15 -0
- package/node_modules/@contrail/entity-types/lib/app-access-grant.js +7 -0
- package/node_modules/@contrail/entity-types/lib/app-api-key.d.ts +15 -0
- package/node_modules/@contrail/entity-types/lib/app-api-key.js +2 -0
- package/node_modules/@contrail/entity-types/lib/app-code-package.d.ts +17 -0
- package/node_modules/@contrail/entity-types/lib/app-code-package.js +2 -0
- package/node_modules/@contrail/entity-types/lib/app-extension-definition.d.ts +53 -0
- package/node_modules/@contrail/entity-types/lib/app-extension-definition.js +18 -0
- package/node_modules/@contrail/entity-types/lib/app-extension.d.ts +24 -0
- package/node_modules/@contrail/entity-types/lib/app-extension.js +2 -0
- package/node_modules/@contrail/entity-types/lib/app-org.d.ts +20 -0
- package/node_modules/@contrail/entity-types/lib/app-org.js +11 -0
- package/node_modules/@contrail/entity-types/lib/app-version.d.ts +57 -0
- package/node_modules/@contrail/entity-types/lib/app-version.js +21 -0
- package/node_modules/@contrail/entity-types/lib/app.d.ts +25 -0
- package/node_modules/@contrail/entity-types/lib/app.js +2 -0
- package/node_modules/@contrail/entity-types/lib/asset.d.ts +16 -0
- package/node_modules/@contrail/entity-types/lib/asset.js +2 -0
- package/node_modules/@contrail/entity-types/lib/assortment-item.d.ts +27 -0
- package/node_modules/@contrail/entity-types/lib/assortment-item.js +2 -0
- package/node_modules/@contrail/entity-types/lib/assortment-publish-change.d.ts +48 -0
- package/node_modules/@contrail/entity-types/lib/assortment-publish-change.js +2 -0
- package/node_modules/@contrail/entity-types/lib/assortment-summary.d.ts +15 -0
- package/node_modules/@contrail/entity-types/lib/assortment-summary.js +2 -0
- package/node_modules/@contrail/entity-types/lib/assortment.d.ts +39 -0
- package/node_modules/@contrail/entity-types/lib/assortment.js +11 -0
- package/node_modules/@contrail/entity-types/lib/base-managed-entity.d.ts +8 -0
- package/node_modules/@contrail/entity-types/lib/base-managed-entity.js +2 -0
- package/node_modules/@contrail/entity-types/lib/batch-fetch-response.d.ts +11 -0
- package/node_modules/@contrail/entity-types/lib/batch-fetch-response.js +2 -0
- package/node_modules/@contrail/entity-types/lib/client.d.ts +107 -0
- package/node_modules/@contrail/entity-types/lib/client.js +114 -0
- package/node_modules/@contrail/entity-types/lib/color.d.ts +14 -0
- package/node_modules/@contrail/entity-types/lib/color.js +2 -0
- package/node_modules/@contrail/entity-types/lib/composite-plans-summary.d.ts +15 -0
- package/node_modules/@contrail/entity-types/lib/composite-plans-summary.js +2 -0
- package/node_modules/@contrail/entity-types/lib/content-custom-size.d.ts +14 -0
- package/node_modules/@contrail/entity-types/lib/content-custom-size.js +2 -0
- package/node_modules/@contrail/entity-types/lib/content.d.ts +25 -0
- package/node_modules/@contrail/entity-types/lib/content.js +2 -0
- package/node_modules/@contrail/entity-types/lib/contentholder-content.d.ts +5 -0
- package/node_modules/@contrail/entity-types/lib/contentholder-content.js +2 -0
- package/node_modules/@contrail/entity-types/lib/event-workflow-action-definition.d.ts +21 -0
- package/node_modules/@contrail/entity-types/lib/event-workflow-action-definition.js +2 -0
- package/node_modules/@contrail/entity-types/lib/event-workflow-process.d.ts +27 -0
- package/node_modules/@contrail/entity-types/lib/event-workflow-process.js +11 -0
- package/node_modules/@contrail/entity-types/lib/event-workflow-task.d.ts +30 -0
- package/node_modules/@contrail/entity-types/lib/event-workflow-task.js +2 -0
- package/node_modules/@contrail/entity-types/lib/file.d.ts +13 -0
- package/node_modules/@contrail/entity-types/lib/file.js +2 -0
- package/node_modules/@contrail/entity-types/lib/index.d.ts +40 -0
- package/node_modules/@contrail/entity-types/lib/index.js +56 -0
- package/node_modules/@contrail/entity-types/lib/item.d.ts +20 -0
- package/node_modules/@contrail/entity-types/lib/item.js +2 -0
- package/node_modules/@contrail/entity-types/lib/loader.d.ts +234 -0
- package/node_modules/@contrail/entity-types/lib/loader.js +134 -0
- package/node_modules/@contrail/entity-types/lib/log-level.d.ts +8 -0
- package/node_modules/@contrail/entity-types/lib/log-level.js +12 -0
- package/node_modules/@contrail/entity-types/lib/org-managed-entity.d.ts +5 -0
- package/node_modules/@contrail/entity-types/lib/org-managed-entity.js +2 -0
- package/node_modules/@contrail/entity-types/lib/org.d.ts +11 -0
- package/node_modules/@contrail/entity-types/lib/org.js +2 -0
- package/node_modules/@contrail/entity-types/lib/project-configuration.d.ts +39 -0
- package/node_modules/@contrail/entity-types/lib/project-configuration.js +9 -0
- package/node_modules/@contrail/entity-types/lib/project-item.d.ts +9 -0
- package/node_modules/@contrail/entity-types/lib/project-item.js +2 -0
- package/node_modules/@contrail/entity-types/lib/project.d.ts +4 -0
- package/node_modules/@contrail/entity-types/lib/project.js +2 -0
- package/node_modules/@contrail/entity-types/lib/property-type.d.ts +32 -0
- package/node_modules/@contrail/entity-types/lib/property-type.js +31 -0
- package/node_modules/@contrail/entity-types/lib/shared-links.d.ts +46 -0
- package/node_modules/@contrail/entity-types/lib/shared-links.js +11 -0
- package/node_modules/@contrail/entity-types/lib/subscription.d.ts +38 -0
- package/node_modules/@contrail/entity-types/lib/subscription.js +22 -0
- package/node_modules/@contrail/entity-types/lib/type-managed-entity.d.ts +8 -0
- package/node_modules/@contrail/entity-types/lib/type-managed-entity.js +2 -0
- package/node_modules/@contrail/entity-types/lib/user.d.ts +79 -0
- package/node_modules/@contrail/entity-types/lib/user.js +20 -0
- package/node_modules/@contrail/entity-types/lib/workspace-managed-entity.d.ts +5 -0
- package/node_modules/@contrail/entity-types/lib/workspace-managed-entity.js +2 -0
- package/node_modules/@contrail/entity-types/lib/workspace-principal.d.ts +24 -0
- package/node_modules/@contrail/entity-types/lib/workspace-principal.js +9 -0
- package/node_modules/@contrail/entity-types/lib/workspace.d.ts +32 -0
- package/node_modules/@contrail/entity-types/lib/workspace.js +9 -0
- package/node_modules/@contrail/entity-types/package.json +56 -0
- package/node_modules/@contrail/loader/README.md +0 -0
- package/node_modules/@contrail/loader/lib/index.d.ts +941 -0
- package/node_modules/@contrail/loader/lib/index.js +12492 -0
- package/node_modules/@contrail/loader/lib/index.js.map +1 -0
- package/node_modules/@contrail/loader/package.json +70 -0
- package/node_modules/@contrail/org-config-migration/.husky/pre-commit +10 -0
- package/node_modules/@contrail/org-config-migration/.lintstagedrc-check.json +3 -0
- package/node_modules/@contrail/org-config-migration/.lintstagedrc-format.json +3 -0
- package/node_modules/@contrail/org-config-migration/.prettierrc.yaml +2 -0
- package/node_modules/@contrail/org-config-migration/lib/index.d.ts +3 -0
- package/node_modules/@contrail/org-config-migration/lib/index.js +19 -0
- package/node_modules/@contrail/org-config-migration/lib/interfaces.d.ts +97 -0
- package/node_modules/@contrail/org-config-migration/lib/interfaces.js +2 -0
- package/node_modules/@contrail/org-config-migration/lib/services/index.d.ts +1 -0
- package/node_modules/@contrail/org-config-migration/lib/services/index.js +17 -0
- package/node_modules/@contrail/org-config-migration/lib/services/types.d.ts +17 -0
- package/node_modules/@contrail/org-config-migration/lib/services/types.js +155 -0
- package/node_modules/@contrail/org-config-migration/lib/types/exportAll.d.ts +2 -0
- package/node_modules/@contrail/org-config-migration/lib/types/exportAll.js +40 -0
- package/node_modules/@contrail/org-config-migration/lib/types/exportOptionSet.d.ts +2 -0
- package/node_modules/@contrail/org-config-migration/lib/types/exportOptionSet.js +20 -0
- package/node_modules/@contrail/org-config-migration/lib/types/exportOptionSetHierarchies.d.ts +3 -0
- package/node_modules/@contrail/org-config-migration/lib/types/exportOptionSetHierarchies.js +47 -0
- package/node_modules/@contrail/org-config-migration/lib/types/exportOverrides.d.ts +2 -0
- package/node_modules/@contrail/org-config-migration/lib/types/exportOverrides.js +8 -0
- package/node_modules/@contrail/org-config-migration/lib/types/exportRuleSets.d.ts +3 -0
- package/node_modules/@contrail/org-config-migration/lib/types/exportRuleSets.js +39 -0
- package/node_modules/@contrail/org-config-migration/lib/types/exportTypePolicies.d.ts +3 -0
- package/node_modules/@contrail/org-config-migration/lib/types/exportTypePolicies.js +56 -0
- package/node_modules/@contrail/org-config-migration/lib/types/exportTypePropertyPolicies.d.ts +3 -0
- package/node_modules/@contrail/org-config-migration/lib/types/exportTypePropertyPolicies.js +71 -0
- package/node_modules/@contrail/org-config-migration/lib/types/exportTypes.d.ts +2 -0
- package/node_modules/@contrail/org-config-migration/lib/types/exportTypes.js +85 -0
- package/node_modules/@contrail/org-config-migration/lib/types/exportUsageInfo.d.ts +2 -0
- package/node_modules/@contrail/org-config-migration/lib/types/exportUsageInfo.js +39 -0
- package/node_modules/@contrail/org-config-migration/lib/types/importAll.d.ts +2 -0
- package/node_modules/@contrail/org-config-migration/lib/types/importAll.js +451 -0
- package/node_modules/@contrail/org-config-migration/lib/types/index.d.ts +9 -0
- package/node_modules/@contrail/org-config-migration/lib/types/index.js +25 -0
- package/node_modules/@contrail/org-config-migration/lib/types/parseOptionSetHierarchy.d.ts +3 -0
- package/node_modules/@contrail/org-config-migration/lib/types/parseOptionSetHierarchy.js +210 -0
- package/node_modules/@contrail/org-config-migration/lib/users/export.d.ts +2 -0
- package/node_modules/@contrail/org-config-migration/lib/users/export.js +40 -0
- package/node_modules/@contrail/org-config-migration/lib/users/import.d.ts +2 -0
- package/node_modules/@contrail/org-config-migration/lib/users/import.js +41 -0
- package/node_modules/@contrail/org-config-migration/lib/users/index.d.ts +2 -0
- package/node_modules/@contrail/org-config-migration/lib/users/index.js +18 -0
- package/node_modules/@contrail/org-config-migration/node_modules/commander/CHANGELOG.md +361 -0
- package/node_modules/@contrail/org-config-migration/node_modules/commander/LICENSE +22 -0
- package/node_modules/@contrail/org-config-migration/node_modules/commander/Readme.md +791 -0
- package/node_modules/@contrail/org-config-migration/node_modules/commander/index.js +1881 -0
- package/node_modules/@contrail/org-config-migration/node_modules/commander/package.json +51 -0
- package/node_modules/@contrail/org-config-migration/node_modules/commander/typings/index.d.ts +410 -0
- package/node_modules/@contrail/org-config-migration/node_modules/json2csv/.eslintrc +10 -0
- package/node_modules/@contrail/org-config-migration/node_modules/json2csv/.gitattributes +3 -0
- package/node_modules/@contrail/org-config-migration/node_modules/json2csv/.prettierrc.js +3 -0
- package/node_modules/@contrail/org-config-migration/node_modules/json2csv/LICENSE.md +14 -0
- package/node_modules/@contrail/org-config-migration/node_modules/json2csv/README.md +15 -0
- package/node_modules/@contrail/org-config-migration/node_modules/json2csv/bin/json2csv.js +192 -0
- package/node_modules/@contrail/org-config-migration/node_modules/json2csv/bin/utils/TablePrinter.js +117 -0
- package/node_modules/@contrail/org-config-migration/node_modules/json2csv/bin/utils/parseNdjson.js +11 -0
- package/node_modules/@contrail/org-config-migration/node_modules/json2csv/docs/cli-examples.md +73 -0
- package/node_modules/@contrail/org-config-migration/node_modules/json2csv/docs/parser-examples.md +488 -0
- package/node_modules/@contrail/org-config-migration/node_modules/json2csv/lib/JSON2CSVAsyncParser.js +35 -0
- package/node_modules/@contrail/org-config-migration/node_modules/json2csv/lib/JSON2CSVBase.js +175 -0
- package/node_modules/@contrail/org-config-migration/node_modules/json2csv/lib/JSON2CSVParser.js +72 -0
- package/node_modules/@contrail/org-config-migration/node_modules/json2csv/lib/JSON2CSVStreamParser.js +150 -0
- package/node_modules/@contrail/org-config-migration/node_modules/json2csv/lib/JSON2CSVTransform.js +74 -0
- package/node_modules/@contrail/org-config-migration/node_modules/json2csv/lib/formatters/default.js +7 -0
- package/node_modules/@contrail/org-config-migration/node_modules/json2csv/lib/formatters/number.js +26 -0
- package/node_modules/@contrail/org-config-migration/node_modules/json2csv/lib/formatters/object.js +17 -0
- package/node_modules/@contrail/org-config-migration/node_modules/json2csv/lib/formatters/string.js +18 -0
- package/node_modules/@contrail/org-config-migration/node_modules/json2csv/lib/formatters/stringExcel.js +8 -0
- package/node_modules/@contrail/org-config-migration/node_modules/json2csv/lib/formatters/stringQuoteOnlyIfNecessary.js +21 -0
- package/node_modules/@contrail/org-config-migration/node_modules/json2csv/lib/formatters/symbol.js +7 -0
- package/node_modules/@contrail/org-config-migration/node_modules/json2csv/lib/json2csv.js +43 -0
- package/node_modules/@contrail/org-config-migration/node_modules/json2csv/lib/transforms/flatten.js +37 -0
- package/node_modules/@contrail/org-config-migration/node_modules/json2csv/lib/transforms/unwind.js +60 -0
- package/node_modules/@contrail/org-config-migration/node_modules/json2csv/lib/utils.js +86 -0
- package/node_modules/@contrail/org-config-migration/node_modules/json2csv/package.json +73 -0
- package/node_modules/@contrail/org-config-migration/node_modules/json2csv/rollup.config.js +44 -0
- package/node_modules/@contrail/org-config-migration/package.json +50 -0
- package/node_modules/@contrail/policies/README.md +0 -0
- package/node_modules/@contrail/policies/lib/index.d.ts +1 -0
- package/node_modules/@contrail/policies/lib/index.js +17 -0
- package/node_modules/@contrail/policies/lib/policies/index.d.ts +1 -0
- package/node_modules/@contrail/policies/lib/policies/index.js +17 -0
- package/node_modules/@contrail/policies/lib/policies/policies.d.ts +41 -0
- package/node_modules/@contrail/policies/lib/policies/policies.js +132 -0
- package/node_modules/@contrail/policies/package.json +40 -0
- package/node_modules/@contrail/sdk/.github/pull_request_template.md +31 -0
- package/node_modules/@contrail/sdk/.github/workflows/check-code-formatting.yml +34 -0
- package/node_modules/@contrail/sdk/.github/workflows/empty.yml +10 -0
- package/node_modules/@contrail/sdk/.github/workflows/generate-sdk-docs.yml +32 -0
- package/node_modules/@contrail/sdk/.github/workflows/sdk-lib.yml +27 -0
- package/node_modules/@contrail/sdk/.prettierrc.yaml +2 -0
- package/node_modules/@contrail/sdk/README.md +72 -0
- package/node_modules/@contrail/sdk/home-hero.svg +11 -0
- package/node_modules/@contrail/sdk/lib/assets/assets.d.ts +9 -0
- package/node_modules/@contrail/sdk/lib/assets/assets.js +54 -0
- package/node_modules/@contrail/sdk/lib/assets/index.d.ts +1 -0
- package/node_modules/@contrail/sdk/lib/assets/index.js +17 -0
- package/node_modules/@contrail/sdk/lib/auth/auth.d.ts +10 -0
- package/node_modules/@contrail/sdk/lib/auth/auth.js +6 -0
- package/node_modules/@contrail/sdk/lib/auth/index.d.ts +2 -0
- package/node_modules/@contrail/sdk/lib/auth/index.js +18 -0
- package/node_modules/@contrail/sdk/lib/auth/login.d.ts +10 -0
- package/node_modules/@contrail/sdk/lib/auth/login.js +170 -0
- package/node_modules/@contrail/sdk/lib/config/config.d.ts +45 -0
- package/node_modules/@contrail/sdk/lib/config/config.js +36 -0
- package/node_modules/@contrail/sdk/lib/config/index.d.ts +1 -0
- package/node_modules/@contrail/sdk/lib/config/index.js +17 -0
- package/node_modules/@contrail/sdk/lib/content/content.d.ts +12 -0
- package/node_modules/@contrail/sdk/lib/content/content.js +70 -0
- package/node_modules/@contrail/sdk/lib/content/index.d.ts +1 -0
- package/node_modules/@contrail/sdk/lib/content/index.js +17 -0
- package/node_modules/@contrail/sdk/lib/core/index.d.ts +1 -0
- package/node_modules/@contrail/sdk/lib/core/index.js +17 -0
- package/node_modules/@contrail/sdk/lib/core/request.d.ts +12 -0
- package/node_modules/@contrail/sdk/lib/core/request.js +145 -0
- package/node_modules/@contrail/sdk/lib/entities/entities.client.d.ts +101 -0
- package/node_modules/@contrail/sdk/lib/entities/entities.client.js +306 -0
- package/node_modules/@contrail/sdk/lib/entities/entity-reference-expander.d.ts +9 -0
- package/node_modules/@contrail/sdk/lib/entities/entity-reference-expander.js +86 -0
- package/node_modules/@contrail/sdk/lib/entities/entity-reference.d.ts +6 -0
- package/node_modules/@contrail/sdk/lib/entities/entity-reference.js +19 -0
- package/node_modules/@contrail/sdk/lib/entities/entity.resource.registry.d.ts +5 -0
- package/node_modules/@contrail/sdk/lib/entities/entity.resource.registry.js +57 -0
- package/node_modules/@contrail/sdk/lib/entities/index.d.ts +3 -0
- package/node_modules/@contrail/sdk/lib/entities/index.js +19 -0
- package/node_modules/@contrail/sdk/lib/files/file-type-helper.d.ts +3 -0
- package/node_modules/@contrail/sdk/lib/files/file-type-helper.js +24 -0
- package/node_modules/@contrail/sdk/lib/files/files.d.ts +9 -0
- package/node_modules/@contrail/sdk/lib/files/files.js +110 -0
- package/node_modules/@contrail/sdk/lib/files/index.d.ts +1 -0
- package/node_modules/@contrail/sdk/lib/files/index.js +17 -0
- package/node_modules/@contrail/sdk/lib/index.d.ts +10 -0
- package/node_modules/@contrail/sdk/lib/index.js +26 -0
- package/node_modules/@contrail/sdk/lib/notifications/index.d.ts +1 -0
- package/node_modules/@contrail/sdk/lib/notifications/index.js +17 -0
- package/node_modules/@contrail/sdk/lib/notifications/notifications-dispatcher.d.ts +16 -0
- package/node_modules/@contrail/sdk/lib/notifications/notifications-dispatcher.js +37 -0
- package/node_modules/@contrail/sdk/lib/policies/index.d.ts +1 -0
- package/node_modules/@contrail/sdk/lib/policies/index.js +17 -0
- package/node_modules/@contrail/sdk/lib/policies/policies-cache.d.ts +12 -0
- package/node_modules/@contrail/sdk/lib/policies/policies-cache.js +55 -0
- package/node_modules/@contrail/sdk/lib/policies/policies.client.d.ts +9 -0
- package/node_modules/@contrail/sdk/lib/policies/policies.client.js +74 -0
- package/node_modules/@contrail/sdk/lib/types/index.d.ts +2 -0
- package/node_modules/@contrail/sdk/lib/types/index.js +18 -0
- package/node_modules/@contrail/sdk/lib/types/sub-types-helper.d.ts +18 -0
- package/node_modules/@contrail/sdk/lib/types/sub-types-helper.js +98 -0
- package/node_modules/@contrail/sdk/lib/types/types-cache.d.ts +19 -0
- package/node_modules/@contrail/sdk/lib/types/types-cache.js +73 -0
- package/node_modules/@contrail/sdk/lib/types/types.client.d.ts +42 -0
- package/node_modules/@contrail/sdk/lib/types/types.client.js +217 -0
- package/node_modules/@contrail/sdk/package.json +61 -0
- package/node_modules/@contrail/types/README.md +1 -0
- package/node_modules/@contrail/types/lib/copy/copy-helper.d.ts +16 -0
- package/node_modules/@contrail/types/lib/copy/copy-helper.js +103 -0
- package/node_modules/@contrail/types/lib/copy/index.d.ts +1 -0
- package/node_modules/@contrail/types/lib/copy/index.js +17 -0
- package/node_modules/@contrail/types/lib/formatter/formatDate.d.ts +3 -0
- package/node_modules/@contrail/types/lib/formatter/formatDate.js +77 -0
- package/node_modules/@contrail/types/lib/formatter/formatDateCache.d.ts +6 -0
- package/node_modules/@contrail/types/lib/formatter/formatDateCache.js +19 -0
- package/node_modules/@contrail/types/lib/formatter/formatNumber.d.ts +3 -0
- package/node_modules/@contrail/types/lib/formatter/formatNumber.js +40 -0
- package/node_modules/@contrail/types/lib/formatter/formatNumberCache.d.ts +6 -0
- package/node_modules/@contrail/types/lib/formatter/formatNumberCache.js +19 -0
- package/node_modules/@contrail/types/lib/formatter/formatSizeRange.d.ts +1 -0
- package/node_modules/@contrail/types/lib/formatter/formatSizeRange.js +25 -0
- package/node_modules/@contrail/types/lib/formatter/index.d.ts +1 -0
- package/node_modules/@contrail/types/lib/formatter/index.js +17 -0
- package/node_modules/@contrail/types/lib/formatter/property-value-formatter.d.ts +37 -0
- package/node_modules/@contrail/types/lib/formatter/property-value-formatter.js +332 -0
- package/node_modules/@contrail/types/lib/index.d.ts +11 -0
- package/node_modules/@contrail/types/lib/index.js +27 -0
- package/node_modules/@contrail/types/lib/mocks/type-mocks.d.ts +3 -0
- package/node_modules/@contrail/types/lib/mocks/type-mocks.js +5466 -0
- package/node_modules/@contrail/types/lib/relations/relation.d.ts +6 -0
- package/node_modules/@contrail/types/lib/relations/relation.js +2 -0
- package/node_modules/@contrail/types/lib/type-interfaces/index.d.ts +1 -0
- package/node_modules/@contrail/types/lib/type-interfaces/index.js +17 -0
- package/node_modules/@contrail/types/lib/type-interfaces/type-interface.d.ts +4 -0
- package/node_modules/@contrail/types/lib/type-interfaces/type-interface.js +2 -0
- package/node_modules/@contrail/types/lib/type-option-set-hierarchies/index.d.ts +2 -0
- package/node_modules/@contrail/types/lib/type-option-set-hierarchies/index.js +18 -0
- package/node_modules/@contrail/types/lib/type-option-set-hierarchies/option-set-hierarchy-helper.d.ts +10 -0
- package/node_modules/@contrail/types/lib/type-option-set-hierarchies/option-set-hierarchy-helper.js +37 -0
- package/node_modules/@contrail/types/lib/type-option-set-hierarchies/option-set-hierarchy.d.ts +20 -0
- package/node_modules/@contrail/types/lib/type-option-set-hierarchies/option-set-hierarchy.js +2 -0
- package/node_modules/@contrail/types/lib/type-policies/index.d.ts +1 -0
- package/node_modules/@contrail/types/lib/type-policies/index.js +17 -0
- package/node_modules/@contrail/types/lib/type-policies/type-policy.d.ts +9 -0
- package/node_modules/@contrail/types/lib/type-policies/type-policy.js +2 -0
- package/node_modules/@contrail/types/lib/type-properties/index.d.ts +3 -0
- package/node_modules/@contrail/types/lib/type-properties/index.js +19 -0
- package/node_modules/@contrail/types/lib/type-properties/property-types.d.ts +35 -0
- package/node_modules/@contrail/types/lib/type-properties/property-types.js +66 -0
- package/node_modules/@contrail/types/lib/type-properties/size-range/size-range.d.ts +12 -0
- package/node_modules/@contrail/types/lib/type-properties/size-range/size-range.js +2 -0
- package/node_modules/@contrail/types/lib/type-properties/type-property.d.ts +103 -0
- package/node_modules/@contrail/types/lib/type-properties/type-property.js +39 -0
- package/node_modules/@contrail/types/lib/type-property-policies/index.d.ts +1 -0
- package/node_modules/@contrail/types/lib/type-property-policies/index.js +17 -0
- package/node_modules/@contrail/types/lib/type-property-policies/type-property-policy.d.ts +9 -0
- package/node_modules/@contrail/types/lib/type-property-policies/type-property-policy.js +2 -0
- package/node_modules/@contrail/types/lib/type-roots/index.d.ts +1 -0
- package/node_modules/@contrail/types/lib/type-roots/index.js +17 -0
- package/node_modules/@contrail/types/lib/type-roots/type-root.d.ts +7 -0
- package/node_modules/@contrail/types/lib/type-roots/type-root.js +2 -0
- package/node_modules/@contrail/types/lib/type-rule-sets/index.d.ts +1 -0
- package/node_modules/@contrail/types/lib/type-rule-sets/index.js +17 -0
- package/node_modules/@contrail/types/lib/type-rule-sets/type-rules.d.ts +18 -0
- package/node_modules/@contrail/types/lib/type-rule-sets/type-rules.js +2 -0
- package/node_modules/@contrail/types/lib/types/index.d.ts +1 -0
- package/node_modules/@contrail/types/lib/types/index.js +17 -0
- package/node_modules/@contrail/types/lib/types/type.d.ts +28 -0
- package/node_modules/@contrail/types/lib/types/type.js +2 -0
- package/node_modules/@contrail/types/lib/types-processor/index.d.ts +3 -0
- package/node_modules/@contrail/types/lib/types-processor/index.js +19 -0
- package/node_modules/@contrail/types/lib/types-processor/interfaces.d.ts +32 -0
- package/node_modules/@contrail/types/lib/types-processor/interfaces.js +2 -0
- package/node_modules/@contrail/types/lib/types-processor/parse-optionSet.d.ts +3 -0
- package/node_modules/@contrail/types/lib/types-processor/parse-optionSet.js +57 -0
- package/node_modules/@contrail/types/lib/types-processor/process-orchestrator.d.ts +13 -0
- package/node_modules/@contrail/types/lib/types-processor/process-orchestrator.js +300 -0
- package/node_modules/@contrail/types/lib/types-processor/type-creation-helper.d.ts +10 -0
- package/node_modules/@contrail/types/lib/types-processor/type-creation-helper.js +147 -0
- package/node_modules/@contrail/types/package.json +46 -0
- package/node_modules/@contrail/util/CHANGELOG.md +17 -0
- package/node_modules/@contrail/util/README.md +1 -0
- package/node_modules/@contrail/util/lib/app-util/app-util.d.ts +25 -0
- package/node_modules/@contrail/util/lib/app-util/app-util.js +72 -0
- package/node_modules/@contrail/util/lib/compression-util/compression.d.ts +2 -0
- package/node_modules/@contrail/util/lib/compression-util/compression.js +25 -0
- package/node_modules/@contrail/util/lib/compression-util/index.d.ts +1 -0
- package/node_modules/@contrail/util/lib/compression-util/index.js +17 -0
- package/node_modules/@contrail/util/lib/date-util/date-util.d.ts +4 -0
- package/node_modules/@contrail/util/lib/date-util/date-util.js +8 -0
- package/node_modules/@contrail/util/lib/date-util/getIsoDatePart/getIsoDatePart.d.ts +1 -0
- package/node_modules/@contrail/util/lib/date-util/getIsoDatePart/getIsoDatePart.js +16 -0
- package/node_modules/@contrail/util/lib/index.d.ts +11 -0
- package/node_modules/@contrail/util/lib/index.js +27 -0
- package/node_modules/@contrail/util/lib/map-util/map-util.d.ts +3 -0
- package/node_modules/@contrail/util/lib/map-util/map-util.js +18 -0
- package/node_modules/@contrail/util/lib/object-util/applyChangesIfEqual/applyChangesIfEqual.d.ts +4 -0
- package/node_modules/@contrail/util/lib/object-util/applyChangesIfEqual/applyChangesIfEqual.js +83 -0
- package/node_modules/@contrail/util/lib/object-util/cloneDeep/cloneDeep.d.ts +9 -0
- package/node_modules/@contrail/util/lib/object-util/cloneDeep/cloneDeep.js +8 -0
- package/node_modules/@contrail/util/lib/object-util/cloneDeepPreserveDates/cloneDeepPreserveDates.d.ts +6 -0
- package/node_modules/@contrail/util/lib/object-util/cloneDeepPreserveDates/cloneDeepPreserveDates.js +37 -0
- package/node_modules/@contrail/util/lib/object-util/compareDeep/compareDeep.d.ts +7 -0
- package/node_modules/@contrail/util/lib/object-util/compareDeep/compareDeep.js +96 -0
- package/node_modules/@contrail/util/lib/object-util/compareDeep/mockData.d.ts +88 -0
- package/node_modules/@contrail/util/lib/object-util/compareDeep/mockData.js +91 -0
- package/node_modules/@contrail/util/lib/object-util/flattenObject/flattenObject.d.ts +4 -0
- package/node_modules/@contrail/util/lib/object-util/flattenObject/flattenObject.js +60 -0
- package/node_modules/@contrail/util/lib/object-util/isObject/isObject.d.ts +1 -0
- package/node_modules/@contrail/util/lib/object-util/isObject/isObject.js +6 -0
- package/node_modules/@contrail/util/lib/object-util/mergeDeep/mergeDeep.d.ts +1 -0
- package/node_modules/@contrail/util/lib/object-util/mergeDeep/mergeDeep.js +25 -0
- package/node_modules/@contrail/util/lib/object-util/object-util.d.ts +26 -0
- package/node_modules/@contrail/util/lib/object-util/object-util.js +91 -0
- package/node_modules/@contrail/util/lib/object-util/retainOnlyProperties/retainOnlyProperties.d.ts +8 -0
- package/node_modules/@contrail/util/lib/object-util/retainOnlyProperties/retainOnlyProperties.js +30 -0
- package/node_modules/@contrail/util/lib/order-util/order-util.d.ts +3 -0
- package/node_modules/@contrail/util/lib/order-util/order-util.js +13 -0
- package/node_modules/@contrail/util/lib/performance-util/example-usage.d.ts +1 -0
- package/node_modules/@contrail/util/lib/performance-util/example-usage.js +298 -0
- package/node_modules/@contrail/util/lib/performance-util/performance-util.d.ts +35 -0
- package/node_modules/@contrail/util/lib/performance-util/performance-util.js +257 -0
- package/node_modules/@contrail/util/lib/promise-util/promise-util.d.ts +4 -0
- package/node_modules/@contrail/util/lib/promise-util/promise-util.js +34 -0
- package/node_modules/@contrail/util/lib/retry-util/retry-util.d.ts +6 -0
- package/node_modules/@contrail/util/lib/retry-util/retry-util.js +41 -0
- package/node_modules/@contrail/util/lib/string-util/string-util.d.ts +10 -0
- package/node_modules/@contrail/util/lib/string-util/string-util.js +85 -0
- package/node_modules/@contrail/util/lib/timer-util/timer-util.d.ts +32 -0
- package/node_modules/@contrail/util/lib/timer-util/timer-util.js +119 -0
- package/node_modules/@contrail/util/package.json +46 -0
- package/node_modules/@streamparser/json/.eslintrc.js +16 -0
- package/node_modules/@streamparser/json/.github/workflows/on-push.yaml +33 -0
- package/node_modules/@streamparser/json/.github/workflows/on-release.yaml +19 -0
- package/node_modules/@streamparser/json/LICENSE +21 -0
- package/node_modules/@streamparser/json/README.md +329 -0
- package/node_modules/@streamparser/json/build.deno.js +57 -0
- package/node_modules/@streamparser/json/build.mjs.js +35 -0
- package/node_modules/@streamparser/json/dist/cjs/index.d.ts +5 -0
- package/node_modules/@streamparser/json/dist/cjs/index.js +12 -0
- package/node_modules/@streamparser/json/dist/cjs/jsonparser.d.ts +18 -0
- package/node_modules/@streamparser/json/dist/cjs/jsonparser.js +46 -0
- package/node_modules/@streamparser/json/dist/cjs/tokenizer.d.ts +45 -0
- package/node_modules/@streamparser/json/dist/cjs/tokenizer.js +517 -0
- package/node_modules/@streamparser/json/dist/cjs/tokenparser.d.ts +55 -0
- package/node_modules/@streamparser/json/dist/cjs/tokenparser.js +269 -0
- package/node_modules/@streamparser/json/dist/cjs/utils/bufferedString.d.ts +29 -0
- package/node_modules/@streamparser/json/dist/cjs/utils/bufferedString.js +63 -0
- package/node_modules/@streamparser/json/dist/cjs/utils/constants.d.ts +14 -0
- package/node_modules/@streamparser/json/dist/cjs/utils/constants.js +18 -0
- package/node_modules/@streamparser/json/dist/cjs/utils/types.d.ts +7 -0
- package/node_modules/@streamparser/json/dist/cjs/utils/types.js +2 -0
- package/node_modules/@streamparser/json/dist/cjs/utils/utf-8.d.ts +105 -0
- package/node_modules/@streamparser/json/dist/cjs/utils/utf-8.js +116 -0
- package/node_modules/@streamparser/json/dist/deno/README.md +329 -0
- package/node_modules/@streamparser/json/dist/deno/index.ts +5 -0
- package/node_modules/@streamparser/json/dist/deno/jsonparser.ts +65 -0
- package/node_modules/@streamparser/json/dist/deno/tokenizer.ts +678 -0
- package/node_modules/@streamparser/json/dist/deno/tokenparser.ts +390 -0
- package/node_modules/@streamparser/json/dist/deno/utils/bufferedString.ts +75 -0
- package/node_modules/@streamparser/json/dist/deno/utils/constants.ts +14 -0
- package/node_modules/@streamparser/json/dist/deno/utils/types.ts +5 -0
- package/node_modules/@streamparser/json/dist/deno/utils/utf-8.ts +113 -0
- package/node_modules/@streamparser/json/dist/mjs/index.d.ts +5 -0
- package/node_modules/@streamparser/json/dist/mjs/jsonparser.d.ts +18 -0
- package/node_modules/@streamparser/json/dist/mjs/tokenizer.d.ts +45 -0
- package/node_modules/@streamparser/json/dist/mjs/tokenparser.d.ts +55 -0
- package/node_modules/@streamparser/json/dist/mjs/utils/bufferedString.d.ts +29 -0
- package/node_modules/@streamparser/json/dist/mjs/utils/constants.d.ts +14 -0
- package/node_modules/@streamparser/json/dist/mjs/utils/types.d.ts +7 -0
- package/node_modules/@streamparser/json/dist/mjs/utils/utf-8.d.ts +105 -0
- package/node_modules/@streamparser/json/dist/umd/index.d.ts +5 -0
- package/node_modules/@streamparser/json/dist/umd/index.js +1111 -0
- package/node_modules/@streamparser/json/dist/umd/jsonparser.d.ts +18 -0
- package/node_modules/@streamparser/json/dist/umd/tokenizer.d.ts +45 -0
- package/node_modules/@streamparser/json/dist/umd/tokenparser.d.ts +55 -0
- package/node_modules/@streamparser/json/dist/umd/utils/bufferedString.d.ts +29 -0
- package/node_modules/@streamparser/json/dist/umd/utils/constants.d.ts +14 -0
- package/node_modules/@streamparser/json/dist/umd/utils/types.d.ts +7 -0
- package/node_modules/@streamparser/json/dist/umd/utils/utf-8.d.ts +105 -0
- package/node_modules/@streamparser/json/package.json +45 -0
- package/node_modules/@streamparser/json/performance/index.deno.ts +61 -0
- package/node_modules/@streamparser/json/performance/index.node.mjs +62 -0
- package/node_modules/@streamparser/json/performance/package-lock.json +32 -0
- package/node_modules/@streamparser/json/performance/package.json +17 -0
- package/node_modules/@streamparser/json/rollup.config.js +22 -0
- package/node_modules/@streamparser/json/samplejson/basic-no-numbers.json +353 -0
- package/node_modules/@streamparser/json/samplejson/basic.json +353 -0
- package/node_modules/@streamparser/json/src/index.ts +5 -0
- package/node_modules/@streamparser/json/src/jsonparser.ts +65 -0
- package/node_modules/@streamparser/json/src/tokenizer.ts +678 -0
- package/node_modules/@streamparser/json/src/tokenparser.ts +390 -0
- package/node_modules/@streamparser/json/src/utils/bufferedString.ts +75 -0
- package/node_modules/@streamparser/json/src/utils/constants.ts +14 -0
- package/node_modules/@streamparser/json/src/utils/types.ts +5 -0
- package/node_modules/@streamparser/json/src/utils/utf-8.ts +113 -0
- package/node_modules/@streamparser/json/test/callbacks.ts +89 -0
- package/node_modules/@streamparser/json/test/end.ts +127 -0
- package/node_modules/@streamparser/json/test/inputs.ts +89 -0
- package/node_modules/@streamparser/json/test/keepStack.ts +45 -0
- package/node_modules/@streamparser/json/test/offset.ts +89 -0
- package/node_modules/@streamparser/json/test/performance.ts +151 -0
- package/node_modules/@streamparser/json/test/selectors.ts +87 -0
- package/node_modules/@streamparser/json/test/separator.ts +106 -0
- package/node_modules/@streamparser/json/test/types/arrays.ts +108 -0
- package/node_modules/@streamparser/json/test/types/booleans.ts +75 -0
- package/node_modules/@streamparser/json/test/types/null.ts +67 -0
- package/node_modules/@streamparser/json/test/types/numbers.ts +117 -0
- package/node_modules/@streamparser/json/test/types/objects.ts +134 -0
- package/node_modules/@streamparser/json/test/types/strings.ts +233 -0
- package/node_modules/@streamparser/json/tsconfig.json +18 -0
- package/node_modules/amazon-cognito-identity-js/.eslintignore +1 -0
- package/node_modules/amazon-cognito-identity-js/.eslintrc.yaml +30 -0
- package/node_modules/amazon-cognito-identity-js/CHANGELOG.md +1756 -0
- package/node_modules/amazon-cognito-identity-js/LICENSE.txt +73 -0
- package/node_modules/amazon-cognito-identity-js/NOTICE.txt +63 -0
- package/node_modules/amazon-cognito-identity-js/README.md +1121 -0
- package/node_modules/amazon-cognito-identity-js/RNAWSCognito.podspec +23 -0
- package/node_modules/amazon-cognito-identity-js/__mocks__/mocks.js +73 -0
- package/node_modules/amazon-cognito-identity-js/__tests__/AuthenticationDetails.test.js +32 -0
- package/node_modules/amazon-cognito-identity-js/__tests__/AuthenticationHelper.test.js +893 -0
- package/node_modules/amazon-cognito-identity-js/__tests__/BigInteger.test.js +17 -0
- package/node_modules/amazon-cognito-identity-js/__tests__/Client.test.js +108 -0
- package/node_modules/amazon-cognito-identity-js/__tests__/CognitoAccessToken.test.js +16 -0
- package/node_modules/amazon-cognito-identity-js/__tests__/CognitoIdToken.test.js +8 -0
- package/node_modules/amazon-cognito-identity-js/__tests__/CognitoJwtToken.test.js +40 -0
- package/node_modules/amazon-cognito-identity-js/__tests__/CognitoRefreshToken.test.js +13 -0
- package/node_modules/amazon-cognito-identity-js/__tests__/CognitoUser.test.js +1660 -0
- package/node_modules/amazon-cognito-identity-js/__tests__/CognitoUserAttribute.test.js +57 -0
- package/node_modules/amazon-cognito-identity-js/__tests__/CognitoUserPool.test.js +92 -0
- package/node_modules/amazon-cognito-identity-js/__tests__/CognitoUserSession.test.js +78 -0
- package/node_modules/amazon-cognito-identity-js/__tests__/CookieStorage.test.js +72 -0
- package/node_modules/amazon-cognito-identity-js/__tests__/DateHelper.test.js +12 -0
- package/node_modules/amazon-cognito-identity-js/__tests__/StorageHelper.test.js +65 -0
- package/node_modules/amazon-cognito-identity-js/__tests__/StorageHelperRN.test.js +120 -0
- package/node_modules/amazon-cognito-identity-js/__tests__/UserAgent.test.js +42 -0
- package/node_modules/amazon-cognito-identity-js/__tests__/UserAgentDefault.test.js +9 -0
- package/node_modules/amazon-cognito-identity-js/__tests__/constants.js +122 -0
- package/node_modules/amazon-cognito-identity-js/__tests__/cryptoSecureRandomInt.test.js +59 -0
- package/node_modules/amazon-cognito-identity-js/__tests__/index.test.js +23 -0
- package/node_modules/amazon-cognito-identity-js/__tests__/util.js +24 -0
- package/node_modules/amazon-cognito-identity-js/android/.gradle/5.4/fileChanges/last-build.bin +0 -0
- package/node_modules/amazon-cognito-identity-js/android/.gradle/5.4/fileHashes/fileHashes.lock +0 -0
- package/node_modules/amazon-cognito-identity-js/android/.gradle/5.4/gc.properties +0 -0
- package/node_modules/amazon-cognito-identity-js/android/.gradle/vcs-1/gc.properties +0 -0
- package/node_modules/amazon-cognito-identity-js/android/.project +17 -0
- package/node_modules/amazon-cognito-identity-js/android/.settings/org.eclipse.buildship.core.prefs +13 -0
- package/node_modules/amazon-cognito-identity-js/android/build.gradle +38 -0
- package/node_modules/amazon-cognito-identity-js/android/src/main/AndroidManifest.xml +4 -0
- package/node_modules/amazon-cognito-identity-js/android/src/main/java/com/amazonaws/RNAWSCognitoModule.java +88 -0
- package/node_modules/amazon-cognito-identity-js/android/src/main/java/com/amazonaws/RNAWSCognitoPackage.java +27 -0
- package/node_modules/amazon-cognito-identity-js/dist/amazon-cognito-identity.js +8036 -0
- package/node_modules/amazon-cognito-identity-js/dist/amazon-cognito-identity.min.js +40 -0
- package/node_modules/amazon-cognito-identity-js/dist/amazon-cognito-identity.min.js.gz +0 -0
- package/node_modules/amazon-cognito-identity-js/enhance-rn.js +50 -0
- package/node_modules/amazon-cognito-identity-js/es/AuthenticationDetails.js +66 -0
- package/node_modules/amazon-cognito-identity-js/es/AuthenticationHelper.js +343 -0
- package/node_modules/amazon-cognito-identity-js/es/BigInteger.js +758 -0
- package/node_modules/amazon-cognito-identity-js/es/Client.js +215 -0
- package/node_modules/amazon-cognito-identity-js/es/CognitoAccessToken.js +24 -0
- package/node_modules/amazon-cognito-identity-js/es/CognitoIdToken.js +24 -0
- package/node_modules/amazon-cognito-identity-js/es/CognitoJwtToken.js +55 -0
- package/node_modules/amazon-cognito-identity-js/es/CognitoRefreshToken.js +27 -0
- package/node_modules/amazon-cognito-identity-js/es/CognitoUser.js +1807 -0
- package/node_modules/amazon-cognito-identity-js/es/CognitoUserAttribute.js +73 -0
- package/node_modules/amazon-cognito-identity-js/es/CognitoUserPool.js +174 -0
- package/node_modules/amazon-cognito-identity-js/es/CognitoUserSession.js +79 -0
- package/node_modules/amazon-cognito-identity-js/es/CookieStorage.js +112 -0
- package/node_modules/amazon-cognito-identity-js/es/DateHelper.js +41 -0
- package/node_modules/amazon-cognito-identity-js/es/Platform/index.js +34 -0
- package/node_modules/amazon-cognito-identity-js/es/Platform/version.js +2 -0
- package/node_modules/amazon-cognito-identity-js/es/StorageHelper-rn.js +102 -0
- package/node_modules/amazon-cognito-identity-js/es/StorageHelper.js +78 -0
- package/node_modules/amazon-cognito-identity-js/es/UserAgent.js +19 -0
- package/node_modules/amazon-cognito-identity-js/es/index.js +18 -0
- package/node_modules/amazon-cognito-identity-js/es/utils/WordArray.js +46 -0
- package/node_modules/amazon-cognito-identity-js/es/utils/cryptoSecureRandomInt.js +46 -0
- package/node_modules/amazon-cognito-identity-js/es/utils/cryptoSecureRandomInt.native.js +9 -0
- package/node_modules/amazon-cognito-identity-js/es/utils/cryptoSecureRandomInt.web.js +34 -0
- package/node_modules/amazon-cognito-identity-js/es/utils/getRandomBase64.native.js +5 -0
- package/node_modules/amazon-cognito-identity-js/es/utils/getRandomValues.native.js +58 -0
- package/node_modules/amazon-cognito-identity-js/index.d.ts +426 -0
- package/node_modules/amazon-cognito-identity-js/ios/JKBigInteger/JKBigDecimal.h +40 -0
- package/node_modules/amazon-cognito-identity-js/ios/JKBigInteger/JKBigDecimal.m +224 -0
- package/node_modules/amazon-cognito-identity-js/ios/JKBigInteger/JKBigInteger.h +58 -0
- package/node_modules/amazon-cognito-identity-js/ios/JKBigInteger/JKBigInteger.m +419 -0
- package/node_modules/amazon-cognito-identity-js/ios/JKBigInteger/LICENSE.txt +18 -0
- package/node_modules/amazon-cognito-identity-js/ios/JKBigInteger/LibTomMath/tommath.c +6925 -0
- package/node_modules/amazon-cognito-identity-js/ios/JKBigInteger/LibTomMath/tommath.h +584 -0
- package/node_modules/amazon-cognito-identity-js/ios/JKBigInteger/LibTomMath/tommath_class.h +999 -0
- package/node_modules/amazon-cognito-identity-js/ios/JKBigInteger/LibTomMath/tommath_superclass.h +76 -0
- package/node_modules/amazon-cognito-identity-js/ios/RNAWSCognito.h +9 -0
- package/node_modules/amazon-cognito-identity-js/ios/RNAWSCognito.m +59 -0
- package/node_modules/amazon-cognito-identity-js/ios/RNAWSCognito.xcodeproj/project.pbxproj +295 -0
- package/node_modules/amazon-cognito-identity-js/ios/RNAWSCognito.xcodeproj/project.xcworkspace/contents.xcworkspacedata +7 -0
- package/node_modules/amazon-cognito-identity-js/jest.config.js +41 -0
- package/node_modules/amazon-cognito-identity-js/lib/AuthenticationDetails.js +70 -0
- package/node_modules/amazon-cognito-identity-js/lib/AuthenticationHelper.js +348 -0
- package/node_modules/amazon-cognito-identity-js/lib/BigInteger.js +760 -0
- package/node_modules/amazon-cognito-identity-js/lib/Client.js +220 -0
- package/node_modules/amazon-cognito-identity-js/lib/CognitoAccessToken.js +23 -0
- package/node_modules/amazon-cognito-identity-js/lib/CognitoIdToken.js +23 -0
- package/node_modules/amazon-cognito-identity-js/lib/CognitoJwtToken.js +57 -0
- package/node_modules/amazon-cognito-identity-js/lib/CognitoRefreshToken.js +31 -0
- package/node_modules/amazon-cognito-identity-js/lib/CognitoUser.js +1813 -0
- package/node_modules/amazon-cognito-identity-js/lib/CognitoUserAttribute.js +77 -0
- package/node_modules/amazon-cognito-identity-js/lib/CognitoUserPool.js +179 -0
- package/node_modules/amazon-cognito-identity-js/lib/CognitoUserSession.js +83 -0
- package/node_modules/amazon-cognito-identity-js/lib/CookieStorage.js +117 -0
- package/node_modules/amazon-cognito-identity-js/lib/DateHelper.js +45 -0
- package/node_modules/amazon-cognito-identity-js/lib/Platform/index.js +42 -0
- package/node_modules/amazon-cognito-identity-js/lib/Platform/version.js +7 -0
- package/node_modules/amazon-cognito-identity-js/lib/StorageHelper-rn.js +107 -0
- package/node_modules/amazon-cognito-identity-js/lib/StorageHelper.js +82 -0
- package/node_modules/amazon-cognito-identity-js/lib/UserAgent.js +25 -0
- package/node_modules/amazon-cognito-identity-js/lib/index.js +31 -0
- package/node_modules/amazon-cognito-identity-js/lib/utils/WordArray.js +50 -0
- package/node_modules/amazon-cognito-identity-js/lib/utils/cryptoSecureRandomInt.js +50 -0
- package/node_modules/amazon-cognito-identity-js/lib/utils/cryptoSecureRandomInt.native.js +13 -0
- package/node_modules/amazon-cognito-identity-js/lib/utils/cryptoSecureRandomInt.web.js +38 -0
- package/node_modules/amazon-cognito-identity-js/lib/utils/getRandomBase64.native.js +10 -0
- package/node_modules/amazon-cognito-identity-js/lib/utils/getRandomValues.native.js +63 -0
- package/node_modules/amazon-cognito-identity-js/package.json +94 -0
- package/node_modules/amazon-cognito-identity-js/src/AuthenticationDetails.js +65 -0
- package/node_modules/amazon-cognito-identity-js/src/AuthenticationHelper.js +416 -0
- package/node_modules/amazon-cognito-identity-js/src/BigInteger.js +809 -0
- package/node_modules/amazon-cognito-identity-js/src/Client.js +224 -0
- package/node_modules/amazon-cognito-identity-js/src/CognitoAccessToken.js +17 -0
- package/node_modules/amazon-cognito-identity-js/src/CognitoIdToken.js +17 -0
- package/node_modules/amazon-cognito-identity-js/src/CognitoJwtToken.js +52 -0
- package/node_modules/amazon-cognito-identity-js/src/CognitoRefreshToken.js +23 -0
- package/node_modules/amazon-cognito-identity-js/src/CognitoUser.js +2205 -0
- package/node_modules/amazon-cognito-identity-js/src/CognitoUserAttribute.js +68 -0
- package/node_modules/amazon-cognito-identity-js/src/CognitoUserPool.js +194 -0
- package/node_modules/amazon-cognito-identity-js/src/CognitoUserSession.js +82 -0
- package/node_modules/amazon-cognito-identity-js/src/CookieStorage.js +117 -0
- package/node_modules/amazon-cognito-identity-js/src/DateHelper.js +56 -0
- package/node_modules/amazon-cognito-identity-js/src/Platform/index.js +38 -0
- package/node_modules/amazon-cognito-identity-js/src/Platform/version.js +2 -0
- package/node_modules/amazon-cognito-identity-js/src/StorageHelper-rn.js +99 -0
- package/node_modules/amazon-cognito-identity-js/src/StorageHelper.js +75 -0
- package/node_modules/amazon-cognito-identity-js/src/UserAgent.js +26 -0
- package/node_modules/amazon-cognito-identity-js/src/index.js +18 -0
- package/node_modules/amazon-cognito-identity-js/src/utils/WordArray.js +50 -0
- package/node_modules/amazon-cognito-identity-js/src/utils/cryptoSecureRandomInt.js +49 -0
- package/node_modules/amazon-cognito-identity-js/src/utils/cryptoSecureRandomInt.native.js +9 -0
- package/node_modules/amazon-cognito-identity-js/src/utils/cryptoSecureRandomInt.web.js +37 -0
- package/node_modules/amazon-cognito-identity-js/src/utils/getRandomBase64.native.js +12 -0
- package/node_modules/amazon-cognito-identity-js/src/utils/getRandomValues.native.js +61 -0
- package/node_modules/amazon-cognito-identity-js/webpack.config.js +58 -0
- package/node_modules/asynckit/LICENSE +21 -0
- package/node_modules/asynckit/README.md +233 -0
- package/node_modules/asynckit/bench.js +76 -0
- package/node_modules/asynckit/index.js +6 -0
- package/node_modules/asynckit/lib/abort.js +29 -0
- package/node_modules/asynckit/lib/async.js +34 -0
- package/node_modules/asynckit/lib/defer.js +26 -0
- package/node_modules/asynckit/lib/iterate.js +75 -0
- package/node_modules/asynckit/lib/readable_asynckit.js +91 -0
- package/node_modules/asynckit/lib/readable_parallel.js +25 -0
- package/node_modules/asynckit/lib/readable_serial.js +25 -0
- package/node_modules/asynckit/lib/readable_serial_ordered.js +29 -0
- package/node_modules/asynckit/lib/state.js +37 -0
- package/node_modules/asynckit/lib/streamify.js +141 -0
- package/node_modules/asynckit/lib/terminator.js +29 -0
- package/node_modules/asynckit/package.json +63 -0
- package/node_modules/asynckit/parallel.js +43 -0
- package/node_modules/asynckit/serial.js +17 -0
- package/node_modules/asynckit/serialOrdered.js +75 -0
- package/node_modules/asynckit/stream.js +21 -0
- package/node_modules/base64-js/LICENSE +21 -0
- package/node_modules/base64-js/README.md +34 -0
- package/node_modules/base64-js/base64js.min.js +1 -0
- package/node_modules/base64-js/index.d.ts +3 -0
- package/node_modules/base64-js/index.js +150 -0
- package/node_modules/base64-js/package.json +47 -0
- package/node_modules/buffer/.travis.yml +8 -0
- package/node_modules/buffer/AUTHORS.md +44 -0
- package/node_modules/buffer/LICENSE +21 -0
- package/node_modules/buffer/README.md +378 -0
- package/node_modules/buffer/bin/download-node-tests.js +106 -0
- package/node_modules/buffer/bin/test.js +41 -0
- package/node_modules/buffer/bin/update-authors.sh +21 -0
- package/node_modules/buffer/bin/zuul-es5.yml +14 -0
- package/node_modules/buffer/bin/zuul-es6.yml +6 -0
- package/node_modules/buffer/index.js +1789 -0
- package/node_modules/buffer/package.json +77 -0
- package/node_modules/buffer/test/_polyfill.js +150 -0
- package/node_modules/buffer/test/base64.js +47 -0
- package/node_modules/buffer/test/basic.js +85 -0
- package/node_modules/buffer/test/compare.js +59 -0
- package/node_modules/buffer/test/constructor.js +193 -0
- package/node_modules/buffer/test/from-string.js +132 -0
- package/node_modules/buffer/test/is-buffer.js +22 -0
- package/node_modules/buffer/test/methods.js +127 -0
- package/node_modules/buffer/test/node/test-buffer-alloc.js +1501 -0
- package/node_modules/buffer/test/node/test-buffer-arraybuffer.js +112 -0
- package/node_modules/buffer/test/node/test-buffer-ascii.js +28 -0
- package/node_modules/buffer/test/node/test-buffer-bad-overload.js +18 -0
- package/node_modules/buffer/test/node/test-buffer-badhex.js +46 -0
- package/node_modules/buffer/test/node/test-buffer-bytelength.js +90 -0
- package/node_modules/buffer/test/node/test-buffer-compare-offset.js +66 -0
- package/node_modules/buffer/test/node/test-buffer-concat.js +40 -0
- package/node_modules/buffer/test/node/test-buffer-fill.js +272 -0
- package/node_modules/buffer/test/node/test-buffer-includes.js +305 -0
- package/node_modules/buffer/test/node/test-buffer-indexof.js +523 -0
- package/node_modules/buffer/test/node/test-buffer-inheritance.js +42 -0
- package/node_modules/buffer/test/node/test-buffer-inspect.js +41 -0
- package/node_modules/buffer/test/node/test-buffer-iterator.js +65 -0
- package/node_modules/buffer/test/node/test-buffer-safe-unsafe.js +27 -0
- package/node_modules/buffer/test/node/test-buffer-slow.js +63 -0
- package/node_modules/buffer/test/node/test-buffer-swap.js +141 -0
- package/node_modules/buffer/test/node/test-buffer-zero-fill-cli.js +35 -0
- package/node_modules/buffer/test/node/test-buffer-zero-fill-reset.js +22 -0
- package/node_modules/buffer/test/node/test-buffer.js +1534 -0
- package/node_modules/buffer/test/slice.js +37 -0
- package/node_modules/buffer/test/static.js +17 -0
- package/node_modules/buffer/test/to-string.js +233 -0
- package/node_modules/buffer/test/write.js +131 -0
- package/node_modules/buffer/test/write_infinity.js +45 -0
- package/node_modules/call-bind-apply-helpers/.eslintrc +17 -0
- package/node_modules/call-bind-apply-helpers/.github/FUNDING.yml +12 -0
- package/node_modules/call-bind-apply-helpers/.nycrc +9 -0
- package/node_modules/call-bind-apply-helpers/CHANGELOG.md +30 -0
- package/node_modules/call-bind-apply-helpers/LICENSE +21 -0
- package/node_modules/call-bind-apply-helpers/README.md +62 -0
- package/node_modules/call-bind-apply-helpers/actualApply.d.ts +1 -0
- package/node_modules/call-bind-apply-helpers/actualApply.js +10 -0
- package/node_modules/call-bind-apply-helpers/applyBind.d.ts +19 -0
- package/node_modules/call-bind-apply-helpers/applyBind.js +10 -0
- package/node_modules/call-bind-apply-helpers/functionApply.d.ts +1 -0
- package/node_modules/call-bind-apply-helpers/functionApply.js +4 -0
- package/node_modules/call-bind-apply-helpers/functionCall.d.ts +1 -0
- package/node_modules/call-bind-apply-helpers/functionCall.js +4 -0
- package/node_modules/call-bind-apply-helpers/index.d.ts +64 -0
- package/node_modules/call-bind-apply-helpers/index.js +15 -0
- package/node_modules/call-bind-apply-helpers/package.json +85 -0
- package/node_modules/call-bind-apply-helpers/reflectApply.d.ts +3 -0
- package/node_modules/call-bind-apply-helpers/reflectApply.js +4 -0
- package/node_modules/call-bind-apply-helpers/test/index.js +63 -0
- package/node_modules/call-bind-apply-helpers/tsconfig.json +9 -0
- package/node_modules/combined-stream/License +19 -0
- package/node_modules/combined-stream/Readme.md +138 -0
- package/node_modules/combined-stream/lib/combined_stream.js +208 -0
- package/node_modules/combined-stream/package.json +25 -0
- package/node_modules/crypto-js/CONTRIBUTING.md +28 -0
- package/node_modules/crypto-js/LICENSE +24 -0
- package/node_modules/crypto-js/README.md +275 -0
- package/node_modules/crypto-js/aes.js +234 -0
- package/node_modules/crypto-js/blowfish.js +471 -0
- package/node_modules/crypto-js/bower.json +39 -0
- package/node_modules/crypto-js/cipher-core.js +895 -0
- package/node_modules/crypto-js/core.js +807 -0
- package/node_modules/crypto-js/crypto-js.js +6657 -0
- package/node_modules/crypto-js/docs/QuickStartGuide.wiki +470 -0
- package/node_modules/crypto-js/enc-base64.js +136 -0
- package/node_modules/crypto-js/enc-base64url.js +148 -0
- package/node_modules/crypto-js/enc-hex.js +18 -0
- package/node_modules/crypto-js/enc-latin1.js +18 -0
- package/node_modules/crypto-js/enc-utf16.js +149 -0
- package/node_modules/crypto-js/enc-utf8.js +18 -0
- package/node_modules/crypto-js/evpkdf.js +134 -0
- package/node_modules/crypto-js/format-hex.js +66 -0
- package/node_modules/crypto-js/format-openssl.js +18 -0
- package/node_modules/crypto-js/hmac-md5.js +18 -0
- package/node_modules/crypto-js/hmac-ripemd160.js +18 -0
- package/node_modules/crypto-js/hmac-sha1.js +18 -0
- package/node_modules/crypto-js/hmac-sha224.js +18 -0
- package/node_modules/crypto-js/hmac-sha256.js +18 -0
- package/node_modules/crypto-js/hmac-sha3.js +18 -0
- package/node_modules/crypto-js/hmac-sha384.js +18 -0
- package/node_modules/crypto-js/hmac-sha512.js +18 -0
- package/node_modules/crypto-js/hmac.js +143 -0
- package/node_modules/crypto-js/index.js +18 -0
- package/node_modules/crypto-js/lib-typedarrays.js +76 -0
- package/node_modules/crypto-js/md5.js +268 -0
- package/node_modules/crypto-js/mode-cfb.js +80 -0
- package/node_modules/crypto-js/mode-ctr-gladman.js +116 -0
- package/node_modules/crypto-js/mode-ctr.js +58 -0
- package/node_modules/crypto-js/mode-ecb.js +40 -0
- package/node_modules/crypto-js/mode-ofb.js +54 -0
- package/node_modules/crypto-js/package.json +42 -0
- package/node_modules/crypto-js/pad-ansix923.js +49 -0
- package/node_modules/crypto-js/pad-iso10126.js +44 -0
- package/node_modules/crypto-js/pad-iso97971.js +40 -0
- package/node_modules/crypto-js/pad-nopadding.js +30 -0
- package/node_modules/crypto-js/pad-pkcs7.js +18 -0
- package/node_modules/crypto-js/pad-zeropadding.js +47 -0
- package/node_modules/crypto-js/pbkdf2.js +145 -0
- package/node_modules/crypto-js/rabbit-legacy.js +190 -0
- package/node_modules/crypto-js/rabbit.js +192 -0
- package/node_modules/crypto-js/rc4.js +139 -0
- package/node_modules/crypto-js/ripemd160.js +267 -0
- package/node_modules/crypto-js/sha1.js +150 -0
- package/node_modules/crypto-js/sha224.js +80 -0
- package/node_modules/crypto-js/sha256.js +199 -0
- package/node_modules/crypto-js/sha3.js +326 -0
- package/node_modules/crypto-js/sha384.js +83 -0
- package/node_modules/crypto-js/sha512.js +326 -0
- package/node_modules/crypto-js/tripledes.js +779 -0
- package/node_modules/crypto-js/x64-core.js +304 -0
- package/node_modules/csv-parse/LICENSE +21 -0
- package/node_modules/csv-parse/README.md +86 -0
- package/node_modules/csv-parse/dist/cjs/index.cjs +1424 -0
- package/node_modules/csv-parse/dist/cjs/index.d.cts +283 -0
- package/node_modules/csv-parse/dist/cjs/sync.cjs +1336 -0
- package/node_modules/csv-parse/dist/cjs/sync.d.cts +11 -0
- package/node_modules/csv-parse/dist/esm/index.d.ts +283 -0
- package/node_modules/csv-parse/dist/esm/index.js +6544 -0
- package/node_modules/csv-parse/dist/esm/sync.d.ts +11 -0
- package/node_modules/csv-parse/dist/esm/sync.js +3305 -0
- package/node_modules/csv-parse/dist/iife/index.js +6553 -0
- package/node_modules/csv-parse/dist/iife/sync.js +3313 -0
- package/node_modules/csv-parse/dist/umd/index.js +6554 -0
- package/node_modules/csv-parse/dist/umd/sync.js +3314 -0
- package/node_modules/csv-parse/lib/api/CsvError.js +19 -0
- package/node_modules/csv-parse/lib/api/index.js +729 -0
- package/node_modules/csv-parse/lib/api/init_state.js +58 -0
- package/node_modules/csv-parse/lib/api/normalize_columns_array.js +33 -0
- package/node_modules/csv-parse/lib/api/normalize_options.js +448 -0
- package/node_modules/csv-parse/lib/index.d.ts +283 -0
- package/node_modules/csv-parse/lib/index.js +121 -0
- package/node_modules/csv-parse/lib/stream.js +27 -0
- package/node_modules/csv-parse/lib/sync.d.ts +11 -0
- package/node_modules/csv-parse/lib/sync.js +27 -0
- package/node_modules/csv-parse/lib/utils/ResizeableBuffer.js +64 -0
- package/node_modules/csv-parse/lib/utils/is_object.js +6 -0
- package/node_modules/csv-parse/lib/utils/underscore.js +8 -0
- package/node_modules/csv-parse/package.json +142 -0
- package/node_modules/delayed-stream/.npmignore +1 -0
- package/node_modules/delayed-stream/License +19 -0
- package/node_modules/delayed-stream/Makefile +7 -0
- package/node_modules/delayed-stream/Readme.md +141 -0
- package/node_modules/delayed-stream/lib/delayed_stream.js +107 -0
- package/node_modules/delayed-stream/package.json +27 -0
- package/node_modules/dunder-proto/.eslintrc +5 -0
- package/node_modules/dunder-proto/.github/FUNDING.yml +12 -0
- package/node_modules/dunder-proto/.nycrc +13 -0
- package/node_modules/dunder-proto/CHANGELOG.md +24 -0
- package/node_modules/dunder-proto/LICENSE +21 -0
- package/node_modules/dunder-proto/README.md +54 -0
- package/node_modules/dunder-proto/get.d.ts +5 -0
- package/node_modules/dunder-proto/get.js +30 -0
- package/node_modules/dunder-proto/package.json +76 -0
- package/node_modules/dunder-proto/set.d.ts +5 -0
- package/node_modules/dunder-proto/set.js +35 -0
- package/node_modules/dunder-proto/test/get.js +34 -0
- package/node_modules/dunder-proto/test/index.js +4 -0
- package/node_modules/dunder-proto/test/set.js +50 -0
- package/node_modules/dunder-proto/tsconfig.json +9 -0
- package/node_modules/es-define-property/.eslintrc +13 -0
- package/node_modules/es-define-property/.github/FUNDING.yml +12 -0
- package/node_modules/es-define-property/.nycrc +9 -0
- package/node_modules/es-define-property/CHANGELOG.md +29 -0
- package/node_modules/es-define-property/LICENSE +21 -0
- package/node_modules/es-define-property/README.md +49 -0
- package/node_modules/es-define-property/index.d.ts +3 -0
- package/node_modules/es-define-property/index.js +14 -0
- package/node_modules/es-define-property/package.json +81 -0
- package/node_modules/es-define-property/test/index.js +56 -0
- package/node_modules/es-define-property/tsconfig.json +10 -0
- package/node_modules/es-errors/.eslintrc +5 -0
- package/node_modules/es-errors/.github/FUNDING.yml +12 -0
- package/node_modules/es-errors/CHANGELOG.md +40 -0
- package/node_modules/es-errors/LICENSE +21 -0
- package/node_modules/es-errors/README.md +55 -0
- package/node_modules/es-errors/eval.d.ts +3 -0
- package/node_modules/es-errors/eval.js +4 -0
- package/node_modules/es-errors/index.d.ts +3 -0
- package/node_modules/es-errors/index.js +4 -0
- package/node_modules/es-errors/package.json +80 -0
- package/node_modules/es-errors/range.d.ts +3 -0
- package/node_modules/es-errors/range.js +4 -0
- package/node_modules/es-errors/ref.d.ts +3 -0
- package/node_modules/es-errors/ref.js +4 -0
- package/node_modules/es-errors/syntax.d.ts +3 -0
- package/node_modules/es-errors/syntax.js +4 -0
- package/node_modules/es-errors/test/index.js +19 -0
- package/node_modules/es-errors/tsconfig.json +49 -0
- package/node_modules/es-errors/type.d.ts +3 -0
- package/node_modules/es-errors/type.js +4 -0
- package/node_modules/es-errors/uri.d.ts +3 -0
- package/node_modules/es-errors/uri.js +4 -0
- package/node_modules/es-object-atoms/.eslintrc +16 -0
- package/node_modules/es-object-atoms/.github/FUNDING.yml +12 -0
- package/node_modules/es-object-atoms/CHANGELOG.md +37 -0
- package/node_modules/es-object-atoms/LICENSE +21 -0
- package/node_modules/es-object-atoms/README.md +63 -0
- package/node_modules/es-object-atoms/RequireObjectCoercible.d.ts +3 -0
- package/node_modules/es-object-atoms/RequireObjectCoercible.js +11 -0
- package/node_modules/es-object-atoms/ToObject.d.ts +7 -0
- package/node_modules/es-object-atoms/ToObject.js +10 -0
- package/node_modules/es-object-atoms/index.d.ts +3 -0
- package/node_modules/es-object-atoms/index.js +4 -0
- package/node_modules/es-object-atoms/isObject.d.ts +3 -0
- package/node_modules/es-object-atoms/isObject.js +6 -0
- package/node_modules/es-object-atoms/package.json +80 -0
- package/node_modules/es-object-atoms/test/index.js +38 -0
- package/node_modules/es-object-atoms/tsconfig.json +6 -0
- package/node_modules/es-set-tostringtag/.eslintrc +13 -0
- package/node_modules/es-set-tostringtag/.nycrc +9 -0
- package/node_modules/es-set-tostringtag/CHANGELOG.md +67 -0
- package/node_modules/es-set-tostringtag/LICENSE +21 -0
- package/node_modules/es-set-tostringtag/README.md +53 -0
- package/node_modules/es-set-tostringtag/index.d.ts +10 -0
- package/node_modules/es-set-tostringtag/index.js +35 -0
- package/node_modules/es-set-tostringtag/package.json +78 -0
- package/node_modules/es-set-tostringtag/test/index.js +85 -0
- package/node_modules/es-set-tostringtag/tsconfig.json +9 -0
- package/node_modules/es6-promisify/LICENSE +19 -0
- package/node_modules/es6-promisify/README.md +99 -0
- package/node_modules/es6-promisify/dist/promisify.js +76 -0
- package/node_modules/es6-promisify/package.json +41 -0
- package/node_modules/fast-base64-decode/index.d.ts +2 -0
- package/node_modules/fast-base64-decode/index.js +33 -0
- package/node_modules/fast-base64-decode/package.json +21 -0
- package/node_modules/fast-base64-decode/readme.md +21 -0
- package/node_modules/fflate/CHANGELOG.md +115 -0
- package/node_modules/fflate/LICENSE +21 -0
- package/node_modules/fflate/README.md +558 -0
- package/node_modules/fflate/esm/browser.d.ts +1501 -0
- package/node_modules/fflate/esm/browser.js +2665 -0
- package/node_modules/fflate/esm/index.d.mts +1501 -0
- package/node_modules/fflate/esm/index.mjs +2679 -0
- package/node_modules/fflate/lib/browser.cjs +2688 -0
- package/node_modules/fflate/lib/browser.d.cts +1501 -0
- package/node_modules/fflate/lib/index.cjs +2668 -0
- package/node_modules/fflate/lib/index.d.ts +1501 -0
- package/node_modules/fflate/lib/node-worker.cjs +32 -0
- package/node_modules/fflate/lib/node.cjs +2700 -0
- package/node_modules/fflate/lib/node.d.cts +1501 -0
- package/node_modules/fflate/lib/worker.cjs +20 -0
- package/node_modules/fflate/package.json +127 -0
- package/node_modules/fflate/umd/index.js +1 -0
- package/node_modules/form-data/CHANGELOG.md +601 -0
- package/node_modules/form-data/License +19 -0
- package/node_modules/form-data/README.md +355 -0
- package/node_modules/form-data/index.d.ts +62 -0
- package/node_modules/form-data/lib/browser.js +4 -0
- package/node_modules/form-data/lib/form_data.js +494 -0
- package/node_modules/form-data/lib/populate.js +10 -0
- package/node_modules/form-data/package.json +82 -0
- package/node_modules/function-bind/.eslintrc +21 -0
- package/node_modules/function-bind/.github/FUNDING.yml +12 -0
- package/node_modules/function-bind/.github/SECURITY.md +3 -0
- package/node_modules/function-bind/.nycrc +13 -0
- package/node_modules/function-bind/CHANGELOG.md +136 -0
- package/node_modules/function-bind/LICENSE +20 -0
- package/node_modules/function-bind/README.md +46 -0
- package/node_modules/function-bind/implementation.js +84 -0
- package/node_modules/function-bind/index.js +5 -0
- package/node_modules/function-bind/package.json +87 -0
- package/node_modules/function-bind/test/.eslintrc +9 -0
- package/node_modules/function-bind/test/index.js +252 -0
- package/node_modules/get-intrinsic/.eslintrc +42 -0
- package/node_modules/get-intrinsic/.github/FUNDING.yml +12 -0
- package/node_modules/get-intrinsic/.nycrc +9 -0
- package/node_modules/get-intrinsic/CHANGELOG.md +186 -0
- package/node_modules/get-intrinsic/LICENSE +21 -0
- package/node_modules/get-intrinsic/README.md +71 -0
- package/node_modules/get-intrinsic/index.js +378 -0
- package/node_modules/get-intrinsic/package.json +97 -0
- package/node_modules/get-intrinsic/test/GetIntrinsic.js +274 -0
- package/node_modules/get-proto/.eslintrc +10 -0
- package/node_modules/get-proto/.github/FUNDING.yml +12 -0
- package/node_modules/get-proto/.nycrc +9 -0
- package/node_modules/get-proto/CHANGELOG.md +21 -0
- package/node_modules/get-proto/LICENSE +21 -0
- package/node_modules/get-proto/Object.getPrototypeOf.d.ts +5 -0
- package/node_modules/get-proto/Object.getPrototypeOf.js +6 -0
- package/node_modules/get-proto/README.md +50 -0
- package/node_modules/get-proto/Reflect.getPrototypeOf.d.ts +3 -0
- package/node_modules/get-proto/Reflect.getPrototypeOf.js +4 -0
- package/node_modules/get-proto/index.d.ts +5 -0
- package/node_modules/get-proto/index.js +27 -0
- package/node_modules/get-proto/package.json +81 -0
- package/node_modules/get-proto/test/index.js +68 -0
- package/node_modules/get-proto/tsconfig.json +9 -0
- package/node_modules/gopd/.eslintrc +16 -0
- package/node_modules/gopd/.github/FUNDING.yml +12 -0
- package/node_modules/gopd/CHANGELOG.md +45 -0
- package/node_modules/gopd/LICENSE +21 -0
- package/node_modules/gopd/README.md +40 -0
- package/node_modules/gopd/gOPD.d.ts +1 -0
- package/node_modules/gopd/gOPD.js +4 -0
- package/node_modules/gopd/index.d.ts +5 -0
- package/node_modules/gopd/index.js +15 -0
- package/node_modules/gopd/package.json +77 -0
- package/node_modules/gopd/test/index.js +36 -0
- package/node_modules/gopd/tsconfig.json +9 -0
- package/node_modules/has-symbols/.eslintrc +11 -0
- package/node_modules/has-symbols/.github/FUNDING.yml +12 -0
- package/node_modules/has-symbols/.nycrc +9 -0
- package/node_modules/has-symbols/CHANGELOG.md +91 -0
- package/node_modules/has-symbols/LICENSE +21 -0
- package/node_modules/has-symbols/README.md +46 -0
- package/node_modules/has-symbols/index.d.ts +3 -0
- package/node_modules/has-symbols/index.js +14 -0
- package/node_modules/has-symbols/package.json +111 -0
- package/node_modules/has-symbols/shams.d.ts +3 -0
- package/node_modules/has-symbols/shams.js +45 -0
- package/node_modules/has-symbols/test/index.js +22 -0
- package/node_modules/has-symbols/test/shams/core-js.js +29 -0
- package/node_modules/has-symbols/test/shams/get-own-property-symbols.js +29 -0
- package/node_modules/has-symbols/test/tests.js +58 -0
- package/node_modules/has-symbols/tsconfig.json +10 -0
- package/node_modules/has-tostringtag/.eslintrc +5 -0
- package/node_modules/has-tostringtag/.github/FUNDING.yml +12 -0
- package/node_modules/has-tostringtag/.nycrc +13 -0
- package/node_modules/has-tostringtag/CHANGELOG.md +42 -0
- package/node_modules/has-tostringtag/LICENSE +21 -0
- package/node_modules/has-tostringtag/README.md +46 -0
- package/node_modules/has-tostringtag/index.d.ts +3 -0
- package/node_modules/has-tostringtag/index.js +8 -0
- package/node_modules/has-tostringtag/package.json +108 -0
- package/node_modules/has-tostringtag/shams.d.ts +3 -0
- package/node_modules/has-tostringtag/shams.js +8 -0
- package/node_modules/has-tostringtag/test/index.js +21 -0
- package/node_modules/has-tostringtag/test/shams/core-js.js +31 -0
- package/node_modules/has-tostringtag/test/shams/get-own-property-symbols.js +30 -0
- package/node_modules/has-tostringtag/test/tests.js +15 -0
- package/node_modules/has-tostringtag/tsconfig.json +49 -0
- package/node_modules/hasown/.eslintrc +5 -0
- package/node_modules/hasown/.github/FUNDING.yml +12 -0
- package/node_modules/hasown/.nycrc +13 -0
- package/node_modules/hasown/CHANGELOG.md +40 -0
- package/node_modules/hasown/LICENSE +21 -0
- package/node_modules/hasown/README.md +40 -0
- package/node_modules/hasown/index.d.ts +3 -0
- package/node_modules/hasown/index.js +8 -0
- package/node_modules/hasown/package.json +92 -0
- package/node_modules/hasown/tsconfig.json +6 -0
- package/node_modules/ieee754/LICENSE +11 -0
- package/node_modules/ieee754/README.md +53 -0
- package/node_modules/ieee754/index.js +84 -0
- package/node_modules/ieee754/package.json +37 -0
- package/node_modules/isarray/.npmignore +1 -0
- package/node_modules/isarray/.travis.yml +4 -0
- package/node_modules/isarray/Makefile +6 -0
- package/node_modules/isarray/README.md +60 -0
- package/node_modules/isarray/component.json +19 -0
- package/node_modules/isarray/index.js +5 -0
- package/node_modules/isarray/package.json +45 -0
- package/node_modules/isarray/test.js +20 -0
- package/node_modules/isomorphic-unfetch/browser.js +1 -0
- package/node_modules/isomorphic-unfetch/index.d.ts +19 -0
- package/node_modules/isomorphic-unfetch/index.js +6 -0
- package/node_modules/isomorphic-unfetch/package.json +19 -0
- package/node_modules/isomorphic-unfetch/readme.md +53 -0
- package/node_modules/js-cookie/CONTRIBUTING.md +79 -0
- package/node_modules/js-cookie/LICENSE +21 -0
- package/node_modules/js-cookie/README.md +327 -0
- package/node_modules/js-cookie/SERVER_SIDE.md +107 -0
- package/node_modules/js-cookie/package.json +47 -0
- package/node_modules/js-cookie/src/js.cookie.js +163 -0
- package/node_modules/jsurl/.npmignore +2 -0
- package/node_modules/jsurl/.travis.yml +6 -0
- package/node_modules/jsurl/AUTHORS +3 -0
- package/node_modules/jsurl/README.md +76 -0
- package/node_modules/jsurl/bower.json +18 -0
- package/node_modules/jsurl/examples/demo.css +40 -0
- package/node_modules/jsurl/examples/demo.html +52 -0
- package/node_modules/jsurl/examples/simple.js +12 -0
- package/node_modules/jsurl/index.js +1 -0
- package/node_modules/jsurl/lib/jsurl.js +169 -0
- package/node_modules/jsurl/package.json +22 -0
- package/node_modules/jsurl/test/common/jsurlTest.js +83 -0
- package/node_modules/jsurl/test/index.js +25 -0
- package/node_modules/lodash/LICENSE +47 -0
- package/node_modules/lodash/README.md +39 -0
- package/node_modules/lodash/_DataView.js +7 -0
- package/node_modules/lodash/_Hash.js +32 -0
- package/node_modules/lodash/_LazyWrapper.js +28 -0
- package/node_modules/lodash/_ListCache.js +32 -0
- package/node_modules/lodash/_LodashWrapper.js +22 -0
- package/node_modules/lodash/_Map.js +7 -0
- package/node_modules/lodash/_MapCache.js +32 -0
- package/node_modules/lodash/_Promise.js +7 -0
- package/node_modules/lodash/_Set.js +7 -0
- package/node_modules/lodash/_SetCache.js +27 -0
- package/node_modules/lodash/_Stack.js +27 -0
- package/node_modules/lodash/_Symbol.js +6 -0
- package/node_modules/lodash/_Uint8Array.js +6 -0
- package/node_modules/lodash/_WeakMap.js +7 -0
- package/node_modules/lodash/_apply.js +21 -0
- package/node_modules/lodash/_arrayAggregator.js +22 -0
- package/node_modules/lodash/_arrayEach.js +22 -0
- package/node_modules/lodash/_arrayEachRight.js +21 -0
- package/node_modules/lodash/_arrayEvery.js +23 -0
- package/node_modules/lodash/_arrayFilter.js +25 -0
- package/node_modules/lodash/_arrayIncludes.js +17 -0
- package/node_modules/lodash/_arrayIncludesWith.js +22 -0
- package/node_modules/lodash/_arrayLikeKeys.js +49 -0
- package/node_modules/lodash/_arrayMap.js +21 -0
- package/node_modules/lodash/_arrayPush.js +20 -0
- package/node_modules/lodash/_arrayReduce.js +26 -0
- package/node_modules/lodash/_arrayReduceRight.js +24 -0
- package/node_modules/lodash/_arraySample.js +15 -0
- package/node_modules/lodash/_arraySampleSize.js +17 -0
- package/node_modules/lodash/_arrayShuffle.js +15 -0
- package/node_modules/lodash/_arraySome.js +23 -0
- package/node_modules/lodash/_asciiSize.js +12 -0
- package/node_modules/lodash/_asciiToArray.js +12 -0
- package/node_modules/lodash/_asciiWords.js +15 -0
- package/node_modules/lodash/_assignMergeValue.js +20 -0
- package/node_modules/lodash/_assignValue.js +28 -0
- package/node_modules/lodash/_assocIndexOf.js +21 -0
- package/node_modules/lodash/_baseAggregator.js +21 -0
- package/node_modules/lodash/_baseAssign.js +17 -0
- package/node_modules/lodash/_baseAssignIn.js +17 -0
- package/node_modules/lodash/_baseAssignValue.js +25 -0
- package/node_modules/lodash/_baseAt.js +23 -0
- package/node_modules/lodash/_baseClamp.js +22 -0
- package/node_modules/lodash/_baseClone.js +166 -0
- package/node_modules/lodash/_baseConforms.js +18 -0
- package/node_modules/lodash/_baseConformsTo.js +27 -0
- package/node_modules/lodash/_baseCreate.js +30 -0
- package/node_modules/lodash/_baseDelay.js +21 -0
- package/node_modules/lodash/_baseDifference.js +67 -0
- package/node_modules/lodash/_baseEach.js +14 -0
- package/node_modules/lodash/_baseEachRight.js +14 -0
- package/node_modules/lodash/_baseEvery.js +21 -0
- package/node_modules/lodash/_baseExtremum.js +32 -0
- package/node_modules/lodash/_baseFill.js +32 -0
- package/node_modules/lodash/_baseFilter.js +21 -0
- package/node_modules/lodash/_baseFindIndex.js +24 -0
- package/node_modules/lodash/_baseFindKey.js +23 -0
- package/node_modules/lodash/_baseFlatten.js +38 -0
- package/node_modules/lodash/_baseFor.js +16 -0
- package/node_modules/lodash/_baseForOwn.js +16 -0
- package/node_modules/lodash/_baseForOwnRight.js +16 -0
- package/node_modules/lodash/_baseForRight.js +15 -0
- package/node_modules/lodash/_baseFunctions.js +19 -0
- package/node_modules/lodash/_baseGet.js +24 -0
- package/node_modules/lodash/_baseGetAllKeys.js +20 -0
- package/node_modules/lodash/_baseGetTag.js +28 -0
- package/node_modules/lodash/_baseGt.js +14 -0
- package/node_modules/lodash/_baseHas.js +19 -0
- package/node_modules/lodash/_baseHasIn.js +13 -0
- package/node_modules/lodash/_baseInRange.js +18 -0
- package/node_modules/lodash/_baseIndexOf.js +20 -0
- package/node_modules/lodash/_baseIndexOfWith.js +23 -0
- package/node_modules/lodash/_baseIntersection.js +74 -0
- package/node_modules/lodash/_baseInverter.js +21 -0
- package/node_modules/lodash/_baseInvoke.js +24 -0
- package/node_modules/lodash/_baseIsArguments.js +18 -0
- package/node_modules/lodash/_baseIsArrayBuffer.js +17 -0
- package/node_modules/lodash/_baseIsDate.js +18 -0
- package/node_modules/lodash/_baseIsEqual.js +28 -0
- package/node_modules/lodash/_baseIsEqualDeep.js +83 -0
- package/node_modules/lodash/_baseIsMap.js +18 -0
- package/node_modules/lodash/_baseIsMatch.js +62 -0
- package/node_modules/lodash/_baseIsNaN.js +12 -0
- package/node_modules/lodash/_baseIsNative.js +47 -0
- package/node_modules/lodash/_baseIsRegExp.js +18 -0
- package/node_modules/lodash/_baseIsSet.js +18 -0
- package/node_modules/lodash/_baseIsTypedArray.js +60 -0
- package/node_modules/lodash/_baseIteratee.js +31 -0
- package/node_modules/lodash/_baseKeys.js +30 -0
- package/node_modules/lodash/_baseKeysIn.js +33 -0
- package/node_modules/lodash/_baseLodash.js +10 -0
- package/node_modules/lodash/_baseLt.js +14 -0
- package/node_modules/lodash/_baseMap.js +22 -0
- package/node_modules/lodash/_baseMatches.js +22 -0
- package/node_modules/lodash/_baseMatchesProperty.js +33 -0
- package/node_modules/lodash/_baseMean.js +20 -0
- package/node_modules/lodash/_baseMerge.js +42 -0
- package/node_modules/lodash/_baseMergeDeep.js +94 -0
- package/node_modules/lodash/_baseNth.js +20 -0
- package/node_modules/lodash/_baseOrderBy.js +49 -0
- package/node_modules/lodash/_basePick.js +19 -0
- package/node_modules/lodash/_basePickBy.js +30 -0
- package/node_modules/lodash/_baseProperty.js +14 -0
- package/node_modules/lodash/_basePropertyDeep.js +16 -0
- package/node_modules/lodash/_basePropertyOf.js +14 -0
- package/node_modules/lodash/_basePullAll.js +51 -0
- package/node_modules/lodash/_basePullAt.js +37 -0
- package/node_modules/lodash/_baseRandom.js +18 -0
- package/node_modules/lodash/_baseRange.js +28 -0
- package/node_modules/lodash/_baseReduce.js +23 -0
- package/node_modules/lodash/_baseRepeat.js +35 -0
- package/node_modules/lodash/_baseRest.js +17 -0
- package/node_modules/lodash/_baseSample.js +15 -0
- package/node_modules/lodash/_baseSampleSize.js +18 -0
- package/node_modules/lodash/_baseSet.js +51 -0
- package/node_modules/lodash/_baseSetData.js +17 -0
- package/node_modules/lodash/_baseSetToString.js +22 -0
- package/node_modules/lodash/_baseShuffle.js +15 -0
- package/node_modules/lodash/_baseSlice.js +31 -0
- package/node_modules/lodash/_baseSome.js +22 -0
- package/node_modules/lodash/_baseSortBy.js +21 -0
- package/node_modules/lodash/_baseSortedIndex.js +42 -0
- package/node_modules/lodash/_baseSortedIndexBy.js +67 -0
- package/node_modules/lodash/_baseSortedUniq.js +30 -0
- package/node_modules/lodash/_baseSum.js +24 -0
- package/node_modules/lodash/_baseTimes.js +20 -0
- package/node_modules/lodash/_baseToNumber.js +24 -0
- package/node_modules/lodash/_baseToPairs.js +18 -0
- package/node_modules/lodash/_baseToString.js +37 -0
- package/node_modules/lodash/_baseTrim.js +19 -0
- package/node_modules/lodash/_baseUnary.js +14 -0
- package/node_modules/lodash/_baseUniq.js +72 -0
- package/node_modules/lodash/_baseUnset.js +20 -0
- package/node_modules/lodash/_baseUpdate.js +18 -0
- package/node_modules/lodash/_baseValues.js +19 -0
- package/node_modules/lodash/_baseWhile.js +26 -0
- package/node_modules/lodash/_baseWrapperValue.js +25 -0
- package/node_modules/lodash/_baseXor.js +36 -0
- package/node_modules/lodash/_baseZipObject.js +23 -0
- package/node_modules/lodash/_cacheHas.js +13 -0
- package/node_modules/lodash/_castArrayLikeObject.js +14 -0
- package/node_modules/lodash/_castFunction.js +14 -0
- package/node_modules/lodash/_castPath.js +21 -0
- package/node_modules/lodash/_castRest.js +14 -0
- package/node_modules/lodash/_castSlice.js +18 -0
- package/node_modules/lodash/_charsEndIndex.js +19 -0
- package/node_modules/lodash/_charsStartIndex.js +20 -0
- package/node_modules/lodash/_cloneArrayBuffer.js +16 -0
- package/node_modules/lodash/_cloneBuffer.js +35 -0
- package/node_modules/lodash/_cloneDataView.js +16 -0
- package/node_modules/lodash/_cloneRegExp.js +17 -0
- package/node_modules/lodash/_cloneSymbol.js +18 -0
- package/node_modules/lodash/_cloneTypedArray.js +16 -0
- package/node_modules/lodash/_compareAscending.js +41 -0
- package/node_modules/lodash/_compareMultiple.js +44 -0
- package/node_modules/lodash/_composeArgs.js +39 -0
- package/node_modules/lodash/_composeArgsRight.js +41 -0
- package/node_modules/lodash/_copyArray.js +20 -0
- package/node_modules/lodash/_copyObject.js +40 -0
- package/node_modules/lodash/_copySymbols.js +16 -0
- package/node_modules/lodash/_copySymbolsIn.js +16 -0
- package/node_modules/lodash/_coreJsData.js +6 -0
- package/node_modules/lodash/_countHolders.js +21 -0
- package/node_modules/lodash/_createAggregator.js +23 -0
- package/node_modules/lodash/_createAssigner.js +37 -0
- package/node_modules/lodash/_createBaseEach.js +32 -0
- package/node_modules/lodash/_createBaseFor.js +25 -0
- package/node_modules/lodash/_createBind.js +28 -0
- package/node_modules/lodash/_createCaseFirst.js +33 -0
- package/node_modules/lodash/_createCompounder.js +24 -0
- package/node_modules/lodash/_createCtor.js +37 -0
- package/node_modules/lodash/_createCurry.js +46 -0
- package/node_modules/lodash/_createFind.js +25 -0
- package/node_modules/lodash/_createFlow.js +78 -0
- package/node_modules/lodash/_createHybrid.js +92 -0
- package/node_modules/lodash/_createInverter.js +17 -0
- package/node_modules/lodash/_createMathOperation.js +38 -0
- package/node_modules/lodash/_createOver.js +27 -0
- package/node_modules/lodash/_createPadding.js +33 -0
- package/node_modules/lodash/_createPartial.js +43 -0
- package/node_modules/lodash/_createRange.js +30 -0
- package/node_modules/lodash/_createRecurry.js +56 -0
- package/node_modules/lodash/_createRelationalOperation.js +20 -0
- package/node_modules/lodash/_createRound.js +35 -0
- package/node_modules/lodash/_createSet.js +19 -0
- package/node_modules/lodash/_createToPairs.js +30 -0
- package/node_modules/lodash/_createWrap.js +106 -0
- package/node_modules/lodash/_customDefaultsAssignIn.js +29 -0
- package/node_modules/lodash/_customDefaultsMerge.js +28 -0
- package/node_modules/lodash/_customOmitClone.js +16 -0
- package/node_modules/lodash/_deburrLetter.js +71 -0
- package/node_modules/lodash/_defineProperty.js +11 -0
- package/node_modules/lodash/_equalArrays.js +84 -0
- package/node_modules/lodash/_equalByTag.js +112 -0
- package/node_modules/lodash/_equalObjects.js +90 -0
- package/node_modules/lodash/_escapeHtmlChar.js +21 -0
- package/node_modules/lodash/_escapeStringChar.js +22 -0
- package/node_modules/lodash/_flatRest.js +16 -0
- package/node_modules/lodash/_freeGlobal.js +4 -0
- package/node_modules/lodash/_getAllKeys.js +16 -0
- package/node_modules/lodash/_getAllKeysIn.js +17 -0
- package/node_modules/lodash/_getData.js +15 -0
- package/node_modules/lodash/_getFuncName.js +31 -0
- package/node_modules/lodash/_getHolder.js +13 -0
- package/node_modules/lodash/_getMapData.js +18 -0
- package/node_modules/lodash/_getMatchData.js +24 -0
- package/node_modules/lodash/_getNative.js +17 -0
- package/node_modules/lodash/_getPrototype.js +6 -0
- package/node_modules/lodash/_getRawTag.js +46 -0
- package/node_modules/lodash/_getSymbols.js +30 -0
- package/node_modules/lodash/_getSymbolsIn.js +25 -0
- package/node_modules/lodash/_getTag.js +58 -0
- package/node_modules/lodash/_getValue.js +13 -0
- package/node_modules/lodash/_getView.js +33 -0
- package/node_modules/lodash/_getWrapDetails.js +17 -0
- package/node_modules/lodash/_hasPath.js +39 -0
- package/node_modules/lodash/_hasUnicode.js +26 -0
- package/node_modules/lodash/_hasUnicodeWord.js +15 -0
- package/node_modules/lodash/_hashClear.js +15 -0
- package/node_modules/lodash/_hashDelete.js +17 -0
- package/node_modules/lodash/_hashGet.js +30 -0
- package/node_modules/lodash/_hashHas.js +23 -0
- package/node_modules/lodash/_hashSet.js +23 -0
- package/node_modules/lodash/_initCloneArray.js +26 -0
- package/node_modules/lodash/_initCloneByTag.js +77 -0
- package/node_modules/lodash/_initCloneObject.js +18 -0
- package/node_modules/lodash/_insertWrapDetails.js +23 -0
- package/node_modules/lodash/_isFlattenable.js +20 -0
- package/node_modules/lodash/_isIndex.js +25 -0
- package/node_modules/lodash/_isIterateeCall.js +30 -0
- package/node_modules/lodash/_isKey.js +29 -0
- package/node_modules/lodash/_isKeyable.js +15 -0
- package/node_modules/lodash/_isLaziable.js +28 -0
- package/node_modules/lodash/_isMaskable.js +14 -0
- package/node_modules/lodash/_isMasked.js +20 -0
- package/node_modules/lodash/_isPrototype.js +18 -0
- package/node_modules/lodash/_isStrictComparable.js +15 -0
- package/node_modules/lodash/_iteratorToArray.js +18 -0
- package/node_modules/lodash/_lazyClone.js +23 -0
- package/node_modules/lodash/_lazyReverse.js +23 -0
- package/node_modules/lodash/_lazyValue.js +69 -0
- package/node_modules/lodash/_listCacheClear.js +13 -0
- package/node_modules/lodash/_listCacheDelete.js +35 -0
- package/node_modules/lodash/_listCacheGet.js +19 -0
- package/node_modules/lodash/_listCacheHas.js +16 -0
- package/node_modules/lodash/_listCacheSet.js +26 -0
- package/node_modules/lodash/_mapCacheClear.js +21 -0
- package/node_modules/lodash/_mapCacheDelete.js +18 -0
- package/node_modules/lodash/_mapCacheGet.js +16 -0
- package/node_modules/lodash/_mapCacheHas.js +16 -0
- package/node_modules/lodash/_mapCacheSet.js +22 -0
- package/node_modules/lodash/_mapToArray.js +18 -0
- package/node_modules/lodash/_matchesStrictComparable.js +20 -0
- package/node_modules/lodash/_memoizeCapped.js +26 -0
- package/node_modules/lodash/_mergeData.js +90 -0
- package/node_modules/lodash/_metaMap.js +6 -0
- package/node_modules/lodash/_nativeCreate.js +6 -0
- package/node_modules/lodash/_nativeKeys.js +6 -0
- package/node_modules/lodash/_nativeKeysIn.js +20 -0
- package/node_modules/lodash/_nodeUtil.js +30 -0
- package/node_modules/lodash/_objectToString.js +22 -0
- package/node_modules/lodash/_overArg.js +15 -0
- package/node_modules/lodash/_overRest.js +36 -0
- package/node_modules/lodash/_parent.js +16 -0
- package/node_modules/lodash/_reEscape.js +4 -0
- package/node_modules/lodash/_reEvaluate.js +4 -0
- package/node_modules/lodash/_reInterpolate.js +4 -0
- package/node_modules/lodash/_realNames.js +4 -0
- package/node_modules/lodash/_reorder.js +29 -0
- package/node_modules/lodash/_replaceHolders.js +29 -0
- package/node_modules/lodash/_root.js +9 -0
- package/node_modules/lodash/_safeGet.js +21 -0
- package/node_modules/lodash/_setCacheAdd.js +19 -0
- package/node_modules/lodash/_setCacheHas.js +14 -0
- package/node_modules/lodash/_setData.js +20 -0
- package/node_modules/lodash/_setToArray.js +18 -0
- package/node_modules/lodash/_setToPairs.js +18 -0
- package/node_modules/lodash/_setToString.js +14 -0
- package/node_modules/lodash/_setWrapToString.js +21 -0
- package/node_modules/lodash/_shortOut.js +37 -0
- package/node_modules/lodash/_shuffleSelf.js +28 -0
- package/node_modules/lodash/_stackClear.js +15 -0
- package/node_modules/lodash/_stackDelete.js +18 -0
- package/node_modules/lodash/_stackGet.js +14 -0
- package/node_modules/lodash/_stackHas.js +14 -0
- package/node_modules/lodash/_stackSet.js +34 -0
- package/node_modules/lodash/_strictIndexOf.js +23 -0
- package/node_modules/lodash/_strictLastIndexOf.js +21 -0
- package/node_modules/lodash/_stringSize.js +18 -0
- package/node_modules/lodash/_stringToArray.js +18 -0
- package/node_modules/lodash/_stringToPath.js +27 -0
- package/node_modules/lodash/_toKey.js +21 -0
- package/node_modules/lodash/_toSource.js +26 -0
- package/node_modules/lodash/_trimmedEndIndex.js +19 -0
- package/node_modules/lodash/_unescapeHtmlChar.js +21 -0
- package/node_modules/lodash/_unicodeSize.js +44 -0
- package/node_modules/lodash/_unicodeToArray.js +40 -0
- package/node_modules/lodash/_unicodeWords.js +69 -0
- package/node_modules/lodash/_updateWrapDetails.js +46 -0
- package/node_modules/lodash/_wrapperClone.js +23 -0
- package/node_modules/lodash/add.js +22 -0
- package/node_modules/lodash/after.js +42 -0
- package/node_modules/lodash/array.js +67 -0
- package/node_modules/lodash/ary.js +29 -0
- package/node_modules/lodash/assign.js +58 -0
- package/node_modules/lodash/assignIn.js +40 -0
- package/node_modules/lodash/assignInWith.js +38 -0
- package/node_modules/lodash/assignWith.js +37 -0
- package/node_modules/lodash/at.js +23 -0
- package/node_modules/lodash/attempt.js +35 -0
- package/node_modules/lodash/before.js +40 -0
- package/node_modules/lodash/bind.js +57 -0
- package/node_modules/lodash/bindAll.js +41 -0
- package/node_modules/lodash/bindKey.js +68 -0
- package/node_modules/lodash/camelCase.js +29 -0
- package/node_modules/lodash/capitalize.js +23 -0
- package/node_modules/lodash/castArray.js +44 -0
- package/node_modules/lodash/ceil.js +26 -0
- package/node_modules/lodash/chain.js +38 -0
- package/node_modules/lodash/chunk.js +50 -0
- package/node_modules/lodash/clamp.js +39 -0
- package/node_modules/lodash/clone.js +36 -0
- package/node_modules/lodash/cloneDeep.js +29 -0
- package/node_modules/lodash/cloneDeepWith.js +40 -0
- package/node_modules/lodash/cloneWith.js +42 -0
- package/node_modules/lodash/collection.js +30 -0
- package/node_modules/lodash/commit.js +33 -0
- package/node_modules/lodash/compact.js +31 -0
- package/node_modules/lodash/concat.js +43 -0
- package/node_modules/lodash/cond.js +60 -0
- package/node_modules/lodash/conforms.js +35 -0
- package/node_modules/lodash/conformsTo.js +32 -0
- package/node_modules/lodash/constant.js +26 -0
- package/node_modules/lodash/core.js +3877 -0
- package/node_modules/lodash/core.min.js +29 -0
- package/node_modules/lodash/countBy.js +40 -0
- package/node_modules/lodash/create.js +43 -0
- package/node_modules/lodash/curry.js +57 -0
- package/node_modules/lodash/curryRight.js +54 -0
- package/node_modules/lodash/date.js +3 -0
- package/node_modules/lodash/debounce.js +191 -0
- package/node_modules/lodash/deburr.js +45 -0
- package/node_modules/lodash/defaultTo.js +25 -0
- package/node_modules/lodash/defaults.js +64 -0
- package/node_modules/lodash/defaultsDeep.js +30 -0
- package/node_modules/lodash/defer.js +26 -0
- package/node_modules/lodash/delay.js +28 -0
- package/node_modules/lodash/difference.js +33 -0
- package/node_modules/lodash/differenceBy.js +44 -0
- package/node_modules/lodash/differenceWith.js +40 -0
- package/node_modules/lodash/divide.js +22 -0
- package/node_modules/lodash/drop.js +38 -0
- package/node_modules/lodash/dropRight.js +39 -0
- package/node_modules/lodash/dropRightWhile.js +45 -0
- package/node_modules/lodash/dropWhile.js +45 -0
- package/node_modules/lodash/each.js +1 -0
- package/node_modules/lodash/eachRight.js +1 -0
- package/node_modules/lodash/endsWith.js +43 -0
- package/node_modules/lodash/entries.js +1 -0
- package/node_modules/lodash/entriesIn.js +1 -0
- package/node_modules/lodash/eq.js +37 -0
- package/node_modules/lodash/escape.js +43 -0
- package/node_modules/lodash/escapeRegExp.js +32 -0
- package/node_modules/lodash/every.js +56 -0
- package/node_modules/lodash/extend.js +1 -0
- package/node_modules/lodash/extendWith.js +1 -0
- package/node_modules/lodash/fill.js +45 -0
- package/node_modules/lodash/filter.js +52 -0
- package/node_modules/lodash/find.js +42 -0
- package/node_modules/lodash/findIndex.js +55 -0
- package/node_modules/lodash/findKey.js +44 -0
- package/node_modules/lodash/findLast.js +25 -0
- package/node_modules/lodash/findLastIndex.js +59 -0
- package/node_modules/lodash/findLastKey.js +44 -0
- package/node_modules/lodash/first.js +1 -0
- package/node_modules/lodash/flake.lock +40 -0
- package/node_modules/lodash/flake.nix +20 -0
- package/node_modules/lodash/flatMap.js +29 -0
- package/node_modules/lodash/flatMapDeep.js +31 -0
- package/node_modules/lodash/flatMapDepth.js +31 -0
- package/node_modules/lodash/flatten.js +22 -0
- package/node_modules/lodash/flattenDeep.js +25 -0
- package/node_modules/lodash/flattenDepth.js +33 -0
- package/node_modules/lodash/flip.js +28 -0
- package/node_modules/lodash/floor.js +26 -0
- package/node_modules/lodash/flow.js +27 -0
- package/node_modules/lodash/flowRight.js +26 -0
- package/node_modules/lodash/forEach.js +41 -0
- package/node_modules/lodash/forEachRight.js +31 -0
- package/node_modules/lodash/forIn.js +39 -0
- package/node_modules/lodash/forInRight.js +37 -0
- package/node_modules/lodash/forOwn.js +36 -0
- package/node_modules/lodash/forOwnRight.js +34 -0
- package/node_modules/lodash/fp/F.js +1 -0
- package/node_modules/lodash/fp/T.js +1 -0
- package/node_modules/lodash/fp/__.js +1 -0
- package/node_modules/lodash/fp/_baseConvert.js +569 -0
- package/node_modules/lodash/fp/_convertBrowser.js +18 -0
- package/node_modules/lodash/fp/_falseOptions.js +7 -0
- package/node_modules/lodash/fp/_mapping.js +358 -0
- package/node_modules/lodash/fp/_util.js +16 -0
- package/node_modules/lodash/fp/add.js +5 -0
- package/node_modules/lodash/fp/after.js +5 -0
- package/node_modules/lodash/fp/all.js +1 -0
- package/node_modules/lodash/fp/allPass.js +1 -0
- package/node_modules/lodash/fp/always.js +1 -0
- package/node_modules/lodash/fp/any.js +1 -0
- package/node_modules/lodash/fp/anyPass.js +1 -0
- package/node_modules/lodash/fp/apply.js +1 -0
- package/node_modules/lodash/fp/array.js +2 -0
- package/node_modules/lodash/fp/ary.js +5 -0
- package/node_modules/lodash/fp/assign.js +5 -0
- package/node_modules/lodash/fp/assignAll.js +5 -0
- package/node_modules/lodash/fp/assignAllWith.js +5 -0
- package/node_modules/lodash/fp/assignIn.js +5 -0
- package/node_modules/lodash/fp/assignInAll.js +5 -0
- package/node_modules/lodash/fp/assignInAllWith.js +5 -0
- package/node_modules/lodash/fp/assignInWith.js +5 -0
- package/node_modules/lodash/fp/assignWith.js +5 -0
- package/node_modules/lodash/fp/assoc.js +1 -0
- package/node_modules/lodash/fp/assocPath.js +1 -0
- package/node_modules/lodash/fp/at.js +5 -0
- package/node_modules/lodash/fp/attempt.js +5 -0
- package/node_modules/lodash/fp/before.js +5 -0
- package/node_modules/lodash/fp/bind.js +5 -0
- package/node_modules/lodash/fp/bindAll.js +5 -0
- package/node_modules/lodash/fp/bindKey.js +5 -0
- package/node_modules/lodash/fp/camelCase.js +5 -0
- package/node_modules/lodash/fp/capitalize.js +5 -0
- package/node_modules/lodash/fp/castArray.js +5 -0
- package/node_modules/lodash/fp/ceil.js +5 -0
- package/node_modules/lodash/fp/chain.js +5 -0
- package/node_modules/lodash/fp/chunk.js +5 -0
- package/node_modules/lodash/fp/clamp.js +5 -0
- package/node_modules/lodash/fp/clone.js +5 -0
- package/node_modules/lodash/fp/cloneDeep.js +5 -0
- package/node_modules/lodash/fp/cloneDeepWith.js +5 -0
- package/node_modules/lodash/fp/cloneWith.js +5 -0
- package/node_modules/lodash/fp/collection.js +2 -0
- package/node_modules/lodash/fp/commit.js +5 -0
- package/node_modules/lodash/fp/compact.js +5 -0
- package/node_modules/lodash/fp/complement.js +1 -0
- package/node_modules/lodash/fp/compose.js +1 -0
- package/node_modules/lodash/fp/concat.js +5 -0
- package/node_modules/lodash/fp/cond.js +5 -0
- package/node_modules/lodash/fp/conforms.js +1 -0
- package/node_modules/lodash/fp/conformsTo.js +5 -0
- package/node_modules/lodash/fp/constant.js +5 -0
- package/node_modules/lodash/fp/contains.js +1 -0
- package/node_modules/lodash/fp/convert.js +18 -0
- package/node_modules/lodash/fp/countBy.js +5 -0
- package/node_modules/lodash/fp/create.js +5 -0
- package/node_modules/lodash/fp/curry.js +5 -0
- package/node_modules/lodash/fp/curryN.js +5 -0
- package/node_modules/lodash/fp/curryRight.js +5 -0
- package/node_modules/lodash/fp/curryRightN.js +5 -0
- package/node_modules/lodash/fp/date.js +2 -0
- package/node_modules/lodash/fp/debounce.js +5 -0
- package/node_modules/lodash/fp/deburr.js +5 -0
- package/node_modules/lodash/fp/defaultTo.js +5 -0
- package/node_modules/lodash/fp/defaults.js +5 -0
- package/node_modules/lodash/fp/defaultsAll.js +5 -0
- package/node_modules/lodash/fp/defaultsDeep.js +5 -0
- package/node_modules/lodash/fp/defaultsDeepAll.js +5 -0
- package/node_modules/lodash/fp/defer.js +5 -0
- package/node_modules/lodash/fp/delay.js +5 -0
- package/node_modules/lodash/fp/difference.js +5 -0
- package/node_modules/lodash/fp/differenceBy.js +5 -0
- package/node_modules/lodash/fp/differenceWith.js +5 -0
- package/node_modules/lodash/fp/dissoc.js +1 -0
- package/node_modules/lodash/fp/dissocPath.js +1 -0
- package/node_modules/lodash/fp/divide.js +5 -0
- package/node_modules/lodash/fp/drop.js +5 -0
- package/node_modules/lodash/fp/dropLast.js +1 -0
- package/node_modules/lodash/fp/dropLastWhile.js +1 -0
- package/node_modules/lodash/fp/dropRight.js +5 -0
- package/node_modules/lodash/fp/dropRightWhile.js +5 -0
- package/node_modules/lodash/fp/dropWhile.js +5 -0
- package/node_modules/lodash/fp/each.js +1 -0
- package/node_modules/lodash/fp/eachRight.js +1 -0
- package/node_modules/lodash/fp/endsWith.js +5 -0
- package/node_modules/lodash/fp/entries.js +1 -0
- package/node_modules/lodash/fp/entriesIn.js +1 -0
- package/node_modules/lodash/fp/eq.js +5 -0
- package/node_modules/lodash/fp/equals.js +1 -0
- package/node_modules/lodash/fp/escape.js +5 -0
- package/node_modules/lodash/fp/escapeRegExp.js +5 -0
- package/node_modules/lodash/fp/every.js +5 -0
- package/node_modules/lodash/fp/extend.js +1 -0
- package/node_modules/lodash/fp/extendAll.js +1 -0
- package/node_modules/lodash/fp/extendAllWith.js +1 -0
- package/node_modules/lodash/fp/extendWith.js +1 -0
- package/node_modules/lodash/fp/fill.js +5 -0
- package/node_modules/lodash/fp/filter.js +5 -0
- package/node_modules/lodash/fp/find.js +5 -0
- package/node_modules/lodash/fp/findFrom.js +5 -0
- package/node_modules/lodash/fp/findIndex.js +5 -0
- package/node_modules/lodash/fp/findIndexFrom.js +5 -0
- package/node_modules/lodash/fp/findKey.js +5 -0
- package/node_modules/lodash/fp/findLast.js +5 -0
- package/node_modules/lodash/fp/findLastFrom.js +5 -0
- package/node_modules/lodash/fp/findLastIndex.js +5 -0
- package/node_modules/lodash/fp/findLastIndexFrom.js +5 -0
- package/node_modules/lodash/fp/findLastKey.js +5 -0
- package/node_modules/lodash/fp/first.js +1 -0
- package/node_modules/lodash/fp/flatMap.js +5 -0
- package/node_modules/lodash/fp/flatMapDeep.js +5 -0
- package/node_modules/lodash/fp/flatMapDepth.js +5 -0
- package/node_modules/lodash/fp/flatten.js +5 -0
- package/node_modules/lodash/fp/flattenDeep.js +5 -0
- package/node_modules/lodash/fp/flattenDepth.js +5 -0
- package/node_modules/lodash/fp/flip.js +5 -0
- package/node_modules/lodash/fp/floor.js +5 -0
- package/node_modules/lodash/fp/flow.js +5 -0
- package/node_modules/lodash/fp/flowRight.js +5 -0
- package/node_modules/lodash/fp/forEach.js +5 -0
- package/node_modules/lodash/fp/forEachRight.js +5 -0
- package/node_modules/lodash/fp/forIn.js +5 -0
- package/node_modules/lodash/fp/forInRight.js +5 -0
- package/node_modules/lodash/fp/forOwn.js +5 -0
- package/node_modules/lodash/fp/forOwnRight.js +5 -0
- package/node_modules/lodash/fp/fromPairs.js +5 -0
- package/node_modules/lodash/fp/function.js +2 -0
- package/node_modules/lodash/fp/functions.js +5 -0
- package/node_modules/lodash/fp/functionsIn.js +5 -0
- package/node_modules/lodash/fp/get.js +5 -0
- package/node_modules/lodash/fp/getOr.js +5 -0
- package/node_modules/lodash/fp/groupBy.js +5 -0
- package/node_modules/lodash/fp/gt.js +5 -0
- package/node_modules/lodash/fp/gte.js +5 -0
- package/node_modules/lodash/fp/has.js +5 -0
- package/node_modules/lodash/fp/hasIn.js +5 -0
- package/node_modules/lodash/fp/head.js +5 -0
- package/node_modules/lodash/fp/identical.js +1 -0
- package/node_modules/lodash/fp/identity.js +5 -0
- package/node_modules/lodash/fp/inRange.js +5 -0
- package/node_modules/lodash/fp/includes.js +5 -0
- package/node_modules/lodash/fp/includesFrom.js +5 -0
- package/node_modules/lodash/fp/indexBy.js +1 -0
- package/node_modules/lodash/fp/indexOf.js +5 -0
- package/node_modules/lodash/fp/indexOfFrom.js +5 -0
- package/node_modules/lodash/fp/init.js +1 -0
- package/node_modules/lodash/fp/initial.js +5 -0
- package/node_modules/lodash/fp/intersection.js +5 -0
- package/node_modules/lodash/fp/intersectionBy.js +5 -0
- package/node_modules/lodash/fp/intersectionWith.js +5 -0
- package/node_modules/lodash/fp/invert.js +5 -0
- package/node_modules/lodash/fp/invertBy.js +5 -0
- package/node_modules/lodash/fp/invertObj.js +1 -0
- package/node_modules/lodash/fp/invoke.js +5 -0
- package/node_modules/lodash/fp/invokeArgs.js +5 -0
- package/node_modules/lodash/fp/invokeArgsMap.js +5 -0
- package/node_modules/lodash/fp/invokeMap.js +5 -0
- package/node_modules/lodash/fp/isArguments.js +5 -0
- package/node_modules/lodash/fp/isArray.js +5 -0
- package/node_modules/lodash/fp/isArrayBuffer.js +5 -0
- package/node_modules/lodash/fp/isArrayLike.js +5 -0
- package/node_modules/lodash/fp/isArrayLikeObject.js +5 -0
- package/node_modules/lodash/fp/isBoolean.js +5 -0
- package/node_modules/lodash/fp/isBuffer.js +5 -0
- package/node_modules/lodash/fp/isDate.js +5 -0
- package/node_modules/lodash/fp/isElement.js +5 -0
- package/node_modules/lodash/fp/isEmpty.js +5 -0
- package/node_modules/lodash/fp/isEqual.js +5 -0
- package/node_modules/lodash/fp/isEqualWith.js +5 -0
- package/node_modules/lodash/fp/isError.js +5 -0
- package/node_modules/lodash/fp/isFinite.js +5 -0
- package/node_modules/lodash/fp/isFunction.js +5 -0
- package/node_modules/lodash/fp/isInteger.js +5 -0
- package/node_modules/lodash/fp/isLength.js +5 -0
- package/node_modules/lodash/fp/isMap.js +5 -0
- package/node_modules/lodash/fp/isMatch.js +5 -0
- package/node_modules/lodash/fp/isMatchWith.js +5 -0
- package/node_modules/lodash/fp/isNaN.js +5 -0
- package/node_modules/lodash/fp/isNative.js +5 -0
- package/node_modules/lodash/fp/isNil.js +5 -0
- package/node_modules/lodash/fp/isNull.js +5 -0
- package/node_modules/lodash/fp/isNumber.js +5 -0
- package/node_modules/lodash/fp/isObject.js +5 -0
- package/node_modules/lodash/fp/isObjectLike.js +5 -0
- package/node_modules/lodash/fp/isPlainObject.js +5 -0
- package/node_modules/lodash/fp/isRegExp.js +5 -0
- package/node_modules/lodash/fp/isSafeInteger.js +5 -0
- package/node_modules/lodash/fp/isSet.js +5 -0
- package/node_modules/lodash/fp/isString.js +5 -0
- package/node_modules/lodash/fp/isSymbol.js +5 -0
- package/node_modules/lodash/fp/isTypedArray.js +5 -0
- package/node_modules/lodash/fp/isUndefined.js +5 -0
- package/node_modules/lodash/fp/isWeakMap.js +5 -0
- package/node_modules/lodash/fp/isWeakSet.js +5 -0
- package/node_modules/lodash/fp/iteratee.js +5 -0
- package/node_modules/lodash/fp/join.js +5 -0
- package/node_modules/lodash/fp/juxt.js +1 -0
- package/node_modules/lodash/fp/kebabCase.js +5 -0
- package/node_modules/lodash/fp/keyBy.js +5 -0
- package/node_modules/lodash/fp/keys.js +5 -0
- package/node_modules/lodash/fp/keysIn.js +5 -0
- package/node_modules/lodash/fp/lang.js +2 -0
- package/node_modules/lodash/fp/last.js +5 -0
- package/node_modules/lodash/fp/lastIndexOf.js +5 -0
- package/node_modules/lodash/fp/lastIndexOfFrom.js +5 -0
- package/node_modules/lodash/fp/lowerCase.js +5 -0
- package/node_modules/lodash/fp/lowerFirst.js +5 -0
- package/node_modules/lodash/fp/lt.js +5 -0
- package/node_modules/lodash/fp/lte.js +5 -0
- package/node_modules/lodash/fp/map.js +5 -0
- package/node_modules/lodash/fp/mapKeys.js +5 -0
- package/node_modules/lodash/fp/mapValues.js +5 -0
- package/node_modules/lodash/fp/matches.js +1 -0
- package/node_modules/lodash/fp/matchesProperty.js +5 -0
- package/node_modules/lodash/fp/math.js +2 -0
- package/node_modules/lodash/fp/max.js +5 -0
- package/node_modules/lodash/fp/maxBy.js +5 -0
- package/node_modules/lodash/fp/mean.js +5 -0
- package/node_modules/lodash/fp/meanBy.js +5 -0
- package/node_modules/lodash/fp/memoize.js +5 -0
- package/node_modules/lodash/fp/merge.js +5 -0
- package/node_modules/lodash/fp/mergeAll.js +5 -0
- package/node_modules/lodash/fp/mergeAllWith.js +5 -0
- package/node_modules/lodash/fp/mergeWith.js +5 -0
- package/node_modules/lodash/fp/method.js +5 -0
- package/node_modules/lodash/fp/methodOf.js +5 -0
- package/node_modules/lodash/fp/min.js +5 -0
- package/node_modules/lodash/fp/minBy.js +5 -0
- package/node_modules/lodash/fp/mixin.js +5 -0
- package/node_modules/lodash/fp/multiply.js +5 -0
- package/node_modules/lodash/fp/nAry.js +1 -0
- package/node_modules/lodash/fp/negate.js +5 -0
- package/node_modules/lodash/fp/next.js +5 -0
- package/node_modules/lodash/fp/noop.js +5 -0
- package/node_modules/lodash/fp/now.js +5 -0
- package/node_modules/lodash/fp/nth.js +5 -0
- package/node_modules/lodash/fp/nthArg.js +5 -0
- package/node_modules/lodash/fp/number.js +2 -0
- package/node_modules/lodash/fp/object.js +2 -0
- package/node_modules/lodash/fp/omit.js +5 -0
- package/node_modules/lodash/fp/omitAll.js +1 -0
- package/node_modules/lodash/fp/omitBy.js +5 -0
- package/node_modules/lodash/fp/once.js +5 -0
- package/node_modules/lodash/fp/orderBy.js +5 -0
- package/node_modules/lodash/fp/over.js +5 -0
- package/node_modules/lodash/fp/overArgs.js +5 -0
- package/node_modules/lodash/fp/overEvery.js +5 -0
- package/node_modules/lodash/fp/overSome.js +5 -0
- package/node_modules/lodash/fp/pad.js +5 -0
- package/node_modules/lodash/fp/padChars.js +5 -0
- package/node_modules/lodash/fp/padCharsEnd.js +5 -0
- package/node_modules/lodash/fp/padCharsStart.js +5 -0
- package/node_modules/lodash/fp/padEnd.js +5 -0
- package/node_modules/lodash/fp/padStart.js +5 -0
- package/node_modules/lodash/fp/parseInt.js +5 -0
- package/node_modules/lodash/fp/partial.js +5 -0
- package/node_modules/lodash/fp/partialRight.js +5 -0
- package/node_modules/lodash/fp/partition.js +5 -0
- package/node_modules/lodash/fp/path.js +1 -0
- package/node_modules/lodash/fp/pathEq.js +1 -0
- package/node_modules/lodash/fp/pathOr.js +1 -0
- package/node_modules/lodash/fp/paths.js +1 -0
- package/node_modules/lodash/fp/pick.js +5 -0
- package/node_modules/lodash/fp/pickAll.js +1 -0
- package/node_modules/lodash/fp/pickBy.js +5 -0
- package/node_modules/lodash/fp/pipe.js +1 -0
- package/node_modules/lodash/fp/placeholder.js +6 -0
- package/node_modules/lodash/fp/plant.js +5 -0
- package/node_modules/lodash/fp/pluck.js +1 -0
- package/node_modules/lodash/fp/prop.js +1 -0
- package/node_modules/lodash/fp/propEq.js +1 -0
- package/node_modules/lodash/fp/propOr.js +1 -0
- package/node_modules/lodash/fp/property.js +1 -0
- package/node_modules/lodash/fp/propertyOf.js +5 -0
- package/node_modules/lodash/fp/props.js +1 -0
- package/node_modules/lodash/fp/pull.js +5 -0
- package/node_modules/lodash/fp/pullAll.js +5 -0
- package/node_modules/lodash/fp/pullAllBy.js +5 -0
- package/node_modules/lodash/fp/pullAllWith.js +5 -0
- package/node_modules/lodash/fp/pullAt.js +5 -0
- package/node_modules/lodash/fp/random.js +5 -0
- package/node_modules/lodash/fp/range.js +5 -0
- package/node_modules/lodash/fp/rangeRight.js +5 -0
- package/node_modules/lodash/fp/rangeStep.js +5 -0
- package/node_modules/lodash/fp/rangeStepRight.js +5 -0
- package/node_modules/lodash/fp/rearg.js +5 -0
- package/node_modules/lodash/fp/reduce.js +5 -0
- package/node_modules/lodash/fp/reduceRight.js +5 -0
- package/node_modules/lodash/fp/reject.js +5 -0
- package/node_modules/lodash/fp/remove.js +5 -0
- package/node_modules/lodash/fp/repeat.js +5 -0
- package/node_modules/lodash/fp/replace.js +5 -0
- package/node_modules/lodash/fp/rest.js +5 -0
- package/node_modules/lodash/fp/restFrom.js +5 -0
- package/node_modules/lodash/fp/result.js +5 -0
- package/node_modules/lodash/fp/reverse.js +5 -0
- package/node_modules/lodash/fp/round.js +5 -0
- package/node_modules/lodash/fp/sample.js +5 -0
- package/node_modules/lodash/fp/sampleSize.js +5 -0
- package/node_modules/lodash/fp/seq.js +2 -0
- package/node_modules/lodash/fp/set.js +5 -0
- package/node_modules/lodash/fp/setWith.js +5 -0
- package/node_modules/lodash/fp/shuffle.js +5 -0
- package/node_modules/lodash/fp/size.js +5 -0
- package/node_modules/lodash/fp/slice.js +5 -0
- package/node_modules/lodash/fp/snakeCase.js +5 -0
- package/node_modules/lodash/fp/some.js +5 -0
- package/node_modules/lodash/fp/sortBy.js +5 -0
- package/node_modules/lodash/fp/sortedIndex.js +5 -0
- package/node_modules/lodash/fp/sortedIndexBy.js +5 -0
- package/node_modules/lodash/fp/sortedIndexOf.js +5 -0
- package/node_modules/lodash/fp/sortedLastIndex.js +5 -0
- package/node_modules/lodash/fp/sortedLastIndexBy.js +5 -0
- package/node_modules/lodash/fp/sortedLastIndexOf.js +5 -0
- package/node_modules/lodash/fp/sortedUniq.js +5 -0
- package/node_modules/lodash/fp/sortedUniqBy.js +5 -0
- package/node_modules/lodash/fp/split.js +5 -0
- package/node_modules/lodash/fp/spread.js +5 -0
- package/node_modules/lodash/fp/spreadFrom.js +5 -0
- package/node_modules/lodash/fp/startCase.js +5 -0
- package/node_modules/lodash/fp/startsWith.js +5 -0
- package/node_modules/lodash/fp/string.js +2 -0
- package/node_modules/lodash/fp/stubArray.js +5 -0
- package/node_modules/lodash/fp/stubFalse.js +5 -0
- package/node_modules/lodash/fp/stubObject.js +5 -0
- package/node_modules/lodash/fp/stubString.js +5 -0
- package/node_modules/lodash/fp/stubTrue.js +5 -0
- package/node_modules/lodash/fp/subtract.js +5 -0
- package/node_modules/lodash/fp/sum.js +5 -0
- package/node_modules/lodash/fp/sumBy.js +5 -0
- package/node_modules/lodash/fp/symmetricDifference.js +1 -0
- package/node_modules/lodash/fp/symmetricDifferenceBy.js +1 -0
- package/node_modules/lodash/fp/symmetricDifferenceWith.js +1 -0
- package/node_modules/lodash/fp/tail.js +5 -0
- package/node_modules/lodash/fp/take.js +5 -0
- package/node_modules/lodash/fp/takeLast.js +1 -0
- package/node_modules/lodash/fp/takeLastWhile.js +1 -0
- package/node_modules/lodash/fp/takeRight.js +5 -0
- package/node_modules/lodash/fp/takeRightWhile.js +5 -0
- package/node_modules/lodash/fp/takeWhile.js +5 -0
- package/node_modules/lodash/fp/tap.js +5 -0
- package/node_modules/lodash/fp/template.js +5 -0
- package/node_modules/lodash/fp/templateSettings.js +5 -0
- package/node_modules/lodash/fp/throttle.js +5 -0
- package/node_modules/lodash/fp/thru.js +5 -0
- package/node_modules/lodash/fp/times.js +5 -0
- package/node_modules/lodash/fp/toArray.js +5 -0
- package/node_modules/lodash/fp/toFinite.js +5 -0
- package/node_modules/lodash/fp/toInteger.js +5 -0
- package/node_modules/lodash/fp/toIterator.js +5 -0
- package/node_modules/lodash/fp/toJSON.js +5 -0
- package/node_modules/lodash/fp/toLength.js +5 -0
- package/node_modules/lodash/fp/toLower.js +5 -0
- package/node_modules/lodash/fp/toNumber.js +5 -0
- package/node_modules/lodash/fp/toPairs.js +5 -0
- package/node_modules/lodash/fp/toPairsIn.js +5 -0
- package/node_modules/lodash/fp/toPath.js +5 -0
- package/node_modules/lodash/fp/toPlainObject.js +5 -0
- package/node_modules/lodash/fp/toSafeInteger.js +5 -0
- package/node_modules/lodash/fp/toString.js +5 -0
- package/node_modules/lodash/fp/toUpper.js +5 -0
- package/node_modules/lodash/fp/transform.js +5 -0
- package/node_modules/lodash/fp/trim.js +5 -0
- package/node_modules/lodash/fp/trimChars.js +5 -0
- package/node_modules/lodash/fp/trimCharsEnd.js +5 -0
- package/node_modules/lodash/fp/trimCharsStart.js +5 -0
- package/node_modules/lodash/fp/trimEnd.js +5 -0
- package/node_modules/lodash/fp/trimStart.js +5 -0
- package/node_modules/lodash/fp/truncate.js +5 -0
- package/node_modules/lodash/fp/unapply.js +1 -0
- package/node_modules/lodash/fp/unary.js +5 -0
- package/node_modules/lodash/fp/unescape.js +5 -0
- package/node_modules/lodash/fp/union.js +5 -0
- package/node_modules/lodash/fp/unionBy.js +5 -0
- package/node_modules/lodash/fp/unionWith.js +5 -0
- package/node_modules/lodash/fp/uniq.js +5 -0
- package/node_modules/lodash/fp/uniqBy.js +5 -0
- package/node_modules/lodash/fp/uniqWith.js +5 -0
- package/node_modules/lodash/fp/uniqueId.js +5 -0
- package/node_modules/lodash/fp/unnest.js +1 -0
- package/node_modules/lodash/fp/unset.js +5 -0
- package/node_modules/lodash/fp/unzip.js +5 -0
- package/node_modules/lodash/fp/unzipWith.js +5 -0
- package/node_modules/lodash/fp/update.js +5 -0
- package/node_modules/lodash/fp/updateWith.js +5 -0
- package/node_modules/lodash/fp/upperCase.js +5 -0
- package/node_modules/lodash/fp/upperFirst.js +5 -0
- package/node_modules/lodash/fp/useWith.js +1 -0
- package/node_modules/lodash/fp/util.js +2 -0
- package/node_modules/lodash/fp/value.js +5 -0
- package/node_modules/lodash/fp/valueOf.js +5 -0
- package/node_modules/lodash/fp/values.js +5 -0
- package/node_modules/lodash/fp/valuesIn.js +5 -0
- package/node_modules/lodash/fp/where.js +1 -0
- package/node_modules/lodash/fp/whereEq.js +1 -0
- package/node_modules/lodash/fp/without.js +5 -0
- package/node_modules/lodash/fp/words.js +5 -0
- package/node_modules/lodash/fp/wrap.js +5 -0
- package/node_modules/lodash/fp/wrapperAt.js +5 -0
- package/node_modules/lodash/fp/wrapperChain.js +5 -0
- package/node_modules/lodash/fp/wrapperLodash.js +5 -0
- package/node_modules/lodash/fp/wrapperReverse.js +5 -0
- package/node_modules/lodash/fp/wrapperValue.js +5 -0
- package/node_modules/lodash/fp/xor.js +5 -0
- package/node_modules/lodash/fp/xorBy.js +5 -0
- package/node_modules/lodash/fp/xorWith.js +5 -0
- package/node_modules/lodash/fp/zip.js +5 -0
- package/node_modules/lodash/fp/zipAll.js +5 -0
- package/node_modules/lodash/fp/zipObj.js +1 -0
- package/node_modules/lodash/fp/zipObject.js +5 -0
- package/node_modules/lodash/fp/zipObjectDeep.js +5 -0
- package/node_modules/lodash/fp/zipWith.js +5 -0
- package/node_modules/lodash/fp.js +2 -0
- package/node_modules/lodash/fromPairs.js +28 -0
- package/node_modules/lodash/function.js +25 -0
- package/node_modules/lodash/functions.js +31 -0
- package/node_modules/lodash/functionsIn.js +31 -0
- package/node_modules/lodash/get.js +33 -0
- package/node_modules/lodash/groupBy.js +41 -0
- package/node_modules/lodash/gt.js +29 -0
- package/node_modules/lodash/gte.js +30 -0
- package/node_modules/lodash/has.js +35 -0
- package/node_modules/lodash/hasIn.js +34 -0
- package/node_modules/lodash/head.js +23 -0
- package/node_modules/lodash/identity.js +21 -0
- package/node_modules/lodash/inRange.js +55 -0
- package/node_modules/lodash/includes.js +53 -0
- package/node_modules/lodash/index.js +1 -0
- package/node_modules/lodash/indexOf.js +42 -0
- package/node_modules/lodash/initial.js +22 -0
- package/node_modules/lodash/intersection.js +30 -0
- package/node_modules/lodash/intersectionBy.js +45 -0
- package/node_modules/lodash/intersectionWith.js +41 -0
- package/node_modules/lodash/invert.js +42 -0
- package/node_modules/lodash/invertBy.js +56 -0
- package/node_modules/lodash/invoke.js +24 -0
- package/node_modules/lodash/invokeMap.js +41 -0
- package/node_modules/lodash/isArguments.js +36 -0
- package/node_modules/lodash/isArray.js +26 -0
- package/node_modules/lodash/isArrayBuffer.js +27 -0
- package/node_modules/lodash/isArrayLike.js +33 -0
- package/node_modules/lodash/isArrayLikeObject.js +33 -0
- package/node_modules/lodash/isBoolean.js +29 -0
- package/node_modules/lodash/isBuffer.js +38 -0
- package/node_modules/lodash/isDate.js +27 -0
- package/node_modules/lodash/isElement.js +25 -0
- package/node_modules/lodash/isEmpty.js +77 -0
- package/node_modules/lodash/isEqual.js +35 -0
- package/node_modules/lodash/isEqualWith.js +41 -0
- package/node_modules/lodash/isError.js +36 -0
- package/node_modules/lodash/isFinite.js +36 -0
- package/node_modules/lodash/isFunction.js +37 -0
- package/node_modules/lodash/isInteger.js +33 -0
- package/node_modules/lodash/isLength.js +35 -0
- package/node_modules/lodash/isMap.js +27 -0
- package/node_modules/lodash/isMatch.js +36 -0
- package/node_modules/lodash/isMatchWith.js +41 -0
- package/node_modules/lodash/isNaN.js +38 -0
- package/node_modules/lodash/isNative.js +40 -0
- package/node_modules/lodash/isNil.js +25 -0
- package/node_modules/lodash/isNull.js +22 -0
- package/node_modules/lodash/isNumber.js +38 -0
- package/node_modules/lodash/isObject.js +31 -0
- package/node_modules/lodash/isObjectLike.js +29 -0
- package/node_modules/lodash/isPlainObject.js +62 -0
- package/node_modules/lodash/isRegExp.js +27 -0
- package/node_modules/lodash/isSafeInteger.js +37 -0
- package/node_modules/lodash/isSet.js +27 -0
- package/node_modules/lodash/isString.js +30 -0
- package/node_modules/lodash/isSymbol.js +29 -0
- package/node_modules/lodash/isTypedArray.js +27 -0
- package/node_modules/lodash/isUndefined.js +22 -0
- package/node_modules/lodash/isWeakMap.js +28 -0
- package/node_modules/lodash/isWeakSet.js +28 -0
- package/node_modules/lodash/iteratee.js +53 -0
- package/node_modules/lodash/join.js +26 -0
- package/node_modules/lodash/kebabCase.js +28 -0
- package/node_modules/lodash/keyBy.js +36 -0
- package/node_modules/lodash/keys.js +37 -0
- package/node_modules/lodash/keysIn.js +32 -0
- package/node_modules/lodash/lang.js +58 -0
- package/node_modules/lodash/last.js +20 -0
- package/node_modules/lodash/lastIndexOf.js +46 -0
- package/node_modules/lodash/lodash.js +17209 -0
- package/node_modules/lodash/lodash.min.js +140 -0
- package/node_modules/lodash/lowerCase.js +27 -0
- package/node_modules/lodash/lowerFirst.js +22 -0
- package/node_modules/lodash/lt.js +29 -0
- package/node_modules/lodash/lte.js +30 -0
- package/node_modules/lodash/map.js +53 -0
- package/node_modules/lodash/mapKeys.js +36 -0
- package/node_modules/lodash/mapValues.js +43 -0
- package/node_modules/lodash/matches.js +46 -0
- package/node_modules/lodash/matchesProperty.js +44 -0
- package/node_modules/lodash/math.js +17 -0
- package/node_modules/lodash/max.js +29 -0
- package/node_modules/lodash/maxBy.js +34 -0
- package/node_modules/lodash/mean.js +22 -0
- package/node_modules/lodash/meanBy.js +31 -0
- package/node_modules/lodash/memoize.js +73 -0
- package/node_modules/lodash/merge.js +39 -0
- package/node_modules/lodash/mergeWith.js +39 -0
- package/node_modules/lodash/method.js +34 -0
- package/node_modules/lodash/methodOf.js +33 -0
- package/node_modules/lodash/min.js +29 -0
- package/node_modules/lodash/minBy.js +34 -0
- package/node_modules/lodash/mixin.js +74 -0
- package/node_modules/lodash/multiply.js +22 -0
- package/node_modules/lodash/negate.js +40 -0
- package/node_modules/lodash/next.js +35 -0
- package/node_modules/lodash/noop.js +17 -0
- package/node_modules/lodash/now.js +23 -0
- package/node_modules/lodash/nth.js +29 -0
- package/node_modules/lodash/nthArg.js +32 -0
- package/node_modules/lodash/number.js +5 -0
- package/node_modules/lodash/object.js +49 -0
- package/node_modules/lodash/omit.js +57 -0
- package/node_modules/lodash/omitBy.js +29 -0
- package/node_modules/lodash/once.js +25 -0
- package/node_modules/lodash/orderBy.js +47 -0
- package/node_modules/lodash/over.js +24 -0
- package/node_modules/lodash/overArgs.js +61 -0
- package/node_modules/lodash/overEvery.js +34 -0
- package/node_modules/lodash/overSome.js +37 -0
- package/node_modules/lodash/package.json +17 -0
- package/node_modules/lodash/pad.js +49 -0
- package/node_modules/lodash/padEnd.js +39 -0
- package/node_modules/lodash/padStart.js +39 -0
- package/node_modules/lodash/parseInt.js +43 -0
- package/node_modules/lodash/partial.js +50 -0
- package/node_modules/lodash/partialRight.js +49 -0
- package/node_modules/lodash/partition.js +43 -0
- package/node_modules/lodash/pick.js +25 -0
- package/node_modules/lodash/pickBy.js +37 -0
- package/node_modules/lodash/plant.js +48 -0
- package/node_modules/lodash/property.js +32 -0
- package/node_modules/lodash/propertyOf.js +30 -0
- package/node_modules/lodash/pull.js +29 -0
- package/node_modules/lodash/pullAll.js +29 -0
- package/node_modules/lodash/pullAllBy.js +33 -0
- package/node_modules/lodash/pullAllWith.js +32 -0
- package/node_modules/lodash/pullAt.js +43 -0
- package/node_modules/lodash/random.js +82 -0
- package/node_modules/lodash/range.js +46 -0
- package/node_modules/lodash/rangeRight.js +41 -0
- package/node_modules/lodash/rearg.js +33 -0
- package/node_modules/lodash/reduce.js +51 -0
- package/node_modules/lodash/reduceRight.js +36 -0
- package/node_modules/lodash/reject.js +46 -0
- package/node_modules/lodash/release.md +48 -0
- package/node_modules/lodash/remove.js +53 -0
- package/node_modules/lodash/repeat.js +37 -0
- package/node_modules/lodash/replace.js +29 -0
- package/node_modules/lodash/rest.js +40 -0
- package/node_modules/lodash/result.js +56 -0
- package/node_modules/lodash/reverse.js +34 -0
- package/node_modules/lodash/round.js +26 -0
- package/node_modules/lodash/sample.js +24 -0
- package/node_modules/lodash/sampleSize.js +37 -0
- package/node_modules/lodash/seq.js +16 -0
- package/node_modules/lodash/set.js +35 -0
- package/node_modules/lodash/setWith.js +32 -0
- package/node_modules/lodash/shuffle.js +25 -0
- package/node_modules/lodash/size.js +46 -0
- package/node_modules/lodash/slice.js +37 -0
- package/node_modules/lodash/snakeCase.js +28 -0
- package/node_modules/lodash/some.js +51 -0
- package/node_modules/lodash/sortBy.js +48 -0
- package/node_modules/lodash/sortedIndex.js +24 -0
- package/node_modules/lodash/sortedIndexBy.js +33 -0
- package/node_modules/lodash/sortedIndexOf.js +31 -0
- package/node_modules/lodash/sortedLastIndex.js +25 -0
- package/node_modules/lodash/sortedLastIndexBy.js +33 -0
- package/node_modules/lodash/sortedLastIndexOf.js +31 -0
- package/node_modules/lodash/sortedUniq.js +24 -0
- package/node_modules/lodash/sortedUniqBy.js +26 -0
- package/node_modules/lodash/split.js +52 -0
- package/node_modules/lodash/spread.js +63 -0
- package/node_modules/lodash/startCase.js +29 -0
- package/node_modules/lodash/startsWith.js +39 -0
- package/node_modules/lodash/string.js +33 -0
- package/node_modules/lodash/stubArray.js +23 -0
- package/node_modules/lodash/stubFalse.js +18 -0
- package/node_modules/lodash/stubObject.js +23 -0
- package/node_modules/lodash/stubString.js +18 -0
- package/node_modules/lodash/stubTrue.js +18 -0
- package/node_modules/lodash/subtract.js +22 -0
- package/node_modules/lodash/sum.js +24 -0
- package/node_modules/lodash/sumBy.js +33 -0
- package/node_modules/lodash/tail.js +22 -0
- package/node_modules/lodash/take.js +37 -0
- package/node_modules/lodash/takeRight.js +39 -0
- package/node_modules/lodash/takeRightWhile.js +45 -0
- package/node_modules/lodash/takeWhile.js +45 -0
- package/node_modules/lodash/tap.js +29 -0
- package/node_modules/lodash/template.js +272 -0
- package/node_modules/lodash/templateSettings.js +67 -0
- package/node_modules/lodash/throttle.js +69 -0
- package/node_modules/lodash/thru.js +28 -0
- package/node_modules/lodash/times.js +51 -0
- package/node_modules/lodash/toArray.js +58 -0
- package/node_modules/lodash/toFinite.js +42 -0
- package/node_modules/lodash/toInteger.js +36 -0
- package/node_modules/lodash/toIterator.js +23 -0
- package/node_modules/lodash/toJSON.js +1 -0
- package/node_modules/lodash/toLength.js +38 -0
- package/node_modules/lodash/toLower.js +28 -0
- package/node_modules/lodash/toNumber.js +64 -0
- package/node_modules/lodash/toPairs.js +30 -0
- package/node_modules/lodash/toPairsIn.js +30 -0
- package/node_modules/lodash/toPath.js +33 -0
- package/node_modules/lodash/toPlainObject.js +32 -0
- package/node_modules/lodash/toSafeInteger.js +37 -0
- package/node_modules/lodash/toString.js +28 -0
- package/node_modules/lodash/toUpper.js +28 -0
- package/node_modules/lodash/transform.js +65 -0
- package/node_modules/lodash/trim.js +47 -0
- package/node_modules/lodash/trimEnd.js +41 -0
- package/node_modules/lodash/trimStart.js +43 -0
- package/node_modules/lodash/truncate.js +111 -0
- package/node_modules/lodash/unary.js +22 -0
- package/node_modules/lodash/unescape.js +34 -0
- package/node_modules/lodash/union.js +26 -0
- package/node_modules/lodash/unionBy.js +39 -0
- package/node_modules/lodash/unionWith.js +34 -0
- package/node_modules/lodash/uniq.js +25 -0
- package/node_modules/lodash/uniqBy.js +31 -0
- package/node_modules/lodash/uniqWith.js +28 -0
- package/node_modules/lodash/uniqueId.js +28 -0
- package/node_modules/lodash/unset.js +34 -0
- package/node_modules/lodash/unzip.js +45 -0
- package/node_modules/lodash/unzipWith.js +39 -0
- package/node_modules/lodash/update.js +35 -0
- package/node_modules/lodash/updateWith.js +33 -0
- package/node_modules/lodash/upperCase.js +27 -0
- package/node_modules/lodash/upperFirst.js +22 -0
- package/node_modules/lodash/util.js +34 -0
- package/node_modules/lodash/value.js +1 -0
- package/node_modules/lodash/valueOf.js +1 -0
- package/node_modules/lodash/values.js +34 -0
- package/node_modules/lodash/valuesIn.js +32 -0
- package/node_modules/lodash/without.js +31 -0
- package/node_modules/lodash/words.js +35 -0
- package/node_modules/lodash/wrap.js +30 -0
- package/node_modules/lodash/wrapperAt.js +48 -0
- package/node_modules/lodash/wrapperChain.js +34 -0
- package/node_modules/lodash/wrapperLodash.js +147 -0
- package/node_modules/lodash/wrapperReverse.js +44 -0
- package/node_modules/lodash/wrapperValue.js +21 -0
- package/node_modules/lodash/xor.js +28 -0
- package/node_modules/lodash/xorBy.js +39 -0
- package/node_modules/lodash/xorWith.js +34 -0
- package/node_modules/lodash/zip.js +22 -0
- package/node_modules/lodash/zipObject.js +24 -0
- package/node_modules/lodash/zipObjectDeep.js +23 -0
- package/node_modules/lodash/zipWith.js +32 -0
- package/node_modules/lodash.get/LICENSE +47 -0
- package/node_modules/lodash.get/README.md +18 -0
- package/node_modules/lodash.get/index.js +931 -0
- package/node_modules/lodash.get/package.json +17 -0
- package/node_modules/math-intrinsics/.eslintrc +16 -0
- package/node_modules/math-intrinsics/.github/FUNDING.yml +12 -0
- package/node_modules/math-intrinsics/CHANGELOG.md +24 -0
- package/node_modules/math-intrinsics/LICENSE +21 -0
- package/node_modules/math-intrinsics/README.md +50 -0
- package/node_modules/math-intrinsics/abs.d.ts +1 -0
- package/node_modules/math-intrinsics/abs.js +4 -0
- package/node_modules/math-intrinsics/constants/maxArrayLength.d.ts +3 -0
- package/node_modules/math-intrinsics/constants/maxArrayLength.js +4 -0
- package/node_modules/math-intrinsics/constants/maxSafeInteger.d.ts +3 -0
- package/node_modules/math-intrinsics/constants/maxSafeInteger.js +5 -0
- package/node_modules/math-intrinsics/constants/maxValue.d.ts +3 -0
- package/node_modules/math-intrinsics/constants/maxValue.js +5 -0
- package/node_modules/math-intrinsics/floor.d.ts +1 -0
- package/node_modules/math-intrinsics/floor.js +4 -0
- package/node_modules/math-intrinsics/isFinite.d.ts +3 -0
- package/node_modules/math-intrinsics/isFinite.js +12 -0
- package/node_modules/math-intrinsics/isInteger.d.ts +3 -0
- package/node_modules/math-intrinsics/isInteger.js +16 -0
- package/node_modules/math-intrinsics/isNaN.d.ts +1 -0
- package/node_modules/math-intrinsics/isNaN.js +6 -0
- package/node_modules/math-intrinsics/isNegativeZero.d.ts +3 -0
- package/node_modules/math-intrinsics/isNegativeZero.js +6 -0
- package/node_modules/math-intrinsics/max.d.ts +1 -0
- package/node_modules/math-intrinsics/max.js +4 -0
- package/node_modules/math-intrinsics/min.d.ts +1 -0
- package/node_modules/math-intrinsics/min.js +4 -0
- package/node_modules/math-intrinsics/mod.d.ts +3 -0
- package/node_modules/math-intrinsics/mod.js +9 -0
- package/node_modules/math-intrinsics/package.json +86 -0
- package/node_modules/math-intrinsics/pow.d.ts +1 -0
- package/node_modules/math-intrinsics/pow.js +4 -0
- package/node_modules/math-intrinsics/round.d.ts +1 -0
- package/node_modules/math-intrinsics/round.js +4 -0
- package/node_modules/math-intrinsics/sign.d.ts +3 -0
- package/node_modules/math-intrinsics/sign.js +11 -0
- package/node_modules/math-intrinsics/test/index.js +192 -0
- package/node_modules/math-intrinsics/tsconfig.json +3 -0
- package/node_modules/mime-db/HISTORY.md +507 -0
- package/node_modules/mime-db/LICENSE +23 -0
- package/node_modules/mime-db/README.md +100 -0
- package/node_modules/mime-db/db.json +8519 -0
- package/node_modules/mime-db/index.js +12 -0
- package/node_modules/mime-db/package.json +60 -0
- package/node_modules/mime-types/HISTORY.md +397 -0
- package/node_modules/mime-types/LICENSE +23 -0
- package/node_modules/mime-types/README.md +113 -0
- package/node_modules/mime-types/index.js +188 -0
- package/node_modules/mime-types/package.json +44 -0
- package/node_modules/node-fetch/LICENSE.md +22 -0
- package/node_modules/node-fetch/README.md +590 -0
- package/node_modules/node-fetch/browser.js +25 -0
- package/node_modules/node-fetch/lib/index.es.js +1688 -0
- package/node_modules/node-fetch/lib/index.js +1697 -0
- package/node_modules/node-fetch/lib/index.mjs +1686 -0
- package/node_modules/node-fetch/package.json +76 -0
- package/node_modules/p-limit/index.d.ts +42 -0
- package/node_modules/p-limit/index.js +71 -0
- package/node_modules/p-limit/license +9 -0
- package/node_modules/p-limit/package.json +52 -0
- package/node_modules/p-limit/readme.md +101 -0
- package/node_modules/tr46/.npmignore +4 -0
- package/node_modules/tr46/index.js +193 -0
- package/node_modules/tr46/lib/.gitkeep +0 -0
- package/node_modules/tr46/lib/mappingTable.json +1 -0
- package/node_modules/tr46/package.json +31 -0
- package/node_modules/unfetch/LICENSE.md +21 -0
- package/node_modules/unfetch/README.md +247 -0
- package/node_modules/unfetch/dist/unfetch.es.js +2 -0
- package/node_modules/unfetch/dist/unfetch.js +2 -0
- package/node_modules/unfetch/dist/unfetch.js.map +1 -0
- package/node_modules/unfetch/dist/unfetch.module.js +2 -0
- package/node_modules/unfetch/dist/unfetch.module.js.map +1 -0
- package/node_modules/unfetch/dist/unfetch.umd.js +2 -0
- package/node_modules/unfetch/dist/unfetch.umd.js.map +1 -0
- package/node_modules/unfetch/package.json +67 -0
- package/node_modules/unfetch/polyfill/index.js +1 -0
- package/node_modules/unfetch/polyfill/package.json +5 -0
- package/node_modules/unfetch/polyfill/polyfill.mjs +2 -0
- package/node_modules/unfetch/src/index.d.ts +46 -0
- package/node_modules/unfetch/src/index.mjs +47 -0
- package/node_modules/webidl-conversions/LICENSE.md +12 -0
- package/node_modules/webidl-conversions/README.md +53 -0
- package/node_modules/webidl-conversions/lib/index.js +189 -0
- package/node_modules/webidl-conversions/package.json +23 -0
- package/node_modules/whatwg-url/LICENSE.txt +21 -0
- package/node_modules/whatwg-url/README.md +67 -0
- package/node_modules/whatwg-url/lib/URL-impl.js +200 -0
- package/node_modules/whatwg-url/lib/URL.js +196 -0
- package/node_modules/whatwg-url/lib/public-api.js +11 -0
- package/node_modules/whatwg-url/lib/url-state-machine.js +1297 -0
- package/node_modules/whatwg-url/lib/utils.js +20 -0
- package/node_modules/whatwg-url/package.json +32 -0
- package/node_modules/yocto-queue/index.d.ts +56 -0
- package/node_modules/yocto-queue/index.js +68 -0
- package/node_modules/yocto-queue/license +9 -0
- package/node_modules/yocto-queue/package.json +43 -0
- package/node_modules/yocto-queue/readme.md +64 -0
- package/oclif.manifest.json +1 -85
- package/package.json +12 -8
- package/dist/commands/load-local/index.d.ts +0 -17
- package/dist/commands/load-local/index.js +0 -156
- package/dist/helpers/pipeline/formatters.d.ts +0 -6
- package/dist/helpers/pipeline/formatters.js +0 -219
|
@@ -0,0 +1,1807 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import { Buffer } from 'buffer';
|
|
7
|
+
import CryptoJS from 'crypto-js/core';
|
|
8
|
+
import TypedArrays from 'crypto-js/lib-typedarrays'; // necessary for crypto js
|
|
9
|
+
import Base64 from 'crypto-js/enc-base64';
|
|
10
|
+
import HmacSHA256 from 'crypto-js/hmac-sha256';
|
|
11
|
+
import BigInteger from './BigInteger';
|
|
12
|
+
import AuthenticationHelper from './AuthenticationHelper';
|
|
13
|
+
import CognitoAccessToken from './CognitoAccessToken';
|
|
14
|
+
import CognitoIdToken from './CognitoIdToken';
|
|
15
|
+
import CognitoRefreshToken from './CognitoRefreshToken';
|
|
16
|
+
import CognitoUserSession from './CognitoUserSession';
|
|
17
|
+
import DateHelper from './DateHelper';
|
|
18
|
+
import CognitoUserAttribute from './CognitoUserAttribute';
|
|
19
|
+
import StorageHelper from './StorageHelper';
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* @callback nodeCallback
|
|
23
|
+
* @template T result
|
|
24
|
+
* @param {*} err The operation failure reason, or null.
|
|
25
|
+
* @param {T} result The operation result.
|
|
26
|
+
*/
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* @callback onFailure
|
|
30
|
+
* @param {*} err Failure reason.
|
|
31
|
+
*/
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* @callback onSuccess
|
|
35
|
+
* @template T result
|
|
36
|
+
* @param {T} result The operation result.
|
|
37
|
+
*/
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* @callback mfaRequired
|
|
41
|
+
* @param {*} details MFA challenge details.
|
|
42
|
+
*/
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* @callback customChallenge
|
|
46
|
+
* @param {*} details Custom challenge details.
|
|
47
|
+
*/
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* @callback inputVerificationCode
|
|
51
|
+
* @param {*} data Server response.
|
|
52
|
+
*/
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* @callback authSuccess
|
|
56
|
+
* @param {CognitoUserSession} session The new session.
|
|
57
|
+
* @param {bool=} userConfirmationNecessary User must be confirmed.
|
|
58
|
+
*/
|
|
59
|
+
|
|
60
|
+
var isBrowser = typeof navigator !== 'undefined';
|
|
61
|
+
var userAgent = isBrowser ? navigator.userAgent : 'nodejs';
|
|
62
|
+
|
|
63
|
+
/** @class */
|
|
64
|
+
var CognitoUser = /*#__PURE__*/function () {
|
|
65
|
+
/**
|
|
66
|
+
* Constructs a new CognitoUser object
|
|
67
|
+
* @param {object} data Creation options
|
|
68
|
+
* @param {string} data.Username The user's username.
|
|
69
|
+
* @param {CognitoUserPool} data.Pool Pool containing the user.
|
|
70
|
+
* @param {object} data.Storage Optional storage object.
|
|
71
|
+
*/
|
|
72
|
+
function CognitoUser(data) {
|
|
73
|
+
if (data == null || data.Username == null || data.Pool == null) {
|
|
74
|
+
throw new Error('Username and Pool information are required.');
|
|
75
|
+
}
|
|
76
|
+
this.username = data.Username || '';
|
|
77
|
+
this.pool = data.Pool;
|
|
78
|
+
this.Session = null;
|
|
79
|
+
this.client = data.Pool.client;
|
|
80
|
+
this.signInUserSession = null;
|
|
81
|
+
this.authenticationFlowType = 'USER_SRP_AUTH';
|
|
82
|
+
this.storage = data.Storage || new StorageHelper().getStorage();
|
|
83
|
+
this.keyPrefix = "CognitoIdentityServiceProvider." + this.pool.getClientId();
|
|
84
|
+
this.userDataKey = this.keyPrefix + "." + this.username + ".userData";
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* Sets the session for this user
|
|
89
|
+
* @param {CognitoUserSession} signInUserSession the session
|
|
90
|
+
* @returns {void}
|
|
91
|
+
*/
|
|
92
|
+
var _proto = CognitoUser.prototype;
|
|
93
|
+
_proto.setSignInUserSession = function setSignInUserSession(signInUserSession) {
|
|
94
|
+
this.clearCachedUserData();
|
|
95
|
+
this.signInUserSession = signInUserSession;
|
|
96
|
+
this.cacheTokens();
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* @returns {CognitoUserSession} the current session for this user
|
|
101
|
+
*/;
|
|
102
|
+
_proto.getSignInUserSession = function getSignInUserSession() {
|
|
103
|
+
return this.signInUserSession;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* @returns {string} the user's username
|
|
108
|
+
*/;
|
|
109
|
+
_proto.getUsername = function getUsername() {
|
|
110
|
+
return this.username;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* @returns {String} the authentication flow type
|
|
115
|
+
*/;
|
|
116
|
+
_proto.getAuthenticationFlowType = function getAuthenticationFlowType() {
|
|
117
|
+
return this.authenticationFlowType;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* sets authentication flow type
|
|
122
|
+
* @param {string} authenticationFlowType New value.
|
|
123
|
+
* @returns {void}
|
|
124
|
+
*/;
|
|
125
|
+
_proto.setAuthenticationFlowType = function setAuthenticationFlowType(authenticationFlowType) {
|
|
126
|
+
this.authenticationFlowType = authenticationFlowType;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* This is used for authenticating the user through the custom authentication flow.
|
|
131
|
+
* @param {AuthenticationDetails} authDetails Contains the authentication data
|
|
132
|
+
* @param {object} callback Result callback map.
|
|
133
|
+
* @param {onFailure} callback.onFailure Called on any error.
|
|
134
|
+
* @param {customChallenge} callback.customChallenge Custom challenge
|
|
135
|
+
* response required to continue.
|
|
136
|
+
* @param {authSuccess} callback.onSuccess Called on success with the new session.
|
|
137
|
+
* @returns {void}
|
|
138
|
+
*/;
|
|
139
|
+
_proto.initiateAuth = function initiateAuth(authDetails, callback) {
|
|
140
|
+
var _this = this;
|
|
141
|
+
var authParameters = authDetails.getAuthParameters();
|
|
142
|
+
authParameters.USERNAME = this.username;
|
|
143
|
+
var clientMetaData = Object.keys(authDetails.getValidationData()).length !== 0 ? authDetails.getValidationData() : authDetails.getClientMetadata();
|
|
144
|
+
var jsonReq = {
|
|
145
|
+
AuthFlow: 'CUSTOM_AUTH',
|
|
146
|
+
ClientId: this.pool.getClientId(),
|
|
147
|
+
AuthParameters: authParameters,
|
|
148
|
+
ClientMetadata: clientMetaData
|
|
149
|
+
};
|
|
150
|
+
if (this.getUserContextData()) {
|
|
151
|
+
jsonReq.UserContextData = this.getUserContextData();
|
|
152
|
+
}
|
|
153
|
+
this.client.request('InitiateAuth', jsonReq, function (err, data) {
|
|
154
|
+
if (err) {
|
|
155
|
+
return callback.onFailure(err);
|
|
156
|
+
}
|
|
157
|
+
var challengeName = data.ChallengeName;
|
|
158
|
+
var challengeParameters = data.ChallengeParameters;
|
|
159
|
+
if (challengeName === 'CUSTOM_CHALLENGE') {
|
|
160
|
+
_this.Session = data.Session;
|
|
161
|
+
return callback.customChallenge(challengeParameters);
|
|
162
|
+
}
|
|
163
|
+
_this.signInUserSession = _this.getCognitoUserSession(data.AuthenticationResult);
|
|
164
|
+
_this.cacheTokens();
|
|
165
|
+
return callback.onSuccess(_this.signInUserSession);
|
|
166
|
+
});
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
/**
|
|
170
|
+
* This is used for authenticating the user.
|
|
171
|
+
* stuff
|
|
172
|
+
* @param {AuthenticationDetails} authDetails Contains the authentication data
|
|
173
|
+
* @param {object} callback Result callback map.
|
|
174
|
+
* @param {onFailure} callback.onFailure Called on any error.
|
|
175
|
+
* @param {newPasswordRequired} callback.newPasswordRequired new
|
|
176
|
+
* password and any required attributes are required to continue
|
|
177
|
+
* @param {mfaRequired} callback.mfaRequired MFA code
|
|
178
|
+
* required to continue.
|
|
179
|
+
* @param {customChallenge} callback.customChallenge Custom challenge
|
|
180
|
+
* response required to continue.
|
|
181
|
+
* @param {authSuccess} callback.onSuccess Called on success with the new session.
|
|
182
|
+
* @returns {void}
|
|
183
|
+
*/;
|
|
184
|
+
_proto.authenticateUser = function authenticateUser(authDetails, callback) {
|
|
185
|
+
if (this.authenticationFlowType === 'USER_PASSWORD_AUTH') {
|
|
186
|
+
return this.authenticateUserPlainUsernamePassword(authDetails, callback);
|
|
187
|
+
} else if (this.authenticationFlowType === 'USER_SRP_AUTH' || this.authenticationFlowType === 'CUSTOM_AUTH') {
|
|
188
|
+
return this.authenticateUserDefaultAuth(authDetails, callback);
|
|
189
|
+
}
|
|
190
|
+
return callback.onFailure(new Error('Authentication flow type is invalid.'));
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
/**
|
|
194
|
+
* PRIVATE ONLY: This is an internal only method and should not
|
|
195
|
+
* be directly called by the consumers.
|
|
196
|
+
* It calls the AuthenticationHelper for SRP related
|
|
197
|
+
* stuff
|
|
198
|
+
* @param {AuthenticationDetails} authDetails Contains the authentication data
|
|
199
|
+
* @param {object} callback Result callback map.
|
|
200
|
+
* @param {onFailure} callback.onFailure Called on any error.
|
|
201
|
+
* @param {newPasswordRequired} callback.newPasswordRequired new
|
|
202
|
+
* password and any required attributes are required to continue
|
|
203
|
+
* @param {mfaRequired} callback.mfaRequired MFA code
|
|
204
|
+
* required to continue.
|
|
205
|
+
* @param {customChallenge} callback.customChallenge Custom challenge
|
|
206
|
+
* response required to continue.
|
|
207
|
+
* @param {authSuccess} callback.onSuccess Called on success with the new session.
|
|
208
|
+
* @returns {void}
|
|
209
|
+
*/;
|
|
210
|
+
_proto.authenticateUserDefaultAuth = function authenticateUserDefaultAuth(authDetails, callback) {
|
|
211
|
+
var _this2 = this;
|
|
212
|
+
var authenticationHelper = new AuthenticationHelper(this.pool.getUserPoolName());
|
|
213
|
+
var dateHelper = new DateHelper();
|
|
214
|
+
var serverBValue;
|
|
215
|
+
var salt;
|
|
216
|
+
var authParameters = {};
|
|
217
|
+
if (this.deviceKey != null) {
|
|
218
|
+
authParameters.DEVICE_KEY = this.deviceKey;
|
|
219
|
+
}
|
|
220
|
+
authParameters.USERNAME = this.username;
|
|
221
|
+
authenticationHelper.getLargeAValue(function (errOnAValue, aValue) {
|
|
222
|
+
// getLargeAValue callback start
|
|
223
|
+
if (errOnAValue) {
|
|
224
|
+
callback.onFailure(errOnAValue);
|
|
225
|
+
}
|
|
226
|
+
authParameters.SRP_A = aValue.toString(16);
|
|
227
|
+
if (_this2.authenticationFlowType === 'CUSTOM_AUTH') {
|
|
228
|
+
authParameters.CHALLENGE_NAME = 'SRP_A';
|
|
229
|
+
}
|
|
230
|
+
var clientMetaData = Object.keys(authDetails.getValidationData()).length !== 0 ? authDetails.getValidationData() : authDetails.getClientMetadata();
|
|
231
|
+
var jsonReq = {
|
|
232
|
+
AuthFlow: _this2.authenticationFlowType,
|
|
233
|
+
ClientId: _this2.pool.getClientId(),
|
|
234
|
+
AuthParameters: authParameters,
|
|
235
|
+
ClientMetadata: clientMetaData
|
|
236
|
+
};
|
|
237
|
+
if (_this2.getUserContextData(_this2.username)) {
|
|
238
|
+
jsonReq.UserContextData = _this2.getUserContextData(_this2.username);
|
|
239
|
+
}
|
|
240
|
+
_this2.client.request('InitiateAuth', jsonReq, function (err, data) {
|
|
241
|
+
if (err) {
|
|
242
|
+
return callback.onFailure(err);
|
|
243
|
+
}
|
|
244
|
+
var challengeParameters = data.ChallengeParameters;
|
|
245
|
+
_this2.username = challengeParameters.USER_ID_FOR_SRP;
|
|
246
|
+
_this2.userDataKey = _this2.keyPrefix + "." + _this2.username + ".userData";
|
|
247
|
+
serverBValue = new BigInteger(challengeParameters.SRP_B, 16);
|
|
248
|
+
salt = new BigInteger(challengeParameters.SALT, 16);
|
|
249
|
+
_this2.getCachedDeviceKeyAndPassword();
|
|
250
|
+
authenticationHelper.getPasswordAuthenticationKey(_this2.username, authDetails.getPassword(), serverBValue, salt, function (errOnHkdf, hkdf) {
|
|
251
|
+
// getPasswordAuthenticationKey callback start
|
|
252
|
+
if (errOnHkdf) {
|
|
253
|
+
callback.onFailure(errOnHkdf);
|
|
254
|
+
}
|
|
255
|
+
var dateNow = dateHelper.getNowString();
|
|
256
|
+
var message = CryptoJS.lib.WordArray.create(Buffer.concat([Buffer.from(_this2.pool.getUserPoolName(), 'utf8'), Buffer.from(_this2.username, 'utf8'), Buffer.from(challengeParameters.SECRET_BLOCK, 'base64'), Buffer.from(dateNow, 'utf8')]));
|
|
257
|
+
var key = CryptoJS.lib.WordArray.create(hkdf);
|
|
258
|
+
var signatureString = Base64.stringify(HmacSHA256(message, key));
|
|
259
|
+
var challengeResponses = {};
|
|
260
|
+
challengeResponses.USERNAME = _this2.username;
|
|
261
|
+
challengeResponses.PASSWORD_CLAIM_SECRET_BLOCK = challengeParameters.SECRET_BLOCK;
|
|
262
|
+
challengeResponses.TIMESTAMP = dateNow;
|
|
263
|
+
challengeResponses.PASSWORD_CLAIM_SIGNATURE = signatureString;
|
|
264
|
+
if (_this2.deviceKey != null) {
|
|
265
|
+
challengeResponses.DEVICE_KEY = _this2.deviceKey;
|
|
266
|
+
}
|
|
267
|
+
var respondToAuthChallenge = function respondToAuthChallenge(challenge, challengeCallback) {
|
|
268
|
+
return _this2.client.request('RespondToAuthChallenge', challenge, function (errChallenge, dataChallenge) {
|
|
269
|
+
if (errChallenge && errChallenge.code === 'ResourceNotFoundException' && errChallenge.message.toLowerCase().indexOf('device') !== -1) {
|
|
270
|
+
challengeResponses.DEVICE_KEY = null;
|
|
271
|
+
_this2.deviceKey = null;
|
|
272
|
+
_this2.randomPassword = null;
|
|
273
|
+
_this2.deviceGroupKey = null;
|
|
274
|
+
_this2.clearCachedDeviceKeyAndPassword();
|
|
275
|
+
return respondToAuthChallenge(challenge, challengeCallback);
|
|
276
|
+
}
|
|
277
|
+
return challengeCallback(errChallenge, dataChallenge);
|
|
278
|
+
});
|
|
279
|
+
};
|
|
280
|
+
var jsonReqResp = {
|
|
281
|
+
ChallengeName: 'PASSWORD_VERIFIER',
|
|
282
|
+
ClientId: _this2.pool.getClientId(),
|
|
283
|
+
ChallengeResponses: challengeResponses,
|
|
284
|
+
Session: data.Session,
|
|
285
|
+
ClientMetadata: clientMetaData
|
|
286
|
+
};
|
|
287
|
+
if (_this2.getUserContextData()) {
|
|
288
|
+
jsonReqResp.UserContextData = _this2.getUserContextData();
|
|
289
|
+
}
|
|
290
|
+
respondToAuthChallenge(jsonReqResp, function (errAuthenticate, dataAuthenticate) {
|
|
291
|
+
if (errAuthenticate) {
|
|
292
|
+
return callback.onFailure(errAuthenticate);
|
|
293
|
+
}
|
|
294
|
+
return _this2.authenticateUserInternal(dataAuthenticate, authenticationHelper, callback);
|
|
295
|
+
});
|
|
296
|
+
return undefined;
|
|
297
|
+
// getPasswordAuthenticationKey callback end
|
|
298
|
+
});
|
|
299
|
+
|
|
300
|
+
return undefined;
|
|
301
|
+
});
|
|
302
|
+
// getLargeAValue callback end
|
|
303
|
+
});
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
/**
|
|
307
|
+
* PRIVATE ONLY: This is an internal only method and should not
|
|
308
|
+
* be directly called by the consumers.
|
|
309
|
+
* @param {AuthenticationDetails} authDetails Contains the authentication data.
|
|
310
|
+
* @param {object} callback Result callback map.
|
|
311
|
+
* @param {onFailure} callback.onFailure Called on any error.
|
|
312
|
+
* @param {mfaRequired} callback.mfaRequired MFA code
|
|
313
|
+
* required to continue.
|
|
314
|
+
* @param {authSuccess} callback.onSuccess Called on success with the new session.
|
|
315
|
+
* @returns {void}
|
|
316
|
+
*/;
|
|
317
|
+
_proto.authenticateUserPlainUsernamePassword = function authenticateUserPlainUsernamePassword(authDetails, callback) {
|
|
318
|
+
var _this3 = this;
|
|
319
|
+
var authParameters = {};
|
|
320
|
+
authParameters.USERNAME = this.username;
|
|
321
|
+
authParameters.PASSWORD = authDetails.getPassword();
|
|
322
|
+
if (!authParameters.PASSWORD) {
|
|
323
|
+
callback.onFailure(new Error('PASSWORD parameter is required'));
|
|
324
|
+
return;
|
|
325
|
+
}
|
|
326
|
+
var authenticationHelper = new AuthenticationHelper(this.pool.getUserPoolName());
|
|
327
|
+
this.getCachedDeviceKeyAndPassword();
|
|
328
|
+
if (this.deviceKey != null) {
|
|
329
|
+
authParameters.DEVICE_KEY = this.deviceKey;
|
|
330
|
+
}
|
|
331
|
+
var clientMetaData = Object.keys(authDetails.getValidationData()).length !== 0 ? authDetails.getValidationData() : authDetails.getClientMetadata();
|
|
332
|
+
var jsonReq = {
|
|
333
|
+
AuthFlow: 'USER_PASSWORD_AUTH',
|
|
334
|
+
ClientId: this.pool.getClientId(),
|
|
335
|
+
AuthParameters: authParameters,
|
|
336
|
+
ClientMetadata: clientMetaData
|
|
337
|
+
};
|
|
338
|
+
if (this.getUserContextData(this.username)) {
|
|
339
|
+
jsonReq.UserContextData = this.getUserContextData(this.username);
|
|
340
|
+
}
|
|
341
|
+
// USER_PASSWORD_AUTH happens in a single round-trip: client sends userName and password,
|
|
342
|
+
// Cognito UserPools verifies password and returns tokens.
|
|
343
|
+
this.client.request('InitiateAuth', jsonReq, function (err, authResult) {
|
|
344
|
+
if (err) {
|
|
345
|
+
return callback.onFailure(err);
|
|
346
|
+
}
|
|
347
|
+
return _this3.authenticateUserInternal(authResult, authenticationHelper, callback);
|
|
348
|
+
});
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
/**
|
|
352
|
+
* PRIVATE ONLY: This is an internal only method and should not
|
|
353
|
+
* be directly called by the consumers.
|
|
354
|
+
* @param {object} dataAuthenticate authentication data
|
|
355
|
+
* @param {object} authenticationHelper helper created
|
|
356
|
+
* @param {callback} callback passed on from caller
|
|
357
|
+
* @returns {void}
|
|
358
|
+
*/;
|
|
359
|
+
_proto.authenticateUserInternal = function authenticateUserInternal(dataAuthenticate, authenticationHelper, callback) {
|
|
360
|
+
var _this4 = this;
|
|
361
|
+
var challengeName = dataAuthenticate.ChallengeName;
|
|
362
|
+
var challengeParameters = dataAuthenticate.ChallengeParameters;
|
|
363
|
+
if (challengeName === 'SMS_MFA') {
|
|
364
|
+
this.Session = dataAuthenticate.Session;
|
|
365
|
+
return callback.mfaRequired(challengeName, challengeParameters);
|
|
366
|
+
}
|
|
367
|
+
if (challengeName === 'SELECT_MFA_TYPE') {
|
|
368
|
+
this.Session = dataAuthenticate.Session;
|
|
369
|
+
return callback.selectMFAType(challengeName, challengeParameters);
|
|
370
|
+
}
|
|
371
|
+
if (challengeName === 'MFA_SETUP') {
|
|
372
|
+
this.Session = dataAuthenticate.Session;
|
|
373
|
+
return callback.mfaSetup(challengeName, challengeParameters);
|
|
374
|
+
}
|
|
375
|
+
if (challengeName === 'SOFTWARE_TOKEN_MFA') {
|
|
376
|
+
this.Session = dataAuthenticate.Session;
|
|
377
|
+
return callback.totpRequired(challengeName, challengeParameters);
|
|
378
|
+
}
|
|
379
|
+
if (challengeName === 'CUSTOM_CHALLENGE') {
|
|
380
|
+
this.Session = dataAuthenticate.Session;
|
|
381
|
+
return callback.customChallenge(challengeParameters);
|
|
382
|
+
}
|
|
383
|
+
if (challengeName === 'NEW_PASSWORD_REQUIRED') {
|
|
384
|
+
this.Session = dataAuthenticate.Session;
|
|
385
|
+
var userAttributes = null;
|
|
386
|
+
var rawRequiredAttributes = null;
|
|
387
|
+
var requiredAttributes = [];
|
|
388
|
+
var userAttributesPrefix = authenticationHelper.getNewPasswordRequiredChallengeUserAttributePrefix();
|
|
389
|
+
if (challengeParameters) {
|
|
390
|
+
userAttributes = JSON.parse(dataAuthenticate.ChallengeParameters.userAttributes);
|
|
391
|
+
rawRequiredAttributes = JSON.parse(dataAuthenticate.ChallengeParameters.requiredAttributes);
|
|
392
|
+
}
|
|
393
|
+
if (rawRequiredAttributes) {
|
|
394
|
+
for (var i = 0; i < rawRequiredAttributes.length; i++) {
|
|
395
|
+
requiredAttributes[i] = rawRequiredAttributes[i].substr(userAttributesPrefix.length);
|
|
396
|
+
}
|
|
397
|
+
}
|
|
398
|
+
return callback.newPasswordRequired(userAttributes, requiredAttributes);
|
|
399
|
+
}
|
|
400
|
+
if (challengeName === 'DEVICE_SRP_AUTH') {
|
|
401
|
+
this.Session = dataAuthenticate.Session;
|
|
402
|
+
this.getDeviceResponse(callback);
|
|
403
|
+
return undefined;
|
|
404
|
+
}
|
|
405
|
+
this.signInUserSession = this.getCognitoUserSession(dataAuthenticate.AuthenticationResult);
|
|
406
|
+
this.challengeName = challengeName;
|
|
407
|
+
this.cacheTokens();
|
|
408
|
+
var newDeviceMetadata = dataAuthenticate.AuthenticationResult.NewDeviceMetadata;
|
|
409
|
+
if (newDeviceMetadata == null) {
|
|
410
|
+
return callback.onSuccess(this.signInUserSession);
|
|
411
|
+
}
|
|
412
|
+
authenticationHelper.generateHashDevice(dataAuthenticate.AuthenticationResult.NewDeviceMetadata.DeviceGroupKey, dataAuthenticate.AuthenticationResult.NewDeviceMetadata.DeviceKey, function (errGenHash) {
|
|
413
|
+
if (errGenHash) {
|
|
414
|
+
return callback.onFailure(errGenHash);
|
|
415
|
+
}
|
|
416
|
+
var deviceSecretVerifierConfig = {
|
|
417
|
+
Salt: Buffer.from(authenticationHelper.getSaltDevices(), 'hex').toString('base64'),
|
|
418
|
+
PasswordVerifier: Buffer.from(authenticationHelper.getVerifierDevices(), 'hex').toString('base64')
|
|
419
|
+
};
|
|
420
|
+
_this4.verifierDevices = deviceSecretVerifierConfig.PasswordVerifier;
|
|
421
|
+
_this4.deviceGroupKey = newDeviceMetadata.DeviceGroupKey;
|
|
422
|
+
_this4.randomPassword = authenticationHelper.getRandomPassword();
|
|
423
|
+
_this4.client.request('ConfirmDevice', {
|
|
424
|
+
DeviceKey: newDeviceMetadata.DeviceKey,
|
|
425
|
+
AccessToken: _this4.signInUserSession.getAccessToken().getJwtToken(),
|
|
426
|
+
DeviceSecretVerifierConfig: deviceSecretVerifierConfig,
|
|
427
|
+
DeviceName: userAgent
|
|
428
|
+
}, function (errConfirm, dataConfirm) {
|
|
429
|
+
if (errConfirm) {
|
|
430
|
+
return callback.onFailure(errConfirm);
|
|
431
|
+
}
|
|
432
|
+
_this4.deviceKey = dataAuthenticate.AuthenticationResult.NewDeviceMetadata.DeviceKey;
|
|
433
|
+
_this4.cacheDeviceKeyAndPassword();
|
|
434
|
+
if (dataConfirm.UserConfirmationNecessary === true) {
|
|
435
|
+
return callback.onSuccess(_this4.signInUserSession, dataConfirm.UserConfirmationNecessary);
|
|
436
|
+
}
|
|
437
|
+
return callback.onSuccess(_this4.signInUserSession);
|
|
438
|
+
});
|
|
439
|
+
return undefined;
|
|
440
|
+
});
|
|
441
|
+
return undefined;
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
/**
|
|
445
|
+
* This method is user to complete the NEW_PASSWORD_REQUIRED challenge.
|
|
446
|
+
* Pass the new password with any new user attributes to be updated.
|
|
447
|
+
* User attribute keys must be of format userAttributes.<attribute_name>.
|
|
448
|
+
* @param {string} newPassword new password for this user
|
|
449
|
+
* @param {object} requiredAttributeData map with values for all required attributes
|
|
450
|
+
* @param {object} callback Result callback map.
|
|
451
|
+
* @param {onFailure} callback.onFailure Called on any error.
|
|
452
|
+
* @param {mfaRequired} callback.mfaRequired MFA code required to continue.
|
|
453
|
+
* @param {customChallenge} callback.customChallenge Custom challenge
|
|
454
|
+
* response required to continue.
|
|
455
|
+
* @param {authSuccess} callback.onSuccess Called on success with the new session.
|
|
456
|
+
* @param {ClientMetadata} clientMetadata object which is passed from client to Cognito Lambda trigger
|
|
457
|
+
* @returns {void}
|
|
458
|
+
*/;
|
|
459
|
+
_proto.completeNewPasswordChallenge = function completeNewPasswordChallenge(newPassword, requiredAttributeData, callback, clientMetadata) {
|
|
460
|
+
var _this5 = this;
|
|
461
|
+
if (!newPassword) {
|
|
462
|
+
return callback.onFailure(new Error('New password is required.'));
|
|
463
|
+
}
|
|
464
|
+
var authenticationHelper = new AuthenticationHelper(this.pool.getUserPoolName());
|
|
465
|
+
var userAttributesPrefix = authenticationHelper.getNewPasswordRequiredChallengeUserAttributePrefix();
|
|
466
|
+
var finalUserAttributes = {};
|
|
467
|
+
if (requiredAttributeData) {
|
|
468
|
+
Object.keys(requiredAttributeData).forEach(function (key) {
|
|
469
|
+
finalUserAttributes[userAttributesPrefix + key] = requiredAttributeData[key];
|
|
470
|
+
});
|
|
471
|
+
}
|
|
472
|
+
finalUserAttributes.NEW_PASSWORD = newPassword;
|
|
473
|
+
finalUserAttributes.USERNAME = this.username;
|
|
474
|
+
var jsonReq = {
|
|
475
|
+
ChallengeName: 'NEW_PASSWORD_REQUIRED',
|
|
476
|
+
ClientId: this.pool.getClientId(),
|
|
477
|
+
ChallengeResponses: finalUserAttributes,
|
|
478
|
+
Session: this.Session,
|
|
479
|
+
ClientMetadata: clientMetadata
|
|
480
|
+
};
|
|
481
|
+
if (this.getUserContextData()) {
|
|
482
|
+
jsonReq.UserContextData = this.getUserContextData();
|
|
483
|
+
}
|
|
484
|
+
this.client.request('RespondToAuthChallenge', jsonReq, function (errAuthenticate, dataAuthenticate) {
|
|
485
|
+
if (errAuthenticate) {
|
|
486
|
+
return callback.onFailure(errAuthenticate);
|
|
487
|
+
}
|
|
488
|
+
return _this5.authenticateUserInternal(dataAuthenticate, authenticationHelper, callback);
|
|
489
|
+
});
|
|
490
|
+
return undefined;
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
/**
|
|
494
|
+
* This is used to get a session using device authentication. It is called at the end of user
|
|
495
|
+
* authentication
|
|
496
|
+
*
|
|
497
|
+
* @param {object} callback Result callback map.
|
|
498
|
+
* @param {onFailure} callback.onFailure Called on any error.
|
|
499
|
+
* @param {authSuccess} callback.onSuccess Called on success with the new session.
|
|
500
|
+
* @param {ClientMetadata} clientMetadata object which is passed from client to Cognito Lambda trigger
|
|
501
|
+
* @returns {void}
|
|
502
|
+
* @private
|
|
503
|
+
*/;
|
|
504
|
+
_proto.getDeviceResponse = function getDeviceResponse(callback, clientMetadata) {
|
|
505
|
+
var _this6 = this;
|
|
506
|
+
var authenticationHelper = new AuthenticationHelper(this.deviceGroupKey);
|
|
507
|
+
var dateHelper = new DateHelper();
|
|
508
|
+
var authParameters = {};
|
|
509
|
+
authParameters.USERNAME = this.username;
|
|
510
|
+
authParameters.DEVICE_KEY = this.deviceKey;
|
|
511
|
+
authenticationHelper.getLargeAValue(function (errAValue, aValue) {
|
|
512
|
+
// getLargeAValue callback start
|
|
513
|
+
if (errAValue) {
|
|
514
|
+
callback.onFailure(errAValue);
|
|
515
|
+
}
|
|
516
|
+
authParameters.SRP_A = aValue.toString(16);
|
|
517
|
+
var jsonReq = {
|
|
518
|
+
ChallengeName: 'DEVICE_SRP_AUTH',
|
|
519
|
+
ClientId: _this6.pool.getClientId(),
|
|
520
|
+
ChallengeResponses: authParameters,
|
|
521
|
+
ClientMetadata: clientMetadata,
|
|
522
|
+
Session: _this6.Session
|
|
523
|
+
};
|
|
524
|
+
if (_this6.getUserContextData()) {
|
|
525
|
+
jsonReq.UserContextData = _this6.getUserContextData();
|
|
526
|
+
}
|
|
527
|
+
_this6.client.request('RespondToAuthChallenge', jsonReq, function (err, data) {
|
|
528
|
+
if (err) {
|
|
529
|
+
return callback.onFailure(err);
|
|
530
|
+
}
|
|
531
|
+
var challengeParameters = data.ChallengeParameters;
|
|
532
|
+
var serverBValue = new BigInteger(challengeParameters.SRP_B, 16);
|
|
533
|
+
var salt = new BigInteger(challengeParameters.SALT, 16);
|
|
534
|
+
authenticationHelper.getPasswordAuthenticationKey(_this6.deviceKey, _this6.randomPassword, serverBValue, salt, function (errHkdf, hkdf) {
|
|
535
|
+
// getPasswordAuthenticationKey callback start
|
|
536
|
+
if (errHkdf) {
|
|
537
|
+
return callback.onFailure(errHkdf);
|
|
538
|
+
}
|
|
539
|
+
var dateNow = dateHelper.getNowString();
|
|
540
|
+
var message = CryptoJS.lib.WordArray.create(Buffer.concat([Buffer.from(_this6.deviceGroupKey, 'utf8'), Buffer.from(_this6.deviceKey, 'utf8'), Buffer.from(challengeParameters.SECRET_BLOCK, 'base64'), Buffer.from(dateNow, 'utf8')]));
|
|
541
|
+
var key = CryptoJS.lib.WordArray.create(hkdf);
|
|
542
|
+
var signatureString = Base64.stringify(HmacSHA256(message, key));
|
|
543
|
+
var challengeResponses = {};
|
|
544
|
+
challengeResponses.USERNAME = _this6.username;
|
|
545
|
+
challengeResponses.PASSWORD_CLAIM_SECRET_BLOCK = challengeParameters.SECRET_BLOCK;
|
|
546
|
+
challengeResponses.TIMESTAMP = dateNow;
|
|
547
|
+
challengeResponses.PASSWORD_CLAIM_SIGNATURE = signatureString;
|
|
548
|
+
challengeResponses.DEVICE_KEY = _this6.deviceKey;
|
|
549
|
+
var jsonReqResp = {
|
|
550
|
+
ChallengeName: 'DEVICE_PASSWORD_VERIFIER',
|
|
551
|
+
ClientId: _this6.pool.getClientId(),
|
|
552
|
+
ChallengeResponses: challengeResponses,
|
|
553
|
+
Session: data.Session
|
|
554
|
+
};
|
|
555
|
+
if (_this6.getUserContextData()) {
|
|
556
|
+
jsonReqResp.UserContextData = _this6.getUserContextData();
|
|
557
|
+
}
|
|
558
|
+
_this6.client.request('RespondToAuthChallenge', jsonReqResp, function (errAuthenticate, dataAuthenticate) {
|
|
559
|
+
if (errAuthenticate) {
|
|
560
|
+
return callback.onFailure(errAuthenticate);
|
|
561
|
+
}
|
|
562
|
+
_this6.signInUserSession = _this6.getCognitoUserSession(dataAuthenticate.AuthenticationResult);
|
|
563
|
+
_this6.cacheTokens();
|
|
564
|
+
return callback.onSuccess(_this6.signInUserSession);
|
|
565
|
+
});
|
|
566
|
+
return undefined;
|
|
567
|
+
// getPasswordAuthenticationKey callback end
|
|
568
|
+
});
|
|
569
|
+
|
|
570
|
+
return undefined;
|
|
571
|
+
});
|
|
572
|
+
// getLargeAValue callback end
|
|
573
|
+
});
|
|
574
|
+
}
|
|
575
|
+
|
|
576
|
+
/**
|
|
577
|
+
* This is used for a certain user to confirm the registration by using a confirmation code
|
|
578
|
+
* @param {string} confirmationCode Code entered by user.
|
|
579
|
+
* @param {bool} forceAliasCreation Allow migrating from an existing email / phone number.
|
|
580
|
+
* @param {nodeCallback<string>} callback Called on success or error.
|
|
581
|
+
* @param {ClientMetadata} clientMetadata object which is passed from client to Cognito Lambda trigger
|
|
582
|
+
* @returns {void}
|
|
583
|
+
*/;
|
|
584
|
+
_proto.confirmRegistration = function confirmRegistration(confirmationCode, forceAliasCreation, callback, clientMetadata) {
|
|
585
|
+
var jsonReq = {
|
|
586
|
+
ClientId: this.pool.getClientId(),
|
|
587
|
+
ConfirmationCode: confirmationCode,
|
|
588
|
+
Username: this.username,
|
|
589
|
+
ForceAliasCreation: forceAliasCreation,
|
|
590
|
+
ClientMetadata: clientMetadata
|
|
591
|
+
};
|
|
592
|
+
if (this.getUserContextData()) {
|
|
593
|
+
jsonReq.UserContextData = this.getUserContextData();
|
|
594
|
+
}
|
|
595
|
+
this.client.request('ConfirmSignUp', jsonReq, function (err) {
|
|
596
|
+
if (err) {
|
|
597
|
+
return callback(err, null);
|
|
598
|
+
}
|
|
599
|
+
return callback(null, 'SUCCESS');
|
|
600
|
+
});
|
|
601
|
+
}
|
|
602
|
+
|
|
603
|
+
/**
|
|
604
|
+
* This is used by the user once he has the responses to a custom challenge
|
|
605
|
+
* @param {string} answerChallenge The custom challenge answer.
|
|
606
|
+
* @param {object} callback Result callback map.
|
|
607
|
+
* @param {onFailure} callback.onFailure Called on any error.
|
|
608
|
+
* @param {customChallenge} callback.customChallenge
|
|
609
|
+
* Custom challenge response required to continue.
|
|
610
|
+
* @param {authSuccess} callback.onSuccess Called on success with the new session.
|
|
611
|
+
* @param {ClientMetadata} clientMetadata object which is passed from client to Cognito Lambda trigger
|
|
612
|
+
* @returns {void}
|
|
613
|
+
*/;
|
|
614
|
+
_proto.sendCustomChallengeAnswer = function sendCustomChallengeAnswer(answerChallenge, callback, clientMetadata) {
|
|
615
|
+
var _this7 = this;
|
|
616
|
+
var challengeResponses = {};
|
|
617
|
+
challengeResponses.USERNAME = this.username;
|
|
618
|
+
challengeResponses.ANSWER = answerChallenge;
|
|
619
|
+
var authenticationHelper = new AuthenticationHelper(this.pool.getUserPoolName());
|
|
620
|
+
this.getCachedDeviceKeyAndPassword();
|
|
621
|
+
if (this.deviceKey != null) {
|
|
622
|
+
challengeResponses.DEVICE_KEY = this.deviceKey;
|
|
623
|
+
}
|
|
624
|
+
var jsonReq = {
|
|
625
|
+
ChallengeName: 'CUSTOM_CHALLENGE',
|
|
626
|
+
ChallengeResponses: challengeResponses,
|
|
627
|
+
ClientId: this.pool.getClientId(),
|
|
628
|
+
Session: this.Session,
|
|
629
|
+
ClientMetadata: clientMetadata
|
|
630
|
+
};
|
|
631
|
+
if (this.getUserContextData()) {
|
|
632
|
+
jsonReq.UserContextData = this.getUserContextData();
|
|
633
|
+
}
|
|
634
|
+
this.client.request('RespondToAuthChallenge', jsonReq, function (err, data) {
|
|
635
|
+
if (err) {
|
|
636
|
+
return callback.onFailure(err);
|
|
637
|
+
}
|
|
638
|
+
return _this7.authenticateUserInternal(data, authenticationHelper, callback);
|
|
639
|
+
});
|
|
640
|
+
}
|
|
641
|
+
|
|
642
|
+
/**
|
|
643
|
+
* This is used by the user once he has an MFA code
|
|
644
|
+
* @param {string} confirmationCode The MFA code entered by the user.
|
|
645
|
+
* @param {object} callback Result callback map.
|
|
646
|
+
* @param {string} mfaType The mfa we are replying to.
|
|
647
|
+
* @param {onFailure} callback.onFailure Called on any error.
|
|
648
|
+
* @param {authSuccess} callback.onSuccess Called on success with the new session.
|
|
649
|
+
* @param {ClientMetadata} clientMetadata object which is passed from client to Cognito Lambda trigger
|
|
650
|
+
* @returns {void}
|
|
651
|
+
*/;
|
|
652
|
+
_proto.sendMFACode = function sendMFACode(confirmationCode, callback, mfaType, clientMetadata) {
|
|
653
|
+
var _this8 = this;
|
|
654
|
+
var challengeResponses = {};
|
|
655
|
+
challengeResponses.USERNAME = this.username;
|
|
656
|
+
challengeResponses.SMS_MFA_CODE = confirmationCode;
|
|
657
|
+
var mfaTypeSelection = mfaType || 'SMS_MFA';
|
|
658
|
+
if (mfaTypeSelection === 'SOFTWARE_TOKEN_MFA') {
|
|
659
|
+
challengeResponses.SOFTWARE_TOKEN_MFA_CODE = confirmationCode;
|
|
660
|
+
}
|
|
661
|
+
if (this.deviceKey != null) {
|
|
662
|
+
challengeResponses.DEVICE_KEY = this.deviceKey;
|
|
663
|
+
}
|
|
664
|
+
var jsonReq = {
|
|
665
|
+
ChallengeName: mfaTypeSelection,
|
|
666
|
+
ChallengeResponses: challengeResponses,
|
|
667
|
+
ClientId: this.pool.getClientId(),
|
|
668
|
+
Session: this.Session,
|
|
669
|
+
ClientMetadata: clientMetadata
|
|
670
|
+
};
|
|
671
|
+
if (this.getUserContextData()) {
|
|
672
|
+
jsonReq.UserContextData = this.getUserContextData();
|
|
673
|
+
}
|
|
674
|
+
this.client.request('RespondToAuthChallenge', jsonReq, function (err, dataAuthenticate) {
|
|
675
|
+
if (err) {
|
|
676
|
+
return callback.onFailure(err);
|
|
677
|
+
}
|
|
678
|
+
var challengeName = dataAuthenticate.ChallengeName;
|
|
679
|
+
if (challengeName === 'DEVICE_SRP_AUTH') {
|
|
680
|
+
_this8.getDeviceResponse(callback);
|
|
681
|
+
return undefined;
|
|
682
|
+
}
|
|
683
|
+
_this8.signInUserSession = _this8.getCognitoUserSession(dataAuthenticate.AuthenticationResult);
|
|
684
|
+
_this8.cacheTokens();
|
|
685
|
+
if (dataAuthenticate.AuthenticationResult.NewDeviceMetadata == null) {
|
|
686
|
+
return callback.onSuccess(_this8.signInUserSession);
|
|
687
|
+
}
|
|
688
|
+
var authenticationHelper = new AuthenticationHelper(_this8.pool.getUserPoolName());
|
|
689
|
+
authenticationHelper.generateHashDevice(dataAuthenticate.AuthenticationResult.NewDeviceMetadata.DeviceGroupKey, dataAuthenticate.AuthenticationResult.NewDeviceMetadata.DeviceKey, function (errGenHash) {
|
|
690
|
+
if (errGenHash) {
|
|
691
|
+
return callback.onFailure(errGenHash);
|
|
692
|
+
}
|
|
693
|
+
var deviceSecretVerifierConfig = {
|
|
694
|
+
Salt: Buffer.from(authenticationHelper.getSaltDevices(), 'hex').toString('base64'),
|
|
695
|
+
PasswordVerifier: Buffer.from(authenticationHelper.getVerifierDevices(), 'hex').toString('base64')
|
|
696
|
+
};
|
|
697
|
+
_this8.verifierDevices = deviceSecretVerifierConfig.PasswordVerifier;
|
|
698
|
+
_this8.deviceGroupKey = dataAuthenticate.AuthenticationResult.NewDeviceMetadata.DeviceGroupKey;
|
|
699
|
+
_this8.randomPassword = authenticationHelper.getRandomPassword();
|
|
700
|
+
_this8.client.request('ConfirmDevice', {
|
|
701
|
+
DeviceKey: dataAuthenticate.AuthenticationResult.NewDeviceMetadata.DeviceKey,
|
|
702
|
+
AccessToken: _this8.signInUserSession.getAccessToken().getJwtToken(),
|
|
703
|
+
DeviceSecretVerifierConfig: deviceSecretVerifierConfig,
|
|
704
|
+
DeviceName: userAgent
|
|
705
|
+
}, function (errConfirm, dataConfirm) {
|
|
706
|
+
if (errConfirm) {
|
|
707
|
+
return callback.onFailure(errConfirm);
|
|
708
|
+
}
|
|
709
|
+
_this8.deviceKey = dataAuthenticate.AuthenticationResult.NewDeviceMetadata.DeviceKey;
|
|
710
|
+
_this8.cacheDeviceKeyAndPassword();
|
|
711
|
+
if (dataConfirm.UserConfirmationNecessary === true) {
|
|
712
|
+
return callback.onSuccess(_this8.signInUserSession, dataConfirm.UserConfirmationNecessary);
|
|
713
|
+
}
|
|
714
|
+
return callback.onSuccess(_this8.signInUserSession);
|
|
715
|
+
});
|
|
716
|
+
return undefined;
|
|
717
|
+
});
|
|
718
|
+
return undefined;
|
|
719
|
+
});
|
|
720
|
+
}
|
|
721
|
+
|
|
722
|
+
/**
|
|
723
|
+
* This is used by an authenticated user to change the current password
|
|
724
|
+
* @param {string} oldUserPassword The current password.
|
|
725
|
+
* @param {string} newUserPassword The requested new password.
|
|
726
|
+
* @param {nodeCallback<string>} callback Called on success or error.
|
|
727
|
+
* @param {ClientMetadata} clientMetadata object which is passed from client to Cognito Lambda trigger
|
|
728
|
+
* @returns {void}
|
|
729
|
+
*/;
|
|
730
|
+
_proto.changePassword = function changePassword(oldUserPassword, newUserPassword, callback, clientMetadata) {
|
|
731
|
+
if (!(this.signInUserSession != null && this.signInUserSession.isValid())) {
|
|
732
|
+
return callback(new Error('User is not authenticated'), null);
|
|
733
|
+
}
|
|
734
|
+
this.client.request('ChangePassword', {
|
|
735
|
+
PreviousPassword: oldUserPassword,
|
|
736
|
+
ProposedPassword: newUserPassword,
|
|
737
|
+
AccessToken: this.signInUserSession.getAccessToken().getJwtToken(),
|
|
738
|
+
ClientMetadata: clientMetadata
|
|
739
|
+
}, function (err) {
|
|
740
|
+
if (err) {
|
|
741
|
+
return callback(err, null);
|
|
742
|
+
}
|
|
743
|
+
return callback(null, 'SUCCESS');
|
|
744
|
+
});
|
|
745
|
+
return undefined;
|
|
746
|
+
}
|
|
747
|
+
|
|
748
|
+
/**
|
|
749
|
+
* This is used by an authenticated user to enable MFA for itself
|
|
750
|
+
* @deprecated
|
|
751
|
+
* @param {nodeCallback<string>} callback Called on success or error.
|
|
752
|
+
* @returns {void}
|
|
753
|
+
*/;
|
|
754
|
+
_proto.enableMFA = function enableMFA(callback) {
|
|
755
|
+
if (this.signInUserSession == null || !this.signInUserSession.isValid()) {
|
|
756
|
+
return callback(new Error('User is not authenticated'), null);
|
|
757
|
+
}
|
|
758
|
+
var mfaOptions = [];
|
|
759
|
+
var mfaEnabled = {
|
|
760
|
+
DeliveryMedium: 'SMS',
|
|
761
|
+
AttributeName: 'phone_number'
|
|
762
|
+
};
|
|
763
|
+
mfaOptions.push(mfaEnabled);
|
|
764
|
+
this.client.request('SetUserSettings', {
|
|
765
|
+
MFAOptions: mfaOptions,
|
|
766
|
+
AccessToken: this.signInUserSession.getAccessToken().getJwtToken()
|
|
767
|
+
}, function (err) {
|
|
768
|
+
if (err) {
|
|
769
|
+
return callback(err, null);
|
|
770
|
+
}
|
|
771
|
+
return callback(null, 'SUCCESS');
|
|
772
|
+
});
|
|
773
|
+
return undefined;
|
|
774
|
+
}
|
|
775
|
+
|
|
776
|
+
/**
|
|
777
|
+
* This is used by an authenticated user to enable MFA for itself
|
|
778
|
+
* @param {IMfaSettings} smsMfaSettings the sms mfa settings
|
|
779
|
+
* @param {IMFASettings} softwareTokenMfaSettings the software token mfa settings
|
|
780
|
+
* @param {nodeCallback<string>} callback Called on success or error.
|
|
781
|
+
* @returns {void}
|
|
782
|
+
*/;
|
|
783
|
+
_proto.setUserMfaPreference = function setUserMfaPreference(smsMfaSettings, softwareTokenMfaSettings, callback) {
|
|
784
|
+
if (this.signInUserSession == null || !this.signInUserSession.isValid()) {
|
|
785
|
+
return callback(new Error('User is not authenticated'), null);
|
|
786
|
+
}
|
|
787
|
+
this.client.request('SetUserMFAPreference', {
|
|
788
|
+
SMSMfaSettings: smsMfaSettings,
|
|
789
|
+
SoftwareTokenMfaSettings: softwareTokenMfaSettings,
|
|
790
|
+
AccessToken: this.signInUserSession.getAccessToken().getJwtToken()
|
|
791
|
+
}, function (err) {
|
|
792
|
+
if (err) {
|
|
793
|
+
return callback(err, null);
|
|
794
|
+
}
|
|
795
|
+
return callback(null, 'SUCCESS');
|
|
796
|
+
});
|
|
797
|
+
return undefined;
|
|
798
|
+
}
|
|
799
|
+
|
|
800
|
+
/**
|
|
801
|
+
* This is used by an authenticated user to disable MFA for itself
|
|
802
|
+
* @deprecated
|
|
803
|
+
* @param {nodeCallback<string>} callback Called on success or error.
|
|
804
|
+
* @returns {void}
|
|
805
|
+
*/;
|
|
806
|
+
_proto.disableMFA = function disableMFA(callback) {
|
|
807
|
+
if (this.signInUserSession == null || !this.signInUserSession.isValid()) {
|
|
808
|
+
return callback(new Error('User is not authenticated'), null);
|
|
809
|
+
}
|
|
810
|
+
var mfaOptions = [];
|
|
811
|
+
this.client.request('SetUserSettings', {
|
|
812
|
+
MFAOptions: mfaOptions,
|
|
813
|
+
AccessToken: this.signInUserSession.getAccessToken().getJwtToken()
|
|
814
|
+
}, function (err) {
|
|
815
|
+
if (err) {
|
|
816
|
+
return callback(err, null);
|
|
817
|
+
}
|
|
818
|
+
return callback(null, 'SUCCESS');
|
|
819
|
+
});
|
|
820
|
+
return undefined;
|
|
821
|
+
}
|
|
822
|
+
|
|
823
|
+
/**
|
|
824
|
+
* This is used by an authenticated user to delete itself
|
|
825
|
+
* @param {nodeCallback<string>} callback Called on success or error.
|
|
826
|
+
* @param {ClientMetadata} clientMetadata object which is passed from client to Cognito Lambda trigger
|
|
827
|
+
* @returns {void}
|
|
828
|
+
*/;
|
|
829
|
+
_proto.deleteUser = function deleteUser(callback, clientMetadata) {
|
|
830
|
+
var _this9 = this;
|
|
831
|
+
if (this.signInUserSession == null || !this.signInUserSession.isValid()) {
|
|
832
|
+
return callback(new Error('User is not authenticated'), null);
|
|
833
|
+
}
|
|
834
|
+
this.client.request('DeleteUser', {
|
|
835
|
+
AccessToken: this.signInUserSession.getAccessToken().getJwtToken(),
|
|
836
|
+
ClientMetadata: clientMetadata
|
|
837
|
+
}, function (err) {
|
|
838
|
+
if (err) {
|
|
839
|
+
return callback(err, null);
|
|
840
|
+
}
|
|
841
|
+
_this9.clearCachedUser();
|
|
842
|
+
return callback(null, 'SUCCESS');
|
|
843
|
+
});
|
|
844
|
+
return undefined;
|
|
845
|
+
}
|
|
846
|
+
|
|
847
|
+
/**
|
|
848
|
+
* @typedef {CognitoUserAttribute | { Name:string, Value:string }} AttributeArg
|
|
849
|
+
*/
|
|
850
|
+
/**
|
|
851
|
+
* This is used by an authenticated user to change a list of attributes
|
|
852
|
+
* @param {AttributeArg[]} attributes A list of the new user attributes.
|
|
853
|
+
* @param {nodeCallback<string>} callback Called on success or error.
|
|
854
|
+
* @param {ClientMetadata} clientMetadata object which is passed from client to Cognito Lambda trigger
|
|
855
|
+
* @returns {void}
|
|
856
|
+
*/;
|
|
857
|
+
_proto.updateAttributes = function updateAttributes(attributes, callback, clientMetadata) {
|
|
858
|
+
var _this10 = this;
|
|
859
|
+
if (this.signInUserSession == null || !this.signInUserSession.isValid()) {
|
|
860
|
+
return callback(new Error('User is not authenticated'), null);
|
|
861
|
+
}
|
|
862
|
+
this.client.request('UpdateUserAttributes', {
|
|
863
|
+
AccessToken: this.signInUserSession.getAccessToken().getJwtToken(),
|
|
864
|
+
UserAttributes: attributes,
|
|
865
|
+
ClientMetadata: clientMetadata
|
|
866
|
+
}, function (err) {
|
|
867
|
+
if (err) {
|
|
868
|
+
return callback(err, null);
|
|
869
|
+
}
|
|
870
|
+
|
|
871
|
+
// update cached user
|
|
872
|
+
return _this10.getUserData(function () {
|
|
873
|
+
return callback(null, 'SUCCESS');
|
|
874
|
+
}, {
|
|
875
|
+
bypassCache: true
|
|
876
|
+
});
|
|
877
|
+
});
|
|
878
|
+
return undefined;
|
|
879
|
+
}
|
|
880
|
+
|
|
881
|
+
/**
|
|
882
|
+
* This is used by an authenticated user to get a list of attributes
|
|
883
|
+
* @param {nodeCallback<CognitoUserAttribute[]>} callback Called on success or error.
|
|
884
|
+
* @returns {void}
|
|
885
|
+
*/;
|
|
886
|
+
_proto.getUserAttributes = function getUserAttributes(callback) {
|
|
887
|
+
if (!(this.signInUserSession != null && this.signInUserSession.isValid())) {
|
|
888
|
+
return callback(new Error('User is not authenticated'), null);
|
|
889
|
+
}
|
|
890
|
+
this.client.request('GetUser', {
|
|
891
|
+
AccessToken: this.signInUserSession.getAccessToken().getJwtToken()
|
|
892
|
+
}, function (err, userData) {
|
|
893
|
+
if (err) {
|
|
894
|
+
return callback(err, null);
|
|
895
|
+
}
|
|
896
|
+
var attributeList = [];
|
|
897
|
+
for (var i = 0; i < userData.UserAttributes.length; i++) {
|
|
898
|
+
var attribute = {
|
|
899
|
+
Name: userData.UserAttributes[i].Name,
|
|
900
|
+
Value: userData.UserAttributes[i].Value
|
|
901
|
+
};
|
|
902
|
+
var userAttribute = new CognitoUserAttribute(attribute);
|
|
903
|
+
attributeList.push(userAttribute);
|
|
904
|
+
}
|
|
905
|
+
return callback(null, attributeList);
|
|
906
|
+
});
|
|
907
|
+
return undefined;
|
|
908
|
+
}
|
|
909
|
+
|
|
910
|
+
/**
|
|
911
|
+
* This was previously used by an authenticated user to get MFAOptions,
|
|
912
|
+
* but no longer returns a meaningful response. Refer to the documentation for
|
|
913
|
+
* how to setup and use MFA: https://docs.amplify.aws/lib/auth/mfa/q/platform/js
|
|
914
|
+
* @deprecated
|
|
915
|
+
* @param {nodeCallback<MFAOptions>} callback Called on success or error.
|
|
916
|
+
* @returns {void}
|
|
917
|
+
*/;
|
|
918
|
+
_proto.getMFAOptions = function getMFAOptions(callback) {
|
|
919
|
+
if (!(this.signInUserSession != null && this.signInUserSession.isValid())) {
|
|
920
|
+
return callback(new Error('User is not authenticated'), null);
|
|
921
|
+
}
|
|
922
|
+
this.client.request('GetUser', {
|
|
923
|
+
AccessToken: this.signInUserSession.getAccessToken().getJwtToken()
|
|
924
|
+
}, function (err, userData) {
|
|
925
|
+
if (err) {
|
|
926
|
+
return callback(err, null);
|
|
927
|
+
}
|
|
928
|
+
return callback(null, userData.MFAOptions);
|
|
929
|
+
});
|
|
930
|
+
return undefined;
|
|
931
|
+
}
|
|
932
|
+
|
|
933
|
+
/**
|
|
934
|
+
* PRIVATE ONLY: This is an internal only method and should not
|
|
935
|
+
* be directly called by the consumers.
|
|
936
|
+
*/;
|
|
937
|
+
_proto.createGetUserRequest = function createGetUserRequest() {
|
|
938
|
+
return this.client.promisifyRequest('GetUser', {
|
|
939
|
+
AccessToken: this.signInUserSession.getAccessToken().getJwtToken()
|
|
940
|
+
});
|
|
941
|
+
}
|
|
942
|
+
|
|
943
|
+
/**
|
|
944
|
+
* PRIVATE ONLY: This is an internal only method and should not
|
|
945
|
+
* be directly called by the consumers.
|
|
946
|
+
*/;
|
|
947
|
+
_proto.refreshSessionIfPossible = function refreshSessionIfPossible(options) {
|
|
948
|
+
var _this11 = this;
|
|
949
|
+
if (options === void 0) {
|
|
950
|
+
options = {};
|
|
951
|
+
}
|
|
952
|
+
// best effort, if not possible
|
|
953
|
+
return new Promise(function (resolve) {
|
|
954
|
+
var refresh = _this11.signInUserSession.getRefreshToken();
|
|
955
|
+
if (refresh && refresh.getToken()) {
|
|
956
|
+
_this11.refreshSession(refresh, resolve, options.clientMetadata);
|
|
957
|
+
} else {
|
|
958
|
+
resolve();
|
|
959
|
+
}
|
|
960
|
+
});
|
|
961
|
+
}
|
|
962
|
+
|
|
963
|
+
/**
|
|
964
|
+
* @typedef {Object} GetUserDataOptions
|
|
965
|
+
* @property {boolean} bypassCache - force getting data from Cognito service
|
|
966
|
+
* @property {Record<string, string>} clientMetadata - clientMetadata for getSession
|
|
967
|
+
*/
|
|
968
|
+
|
|
969
|
+
/**
|
|
970
|
+
* This is used by an authenticated users to get the userData
|
|
971
|
+
* @param {nodeCallback<UserData>} callback Called on success or error.
|
|
972
|
+
* @param {GetUserDataOptions} params
|
|
973
|
+
* @returns {void}
|
|
974
|
+
*/;
|
|
975
|
+
_proto.getUserData = function getUserData(callback, params) {
|
|
976
|
+
var _this12 = this;
|
|
977
|
+
if (!(this.signInUserSession != null && this.signInUserSession.isValid())) {
|
|
978
|
+
this.clearCachedUserData();
|
|
979
|
+
return callback(new Error('User is not authenticated'), null);
|
|
980
|
+
}
|
|
981
|
+
var userData = this.getUserDataFromCache();
|
|
982
|
+
if (!userData) {
|
|
983
|
+
this.fetchUserData().then(function (data) {
|
|
984
|
+
callback(null, data);
|
|
985
|
+
})["catch"](callback);
|
|
986
|
+
return;
|
|
987
|
+
}
|
|
988
|
+
if (this.isFetchUserDataAndTokenRequired(params)) {
|
|
989
|
+
this.fetchUserData().then(function (data) {
|
|
990
|
+
return _this12.refreshSessionIfPossible(params).then(function () {
|
|
991
|
+
return data;
|
|
992
|
+
});
|
|
993
|
+
}).then(function (data) {
|
|
994
|
+
return callback(null, data);
|
|
995
|
+
})["catch"](callback);
|
|
996
|
+
return;
|
|
997
|
+
}
|
|
998
|
+
try {
|
|
999
|
+
callback(null, JSON.parse(userData));
|
|
1000
|
+
return;
|
|
1001
|
+
} catch (err) {
|
|
1002
|
+
this.clearCachedUserData();
|
|
1003
|
+
callback(err, null);
|
|
1004
|
+
return;
|
|
1005
|
+
}
|
|
1006
|
+
}
|
|
1007
|
+
|
|
1008
|
+
/**
|
|
1009
|
+
*
|
|
1010
|
+
* PRIVATE ONLY: This is an internal only method and should not
|
|
1011
|
+
* be directly called by the consumers.
|
|
1012
|
+
*/;
|
|
1013
|
+
_proto.getUserDataFromCache = function getUserDataFromCache() {
|
|
1014
|
+
var userData = this.storage.getItem(this.userDataKey);
|
|
1015
|
+
return userData;
|
|
1016
|
+
}
|
|
1017
|
+
|
|
1018
|
+
/**
|
|
1019
|
+
*
|
|
1020
|
+
* PRIVATE ONLY: This is an internal only method and should not
|
|
1021
|
+
* be directly called by the consumers.
|
|
1022
|
+
*/;
|
|
1023
|
+
_proto.isFetchUserDataAndTokenRequired = function isFetchUserDataAndTokenRequired(params) {
|
|
1024
|
+
var _ref = params || {},
|
|
1025
|
+
_ref$bypassCache = _ref.bypassCache,
|
|
1026
|
+
bypassCache = _ref$bypassCache === void 0 ? false : _ref$bypassCache;
|
|
1027
|
+
return bypassCache;
|
|
1028
|
+
}
|
|
1029
|
+
/**
|
|
1030
|
+
*
|
|
1031
|
+
* PRIVATE ONLY: This is an internal only method and should not
|
|
1032
|
+
* be directly called by the consumers.
|
|
1033
|
+
*/;
|
|
1034
|
+
_proto.fetchUserData = function fetchUserData() {
|
|
1035
|
+
var _this13 = this;
|
|
1036
|
+
return this.createGetUserRequest().then(function (data) {
|
|
1037
|
+
_this13.cacheUserData(data);
|
|
1038
|
+
return data;
|
|
1039
|
+
});
|
|
1040
|
+
}
|
|
1041
|
+
|
|
1042
|
+
/**
|
|
1043
|
+
* This is used by an authenticated user to delete a list of attributes
|
|
1044
|
+
* @param {string[]} attributeList Names of the attributes to delete.
|
|
1045
|
+
* @param {nodeCallback<string>} callback Called on success or error.
|
|
1046
|
+
* @returns {void}
|
|
1047
|
+
*/;
|
|
1048
|
+
_proto.deleteAttributes = function deleteAttributes(attributeList, callback) {
|
|
1049
|
+
var _this14 = this;
|
|
1050
|
+
if (!(this.signInUserSession != null && this.signInUserSession.isValid())) {
|
|
1051
|
+
return callback(new Error('User is not authenticated'), null);
|
|
1052
|
+
}
|
|
1053
|
+
this.client.request('DeleteUserAttributes', {
|
|
1054
|
+
UserAttributeNames: attributeList,
|
|
1055
|
+
AccessToken: this.signInUserSession.getAccessToken().getJwtToken()
|
|
1056
|
+
}, function (err) {
|
|
1057
|
+
if (err) {
|
|
1058
|
+
return callback(err, null);
|
|
1059
|
+
}
|
|
1060
|
+
|
|
1061
|
+
// update cached user
|
|
1062
|
+
return _this14.getUserData(function () {
|
|
1063
|
+
return callback(null, 'SUCCESS');
|
|
1064
|
+
}, {
|
|
1065
|
+
bypassCache: true
|
|
1066
|
+
});
|
|
1067
|
+
});
|
|
1068
|
+
return undefined;
|
|
1069
|
+
}
|
|
1070
|
+
|
|
1071
|
+
/**
|
|
1072
|
+
* This is used by a user to resend a confirmation code
|
|
1073
|
+
* @param {nodeCallback<string>} callback Called on success or error.
|
|
1074
|
+
* @param {ClientMetadata} clientMetadata object which is passed from client to Cognito Lambda trigger
|
|
1075
|
+
* @returns {void}
|
|
1076
|
+
*/;
|
|
1077
|
+
_proto.resendConfirmationCode = function resendConfirmationCode(callback, clientMetadata) {
|
|
1078
|
+
var jsonReq = {
|
|
1079
|
+
ClientId: this.pool.getClientId(),
|
|
1080
|
+
Username: this.username,
|
|
1081
|
+
ClientMetadata: clientMetadata
|
|
1082
|
+
};
|
|
1083
|
+
this.client.request('ResendConfirmationCode', jsonReq, function (err, result) {
|
|
1084
|
+
if (err) {
|
|
1085
|
+
return callback(err, null);
|
|
1086
|
+
}
|
|
1087
|
+
return callback(null, result);
|
|
1088
|
+
});
|
|
1089
|
+
}
|
|
1090
|
+
|
|
1091
|
+
/**
|
|
1092
|
+
* @typedef {Object} GetSessionOptions
|
|
1093
|
+
* @property {Record<string, string>} clientMetadata - clientMetadata for getSession
|
|
1094
|
+
*/
|
|
1095
|
+
|
|
1096
|
+
/**
|
|
1097
|
+
* This is used to get a session, either from the session object
|
|
1098
|
+
* or from the local storage, or by using a refresh token
|
|
1099
|
+
*
|
|
1100
|
+
* @param {nodeCallback<CognitoUserSession>} callback Called on success or error.
|
|
1101
|
+
* @param {GetSessionOptions} options
|
|
1102
|
+
* @returns {void}
|
|
1103
|
+
*/;
|
|
1104
|
+
_proto.getSession = function getSession(callback, options) {
|
|
1105
|
+
if (options === void 0) {
|
|
1106
|
+
options = {};
|
|
1107
|
+
}
|
|
1108
|
+
if (this.username == null) {
|
|
1109
|
+
return callback(new Error('Username is null. Cannot retrieve a new session'), null);
|
|
1110
|
+
}
|
|
1111
|
+
if (this.signInUserSession != null && this.signInUserSession.isValid()) {
|
|
1112
|
+
return callback(null, this.signInUserSession);
|
|
1113
|
+
}
|
|
1114
|
+
var keyPrefix = "CognitoIdentityServiceProvider." + this.pool.getClientId() + "." + this.username;
|
|
1115
|
+
var idTokenKey = keyPrefix + ".idToken";
|
|
1116
|
+
var accessTokenKey = keyPrefix + ".accessToken";
|
|
1117
|
+
var refreshTokenKey = keyPrefix + ".refreshToken";
|
|
1118
|
+
var clockDriftKey = keyPrefix + ".clockDrift";
|
|
1119
|
+
if (this.storage.getItem(idTokenKey)) {
|
|
1120
|
+
var idToken = new CognitoIdToken({
|
|
1121
|
+
IdToken: this.storage.getItem(idTokenKey)
|
|
1122
|
+
});
|
|
1123
|
+
var accessToken = new CognitoAccessToken({
|
|
1124
|
+
AccessToken: this.storage.getItem(accessTokenKey)
|
|
1125
|
+
});
|
|
1126
|
+
var refreshToken = new CognitoRefreshToken({
|
|
1127
|
+
RefreshToken: this.storage.getItem(refreshTokenKey)
|
|
1128
|
+
});
|
|
1129
|
+
var clockDrift = parseInt(this.storage.getItem(clockDriftKey), 0) || 0;
|
|
1130
|
+
var sessionData = {
|
|
1131
|
+
IdToken: idToken,
|
|
1132
|
+
AccessToken: accessToken,
|
|
1133
|
+
RefreshToken: refreshToken,
|
|
1134
|
+
ClockDrift: clockDrift
|
|
1135
|
+
};
|
|
1136
|
+
var cachedSession = new CognitoUserSession(sessionData);
|
|
1137
|
+
if (cachedSession.isValid()) {
|
|
1138
|
+
this.signInUserSession = cachedSession;
|
|
1139
|
+
return callback(null, this.signInUserSession);
|
|
1140
|
+
}
|
|
1141
|
+
if (!refreshToken.getToken()) {
|
|
1142
|
+
return callback(new Error('Cannot retrieve a new session. Please authenticate.'), null);
|
|
1143
|
+
}
|
|
1144
|
+
this.refreshSession(refreshToken, callback, options.clientMetadata);
|
|
1145
|
+
} else {
|
|
1146
|
+
callback(new Error('Local storage is missing an ID Token, Please authenticate'), null);
|
|
1147
|
+
}
|
|
1148
|
+
return undefined;
|
|
1149
|
+
}
|
|
1150
|
+
|
|
1151
|
+
/**
|
|
1152
|
+
* This uses the refreshToken to retrieve a new session
|
|
1153
|
+
* @param {CognitoRefreshToken} refreshToken A previous session's refresh token.
|
|
1154
|
+
* @param {nodeCallback<CognitoUserSession>} callback Called on success or error.
|
|
1155
|
+
* @param {ClientMetadata} clientMetadata object which is passed from client to Cognito Lambda trigger
|
|
1156
|
+
* @returns {void}
|
|
1157
|
+
*/;
|
|
1158
|
+
_proto.refreshSession = function refreshSession(refreshToken, callback, clientMetadata) {
|
|
1159
|
+
var _this15 = this;
|
|
1160
|
+
var wrappedCallback = this.pool.wrapRefreshSessionCallback ? this.pool.wrapRefreshSessionCallback(callback) : callback;
|
|
1161
|
+
var authParameters = {};
|
|
1162
|
+
authParameters.REFRESH_TOKEN = refreshToken.getToken();
|
|
1163
|
+
var keyPrefix = "CognitoIdentityServiceProvider." + this.pool.getClientId();
|
|
1164
|
+
var lastUserKey = keyPrefix + ".LastAuthUser";
|
|
1165
|
+
if (this.storage.getItem(lastUserKey)) {
|
|
1166
|
+
this.username = this.storage.getItem(lastUserKey);
|
|
1167
|
+
var deviceKeyKey = keyPrefix + "." + this.username + ".deviceKey";
|
|
1168
|
+
this.deviceKey = this.storage.getItem(deviceKeyKey);
|
|
1169
|
+
authParameters.DEVICE_KEY = this.deviceKey;
|
|
1170
|
+
}
|
|
1171
|
+
var jsonReq = {
|
|
1172
|
+
ClientId: this.pool.getClientId(),
|
|
1173
|
+
AuthFlow: 'REFRESH_TOKEN_AUTH',
|
|
1174
|
+
AuthParameters: authParameters,
|
|
1175
|
+
ClientMetadata: clientMetadata
|
|
1176
|
+
};
|
|
1177
|
+
if (this.getUserContextData()) {
|
|
1178
|
+
jsonReq.UserContextData = this.getUserContextData();
|
|
1179
|
+
}
|
|
1180
|
+
this.client.request('InitiateAuth', jsonReq, function (err, authResult) {
|
|
1181
|
+
if (err) {
|
|
1182
|
+
if (err.code === 'NotAuthorizedException') {
|
|
1183
|
+
_this15.clearCachedUser();
|
|
1184
|
+
}
|
|
1185
|
+
return wrappedCallback(err, null);
|
|
1186
|
+
}
|
|
1187
|
+
if (authResult) {
|
|
1188
|
+
var authenticationResult = authResult.AuthenticationResult;
|
|
1189
|
+
if (!Object.prototype.hasOwnProperty.call(authenticationResult, 'RefreshToken')) {
|
|
1190
|
+
authenticationResult.RefreshToken = refreshToken.getToken();
|
|
1191
|
+
}
|
|
1192
|
+
_this15.signInUserSession = _this15.getCognitoUserSession(authenticationResult);
|
|
1193
|
+
_this15.cacheTokens();
|
|
1194
|
+
return wrappedCallback(null, _this15.signInUserSession);
|
|
1195
|
+
}
|
|
1196
|
+
return undefined;
|
|
1197
|
+
});
|
|
1198
|
+
}
|
|
1199
|
+
|
|
1200
|
+
/**
|
|
1201
|
+
* This is used to save the session tokens to local storage
|
|
1202
|
+
* @returns {void}
|
|
1203
|
+
*/;
|
|
1204
|
+
_proto.cacheTokens = function cacheTokens() {
|
|
1205
|
+
var keyPrefix = "CognitoIdentityServiceProvider." + this.pool.getClientId();
|
|
1206
|
+
var idTokenKey = keyPrefix + "." + this.username + ".idToken";
|
|
1207
|
+
var accessTokenKey = keyPrefix + "." + this.username + ".accessToken";
|
|
1208
|
+
var refreshTokenKey = keyPrefix + "." + this.username + ".refreshToken";
|
|
1209
|
+
var clockDriftKey = keyPrefix + "." + this.username + ".clockDrift";
|
|
1210
|
+
var lastUserKey = keyPrefix + ".LastAuthUser";
|
|
1211
|
+
this.storage.setItem(idTokenKey, this.signInUserSession.getIdToken().getJwtToken());
|
|
1212
|
+
this.storage.setItem(accessTokenKey, this.signInUserSession.getAccessToken().getJwtToken());
|
|
1213
|
+
this.storage.setItem(refreshTokenKey, this.signInUserSession.getRefreshToken().getToken());
|
|
1214
|
+
this.storage.setItem(clockDriftKey, "" + this.signInUserSession.getClockDrift());
|
|
1215
|
+
this.storage.setItem(lastUserKey, this.username);
|
|
1216
|
+
}
|
|
1217
|
+
|
|
1218
|
+
/**
|
|
1219
|
+
* This is to cache user data
|
|
1220
|
+
*/;
|
|
1221
|
+
_proto.cacheUserData = function cacheUserData(userData) {
|
|
1222
|
+
this.storage.setItem(this.userDataKey, JSON.stringify(userData));
|
|
1223
|
+
}
|
|
1224
|
+
|
|
1225
|
+
/**
|
|
1226
|
+
* This is to remove cached user data
|
|
1227
|
+
*/;
|
|
1228
|
+
_proto.clearCachedUserData = function clearCachedUserData() {
|
|
1229
|
+
this.storage.removeItem(this.userDataKey);
|
|
1230
|
+
};
|
|
1231
|
+
_proto.clearCachedUser = function clearCachedUser() {
|
|
1232
|
+
this.clearCachedTokens();
|
|
1233
|
+
this.clearCachedUserData();
|
|
1234
|
+
}
|
|
1235
|
+
|
|
1236
|
+
/**
|
|
1237
|
+
* This is used to cache the device key and device group and device password
|
|
1238
|
+
* @returns {void}
|
|
1239
|
+
*/;
|
|
1240
|
+
_proto.cacheDeviceKeyAndPassword = function cacheDeviceKeyAndPassword() {
|
|
1241
|
+
var keyPrefix = "CognitoIdentityServiceProvider." + this.pool.getClientId() + "." + this.username;
|
|
1242
|
+
var deviceKeyKey = keyPrefix + ".deviceKey";
|
|
1243
|
+
var randomPasswordKey = keyPrefix + ".randomPasswordKey";
|
|
1244
|
+
var deviceGroupKeyKey = keyPrefix + ".deviceGroupKey";
|
|
1245
|
+
this.storage.setItem(deviceKeyKey, this.deviceKey);
|
|
1246
|
+
this.storage.setItem(randomPasswordKey, this.randomPassword);
|
|
1247
|
+
this.storage.setItem(deviceGroupKeyKey, this.deviceGroupKey);
|
|
1248
|
+
}
|
|
1249
|
+
|
|
1250
|
+
/**
|
|
1251
|
+
* This is used to get current device key and device group and device password
|
|
1252
|
+
* @returns {void}
|
|
1253
|
+
*/;
|
|
1254
|
+
_proto.getCachedDeviceKeyAndPassword = function getCachedDeviceKeyAndPassword() {
|
|
1255
|
+
var keyPrefix = "CognitoIdentityServiceProvider." + this.pool.getClientId() + "." + this.username;
|
|
1256
|
+
var deviceKeyKey = keyPrefix + ".deviceKey";
|
|
1257
|
+
var randomPasswordKey = keyPrefix + ".randomPasswordKey";
|
|
1258
|
+
var deviceGroupKeyKey = keyPrefix + ".deviceGroupKey";
|
|
1259
|
+
if (this.storage.getItem(deviceKeyKey)) {
|
|
1260
|
+
this.deviceKey = this.storage.getItem(deviceKeyKey);
|
|
1261
|
+
this.randomPassword = this.storage.getItem(randomPasswordKey);
|
|
1262
|
+
this.deviceGroupKey = this.storage.getItem(deviceGroupKeyKey);
|
|
1263
|
+
}
|
|
1264
|
+
}
|
|
1265
|
+
|
|
1266
|
+
/**
|
|
1267
|
+
* This is used to clear the device key info from local storage
|
|
1268
|
+
* @returns {void}
|
|
1269
|
+
*/;
|
|
1270
|
+
_proto.clearCachedDeviceKeyAndPassword = function clearCachedDeviceKeyAndPassword() {
|
|
1271
|
+
var keyPrefix = "CognitoIdentityServiceProvider." + this.pool.getClientId() + "." + this.username;
|
|
1272
|
+
var deviceKeyKey = keyPrefix + ".deviceKey";
|
|
1273
|
+
var randomPasswordKey = keyPrefix + ".randomPasswordKey";
|
|
1274
|
+
var deviceGroupKeyKey = keyPrefix + ".deviceGroupKey";
|
|
1275
|
+
this.storage.removeItem(deviceKeyKey);
|
|
1276
|
+
this.storage.removeItem(randomPasswordKey);
|
|
1277
|
+
this.storage.removeItem(deviceGroupKeyKey);
|
|
1278
|
+
}
|
|
1279
|
+
|
|
1280
|
+
/**
|
|
1281
|
+
* This is used to clear the session tokens from local storage
|
|
1282
|
+
* @returns {void}
|
|
1283
|
+
*/;
|
|
1284
|
+
_proto.clearCachedTokens = function clearCachedTokens() {
|
|
1285
|
+
var keyPrefix = "CognitoIdentityServiceProvider." + this.pool.getClientId();
|
|
1286
|
+
var idTokenKey = keyPrefix + "." + this.username + ".idToken";
|
|
1287
|
+
var accessTokenKey = keyPrefix + "." + this.username + ".accessToken";
|
|
1288
|
+
var refreshTokenKey = keyPrefix + "." + this.username + ".refreshToken";
|
|
1289
|
+
var lastUserKey = keyPrefix + ".LastAuthUser";
|
|
1290
|
+
var clockDriftKey = keyPrefix + "." + this.username + ".clockDrift";
|
|
1291
|
+
this.storage.removeItem(idTokenKey);
|
|
1292
|
+
this.storage.removeItem(accessTokenKey);
|
|
1293
|
+
this.storage.removeItem(refreshTokenKey);
|
|
1294
|
+
this.storage.removeItem(lastUserKey);
|
|
1295
|
+
this.storage.removeItem(clockDriftKey);
|
|
1296
|
+
}
|
|
1297
|
+
|
|
1298
|
+
/**
|
|
1299
|
+
* This is used to build a user session from tokens retrieved in the authentication result
|
|
1300
|
+
* @param {object} authResult Successful auth response from server.
|
|
1301
|
+
* @returns {CognitoUserSession} The new user session.
|
|
1302
|
+
* @private
|
|
1303
|
+
*/;
|
|
1304
|
+
_proto.getCognitoUserSession = function getCognitoUserSession(authResult) {
|
|
1305
|
+
var idToken = new CognitoIdToken(authResult);
|
|
1306
|
+
var accessToken = new CognitoAccessToken(authResult);
|
|
1307
|
+
var refreshToken = new CognitoRefreshToken(authResult);
|
|
1308
|
+
var sessionData = {
|
|
1309
|
+
IdToken: idToken,
|
|
1310
|
+
AccessToken: accessToken,
|
|
1311
|
+
RefreshToken: refreshToken
|
|
1312
|
+
};
|
|
1313
|
+
return new CognitoUserSession(sessionData);
|
|
1314
|
+
}
|
|
1315
|
+
|
|
1316
|
+
/**
|
|
1317
|
+
* This is used to initiate a forgot password request
|
|
1318
|
+
* @param {object} callback Result callback map.
|
|
1319
|
+
* @param {onFailure} callback.onFailure Called on any error.
|
|
1320
|
+
* @param {inputVerificationCode?} callback.inputVerificationCode
|
|
1321
|
+
* Optional callback raised instead of onSuccess with response data.
|
|
1322
|
+
* @param {onSuccess} callback.onSuccess Called on success.
|
|
1323
|
+
* @param {ClientMetadata} clientMetadata object which is passed from client to Cognito Lambda trigger
|
|
1324
|
+
* @returns {void}
|
|
1325
|
+
*/;
|
|
1326
|
+
_proto.forgotPassword = function forgotPassword(callback, clientMetadata) {
|
|
1327
|
+
var jsonReq = {
|
|
1328
|
+
ClientId: this.pool.getClientId(),
|
|
1329
|
+
Username: this.username,
|
|
1330
|
+
ClientMetadata: clientMetadata
|
|
1331
|
+
};
|
|
1332
|
+
if (this.getUserContextData()) {
|
|
1333
|
+
jsonReq.UserContextData = this.getUserContextData();
|
|
1334
|
+
}
|
|
1335
|
+
this.client.request('ForgotPassword', jsonReq, function (err, data) {
|
|
1336
|
+
if (err) {
|
|
1337
|
+
return callback.onFailure(err);
|
|
1338
|
+
}
|
|
1339
|
+
if (typeof callback.inputVerificationCode === 'function') {
|
|
1340
|
+
return callback.inputVerificationCode(data);
|
|
1341
|
+
}
|
|
1342
|
+
return callback.onSuccess(data);
|
|
1343
|
+
});
|
|
1344
|
+
}
|
|
1345
|
+
|
|
1346
|
+
/**
|
|
1347
|
+
* This is used to confirm a new password using a confirmationCode
|
|
1348
|
+
* @param {string} confirmationCode Code entered by user.
|
|
1349
|
+
* @param {string} newPassword Confirm new password.
|
|
1350
|
+
* @param {object} callback Result callback map.
|
|
1351
|
+
* @param {onFailure} callback.onFailure Called on any error.
|
|
1352
|
+
* @param {onSuccess<void>} callback.onSuccess Called on success.
|
|
1353
|
+
* @param {ClientMetadata} clientMetadata object which is passed from client to Cognito Lambda trigger
|
|
1354
|
+
* @returns {void}
|
|
1355
|
+
*/;
|
|
1356
|
+
_proto.confirmPassword = function confirmPassword(confirmationCode, newPassword, callback, clientMetadata) {
|
|
1357
|
+
var jsonReq = {
|
|
1358
|
+
ClientId: this.pool.getClientId(),
|
|
1359
|
+
Username: this.username,
|
|
1360
|
+
ConfirmationCode: confirmationCode,
|
|
1361
|
+
Password: newPassword,
|
|
1362
|
+
ClientMetadata: clientMetadata
|
|
1363
|
+
};
|
|
1364
|
+
if (this.getUserContextData()) {
|
|
1365
|
+
jsonReq.UserContextData = this.getUserContextData();
|
|
1366
|
+
}
|
|
1367
|
+
this.client.request('ConfirmForgotPassword', jsonReq, function (err) {
|
|
1368
|
+
if (err) {
|
|
1369
|
+
return callback.onFailure(err);
|
|
1370
|
+
}
|
|
1371
|
+
return callback.onSuccess('SUCCESS');
|
|
1372
|
+
});
|
|
1373
|
+
}
|
|
1374
|
+
|
|
1375
|
+
/**
|
|
1376
|
+
* This is used to initiate an attribute confirmation request
|
|
1377
|
+
* @param {string} attributeName User attribute that needs confirmation.
|
|
1378
|
+
* @param {object} callback Result callback map.
|
|
1379
|
+
* @param {onFailure} callback.onFailure Called on any error.
|
|
1380
|
+
* @param {inputVerificationCode} callback.inputVerificationCode Called on success.
|
|
1381
|
+
* @param {ClientMetadata} clientMetadata object which is passed from client to Cognito Lambda trigger
|
|
1382
|
+
* @returns {void}
|
|
1383
|
+
*/;
|
|
1384
|
+
_proto.getAttributeVerificationCode = function getAttributeVerificationCode(attributeName, callback, clientMetadata) {
|
|
1385
|
+
if (this.signInUserSession == null || !this.signInUserSession.isValid()) {
|
|
1386
|
+
return callback.onFailure(new Error('User is not authenticated'));
|
|
1387
|
+
}
|
|
1388
|
+
this.client.request('GetUserAttributeVerificationCode', {
|
|
1389
|
+
AttributeName: attributeName,
|
|
1390
|
+
AccessToken: this.signInUserSession.getAccessToken().getJwtToken(),
|
|
1391
|
+
ClientMetadata: clientMetadata
|
|
1392
|
+
}, function (err, data) {
|
|
1393
|
+
if (err) {
|
|
1394
|
+
return callback.onFailure(err);
|
|
1395
|
+
}
|
|
1396
|
+
if (typeof callback.inputVerificationCode === 'function') {
|
|
1397
|
+
return callback.inputVerificationCode(data);
|
|
1398
|
+
}
|
|
1399
|
+
return callback.onSuccess('SUCCESS');
|
|
1400
|
+
});
|
|
1401
|
+
return undefined;
|
|
1402
|
+
}
|
|
1403
|
+
|
|
1404
|
+
/**
|
|
1405
|
+
* This is used to confirm an attribute using a confirmation code
|
|
1406
|
+
* @param {string} attributeName Attribute being confirmed.
|
|
1407
|
+
* @param {string} confirmationCode Code entered by user.
|
|
1408
|
+
* @param {object} callback Result callback map.
|
|
1409
|
+
* @param {onFailure} callback.onFailure Called on any error.
|
|
1410
|
+
* @param {onSuccess<string>} callback.onSuccess Called on success.
|
|
1411
|
+
* @returns {void}
|
|
1412
|
+
*/;
|
|
1413
|
+
_proto.verifyAttribute = function verifyAttribute(attributeName, confirmationCode, callback) {
|
|
1414
|
+
if (this.signInUserSession == null || !this.signInUserSession.isValid()) {
|
|
1415
|
+
return callback.onFailure(new Error('User is not authenticated'));
|
|
1416
|
+
}
|
|
1417
|
+
this.client.request('VerifyUserAttribute', {
|
|
1418
|
+
AttributeName: attributeName,
|
|
1419
|
+
Code: confirmationCode,
|
|
1420
|
+
AccessToken: this.signInUserSession.getAccessToken().getJwtToken()
|
|
1421
|
+
}, function (err) {
|
|
1422
|
+
if (err) {
|
|
1423
|
+
return callback.onFailure(err);
|
|
1424
|
+
}
|
|
1425
|
+
return callback.onSuccess('SUCCESS');
|
|
1426
|
+
});
|
|
1427
|
+
return undefined;
|
|
1428
|
+
}
|
|
1429
|
+
|
|
1430
|
+
/**
|
|
1431
|
+
* This is used to get the device information using the current device key
|
|
1432
|
+
* @param {object} callback Result callback map.
|
|
1433
|
+
* @param {onFailure} callback.onFailure Called on any error.
|
|
1434
|
+
* @param {onSuccess<*>} callback.onSuccess Called on success with device data.
|
|
1435
|
+
* @returns {void}
|
|
1436
|
+
*/;
|
|
1437
|
+
_proto.getDevice = function getDevice(callback) {
|
|
1438
|
+
if (this.signInUserSession == null || !this.signInUserSession.isValid()) {
|
|
1439
|
+
return callback.onFailure(new Error('User is not authenticated'));
|
|
1440
|
+
}
|
|
1441
|
+
this.client.request('GetDevice', {
|
|
1442
|
+
AccessToken: this.signInUserSession.getAccessToken().getJwtToken(),
|
|
1443
|
+
DeviceKey: this.deviceKey
|
|
1444
|
+
}, function (err, data) {
|
|
1445
|
+
if (err) {
|
|
1446
|
+
return callback.onFailure(err);
|
|
1447
|
+
}
|
|
1448
|
+
return callback.onSuccess(data);
|
|
1449
|
+
});
|
|
1450
|
+
return undefined;
|
|
1451
|
+
}
|
|
1452
|
+
|
|
1453
|
+
/**
|
|
1454
|
+
* This is used to forget a specific device
|
|
1455
|
+
* @param {string} deviceKey Device key.
|
|
1456
|
+
* @param {object} callback Result callback map.
|
|
1457
|
+
* @param {onFailure} callback.onFailure Called on any error.
|
|
1458
|
+
* @param {onSuccess<string>} callback.onSuccess Called on success.
|
|
1459
|
+
* @returns {void}
|
|
1460
|
+
*/;
|
|
1461
|
+
_proto.forgetSpecificDevice = function forgetSpecificDevice(deviceKey, callback) {
|
|
1462
|
+
if (this.signInUserSession == null || !this.signInUserSession.isValid()) {
|
|
1463
|
+
return callback.onFailure(new Error('User is not authenticated'));
|
|
1464
|
+
}
|
|
1465
|
+
this.client.request('ForgetDevice', {
|
|
1466
|
+
AccessToken: this.signInUserSession.getAccessToken().getJwtToken(),
|
|
1467
|
+
DeviceKey: deviceKey
|
|
1468
|
+
}, function (err) {
|
|
1469
|
+
if (err) {
|
|
1470
|
+
return callback.onFailure(err);
|
|
1471
|
+
}
|
|
1472
|
+
return callback.onSuccess('SUCCESS');
|
|
1473
|
+
});
|
|
1474
|
+
return undefined;
|
|
1475
|
+
}
|
|
1476
|
+
|
|
1477
|
+
/**
|
|
1478
|
+
* This is used to forget the current device
|
|
1479
|
+
* @param {object} callback Result callback map.
|
|
1480
|
+
* @param {onFailure} callback.onFailure Called on any error.
|
|
1481
|
+
* @param {onSuccess<string>} callback.onSuccess Called on success.
|
|
1482
|
+
* @returns {void}
|
|
1483
|
+
*/;
|
|
1484
|
+
_proto.forgetDevice = function forgetDevice(callback) {
|
|
1485
|
+
var _this16 = this;
|
|
1486
|
+
this.forgetSpecificDevice(this.deviceKey, {
|
|
1487
|
+
onFailure: callback.onFailure,
|
|
1488
|
+
onSuccess: function onSuccess(result) {
|
|
1489
|
+
_this16.deviceKey = null;
|
|
1490
|
+
_this16.deviceGroupKey = null;
|
|
1491
|
+
_this16.randomPassword = null;
|
|
1492
|
+
_this16.clearCachedDeviceKeyAndPassword();
|
|
1493
|
+
return callback.onSuccess(result);
|
|
1494
|
+
}
|
|
1495
|
+
});
|
|
1496
|
+
}
|
|
1497
|
+
|
|
1498
|
+
/**
|
|
1499
|
+
* This is used to set the device status as remembered
|
|
1500
|
+
* @param {object} callback Result callback map.
|
|
1501
|
+
* @param {onFailure} callback.onFailure Called on any error.
|
|
1502
|
+
* @param {onSuccess<string>} callback.onSuccess Called on success.
|
|
1503
|
+
* @returns {void}
|
|
1504
|
+
*/;
|
|
1505
|
+
_proto.setDeviceStatusRemembered = function setDeviceStatusRemembered(callback) {
|
|
1506
|
+
if (this.signInUserSession == null || !this.signInUserSession.isValid()) {
|
|
1507
|
+
return callback.onFailure(new Error('User is not authenticated'));
|
|
1508
|
+
}
|
|
1509
|
+
this.client.request('UpdateDeviceStatus', {
|
|
1510
|
+
AccessToken: this.signInUserSession.getAccessToken().getJwtToken(),
|
|
1511
|
+
DeviceKey: this.deviceKey,
|
|
1512
|
+
DeviceRememberedStatus: 'remembered'
|
|
1513
|
+
}, function (err) {
|
|
1514
|
+
if (err) {
|
|
1515
|
+
return callback.onFailure(err);
|
|
1516
|
+
}
|
|
1517
|
+
return callback.onSuccess('SUCCESS');
|
|
1518
|
+
});
|
|
1519
|
+
return undefined;
|
|
1520
|
+
}
|
|
1521
|
+
|
|
1522
|
+
/**
|
|
1523
|
+
* This is used to set the device status as not remembered
|
|
1524
|
+
* @param {object} callback Result callback map.
|
|
1525
|
+
* @param {onFailure} callback.onFailure Called on any error.
|
|
1526
|
+
* @param {onSuccess<string>} callback.onSuccess Called on success.
|
|
1527
|
+
* @returns {void}
|
|
1528
|
+
*/;
|
|
1529
|
+
_proto.setDeviceStatusNotRemembered = function setDeviceStatusNotRemembered(callback) {
|
|
1530
|
+
if (this.signInUserSession == null || !this.signInUserSession.isValid()) {
|
|
1531
|
+
return callback.onFailure(new Error('User is not authenticated'));
|
|
1532
|
+
}
|
|
1533
|
+
this.client.request('UpdateDeviceStatus', {
|
|
1534
|
+
AccessToken: this.signInUserSession.getAccessToken().getJwtToken(),
|
|
1535
|
+
DeviceKey: this.deviceKey,
|
|
1536
|
+
DeviceRememberedStatus: 'not_remembered'
|
|
1537
|
+
}, function (err) {
|
|
1538
|
+
if (err) {
|
|
1539
|
+
return callback.onFailure(err);
|
|
1540
|
+
}
|
|
1541
|
+
return callback.onSuccess('SUCCESS');
|
|
1542
|
+
});
|
|
1543
|
+
return undefined;
|
|
1544
|
+
}
|
|
1545
|
+
|
|
1546
|
+
/**
|
|
1547
|
+
* This is used to list all devices for a user
|
|
1548
|
+
*
|
|
1549
|
+
* @param {int} limit the number of devices returned in a call
|
|
1550
|
+
* @param {string | null} paginationToken the pagination token in case any was returned before
|
|
1551
|
+
* @param {object} callback Result callback map.
|
|
1552
|
+
* @param {onFailure} callback.onFailure Called on any error.
|
|
1553
|
+
* @param {onSuccess<*>} callback.onSuccess Called on success with device list.
|
|
1554
|
+
* @returns {void}
|
|
1555
|
+
*/;
|
|
1556
|
+
_proto.listDevices = function listDevices(limit, paginationToken, callback) {
|
|
1557
|
+
if (this.signInUserSession == null || !this.signInUserSession.isValid()) {
|
|
1558
|
+
return callback.onFailure(new Error('User is not authenticated'));
|
|
1559
|
+
}
|
|
1560
|
+
var requestParams = {
|
|
1561
|
+
AccessToken: this.signInUserSession.getAccessToken().getJwtToken(),
|
|
1562
|
+
Limit: limit
|
|
1563
|
+
};
|
|
1564
|
+
if (paginationToken) {
|
|
1565
|
+
requestParams.PaginationToken = paginationToken;
|
|
1566
|
+
}
|
|
1567
|
+
this.client.request('ListDevices', requestParams, function (err, data) {
|
|
1568
|
+
if (err) {
|
|
1569
|
+
return callback.onFailure(err);
|
|
1570
|
+
}
|
|
1571
|
+
return callback.onSuccess(data);
|
|
1572
|
+
});
|
|
1573
|
+
return undefined;
|
|
1574
|
+
}
|
|
1575
|
+
|
|
1576
|
+
/**
|
|
1577
|
+
* This is used to globally revoke all tokens issued to a user
|
|
1578
|
+
* @param {object} callback Result callback map.
|
|
1579
|
+
* @param {onFailure} callback.onFailure Called on any error.
|
|
1580
|
+
* @param {onSuccess<string>} callback.onSuccess Called on success.
|
|
1581
|
+
* @returns {void}
|
|
1582
|
+
*/;
|
|
1583
|
+
_proto.globalSignOut = function globalSignOut(callback) {
|
|
1584
|
+
var _this17 = this;
|
|
1585
|
+
if (this.signInUserSession == null || !this.signInUserSession.isValid()) {
|
|
1586
|
+
return callback.onFailure(new Error('User is not authenticated'));
|
|
1587
|
+
}
|
|
1588
|
+
this.client.request('GlobalSignOut', {
|
|
1589
|
+
AccessToken: this.signInUserSession.getAccessToken().getJwtToken()
|
|
1590
|
+
}, function (err) {
|
|
1591
|
+
if (err) {
|
|
1592
|
+
return callback.onFailure(err);
|
|
1593
|
+
}
|
|
1594
|
+
_this17.clearCachedUser();
|
|
1595
|
+
return callback.onSuccess('SUCCESS');
|
|
1596
|
+
});
|
|
1597
|
+
return undefined;
|
|
1598
|
+
}
|
|
1599
|
+
|
|
1600
|
+
/**
|
|
1601
|
+
* This is used for the user to signOut of the application and clear the cached tokens.
|
|
1602
|
+
* @returns {void}
|
|
1603
|
+
*/;
|
|
1604
|
+
_proto.signOut = function signOut(revokeTokenCallback) {
|
|
1605
|
+
var _this18 = this;
|
|
1606
|
+
// If tokens won't be revoked, we just clean the client data.
|
|
1607
|
+
if (!revokeTokenCallback || typeof revokeTokenCallback !== 'function') {
|
|
1608
|
+
this.cleanClientData();
|
|
1609
|
+
return;
|
|
1610
|
+
}
|
|
1611
|
+
this.getSession(function (error, _session) {
|
|
1612
|
+
if (error) {
|
|
1613
|
+
return revokeTokenCallback(error);
|
|
1614
|
+
}
|
|
1615
|
+
_this18.revokeTokens(function (err) {
|
|
1616
|
+
_this18.cleanClientData();
|
|
1617
|
+
revokeTokenCallback(err);
|
|
1618
|
+
});
|
|
1619
|
+
});
|
|
1620
|
+
};
|
|
1621
|
+
_proto.revokeTokens = function revokeTokens(revokeTokenCallback) {
|
|
1622
|
+
if (revokeTokenCallback === void 0) {
|
|
1623
|
+
revokeTokenCallback = function revokeTokenCallback() {};
|
|
1624
|
+
}
|
|
1625
|
+
if (typeof revokeTokenCallback !== 'function') {
|
|
1626
|
+
throw new Error('Invalid revokeTokenCallback. It should be a function.');
|
|
1627
|
+
}
|
|
1628
|
+
var tokensToBeRevoked = [];
|
|
1629
|
+
if (!this.signInUserSession) {
|
|
1630
|
+
var error = new Error('User is not authenticated');
|
|
1631
|
+
return revokeTokenCallback(error);
|
|
1632
|
+
}
|
|
1633
|
+
if (!this.signInUserSession.getAccessToken()) {
|
|
1634
|
+
var _error = new Error('No Access token available');
|
|
1635
|
+
return revokeTokenCallback(_error);
|
|
1636
|
+
}
|
|
1637
|
+
var refreshToken = this.signInUserSession.getRefreshToken().getToken();
|
|
1638
|
+
var accessToken = this.signInUserSession.getAccessToken();
|
|
1639
|
+
if (this.isSessionRevocable(accessToken)) {
|
|
1640
|
+
if (refreshToken) {
|
|
1641
|
+
return this.revokeToken({
|
|
1642
|
+
token: refreshToken,
|
|
1643
|
+
callback: revokeTokenCallback
|
|
1644
|
+
});
|
|
1645
|
+
}
|
|
1646
|
+
}
|
|
1647
|
+
revokeTokenCallback();
|
|
1648
|
+
};
|
|
1649
|
+
_proto.isSessionRevocable = function isSessionRevocable(token) {
|
|
1650
|
+
if (token && typeof token.decodePayload === 'function') {
|
|
1651
|
+
try {
|
|
1652
|
+
var _token$decodePayload2 = token.decodePayload(),
|
|
1653
|
+
origin_jti = _token$decodePayload2.origin_jti;
|
|
1654
|
+
return !!origin_jti;
|
|
1655
|
+
} catch (err) {
|
|
1656
|
+
// Nothing to do, token doesnt have origin_jti claim
|
|
1657
|
+
}
|
|
1658
|
+
}
|
|
1659
|
+
return false;
|
|
1660
|
+
};
|
|
1661
|
+
_proto.cleanClientData = function cleanClientData() {
|
|
1662
|
+
this.signInUserSession = null;
|
|
1663
|
+
this.clearCachedUser();
|
|
1664
|
+
};
|
|
1665
|
+
_proto.revokeToken = function revokeToken(_ref2) {
|
|
1666
|
+
var token = _ref2.token,
|
|
1667
|
+
callback = _ref2.callback;
|
|
1668
|
+
this.client.requestWithRetry('RevokeToken', {
|
|
1669
|
+
Token: token,
|
|
1670
|
+
ClientId: this.pool.getClientId()
|
|
1671
|
+
}, function (err) {
|
|
1672
|
+
if (err) {
|
|
1673
|
+
return callback(err);
|
|
1674
|
+
}
|
|
1675
|
+
callback();
|
|
1676
|
+
});
|
|
1677
|
+
}
|
|
1678
|
+
|
|
1679
|
+
/**
|
|
1680
|
+
* This is used by a user trying to select a given MFA
|
|
1681
|
+
* @param {string} answerChallenge the mfa the user wants
|
|
1682
|
+
* @param {nodeCallback<string>} callback Called on success or error.
|
|
1683
|
+
* @returns {void}
|
|
1684
|
+
*/;
|
|
1685
|
+
_proto.sendMFASelectionAnswer = function sendMFASelectionAnswer(answerChallenge, callback) {
|
|
1686
|
+
var _this19 = this;
|
|
1687
|
+
var challengeResponses = {};
|
|
1688
|
+
challengeResponses.USERNAME = this.username;
|
|
1689
|
+
challengeResponses.ANSWER = answerChallenge;
|
|
1690
|
+
var jsonReq = {
|
|
1691
|
+
ChallengeName: 'SELECT_MFA_TYPE',
|
|
1692
|
+
ChallengeResponses: challengeResponses,
|
|
1693
|
+
ClientId: this.pool.getClientId(),
|
|
1694
|
+
Session: this.Session
|
|
1695
|
+
};
|
|
1696
|
+
if (this.getUserContextData()) {
|
|
1697
|
+
jsonReq.UserContextData = this.getUserContextData();
|
|
1698
|
+
}
|
|
1699
|
+
this.client.request('RespondToAuthChallenge', jsonReq, function (err, data) {
|
|
1700
|
+
if (err) {
|
|
1701
|
+
return callback.onFailure(err);
|
|
1702
|
+
}
|
|
1703
|
+
_this19.Session = data.Session;
|
|
1704
|
+
if (answerChallenge === 'SMS_MFA') {
|
|
1705
|
+
return callback.mfaRequired(data.ChallengeName, data.ChallengeParameters);
|
|
1706
|
+
}
|
|
1707
|
+
if (answerChallenge === 'SOFTWARE_TOKEN_MFA') {
|
|
1708
|
+
return callback.totpRequired(data.ChallengeName, data.ChallengeParameters);
|
|
1709
|
+
}
|
|
1710
|
+
return undefined;
|
|
1711
|
+
});
|
|
1712
|
+
}
|
|
1713
|
+
|
|
1714
|
+
/**
|
|
1715
|
+
* This returns the user context data for advanced security feature.
|
|
1716
|
+
* @returns {string} the user context data from CognitoUserPool
|
|
1717
|
+
*/;
|
|
1718
|
+
_proto.getUserContextData = function getUserContextData() {
|
|
1719
|
+
var pool = this.pool;
|
|
1720
|
+
return pool.getUserContextData(this.username);
|
|
1721
|
+
}
|
|
1722
|
+
|
|
1723
|
+
/**
|
|
1724
|
+
* This is used by an authenticated or a user trying to authenticate to associate a TOTP MFA
|
|
1725
|
+
* @param {nodeCallback<string>} callback Called on success or error.
|
|
1726
|
+
* @returns {void}
|
|
1727
|
+
*/;
|
|
1728
|
+
_proto.associateSoftwareToken = function associateSoftwareToken(callback) {
|
|
1729
|
+
var _this20 = this;
|
|
1730
|
+
if (!(this.signInUserSession != null && this.signInUserSession.isValid())) {
|
|
1731
|
+
this.client.request('AssociateSoftwareToken', {
|
|
1732
|
+
Session: this.Session
|
|
1733
|
+
}, function (err, data) {
|
|
1734
|
+
if (err) {
|
|
1735
|
+
return callback.onFailure(err);
|
|
1736
|
+
}
|
|
1737
|
+
_this20.Session = data.Session;
|
|
1738
|
+
return callback.associateSecretCode(data.SecretCode);
|
|
1739
|
+
});
|
|
1740
|
+
} else {
|
|
1741
|
+
this.client.request('AssociateSoftwareToken', {
|
|
1742
|
+
AccessToken: this.signInUserSession.getAccessToken().getJwtToken()
|
|
1743
|
+
}, function (err, data) {
|
|
1744
|
+
if (err) {
|
|
1745
|
+
return callback.onFailure(err);
|
|
1746
|
+
}
|
|
1747
|
+
return callback.associateSecretCode(data.SecretCode);
|
|
1748
|
+
});
|
|
1749
|
+
}
|
|
1750
|
+
}
|
|
1751
|
+
|
|
1752
|
+
/**
|
|
1753
|
+
* This is used by an authenticated or a user trying to authenticate to verify a TOTP MFA
|
|
1754
|
+
* @param {string} totpCode The MFA code entered by the user.
|
|
1755
|
+
* @param {string} friendlyDeviceName The device name we are assigning to the device.
|
|
1756
|
+
* @param {nodeCallback<string>} callback Called on success or error.
|
|
1757
|
+
* @returns {void}
|
|
1758
|
+
*/;
|
|
1759
|
+
_proto.verifySoftwareToken = function verifySoftwareToken(totpCode, friendlyDeviceName, callback) {
|
|
1760
|
+
var _this21 = this;
|
|
1761
|
+
if (!(this.signInUserSession != null && this.signInUserSession.isValid())) {
|
|
1762
|
+
this.client.request('VerifySoftwareToken', {
|
|
1763
|
+
Session: this.Session,
|
|
1764
|
+
UserCode: totpCode,
|
|
1765
|
+
FriendlyDeviceName: friendlyDeviceName
|
|
1766
|
+
}, function (err, data) {
|
|
1767
|
+
if (err) {
|
|
1768
|
+
return callback.onFailure(err);
|
|
1769
|
+
}
|
|
1770
|
+
_this21.Session = data.Session;
|
|
1771
|
+
var challengeResponses = {};
|
|
1772
|
+
challengeResponses.USERNAME = _this21.username;
|
|
1773
|
+
var jsonReq = {
|
|
1774
|
+
ChallengeName: 'MFA_SETUP',
|
|
1775
|
+
ClientId: _this21.pool.getClientId(),
|
|
1776
|
+
ChallengeResponses: challengeResponses,
|
|
1777
|
+
Session: _this21.Session
|
|
1778
|
+
};
|
|
1779
|
+
if (_this21.getUserContextData()) {
|
|
1780
|
+
jsonReq.UserContextData = _this21.getUserContextData();
|
|
1781
|
+
}
|
|
1782
|
+
_this21.client.request('RespondToAuthChallenge', jsonReq, function (errRespond, dataRespond) {
|
|
1783
|
+
if (errRespond) {
|
|
1784
|
+
return callback.onFailure(errRespond);
|
|
1785
|
+
}
|
|
1786
|
+
_this21.signInUserSession = _this21.getCognitoUserSession(dataRespond.AuthenticationResult);
|
|
1787
|
+
_this21.cacheTokens();
|
|
1788
|
+
return callback.onSuccess(_this21.signInUserSession);
|
|
1789
|
+
});
|
|
1790
|
+
return undefined;
|
|
1791
|
+
});
|
|
1792
|
+
} else {
|
|
1793
|
+
this.client.request('VerifySoftwareToken', {
|
|
1794
|
+
AccessToken: this.signInUserSession.getAccessToken().getJwtToken(),
|
|
1795
|
+
UserCode: totpCode,
|
|
1796
|
+
FriendlyDeviceName: friendlyDeviceName
|
|
1797
|
+
}, function (err, data) {
|
|
1798
|
+
if (err) {
|
|
1799
|
+
return callback.onFailure(err);
|
|
1800
|
+
}
|
|
1801
|
+
return callback.onSuccess(data);
|
|
1802
|
+
});
|
|
1803
|
+
}
|
|
1804
|
+
};
|
|
1805
|
+
return CognitoUser;
|
|
1806
|
+
}();
|
|
1807
|
+
export { CognitoUser as default };
|