nativescript 9.1.0-alpha.16 → 9.1.0-alpha.17
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/CHANGELOG.md +2571 -0
- package/bin/tns +65 -1
- package/config/config.json +2 -1
- package/config/test-deps-versions-generated.json +1 -1
- package/contracts/package.json +4 -0
- package/docs/man_pages/project/testing/build-android.md +1 -1
- package/lib/android-tools-info.d.ts +19 -0
- package/lib/base-package-manager.d.ts +28 -0
- package/lib/bootstrap.js +2 -1
- package/lib/bun-package-manager.d.ts +16 -0
- package/lib/color.d.ts +39 -0
- package/lib/commands/add-platform.d.ts +14 -0
- package/lib/commands/apple-login.d.ts +14 -0
- package/lib/commands/appstore-list.d.ts +21 -0
- package/lib/commands/appstore-upload.d.ts +25 -0
- package/lib/commands/build.d.ts +58 -0
- package/lib/commands/clean.d.ts +21 -0
- package/lib/commands/command-base.d.ts +16 -0
- package/lib/commands/config.d.ts +30 -0
- package/lib/commands/create-project.d.ts +42 -0
- package/lib/commands/debug.d.ts +53 -0
- package/lib/commands/deploy.d.ts +32 -0
- package/lib/commands/embedding/embed.d.ts +27 -0
- package/lib/commands/extensibility/install-extension.d.ts +10 -0
- package/lib/commands/extensibility/list-extensions.d.ts +9 -0
- package/lib/commands/extensibility/uninstall-extension.d.ts +10 -0
- package/lib/commands/fonts.d.ts +12 -0
- package/lib/commands/generate-assets.d.ts +29 -0
- package/lib/commands/generate-help.d.ts +8 -0
- package/lib/commands/generate.d.ts +12 -0
- package/lib/commands/hooks/common.d.ts +22 -0
- package/lib/commands/hooks/hooks-lock.d.ts +24 -0
- package/lib/commands/hooks/hooks.d.ts +17 -0
- package/lib/commands/info.d.ts +8 -0
- package/lib/commands/install.d.ts +25 -0
- package/lib/commands/list-platforms.d.ts +11 -0
- package/lib/commands/migrate.d.ts +13 -0
- package/lib/commands/native-add.d.ts +49 -0
- package/lib/commands/platform-clean.d.ts +17 -0
- package/lib/commands/plugin/add-plugin.d.ts +13 -0
- package/lib/commands/plugin/build-plugin.d.ts +18 -0
- package/lib/commands/plugin/create-plugin.d.ts +30 -0
- package/lib/commands/plugin/list-plugins.d.ts +12 -0
- package/lib/commands/plugin/remove-plugin.d.ts +14 -0
- package/lib/commands/plugin/update-plugin.d.ts +13 -0
- package/lib/commands/post-install.d.ts +16 -0
- package/lib/commands/prepare.d.ts +40 -0
- package/lib/commands/prepare.js +0 -5
- package/lib/commands/preview.d.ts +18 -0
- package/lib/commands/preview.js +1 -0
- package/lib/commands/remove-platform.d.ts +14 -0
- package/lib/commands/resources/resources-update.d.ts +13 -0
- package/lib/commands/run.d.ts +61 -0
- package/lib/commands/setup.d.ts +8 -0
- package/lib/commands/start.d.ts +9 -0
- package/lib/commands/typings.d.ts +22 -0
- package/lib/commands/update-platform.d.ts +17 -0
- package/lib/commands/update.d.ts +21 -0
- package/lib/commands/widget.d.ts +24 -0
- package/lib/commands/widget.js +0 -1
- package/lib/common/child-process.d.ts +17 -0
- package/lib/common/codeGeneration/code-entity.d.ts +22 -0
- package/lib/common/codeGeneration/code-printer.d.ts +10 -0
- package/lib/common/command-params.d.ts +14 -0
- package/lib/common/commands/analytics.d.ts +30 -0
- package/lib/common/commands/autocompletion.d.ts +35 -0
- package/lib/common/commands/device/device-log-stream.d.ts +16 -0
- package/lib/common/commands/device/get-file.d.ts +14 -0
- package/lib/common/commands/device/list-applications.d.ts +10 -0
- package/lib/common/commands/device/list-devices.d.ts +16 -0
- package/lib/common/commands/device/list-files.d.ts +14 -0
- package/lib/common/commands/device/put-file.d.ts +14 -0
- package/lib/common/commands/device/run-application.d.ts +13 -0
- package/lib/common/commands/device/stop-application.d.ts +10 -0
- package/lib/common/commands/device/uninstall-application.d.ts +10 -0
- package/lib/common/commands/doctor.d.ts +23 -0
- package/lib/common/commands/generate-messages.d.ts +13 -0
- package/lib/common/commands/help.d.ts +14 -0
- package/lib/common/commands/package-manager-get.d.ts +10 -0
- package/lib/common/commands/package-manager-set.d.ts +11 -0
- package/lib/common/commands/post-install.d.ts +9 -0
- package/lib/common/commands/preuninstall.d.ts +16 -0
- package/lib/common/commands/proxy/proxy-base.d.ts +13 -0
- package/lib/common/commands/proxy/proxy-clear.d.ts +9 -0
- package/lib/common/commands/proxy/proxy-get.d.ts +9 -0
- package/lib/common/commands/proxy/proxy-set.d.ts +23 -0
- package/lib/common/constants.d.ts +117 -0
- package/lib/common/contracts/command-registry.d.ts +35 -0
- package/lib/common/contracts/command-registry.js +16 -0
- package/lib/common/contracts/index.d.ts +5 -0
- package/lib/common/contracts/index.js +11 -0
- package/lib/common/contracts/key-command-registry.d.ts +7 -0
- package/lib/common/contracts/key-command-registry.js +16 -0
- package/lib/common/contracts/module-registry.d.ts +4 -0
- package/lib/common/contracts/module-registry.js +16 -0
- package/lib/common/contracts/public-api-builder.d.ts +5 -0
- package/lib/common/contracts/public-api-builder.js +16 -0
- package/lib/common/declarations.d.ts +12 -1
- package/lib/common/decorators.d.ts +13 -0
- package/lib/common/define-command.d.ts +53 -0
- package/lib/common/define-command.js +147 -0
- package/lib/common/define-hook.d.ts +29 -0
- package/lib/common/define-hook.js +101 -0
- package/lib/common/definitions/commands.d.ts +7 -0
- package/lib/common/definitions/extensibility.d.ts +7 -0
- package/lib/common/definitions/key-commands.d.ts +25 -0
- package/lib/common/definitions/yok.d.ts +43 -35
- package/lib/common/deprecation.d.ts +12 -0
- package/lib/common/deprecation.js +56 -0
- package/lib/common/di/contract.d.ts +7 -0
- package/lib/common/di/contract.js +34 -0
- package/lib/common/di/forward-ref.d.ts +2 -0
- package/lib/common/di/forward-ref.js +15 -0
- package/lib/common/di/index.d.ts +8 -0
- package/lib/common/di/index.js +19 -0
- package/lib/common/di/inject.d.ts +8 -0
- package/lib/common/di/inject.js +41 -0
- package/lib/common/di/injector.d.ts +38 -0
- package/lib/common/di/injector.js +268 -0
- package/lib/common/di/providers.d.ts +30 -0
- package/lib/common/di/providers.js +7 -0
- package/lib/common/dispatchers.d.ts +21 -0
- package/lib/common/enums.d.ts +34 -0
- package/lib/common/errors.d.ts +15 -0
- package/lib/common/file-system.d.ts +77 -0
- package/lib/common/header.d.ts +1 -0
- package/lib/common/helpers.d.ts +62 -0
- package/lib/common/helpers.js +3 -3
- package/lib/common/host-info.d.ts +24 -0
- package/lib/common/http-client.d.ts +14 -0
- package/lib/common/http-client.js +11 -0
- package/lib/common/logger/appenders/cli-appender.d.ts +2 -0
- package/lib/common/logger/appenders/emit-appender.d.ts +5 -0
- package/lib/common/logger/layouts/cli-layout.d.ts +2 -0
- package/lib/common/logger/logger.d.ts +24 -0
- package/lib/common/messages/messages.d.ts +7 -0
- package/lib/common/mobile/android/android-application-manager.d.ts +31 -0
- package/lib/common/mobile/android/android-debug-bridge-result-handler.d.ts +9 -0
- package/lib/common/mobile/android/android-debug-bridge.d.ts +24 -0
- package/lib/common/mobile/android/android-device-file-system.d.ts +26 -0
- package/lib/common/mobile/android/android-device-hash-service.d.ts +23 -0
- package/lib/common/mobile/android/android-device.d.ts +24 -0
- package/lib/common/mobile/android/android-emulator-services.d.ts +23 -0
- package/lib/common/mobile/android/android-ini-file-parser.d.ts +8 -0
- package/lib/common/mobile/android/android-log-filter.d.ts +11 -0
- package/lib/common/mobile/android/android-virtual-device-service.d.ts +37 -0
- package/lib/common/mobile/android/device-android-debug-bridge.d.ts +18 -0
- package/lib/common/mobile/android/genymotion/genymotion-service.d.ts +26 -0
- package/lib/common/mobile/android/genymotion/virtualbox-service.d.ts +13 -0
- package/lib/common/mobile/android/logcat-helper.d.ts +17 -0
- package/lib/common/mobile/application-manager-base.d.ts +27 -0
- package/lib/common/mobile/device-emitter.d.ts +8 -0
- package/lib/common/mobile/device-log-emitter.d.ts +9 -0
- package/lib/common/mobile/device-log-provider-base.d.ts +21 -0
- package/lib/common/mobile/device-log-provider.d.ts +21 -0
- package/lib/common/mobile/device-platforms-constants.d.ts +8 -0
- package/lib/common/mobile/emulator-helper.d.ts +32 -0
- package/lib/common/mobile/ios/device/ios-application-manager.d.ts +27 -0
- package/lib/common/mobile/ios/device/ios-device-file-system.d.ts +19 -0
- package/lib/common/mobile/ios/device/ios-device-operations.d.ts +29 -0
- package/lib/common/mobile/ios/device/ios-device.d.ts +32 -0
- package/lib/common/mobile/ios/ios-device-base.d.ts +24 -0
- package/lib/common/mobile/ios/ios-log-filter.d.ts +6 -0
- package/lib/common/mobile/ios/simulator/ios-emulator-services.d.ts +1 -0
- package/lib/common/mobile/ios/simulator/ios-sim-resolver.d.ts +7 -0
- package/lib/common/mobile/ios/simulator/ios-simulator-application-manager.d.ts +27 -0
- package/lib/common/mobile/ios/simulator/ios-simulator-device.d.ts +27 -0
- package/lib/common/mobile/ios/simulator/ios-simulator-file-system.d.ts +16 -0
- package/lib/common/mobile/ios/simulator/ios-simulator-log-provider.d.ts +15 -0
- package/lib/common/mobile/local-to-device-path-data-factory.d.ts +3 -0
- package/lib/common/mobile/log-filter.d.ts +13 -0
- package/lib/common/mobile/logging-levels.d.ts +4 -0
- package/lib/common/mobile/mobile-core/android-device-discovery.d.ts +16 -0
- package/lib/common/mobile/mobile-core/android-emulator-discovery.d.ts +11 -0
- package/lib/common/mobile/mobile-core/android-process-service.d.ts +33 -0
- package/lib/common/mobile/mobile-core/device-discovery.d.ts +12 -0
- package/lib/common/mobile/mobile-core/devices-service.d.ts +99 -0
- package/lib/common/mobile/mobile-core/ios-device-discovery.d.ts +12 -0
- package/lib/common/mobile/mobile-core/ios-simulator-discovery.d.ts +20 -0
- package/lib/common/mobile/mobile-helper.d.ts +22 -0
- package/lib/common/mobile/wp8/wp8-emulator-services.d.ts +1 -0
- package/lib/common/opener.d.ts +4 -0
- package/lib/common/os-info.d.ts +7 -0
- package/lib/common/plist-parser.d.ts +5 -0
- package/lib/common/project-helper.d.ts +15 -0
- package/lib/common/prompter.d.ts +23 -0
- package/lib/common/queue.d.ts +8 -0
- package/lib/common/resource-loader.d.ts +10 -0
- package/lib/common/services/analytics/google-analytics-custom-dimensions.d.ts +9 -0
- package/lib/common/services/auto-completion-service.d.ts +36 -0
- package/lib/common/services/cancellation.d.ts +1 -0
- package/lib/common/services/command-definition-adapter.d.ts +6 -0
- package/lib/common/services/command-definition-adapter.js +141 -0
- package/lib/common/services/commands-service.d.ts +30 -0
- package/lib/common/services/commands-service.js +2 -1
- package/lib/common/services/help-service.d.ts +46 -0
- package/lib/common/services/hooks-service.d.ts +40 -0
- package/lib/common/services/hooks-service.js +110 -51
- package/lib/common/services/ios-notification-service.d.ts +7 -0
- package/lib/common/services/json-file-settings-service.d.ts +24 -0
- package/lib/common/services/lock-service.d.ts +18 -0
- package/lib/common/services/message-contract-generator.d.ts +8 -0
- package/lib/common/services/messages-service.d.ts +15 -0
- package/lib/common/services/micro-templating-service.d.ts +12 -0
- package/lib/common/services/net-service.d.ts +13 -0
- package/lib/common/services/project-files-manager.d.ts +14 -0
- package/lib/common/services/project-files-provider-base.d.ts +12 -0
- package/lib/common/services/proxy-service.d.ts +12 -0
- package/lib/common/services/qr.d.ts +7 -0
- package/lib/common/services/settings-service.d.ts +10 -0
- package/lib/common/services/xcode-select-service.d.ts +12 -0
- package/lib/common/utils.d.ts +10 -0
- package/lib/common/validators/project-name-validator.d.ts +18 -0
- package/lib/common/validators/validation-result.d.ts +7 -0
- package/lib/common/verify-node-version.d.ts +3 -0
- package/lib/common/yok.d.ts +60 -0
- package/lib/common/yok.js +161 -133
- package/lib/config.d.ts +45 -0
- package/lib/config.js +2 -1
- package/lib/constants-provider.d.ts +4 -0
- package/lib/constants.d.ts +331 -0
- package/lib/constants.js +7 -2
- package/lib/contracts/doctor-service.d.ts +20 -0
- package/lib/contracts/doctor-service.js +16 -0
- package/lib/contracts/index.d.ts +14 -0
- package/lib/contracts/index.js +32 -0
- package/lib/contracts/project-name-service.d.ts +5 -0
- package/lib/contracts/project-name-service.js +16 -0
- package/lib/controllers/build-controller.d.ts +23 -0
- package/lib/controllers/debug-controller.d.ts +31 -0
- package/lib/controllers/deploy-controller.d.ts +7 -0
- package/lib/controllers/migrate-controller.d.ts +67 -0
- package/lib/controllers/platform-controller.d.ts +20 -0
- package/lib/controllers/prepare-controller.d.ts +45 -0
- package/lib/controllers/run-controller.d.ts +57 -0
- package/lib/controllers/update-controller-base.d.ts +27 -0
- package/lib/controllers/update-controller.d.ts +36 -0
- package/lib/data/build-data.d.ts +33 -0
- package/lib/data/controller-data-base.d.ts +8 -0
- package/lib/data/debug-data.d.ts +2 -0
- package/lib/data/platform-data.d.ts +7 -0
- package/lib/data/prepare-data.d.ts +22 -0
- package/lib/data/run-data.d.ts +6 -0
- package/lib/declarations.d.ts +2 -1
- package/lib/definitions/ios.d.ts +36 -1
- package/lib/definitions/system-warnings.d.ts +4 -0
- package/lib/detached-processes/cleanup-js-subprocess.d.ts +2 -0
- package/lib/detached-processes/cleanup-process.d.ts +1 -0
- package/lib/detached-processes/detached-process-enums.d.ts +18 -0
- package/lib/detached-processes/file-log-service.d.ts +7 -0
- package/lib/device-path-provider.d.ts +9 -0
- package/lib/device-sockets/ios/app-debug-socket-proxy-factory.d.ts +22 -0
- package/lib/device-sockets/ios/notification.d.ts +13 -0
- package/lib/device-sockets/ios/socket-request-executor.d.ts +11 -0
- package/lib/helpers/android-bundle-validator-helper.d.ts +18 -0
- package/lib/helpers/deploy-command-helper.d.ts +16 -0
- package/lib/helpers/key-command-helper.d.ts +13 -0
- package/lib/helpers/livesync-command-helper.d.ts +36 -0
- package/lib/helpers/network-connectivity-validator.d.ts +12 -0
- package/lib/helpers/options-track-helper.d.ts +14 -0
- package/lib/helpers/package-path-helper.d.ts +2 -0
- package/lib/helpers/platform-command-helper.d.ts +35 -0
- package/lib/helpers/version-validator-helper.d.ts +8 -0
- package/lib/key-commands/bootstrap.d.ts +1 -0
- package/lib/key-commands/index.d.ts +166 -0
- package/lib/nativescript-cli-lib-bootstrap.d.ts +1 -0
- package/lib/nativescript-cli-lib.d.ts +1 -0
- package/lib/nativescript-cli.d.ts +1 -0
- package/lib/node/pbxproj-dom-xcode.d.ts +4 -0
- package/lib/node/xcode.d.ts +2 -0
- package/lib/node-package-manager.d.ts +16 -0
- package/lib/options.d.ts +33 -0
- package/lib/options.js +70 -43
- package/lib/package-installation-manager.d.ts +30 -0
- package/lib/package-manager.d.ts +32 -0
- package/lib/platform-command-param.d.ts +10 -0
- package/lib/pnpm-package-manager.d.ts +16 -0
- package/lib/project-data.d.ts +58 -0
- package/lib/providers/project-files-provider.d.ts +12 -0
- package/lib/resolvers/livesync-service-resolver.d.ts +9 -0
- package/lib/services/analytics/analytics-broker-process.d.ts +1 -0
- package/lib/services/analytics/analytics-broker.d.ts +11 -0
- package/lib/services/analytics/analytics-service.d.ts +46 -0
- package/lib/services/analytics/google-analytics-provider.d.ts +22 -0
- package/lib/services/analytics/google-analytics-provider.js +84 -83
- package/lib/services/analytics-settings-service.d.ts +1 -0
- package/lib/services/android/android-bundle-tool-service.d.ts +27 -0
- package/lib/services/android/android-bundle-tool-service.js +102 -3
- package/lib/services/android/gradle-build-args-service.d.ts +17 -0
- package/lib/services/android/gradle-build-service.d.ts +12 -0
- package/lib/services/android/gradle-command-service.d.ts +11 -0
- package/lib/services/android-device-debug-service.d.ts +30 -0
- package/lib/services/android-plugin-build-service.d.ts +55 -0
- package/lib/services/android-project-service.d.ts +75 -0
- package/lib/services/android-resources-migration-service.d.ts +17 -0
- package/lib/services/apple-portal/apple-portal-application-service.d.ts +12 -0
- package/lib/services/apple-portal/apple-portal-cookie-service.d.ts +10 -0
- package/lib/services/apple-portal/apple-portal-session-service.d.ts +19 -0
- package/lib/services/apple-portal/srp/srp-wrapper.d.ts +29 -0
- package/lib/services/assets-generation/assets-generation-service.d.ts +24 -0
- package/lib/services/build-artifacts-service.d.ts +16 -0
- package/lib/services/build-data-service.d.ts +7 -0
- package/lib/services/build-info-file-service.d.ts +16 -0
- package/lib/services/bundler/bundler-compiler-service.d.ts +50 -0
- package/lib/services/bundler/bundler-compiler-service.js +2 -1
- package/lib/services/bundler/bundler.d.ts +75 -0
- package/lib/services/cleanup-service.d.ts +29 -0
- package/lib/services/cocoapods-platform-manager.d.ts +17 -0
- package/lib/services/cocoapods-service.d.ts +47 -0
- package/lib/services/debug-data-service.d.ts +7 -0
- package/lib/services/debug-service-base.d.ts +12 -0
- package/lib/services/device/device-install-app-service.d.ts +19 -0
- package/lib/services/doctor-service.d.ts +51 -0
- package/lib/services/doctor-service.js +14 -11
- package/lib/services/extensibility-service.d.ts +36 -0
- package/lib/services/extensibility-service.js +126 -5
- package/lib/services/files-hash-service.d.ts +17 -0
- package/lib/services/hmr-status-service.d.ts +19 -0
- package/lib/services/info-service.d.ts +6 -0
- package/lib/services/initialize-service.d.ts +8 -0
- package/lib/services/ios/export-options-plist-service.d.ts +13 -0
- package/lib/services/ios/ios-signing-service.d.ts +33 -0
- package/lib/services/ios/spm-pbxproj-service.d.ts +16 -0
- package/lib/services/ios/spm-pbxproj-service.js +234 -0
- package/lib/services/ios/spm-service.d.ts +35 -0
- package/lib/services/ios/spm-service.js +10 -19
- package/lib/services/ios/xcodebuild-args-service.d.ts +20 -0
- package/lib/services/ios/xcodebuild-command-service.d.ts +17 -0
- package/lib/services/ios/xcodebuild-service.d.ts +13 -0
- package/lib/services/ios-debugger-port-service.d.ts +20 -0
- package/lib/services/ios-device-debug-service.d.ts +29 -0
- package/lib/services/ios-entitlements-service.d.ts +19 -0
- package/lib/services/ios-entitlements-service.js +3 -3
- package/lib/services/ios-extensions-service.d.ts +12 -0
- package/lib/services/ios-log-filter.d.ts +11 -0
- package/lib/services/ios-native-target-service.d.ts +14 -0
- package/lib/services/ios-project-service.d.ts +108 -0
- package/lib/services/ios-project-service.js +2 -2
- package/lib/services/ios-provision-service.d.ts +18 -0
- package/lib/services/ios-watch-app-service.d.ts +39 -0
- package/lib/services/ios-watch-app-service.js +8 -15
- package/lib/services/ip-service.d.ts +10 -0
- package/lib/services/itmstransporter-service.d.ts +26 -0
- package/lib/services/karma-execution.d.ts +1 -0
- package/lib/services/livesync/android-device-livesync-service-base.d.ts +19 -0
- package/lib/services/livesync/android-device-livesync-service.d.ts +24 -0
- package/lib/services/livesync/android-device-livesync-sockets-service.d.ts +36 -0
- package/lib/services/livesync/android-livesync-service.d.ts +16 -0
- package/lib/services/livesync/android-livesync-tool.d.ts +58 -0
- package/lib/services/livesync/device-livesync-service-base.d.ts +13 -0
- package/lib/services/livesync/ios-device-livesync-service.d.ts +28 -0
- package/lib/services/livesync/ios-livesync-service.d.ts +17 -0
- package/lib/services/livesync/livesync-socket.d.ts +5 -0
- package/lib/services/livesync/platform-livesync-service-base.d.ts +25 -0
- package/lib/services/livesync-process-data-service.d.ts +10 -0
- package/lib/services/log-parser-service.d.ts +11 -0
- package/lib/services/log-source-map-service.d.ts +28 -0
- package/lib/services/marking-mode-service.d.ts +12 -0
- package/lib/services/metadata-filtering-service.d.ts +19 -0
- package/lib/services/npm-config-service.d.ts +7 -0
- package/lib/services/pacote-service.d.ts +16 -0
- package/lib/services/performance-service.d.ts +19 -0
- package/lib/services/platform/add-platform-service.d.ts +21 -0
- package/lib/services/platform/platform-validation-service.d.ts +17 -0
- package/lib/services/platform/prepare-native-platform-service.d.ts +15 -0
- package/lib/services/platform-environment-requirements.d.ts +15 -0
- package/lib/services/platform-project-service-base.d.ts +14 -0
- package/lib/services/platforms-data-service.d.ts +9 -0
- package/lib/services/plugins-service.d.ts +60 -0
- package/lib/services/prepare-data-service.d.ts +7 -0
- package/lib/services/project-backup-service.d.ts +12 -0
- package/lib/services/project-changes-service.d.ts +30 -0
- package/lib/services/project-cleanup-service.d.ts +13 -0
- package/lib/services/project-config-service.d.ts +33 -0
- package/lib/services/project-config-service.js +33 -11
- package/lib/services/project-data-service.d.ts +48 -0
- package/lib/services/project-name-service.d.ts +16 -0
- package/lib/services/project-name-service.js +4 -4
- package/lib/services/project-service.d.ts +34 -0
- package/lib/services/project-templates-service.d.ts +18 -0
- package/lib/services/qr-code-terminal-service.d.ts +5 -0
- package/lib/services/require-service.d.ts +3 -0
- package/lib/services/start-service.d.ts +30 -0
- package/lib/services/temp-service.d.ts +14 -0
- package/lib/services/terminal-spinner-service.d.ts +5 -0
- package/lib/services/test-execution-service.d.ts +26 -0
- package/lib/services/test-initialization-service.d.ts +10 -0
- package/lib/services/timeline-profiler-service.d.ts +18 -0
- package/lib/services/user-settings-service.d.ts +14 -0
- package/lib/services/versions-service.d.ts +5 -0
- package/lib/services/watch-ignore-list-service.d.ts +7 -0
- package/lib/services/xcconfig-service.d.ts +15 -0
- package/lib/services/xcproj-service.d.ts +1 -0
- package/lib/shared-event-bus.d.ts +1 -0
- package/lib/sys-info.d.ts +18 -0
- package/lib/tools/config-manipulation/config-transformer.d.ts +28 -0
- package/lib/tools/config-manipulation/config-transformer.js +15 -7
- package/lib/tools/node-modules/node-modules-builder.d.ts +9 -0
- package/lib/tools/node-modules/node-modules-dependencies-builder.d.ts +10 -0
- package/lib/tools/plist-merge/plist-session.d.ts +30 -0
- package/lib/tools/plist-merge/plist-session.js +92 -0
- package/lib/yarn-package-manager.d.ts +16 -0
- package/lib/yarn2-package-manager.d.ts +18 -0
- package/package.json +11 -107
- package/postinstall.js +7 -2
- package/node_modules/debug/LICENSE +0 -20
- package/node_modules/debug/README.md +0 -481
- package/node_modules/debug/package.json +0 -64
- package/node_modules/debug/src/browser.js +0 -272
- package/node_modules/debug/src/common.js +0 -292
- package/node_modules/debug/src/index.js +0 -10
- package/node_modules/debug/src/node.js +0 -263
- package/node_modules/ms/index.js +0 -162
- package/node_modules/ms/license.md +0 -21
- package/node_modules/ms/package.json +0 -38
- package/node_modules/ms/readme.md +0 -59
- package/node_modules/universal-analytics/.travis.yml +0 -11
- package/node_modules/universal-analytics/AcceptableParams.md +0 -757
- package/node_modules/universal-analytics/HISTORY.md +0 -170
- package/node_modules/universal-analytics/Makefile +0 -5
- package/node_modules/universal-analytics/README.md +0 -651
- package/node_modules/universal-analytics/index.js +0 -2
- package/node_modules/universal-analytics/lib/config.js +0 -171
- package/node_modules/universal-analytics/lib/index.js +0 -563
- package/node_modules/universal-analytics/lib/request.js +0 -73
- package/node_modules/universal-analytics/lib/utils.js +0 -29
- package/node_modules/universal-analytics/package.json +0 -33
- package/node_modules/universal-analytics/test/_enqueue.js +0 -144
- package/node_modules/universal-analytics/test/event.js +0 -346
- package/node_modules/universal-analytics/test/exception.js +0 -233
- package/node_modules/universal-analytics/test/index.js +0 -141
- package/node_modules/universal-analytics/test/item.js +0 -550
- package/node_modules/universal-analytics/test/middleware.js +0 -119
- package/node_modules/universal-analytics/test/mocha.opts +0 -3
- package/node_modules/universal-analytics/test/pageview.js +0 -286
- package/node_modules/universal-analytics/test/send.js +0 -232
- package/node_modules/universal-analytics/test/set.js +0 -68
- package/node_modules/universal-analytics/test/timing.js +0 -363
- package/node_modules/universal-analytics/test/transaction.js +0 -371
- package/node_modules/uuid/LICENSE.md +0 -9
- package/node_modules/uuid/README.md +0 -510
- package/node_modules/uuid/dist/cjs/index.d.ts +0 -15
- package/node_modules/uuid/dist/cjs/index.js +0 -31
- package/node_modules/uuid/dist/cjs/max.d.ts +0 -2
- package/node_modules/uuid/dist/cjs/max.js +0 -3
- package/node_modules/uuid/dist/cjs/md5.d.ts +0 -4
- package/node_modules/uuid/dist/cjs/md5.js +0 -13
- package/node_modules/uuid/dist/cjs/native.d.ts +0 -6
- package/node_modules/uuid/dist/cjs/native.js +0 -4
- package/node_modules/uuid/dist/cjs/nil.d.ts +0 -2
- package/node_modules/uuid/dist/cjs/nil.js +0 -3
- package/node_modules/uuid/dist/cjs/package.json +0 -1
- package/node_modules/uuid/dist/cjs/parse.d.ts +0 -2
- package/node_modules/uuid/dist/cjs/parse.js +0 -11
- package/node_modules/uuid/dist/cjs/regex.d.ts +0 -2
- package/node_modules/uuid/dist/cjs/regex.js +0 -3
- package/node_modules/uuid/dist/cjs/rng.d.ts +0 -1
- package/node_modules/uuid/dist/cjs/rng.js +0 -13
- package/node_modules/uuid/dist/cjs/sha1.d.ts +0 -4
- package/node_modules/uuid/dist/cjs/sha1.js +0 -13
- package/node_modules/uuid/dist/cjs/stringify.d.ts +0 -3
- package/node_modules/uuid/dist/cjs/stringify.js +0 -39
- package/node_modules/uuid/dist/cjs/types.d.ts +0 -21
- package/node_modules/uuid/dist/cjs/types.js +0 -2
- package/node_modules/uuid/dist/cjs/uuid-bin.js +0 -72
- package/node_modules/uuid/dist/cjs/v1.d.ts +0 -11
- package/node_modules/uuid/dist/cjs/v1.js +0 -87
- package/node_modules/uuid/dist/cjs/v1ToV6.d.ts +0 -2
- package/node_modules/uuid/dist/cjs/v1ToV6.js +0 -13
- package/node_modules/uuid/dist/cjs/v3.d.ts +0 -9
- package/node_modules/uuid/dist/cjs/v3.js +0 -14
- package/node_modules/uuid/dist/cjs/v35.d.ts +0 -7
- package/node_modules/uuid/dist/cjs/v35.js +0 -41
- package/node_modules/uuid/dist/cjs/v4.d.ts +0 -4
- package/node_modules/uuid/dist/cjs/v4.js +0 -29
- package/node_modules/uuid/dist/cjs/v5.d.ts +0 -9
- package/node_modules/uuid/dist/cjs/v5.js +0 -14
- package/node_modules/uuid/dist/cjs/v6.d.ts +0 -4
- package/node_modules/uuid/dist/cjs/v6.js +0 -19
- package/node_modules/uuid/dist/cjs/v6ToV1.d.ts +0 -2
- package/node_modules/uuid/dist/cjs/v6ToV1.js +0 -13
- package/node_modules/uuid/dist/cjs/v7.d.ts +0 -9
- package/node_modules/uuid/dist/cjs/v7.js +0 -69
- package/node_modules/uuid/dist/cjs/validate.d.ts +0 -2
- package/node_modules/uuid/dist/cjs/validate.js +0 -7
- package/node_modules/uuid/dist/cjs/version.d.ts +0 -2
- package/node_modules/uuid/dist/cjs/version.js +0 -10
- package/node_modules/uuid/dist/cjs-browser/index.d.ts +0 -15
- package/node_modules/uuid/dist/cjs-browser/index.js +0 -31
- package/node_modules/uuid/dist/cjs-browser/max.d.ts +0 -2
- package/node_modules/uuid/dist/cjs-browser/max.js +0 -3
- package/node_modules/uuid/dist/cjs-browser/md5.d.ts +0 -2
- package/node_modules/uuid/dist/cjs-browser/md5.js +0 -137
- package/node_modules/uuid/dist/cjs-browser/native.d.ts +0 -4
- package/node_modules/uuid/dist/cjs-browser/native.js +0 -4
- package/node_modules/uuid/dist/cjs-browser/nil.d.ts +0 -2
- package/node_modules/uuid/dist/cjs-browser/nil.js +0 -3
- package/node_modules/uuid/dist/cjs-browser/package.json +0 -1
- package/node_modules/uuid/dist/cjs-browser/parse.d.ts +0 -2
- package/node_modules/uuid/dist/cjs-browser/parse.js +0 -11
- package/node_modules/uuid/dist/cjs-browser/regex.d.ts +0 -2
- package/node_modules/uuid/dist/cjs-browser/regex.js +0 -3
- package/node_modules/uuid/dist/cjs-browser/rng.d.ts +0 -1
- package/node_modules/uuid/dist/cjs-browser/rng.js +0 -14
- package/node_modules/uuid/dist/cjs-browser/sha1.d.ts +0 -2
- package/node_modules/uuid/dist/cjs-browser/sha1.js +0 -72
- package/node_modules/uuid/dist/cjs-browser/stringify.d.ts +0 -3
- package/node_modules/uuid/dist/cjs-browser/stringify.js +0 -39
- package/node_modules/uuid/dist/cjs-browser/types.d.ts +0 -21
- package/node_modules/uuid/dist/cjs-browser/types.js +0 -2
- package/node_modules/uuid/dist/cjs-browser/uuid-bin.js +0 -72
- package/node_modules/uuid/dist/cjs-browser/v1.d.ts +0 -11
- package/node_modules/uuid/dist/cjs-browser/v1.js +0 -87
- package/node_modules/uuid/dist/cjs-browser/v1ToV6.d.ts +0 -2
- package/node_modules/uuid/dist/cjs-browser/v1ToV6.js +0 -13
- package/node_modules/uuid/dist/cjs-browser/v3.d.ts +0 -9
- package/node_modules/uuid/dist/cjs-browser/v3.js +0 -14
- package/node_modules/uuid/dist/cjs-browser/v35.d.ts +0 -7
- package/node_modules/uuid/dist/cjs-browser/v35.js +0 -41
- package/node_modules/uuid/dist/cjs-browser/v4.d.ts +0 -4
- package/node_modules/uuid/dist/cjs-browser/v4.js +0 -29
- package/node_modules/uuid/dist/cjs-browser/v5.d.ts +0 -9
- package/node_modules/uuid/dist/cjs-browser/v5.js +0 -14
- package/node_modules/uuid/dist/cjs-browser/v6.d.ts +0 -4
- package/node_modules/uuid/dist/cjs-browser/v6.js +0 -19
- package/node_modules/uuid/dist/cjs-browser/v6ToV1.d.ts +0 -2
- package/node_modules/uuid/dist/cjs-browser/v6ToV1.js +0 -13
- package/node_modules/uuid/dist/cjs-browser/v7.d.ts +0 -9
- package/node_modules/uuid/dist/cjs-browser/v7.js +0 -69
- package/node_modules/uuid/dist/cjs-browser/validate.d.ts +0 -2
- package/node_modules/uuid/dist/cjs-browser/validate.js +0 -7
- package/node_modules/uuid/dist/cjs-browser/version.d.ts +0 -2
- package/node_modules/uuid/dist/cjs-browser/version.js +0 -10
- package/node_modules/uuid/dist/esm/bin/uuid +0 -2
- package/node_modules/uuid/dist/esm/index.d.ts +0 -15
- package/node_modules/uuid/dist/esm/index.js +0 -14
- package/node_modules/uuid/dist/esm/max.d.ts +0 -2
- package/node_modules/uuid/dist/esm/max.js +0 -1
- package/node_modules/uuid/dist/esm/md5.d.ts +0 -4
- package/node_modules/uuid/dist/esm/md5.js +0 -11
- package/node_modules/uuid/dist/esm/native.d.ts +0 -6
- package/node_modules/uuid/dist/esm/native.js +0 -2
- package/node_modules/uuid/dist/esm/nil.d.ts +0 -2
- package/node_modules/uuid/dist/esm/nil.js +0 -1
- package/node_modules/uuid/dist/esm/parse.d.ts +0 -2
- package/node_modules/uuid/dist/esm/parse.js +0 -9
- package/node_modules/uuid/dist/esm/regex.d.ts +0 -2
- package/node_modules/uuid/dist/esm/regex.js +0 -1
- package/node_modules/uuid/dist/esm/rng.d.ts +0 -1
- package/node_modules/uuid/dist/esm/rng.js +0 -10
- package/node_modules/uuid/dist/esm/sha1.d.ts +0 -4
- package/node_modules/uuid/dist/esm/sha1.js +0 -11
- package/node_modules/uuid/dist/esm/stringify.d.ts +0 -3
- package/node_modules/uuid/dist/esm/stringify.js +0 -35
- package/node_modules/uuid/dist/esm/types.d.ts +0 -21
- package/node_modules/uuid/dist/esm/uuid-bin.js +0 -70
- package/node_modules/uuid/dist/esm/v1.d.ts +0 -11
- package/node_modules/uuid/dist/esm/v1.js +0 -83
- package/node_modules/uuid/dist/esm/v1ToV6.d.ts +0 -2
- package/node_modules/uuid/dist/esm/v1ToV6.js +0 -10
- package/node_modules/uuid/dist/esm/v3.d.ts +0 -9
- package/node_modules/uuid/dist/esm/v3.js +0 -9
- package/node_modules/uuid/dist/esm/v35.d.ts +0 -7
- package/node_modules/uuid/dist/esm/v35.js +0 -36
- package/node_modules/uuid/dist/esm/v4.d.ts +0 -4
- package/node_modules/uuid/dist/esm/v4.js +0 -27
- package/node_modules/uuid/dist/esm/v5.d.ts +0 -9
- package/node_modules/uuid/dist/esm/v5.js +0 -9
- package/node_modules/uuid/dist/esm/v6.d.ts +0 -4
- package/node_modules/uuid/dist/esm/v6.js +0 -17
- package/node_modules/uuid/dist/esm/v6ToV1.d.ts +0 -2
- package/node_modules/uuid/dist/esm/v6ToV1.js +0 -10
- package/node_modules/uuid/dist/esm/v7.d.ts +0 -9
- package/node_modules/uuid/dist/esm/v7.js +0 -65
- package/node_modules/uuid/dist/esm/validate.d.ts +0 -2
- package/node_modules/uuid/dist/esm/validate.js +0 -5
- package/node_modules/uuid/dist/esm/version.d.ts +0 -2
- package/node_modules/uuid/dist/esm/version.js +0 -8
- package/node_modules/uuid/dist/esm-browser/index.d.ts +0 -15
- package/node_modules/uuid/dist/esm-browser/index.js +0 -14
- package/node_modules/uuid/dist/esm-browser/max.d.ts +0 -2
- package/node_modules/uuid/dist/esm-browser/max.js +0 -1
- package/node_modules/uuid/dist/esm-browser/md5.d.ts +0 -2
- package/node_modules/uuid/dist/esm-browser/md5.js +0 -135
- package/node_modules/uuid/dist/esm-browser/native.d.ts +0 -4
- package/node_modules/uuid/dist/esm-browser/native.js +0 -2
- package/node_modules/uuid/dist/esm-browser/nil.d.ts +0 -2
- package/node_modules/uuid/dist/esm-browser/nil.js +0 -1
- package/node_modules/uuid/dist/esm-browser/parse.d.ts +0 -2
- package/node_modules/uuid/dist/esm-browser/parse.js +0 -9
- package/node_modules/uuid/dist/esm-browser/regex.d.ts +0 -2
- package/node_modules/uuid/dist/esm-browser/regex.js +0 -1
- package/node_modules/uuid/dist/esm-browser/rng.d.ts +0 -1
- package/node_modules/uuid/dist/esm-browser/rng.js +0 -11
- package/node_modules/uuid/dist/esm-browser/sha1.d.ts +0 -2
- package/node_modules/uuid/dist/esm-browser/sha1.js +0 -70
- package/node_modules/uuid/dist/esm-browser/stringify.d.ts +0 -3
- package/node_modules/uuid/dist/esm-browser/stringify.js +0 -35
- package/node_modules/uuid/dist/esm-browser/types.d.ts +0 -21
- package/node_modules/uuid/dist/esm-browser/uuid-bin.js +0 -70
- package/node_modules/uuid/dist/esm-browser/v1.d.ts +0 -11
- package/node_modules/uuid/dist/esm-browser/v1.js +0 -83
- package/node_modules/uuid/dist/esm-browser/v1ToV6.d.ts +0 -2
- package/node_modules/uuid/dist/esm-browser/v1ToV6.js +0 -10
- package/node_modules/uuid/dist/esm-browser/v3.d.ts +0 -9
- package/node_modules/uuid/dist/esm-browser/v3.js +0 -9
- package/node_modules/uuid/dist/esm-browser/v35.d.ts +0 -7
- package/node_modules/uuid/dist/esm-browser/v35.js +0 -36
- package/node_modules/uuid/dist/esm-browser/v4.d.ts +0 -4
- package/node_modules/uuid/dist/esm-browser/v4.js +0 -27
- package/node_modules/uuid/dist/esm-browser/v5.d.ts +0 -9
- package/node_modules/uuid/dist/esm-browser/v5.js +0 -9
- package/node_modules/uuid/dist/esm-browser/v6.d.ts +0 -4
- package/node_modules/uuid/dist/esm-browser/v6.js +0 -17
- package/node_modules/uuid/dist/esm-browser/v6ToV1.d.ts +0 -2
- package/node_modules/uuid/dist/esm-browser/v6ToV1.js +0 -10
- package/node_modules/uuid/dist/esm-browser/v7.d.ts +0 -9
- package/node_modules/uuid/dist/esm-browser/v7.js +0 -65
- package/node_modules/uuid/dist/esm-browser/validate.d.ts +0 -2
- package/node_modules/uuid/dist/esm-browser/validate.js +0 -5
- package/node_modules/uuid/dist/esm-browser/version.d.ts +0 -2
- package/node_modules/uuid/dist/esm-browser/version.js +0 -8
- package/node_modules/uuid/package.json +0 -132
- package/vendor/aab-tool/LICENSE +0 -202
- package/vendor/aab-tool/README.txt +0 -1
- package/vendor/aab-tool/bundletool.jar +0 -0
- /package/{node_modules/uuid/dist/cjs-browser/uuid-bin.d.ts → lib/bootstrap.d.ts} +0 -0
- /package/{node_modules/uuid/dist/cjs/uuid-bin.d.ts → lib/commands/test-init.d.ts} +0 -0
- /package/{node_modules/uuid/dist/esm-browser/types.js → lib/commands/test.d.ts} +0 -0
- /package/{node_modules/uuid/dist/esm-browser/uuid-bin.d.ts → lib/common/bootstrap.d.ts} +0 -0
- /package/{node_modules/uuid/dist/esm/types.js → lib/common/common-lib.d.ts} +0 -0
- /package/{node_modules/uuid/dist/esm/uuid-bin.d.ts → lib/common/mobile/ios/ios-device-product-name-mapper.d.ts} +0 -0
|
@@ -1,137 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
function md5(bytes) {
|
|
4
|
-
const words = uint8ToUint32(bytes);
|
|
5
|
-
const md5Bytes = wordsToMd5(words, bytes.length * 8);
|
|
6
|
-
return uint32ToUint8(md5Bytes);
|
|
7
|
-
}
|
|
8
|
-
function uint32ToUint8(input) {
|
|
9
|
-
const bytes = new Uint8Array(input.length * 4);
|
|
10
|
-
for (let i = 0; i < input.length * 4; i++) {
|
|
11
|
-
bytes[i] = (input[i >> 2] >>> ((i % 4) * 8)) & 0xff;
|
|
12
|
-
}
|
|
13
|
-
return bytes;
|
|
14
|
-
}
|
|
15
|
-
function getOutputLength(inputLength8) {
|
|
16
|
-
return (((inputLength8 + 64) >>> 9) << 4) + 14 + 1;
|
|
17
|
-
}
|
|
18
|
-
function wordsToMd5(x, len) {
|
|
19
|
-
const xpad = new Uint32Array(getOutputLength(len)).fill(0);
|
|
20
|
-
xpad.set(x);
|
|
21
|
-
xpad[len >> 5] |= 0x80 << len % 32;
|
|
22
|
-
xpad[xpad.length - 1] = len;
|
|
23
|
-
x = xpad;
|
|
24
|
-
let a = 1732584193;
|
|
25
|
-
let b = -271733879;
|
|
26
|
-
let c = -1732584194;
|
|
27
|
-
let d = 271733878;
|
|
28
|
-
for (let i = 0; i < x.length; i += 16) {
|
|
29
|
-
const olda = a;
|
|
30
|
-
const oldb = b;
|
|
31
|
-
const oldc = c;
|
|
32
|
-
const oldd = d;
|
|
33
|
-
a = md5ff(a, b, c, d, x[i], 7, -680876936);
|
|
34
|
-
d = md5ff(d, a, b, c, x[i + 1], 12, -389564586);
|
|
35
|
-
c = md5ff(c, d, a, b, x[i + 2], 17, 606105819);
|
|
36
|
-
b = md5ff(b, c, d, a, x[i + 3], 22, -1044525330);
|
|
37
|
-
a = md5ff(a, b, c, d, x[i + 4], 7, -176418897);
|
|
38
|
-
d = md5ff(d, a, b, c, x[i + 5], 12, 1200080426);
|
|
39
|
-
c = md5ff(c, d, a, b, x[i + 6], 17, -1473231341);
|
|
40
|
-
b = md5ff(b, c, d, a, x[i + 7], 22, -45705983);
|
|
41
|
-
a = md5ff(a, b, c, d, x[i + 8], 7, 1770035416);
|
|
42
|
-
d = md5ff(d, a, b, c, x[i + 9], 12, -1958414417);
|
|
43
|
-
c = md5ff(c, d, a, b, x[i + 10], 17, -42063);
|
|
44
|
-
b = md5ff(b, c, d, a, x[i + 11], 22, -1990404162);
|
|
45
|
-
a = md5ff(a, b, c, d, x[i + 12], 7, 1804603682);
|
|
46
|
-
d = md5ff(d, a, b, c, x[i + 13], 12, -40341101);
|
|
47
|
-
c = md5ff(c, d, a, b, x[i + 14], 17, -1502002290);
|
|
48
|
-
b = md5ff(b, c, d, a, x[i + 15], 22, 1236535329);
|
|
49
|
-
a = md5gg(a, b, c, d, x[i + 1], 5, -165796510);
|
|
50
|
-
d = md5gg(d, a, b, c, x[i + 6], 9, -1069501632);
|
|
51
|
-
c = md5gg(c, d, a, b, x[i + 11], 14, 643717713);
|
|
52
|
-
b = md5gg(b, c, d, a, x[i], 20, -373897302);
|
|
53
|
-
a = md5gg(a, b, c, d, x[i + 5], 5, -701558691);
|
|
54
|
-
d = md5gg(d, a, b, c, x[i + 10], 9, 38016083);
|
|
55
|
-
c = md5gg(c, d, a, b, x[i + 15], 14, -660478335);
|
|
56
|
-
b = md5gg(b, c, d, a, x[i + 4], 20, -405537848);
|
|
57
|
-
a = md5gg(a, b, c, d, x[i + 9], 5, 568446438);
|
|
58
|
-
d = md5gg(d, a, b, c, x[i + 14], 9, -1019803690);
|
|
59
|
-
c = md5gg(c, d, a, b, x[i + 3], 14, -187363961);
|
|
60
|
-
b = md5gg(b, c, d, a, x[i + 8], 20, 1163531501);
|
|
61
|
-
a = md5gg(a, b, c, d, x[i + 13], 5, -1444681467);
|
|
62
|
-
d = md5gg(d, a, b, c, x[i + 2], 9, -51403784);
|
|
63
|
-
c = md5gg(c, d, a, b, x[i + 7], 14, 1735328473);
|
|
64
|
-
b = md5gg(b, c, d, a, x[i + 12], 20, -1926607734);
|
|
65
|
-
a = md5hh(a, b, c, d, x[i + 5], 4, -378558);
|
|
66
|
-
d = md5hh(d, a, b, c, x[i + 8], 11, -2022574463);
|
|
67
|
-
c = md5hh(c, d, a, b, x[i + 11], 16, 1839030562);
|
|
68
|
-
b = md5hh(b, c, d, a, x[i + 14], 23, -35309556);
|
|
69
|
-
a = md5hh(a, b, c, d, x[i + 1], 4, -1530992060);
|
|
70
|
-
d = md5hh(d, a, b, c, x[i + 4], 11, 1272893353);
|
|
71
|
-
c = md5hh(c, d, a, b, x[i + 7], 16, -155497632);
|
|
72
|
-
b = md5hh(b, c, d, a, x[i + 10], 23, -1094730640);
|
|
73
|
-
a = md5hh(a, b, c, d, x[i + 13], 4, 681279174);
|
|
74
|
-
d = md5hh(d, a, b, c, x[i], 11, -358537222);
|
|
75
|
-
c = md5hh(c, d, a, b, x[i + 3], 16, -722521979);
|
|
76
|
-
b = md5hh(b, c, d, a, x[i + 6], 23, 76029189);
|
|
77
|
-
a = md5hh(a, b, c, d, x[i + 9], 4, -640364487);
|
|
78
|
-
d = md5hh(d, a, b, c, x[i + 12], 11, -421815835);
|
|
79
|
-
c = md5hh(c, d, a, b, x[i + 15], 16, 530742520);
|
|
80
|
-
b = md5hh(b, c, d, a, x[i + 2], 23, -995338651);
|
|
81
|
-
a = md5ii(a, b, c, d, x[i], 6, -198630844);
|
|
82
|
-
d = md5ii(d, a, b, c, x[i + 7], 10, 1126891415);
|
|
83
|
-
c = md5ii(c, d, a, b, x[i + 14], 15, -1416354905);
|
|
84
|
-
b = md5ii(b, c, d, a, x[i + 5], 21, -57434055);
|
|
85
|
-
a = md5ii(a, b, c, d, x[i + 12], 6, 1700485571);
|
|
86
|
-
d = md5ii(d, a, b, c, x[i + 3], 10, -1894986606);
|
|
87
|
-
c = md5ii(c, d, a, b, x[i + 10], 15, -1051523);
|
|
88
|
-
b = md5ii(b, c, d, a, x[i + 1], 21, -2054922799);
|
|
89
|
-
a = md5ii(a, b, c, d, x[i + 8], 6, 1873313359);
|
|
90
|
-
d = md5ii(d, a, b, c, x[i + 15], 10, -30611744);
|
|
91
|
-
c = md5ii(c, d, a, b, x[i + 6], 15, -1560198380);
|
|
92
|
-
b = md5ii(b, c, d, a, x[i + 13], 21, 1309151649);
|
|
93
|
-
a = md5ii(a, b, c, d, x[i + 4], 6, -145523070);
|
|
94
|
-
d = md5ii(d, a, b, c, x[i + 11], 10, -1120210379);
|
|
95
|
-
c = md5ii(c, d, a, b, x[i + 2], 15, 718787259);
|
|
96
|
-
b = md5ii(b, c, d, a, x[i + 9], 21, -343485551);
|
|
97
|
-
a = safeAdd(a, olda);
|
|
98
|
-
b = safeAdd(b, oldb);
|
|
99
|
-
c = safeAdd(c, oldc);
|
|
100
|
-
d = safeAdd(d, oldd);
|
|
101
|
-
}
|
|
102
|
-
return Uint32Array.of(a, b, c, d);
|
|
103
|
-
}
|
|
104
|
-
function uint8ToUint32(input) {
|
|
105
|
-
if (input.length === 0) {
|
|
106
|
-
return new Uint32Array();
|
|
107
|
-
}
|
|
108
|
-
const output = new Uint32Array(getOutputLength(input.length * 8)).fill(0);
|
|
109
|
-
for (let i = 0; i < input.length; i++) {
|
|
110
|
-
output[i >> 2] |= (input[i] & 0xff) << ((i % 4) * 8);
|
|
111
|
-
}
|
|
112
|
-
return output;
|
|
113
|
-
}
|
|
114
|
-
function safeAdd(x, y) {
|
|
115
|
-
const lsw = (x & 0xffff) + (y & 0xffff);
|
|
116
|
-
const msw = (x >> 16) + (y >> 16) + (lsw >> 16);
|
|
117
|
-
return (msw << 16) | (lsw & 0xffff);
|
|
118
|
-
}
|
|
119
|
-
function bitRotateLeft(num, cnt) {
|
|
120
|
-
return (num << cnt) | (num >>> (32 - cnt));
|
|
121
|
-
}
|
|
122
|
-
function md5cmn(q, a, b, x, s, t) {
|
|
123
|
-
return safeAdd(bitRotateLeft(safeAdd(safeAdd(a, q), safeAdd(x, t)), s), b);
|
|
124
|
-
}
|
|
125
|
-
function md5ff(a, b, c, d, x, s, t) {
|
|
126
|
-
return md5cmn((b & c) | (~b & d), a, b, x, s, t);
|
|
127
|
-
}
|
|
128
|
-
function md5gg(a, b, c, d, x, s, t) {
|
|
129
|
-
return md5cmn((b & d) | (c & ~d), a, b, x, s, t);
|
|
130
|
-
}
|
|
131
|
-
function md5hh(a, b, c, d, x, s, t) {
|
|
132
|
-
return md5cmn(b ^ c ^ d, a, b, x, s, t);
|
|
133
|
-
}
|
|
134
|
-
function md5ii(a, b, c, d, x, s, t) {
|
|
135
|
-
return md5cmn(c ^ (b | ~d), a, b, x, s, t);
|
|
136
|
-
}
|
|
137
|
-
exports.default = md5;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"type":"commonjs"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const validate_js_1 = require("./validate.js");
|
|
4
|
-
function parse(uuid) {
|
|
5
|
-
if (!(0, validate_js_1.default)(uuid)) {
|
|
6
|
-
throw TypeError('Invalid UUID');
|
|
7
|
-
}
|
|
8
|
-
let v;
|
|
9
|
-
return Uint8Array.of((v = parseInt(uuid.slice(0, 8), 16)) >>> 24, (v >>> 16) & 0xff, (v >>> 8) & 0xff, v & 0xff, (v = parseInt(uuid.slice(9, 13), 16)) >>> 8, v & 0xff, (v = parseInt(uuid.slice(14, 18), 16)) >>> 8, v & 0xff, (v = parseInt(uuid.slice(19, 23), 16)) >>> 8, v & 0xff, ((v = parseInt(uuid.slice(24, 36), 16)) / 0x10000000000) & 0xff, (v / 0x100000000) & 0xff, (v >>> 24) & 0xff, (v >>> 16) & 0xff, (v >>> 8) & 0xff, v & 0xff);
|
|
10
|
-
}
|
|
11
|
-
exports.default = parse;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default function rng(): Uint8Array;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
let getRandomValues;
|
|
4
|
-
const rnds8 = new Uint8Array(16);
|
|
5
|
-
function rng() {
|
|
6
|
-
if (!getRandomValues) {
|
|
7
|
-
if (typeof crypto === 'undefined' || !crypto.getRandomValues) {
|
|
8
|
-
throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');
|
|
9
|
-
}
|
|
10
|
-
getRandomValues = crypto.getRandomValues.bind(crypto);
|
|
11
|
-
}
|
|
12
|
-
return getRandomValues(rnds8);
|
|
13
|
-
}
|
|
14
|
-
exports.default = rng;
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
function f(s, x, y, z) {
|
|
4
|
-
switch (s) {
|
|
5
|
-
case 0:
|
|
6
|
-
return (x & y) ^ (~x & z);
|
|
7
|
-
case 1:
|
|
8
|
-
return x ^ y ^ z;
|
|
9
|
-
case 2:
|
|
10
|
-
return (x & y) ^ (x & z) ^ (y & z);
|
|
11
|
-
case 3:
|
|
12
|
-
return x ^ y ^ z;
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
function ROTL(x, n) {
|
|
16
|
-
return (x << n) | (x >>> (32 - n));
|
|
17
|
-
}
|
|
18
|
-
function sha1(bytes) {
|
|
19
|
-
const K = [0x5a827999, 0x6ed9eba1, 0x8f1bbcdc, 0xca62c1d6];
|
|
20
|
-
const H = [0x67452301, 0xefcdab89, 0x98badcfe, 0x10325476, 0xc3d2e1f0];
|
|
21
|
-
const newBytes = new Uint8Array(bytes.length + 1);
|
|
22
|
-
newBytes.set(bytes);
|
|
23
|
-
newBytes[bytes.length] = 0x80;
|
|
24
|
-
bytes = newBytes;
|
|
25
|
-
const l = bytes.length / 4 + 2;
|
|
26
|
-
const N = Math.ceil(l / 16);
|
|
27
|
-
const M = new Array(N);
|
|
28
|
-
for (let i = 0; i < N; ++i) {
|
|
29
|
-
const arr = new Uint32Array(16);
|
|
30
|
-
for (let j = 0; j < 16; ++j) {
|
|
31
|
-
arr[j] =
|
|
32
|
-
(bytes[i * 64 + j * 4] << 24) |
|
|
33
|
-
(bytes[i * 64 + j * 4 + 1] << 16) |
|
|
34
|
-
(bytes[i * 64 + j * 4 + 2] << 8) |
|
|
35
|
-
bytes[i * 64 + j * 4 + 3];
|
|
36
|
-
}
|
|
37
|
-
M[i] = arr;
|
|
38
|
-
}
|
|
39
|
-
M[N - 1][14] = ((bytes.length - 1) * 8) / Math.pow(2, 32);
|
|
40
|
-
M[N - 1][14] = Math.floor(M[N - 1][14]);
|
|
41
|
-
M[N - 1][15] = ((bytes.length - 1) * 8) & 0xffffffff;
|
|
42
|
-
for (let i = 0; i < N; ++i) {
|
|
43
|
-
const W = new Uint32Array(80);
|
|
44
|
-
for (let t = 0; t < 16; ++t) {
|
|
45
|
-
W[t] = M[i][t];
|
|
46
|
-
}
|
|
47
|
-
for (let t = 16; t < 80; ++t) {
|
|
48
|
-
W[t] = ROTL(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1);
|
|
49
|
-
}
|
|
50
|
-
let a = H[0];
|
|
51
|
-
let b = H[1];
|
|
52
|
-
let c = H[2];
|
|
53
|
-
let d = H[3];
|
|
54
|
-
let e = H[4];
|
|
55
|
-
for (let t = 0; t < 80; ++t) {
|
|
56
|
-
const s = Math.floor(t / 20);
|
|
57
|
-
const T = (ROTL(a, 5) + f(s, b, c, d) + e + K[s] + W[t]) >>> 0;
|
|
58
|
-
e = d;
|
|
59
|
-
d = c;
|
|
60
|
-
c = ROTL(b, 30) >>> 0;
|
|
61
|
-
b = a;
|
|
62
|
-
a = T;
|
|
63
|
-
}
|
|
64
|
-
H[0] = (H[0] + a) >>> 0;
|
|
65
|
-
H[1] = (H[1] + b) >>> 0;
|
|
66
|
-
H[2] = (H[2] + c) >>> 0;
|
|
67
|
-
H[3] = (H[3] + d) >>> 0;
|
|
68
|
-
H[4] = (H[4] + e) >>> 0;
|
|
69
|
-
}
|
|
70
|
-
return Uint8Array.of(H[0] >> 24, H[0] >> 16, H[0] >> 8, H[0], H[1] >> 24, H[1] >> 16, H[1] >> 8, H[1], H[2] >> 24, H[2] >> 16, H[2] >> 8, H[2], H[3] >> 24, H[3] >> 16, H[3] >> 8, H[3], H[4] >> 24, H[4] >> 16, H[4] >> 8, H[4]);
|
|
71
|
-
}
|
|
72
|
-
exports.default = sha1;
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.unsafeStringify = void 0;
|
|
4
|
-
const validate_js_1 = require("./validate.js");
|
|
5
|
-
const byteToHex = [];
|
|
6
|
-
for (let i = 0; i < 256; ++i) {
|
|
7
|
-
byteToHex.push((i + 0x100).toString(16).slice(1));
|
|
8
|
-
}
|
|
9
|
-
function unsafeStringify(arr, offset = 0) {
|
|
10
|
-
return (byteToHex[arr[offset + 0]] +
|
|
11
|
-
byteToHex[arr[offset + 1]] +
|
|
12
|
-
byteToHex[arr[offset + 2]] +
|
|
13
|
-
byteToHex[arr[offset + 3]] +
|
|
14
|
-
'-' +
|
|
15
|
-
byteToHex[arr[offset + 4]] +
|
|
16
|
-
byteToHex[arr[offset + 5]] +
|
|
17
|
-
'-' +
|
|
18
|
-
byteToHex[arr[offset + 6]] +
|
|
19
|
-
byteToHex[arr[offset + 7]] +
|
|
20
|
-
'-' +
|
|
21
|
-
byteToHex[arr[offset + 8]] +
|
|
22
|
-
byteToHex[arr[offset + 9]] +
|
|
23
|
-
'-' +
|
|
24
|
-
byteToHex[arr[offset + 10]] +
|
|
25
|
-
byteToHex[arr[offset + 11]] +
|
|
26
|
-
byteToHex[arr[offset + 12]] +
|
|
27
|
-
byteToHex[arr[offset + 13]] +
|
|
28
|
-
byteToHex[arr[offset + 14]] +
|
|
29
|
-
byteToHex[arr[offset + 15]]).toLowerCase();
|
|
30
|
-
}
|
|
31
|
-
exports.unsafeStringify = unsafeStringify;
|
|
32
|
-
function stringify(arr, offset = 0) {
|
|
33
|
-
const uuid = unsafeStringify(arr, offset);
|
|
34
|
-
if (!(0, validate_js_1.default)(uuid)) {
|
|
35
|
-
throw TypeError('Stringified UUID is invalid');
|
|
36
|
-
}
|
|
37
|
-
return uuid;
|
|
38
|
-
}
|
|
39
|
-
exports.default = stringify;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
export type UUIDTypes<TBuf extends Uint8Array = Uint8Array> = string | TBuf;
|
|
2
|
-
export type Version1Options = {
|
|
3
|
-
node?: Uint8Array;
|
|
4
|
-
clockseq?: number;
|
|
5
|
-
random?: Uint8Array;
|
|
6
|
-
rng?: () => Uint8Array;
|
|
7
|
-
msecs?: number;
|
|
8
|
-
nsecs?: number;
|
|
9
|
-
_v6?: boolean;
|
|
10
|
-
};
|
|
11
|
-
export type Version4Options = {
|
|
12
|
-
random?: Uint8Array;
|
|
13
|
-
rng?: () => Uint8Array;
|
|
14
|
-
};
|
|
15
|
-
export type Version6Options = Version1Options;
|
|
16
|
-
export type Version7Options = {
|
|
17
|
-
random?: Uint8Array;
|
|
18
|
-
msecs?: number;
|
|
19
|
-
seq?: number;
|
|
20
|
-
rng?: () => Uint8Array;
|
|
21
|
-
};
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const assert = require("assert");
|
|
4
|
-
const v1_js_1 = require("./v1.js");
|
|
5
|
-
const v3_js_1 = require("./v3.js");
|
|
6
|
-
const v4_js_1 = require("./v4.js");
|
|
7
|
-
const v5_js_1 = require("./v5.js");
|
|
8
|
-
const v6_js_1 = require("./v6.js");
|
|
9
|
-
const v7_js_1 = require("./v7.js");
|
|
10
|
-
function usage() {
|
|
11
|
-
console.log('Usage:');
|
|
12
|
-
console.log(' uuid');
|
|
13
|
-
console.log(' uuid v1');
|
|
14
|
-
console.log(' uuid v3 <name> <namespace uuid>');
|
|
15
|
-
console.log(' uuid v4');
|
|
16
|
-
console.log(' uuid v5 <name> <namespace uuid>');
|
|
17
|
-
console.log(' uuid v6');
|
|
18
|
-
console.log(' uuid v7');
|
|
19
|
-
console.log(' uuid --help');
|
|
20
|
-
console.log('\nNote: <namespace uuid> may be "URL" or "DNS" to use the corresponding UUIDs defined by RFC9562');
|
|
21
|
-
}
|
|
22
|
-
const args = process.argv.slice(2);
|
|
23
|
-
if (args.indexOf('--help') >= 0) {
|
|
24
|
-
usage();
|
|
25
|
-
process.exit(0);
|
|
26
|
-
}
|
|
27
|
-
const version = args.shift() || 'v4';
|
|
28
|
-
switch (version) {
|
|
29
|
-
case 'v1':
|
|
30
|
-
console.log((0, v1_js_1.default)());
|
|
31
|
-
break;
|
|
32
|
-
case 'v3': {
|
|
33
|
-
const name = args.shift();
|
|
34
|
-
let namespace = args.shift();
|
|
35
|
-
assert.ok(name != null, 'v3 name not specified');
|
|
36
|
-
assert.ok(namespace != null, 'v3 namespace not specified');
|
|
37
|
-
if (namespace === 'URL') {
|
|
38
|
-
namespace = v3_js_1.default.URL;
|
|
39
|
-
}
|
|
40
|
-
if (namespace === 'DNS') {
|
|
41
|
-
namespace = v3_js_1.default.DNS;
|
|
42
|
-
}
|
|
43
|
-
console.log((0, v3_js_1.default)(name, namespace));
|
|
44
|
-
break;
|
|
45
|
-
}
|
|
46
|
-
case 'v4':
|
|
47
|
-
console.log((0, v4_js_1.default)());
|
|
48
|
-
break;
|
|
49
|
-
case 'v5': {
|
|
50
|
-
const name = args.shift();
|
|
51
|
-
let namespace = args.shift();
|
|
52
|
-
assert.ok(name != null, 'v5 name not specified');
|
|
53
|
-
assert.ok(namespace != null, 'v5 namespace not specified');
|
|
54
|
-
if (namespace === 'URL') {
|
|
55
|
-
namespace = v5_js_1.default.URL;
|
|
56
|
-
}
|
|
57
|
-
if (namespace === 'DNS') {
|
|
58
|
-
namespace = v5_js_1.default.DNS;
|
|
59
|
-
}
|
|
60
|
-
console.log((0, v5_js_1.default)(name, namespace));
|
|
61
|
-
break;
|
|
62
|
-
}
|
|
63
|
-
case 'v6':
|
|
64
|
-
console.log((0, v6_js_1.default)());
|
|
65
|
-
break;
|
|
66
|
-
case 'v7':
|
|
67
|
-
console.log((0, v7_js_1.default)());
|
|
68
|
-
break;
|
|
69
|
-
default:
|
|
70
|
-
usage();
|
|
71
|
-
process.exit(1);
|
|
72
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { Version1Options } from './types.js';
|
|
2
|
-
type V1State = {
|
|
3
|
-
node?: Uint8Array;
|
|
4
|
-
clockseq?: number;
|
|
5
|
-
msecs?: number;
|
|
6
|
-
nsecs?: number;
|
|
7
|
-
};
|
|
8
|
-
declare function v1(options?: Version1Options, buf?: undefined, offset?: number): string;
|
|
9
|
-
declare function v1<Buf extends Uint8Array = Uint8Array>(options: Version1Options | undefined, buf: Buf, offset?: number): Buf;
|
|
10
|
-
export declare function updateV1State(state: V1State, now: number, rnds: Uint8Array): V1State;
|
|
11
|
-
export default v1;
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.updateV1State = void 0;
|
|
4
|
-
const rng_js_1 = require("./rng.js");
|
|
5
|
-
const stringify_js_1 = require("./stringify.js");
|
|
6
|
-
const _state = {};
|
|
7
|
-
function v1(options, buf, offset) {
|
|
8
|
-
let bytes;
|
|
9
|
-
const isV6 = options?._v6 ?? false;
|
|
10
|
-
if (options) {
|
|
11
|
-
const optionsKeys = Object.keys(options);
|
|
12
|
-
if (optionsKeys.length === 1 && optionsKeys[0] === '_v6') {
|
|
13
|
-
options = undefined;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
if (options) {
|
|
17
|
-
bytes = v1Bytes(options.random ?? options.rng?.() ?? (0, rng_js_1.default)(), options.msecs, options.nsecs, options.clockseq, options.node, buf, offset);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
const now = Date.now();
|
|
21
|
-
const rnds = (0, rng_js_1.default)();
|
|
22
|
-
updateV1State(_state, now, rnds);
|
|
23
|
-
bytes = v1Bytes(rnds, _state.msecs, _state.nsecs, isV6 ? undefined : _state.clockseq, isV6 ? undefined : _state.node, buf, offset);
|
|
24
|
-
}
|
|
25
|
-
return buf ?? (0, stringify_js_1.unsafeStringify)(bytes);
|
|
26
|
-
}
|
|
27
|
-
function updateV1State(state, now, rnds) {
|
|
28
|
-
state.msecs ??= -Infinity;
|
|
29
|
-
state.nsecs ??= 0;
|
|
30
|
-
if (now === state.msecs) {
|
|
31
|
-
state.nsecs++;
|
|
32
|
-
if (state.nsecs >= 10000) {
|
|
33
|
-
state.node = undefined;
|
|
34
|
-
state.nsecs = 0;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
else if (now > state.msecs) {
|
|
38
|
-
state.nsecs = 0;
|
|
39
|
-
}
|
|
40
|
-
else if (now < state.msecs) {
|
|
41
|
-
state.node = undefined;
|
|
42
|
-
}
|
|
43
|
-
if (!state.node) {
|
|
44
|
-
state.node = rnds.slice(10, 16);
|
|
45
|
-
state.node[0] |= 0x01;
|
|
46
|
-
state.clockseq = ((rnds[8] << 8) | rnds[9]) & 0x3fff;
|
|
47
|
-
}
|
|
48
|
-
state.msecs = now;
|
|
49
|
-
return state;
|
|
50
|
-
}
|
|
51
|
-
exports.updateV1State = updateV1State;
|
|
52
|
-
function v1Bytes(rnds, msecs, nsecs, clockseq, node, buf, offset = 0) {
|
|
53
|
-
if (rnds.length < 16) {
|
|
54
|
-
throw new Error('Random bytes length must be >= 16');
|
|
55
|
-
}
|
|
56
|
-
if (!buf) {
|
|
57
|
-
buf = new Uint8Array(16);
|
|
58
|
-
offset = 0;
|
|
59
|
-
}
|
|
60
|
-
else {
|
|
61
|
-
if (offset < 0 || offset + 16 > buf.length) {
|
|
62
|
-
throw new RangeError(`UUID byte range ${offset}:${offset + 15} is out of buffer bounds`);
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
msecs ??= Date.now();
|
|
66
|
-
nsecs ??= 0;
|
|
67
|
-
clockseq ??= ((rnds[8] << 8) | rnds[9]) & 0x3fff;
|
|
68
|
-
node ??= rnds.slice(10, 16);
|
|
69
|
-
msecs += 12219292800000;
|
|
70
|
-
const tl = ((msecs & 0xfffffff) * 10000 + nsecs) % 0x100000000;
|
|
71
|
-
buf[offset++] = (tl >>> 24) & 0xff;
|
|
72
|
-
buf[offset++] = (tl >>> 16) & 0xff;
|
|
73
|
-
buf[offset++] = (tl >>> 8) & 0xff;
|
|
74
|
-
buf[offset++] = tl & 0xff;
|
|
75
|
-
const tmh = ((msecs / 0x100000000) * 10000) & 0xfffffff;
|
|
76
|
-
buf[offset++] = (tmh >>> 8) & 0xff;
|
|
77
|
-
buf[offset++] = tmh & 0xff;
|
|
78
|
-
buf[offset++] = ((tmh >>> 24) & 0xf) | 0x10;
|
|
79
|
-
buf[offset++] = (tmh >>> 16) & 0xff;
|
|
80
|
-
buf[offset++] = (clockseq >>> 8) | 0x80;
|
|
81
|
-
buf[offset++] = clockseq & 0xff;
|
|
82
|
-
for (let n = 0; n < 6; ++n) {
|
|
83
|
-
buf[offset++] = node[n];
|
|
84
|
-
}
|
|
85
|
-
return buf;
|
|
86
|
-
}
|
|
87
|
-
exports.default = v1;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const parse_js_1 = require("./parse.js");
|
|
4
|
-
const stringify_js_1 = require("./stringify.js");
|
|
5
|
-
function v1ToV6(uuid) {
|
|
6
|
-
const v1Bytes = typeof uuid === 'string' ? (0, parse_js_1.default)(uuid) : uuid;
|
|
7
|
-
const v6Bytes = _v1ToV6(v1Bytes);
|
|
8
|
-
return typeof uuid === 'string' ? (0, stringify_js_1.unsafeStringify)(v6Bytes) : v6Bytes;
|
|
9
|
-
}
|
|
10
|
-
exports.default = v1ToV6;
|
|
11
|
-
function _v1ToV6(v1Bytes) {
|
|
12
|
-
return Uint8Array.of(((v1Bytes[6] & 0x0f) << 4) | ((v1Bytes[7] >> 4) & 0x0f), ((v1Bytes[7] & 0x0f) << 4) | ((v1Bytes[4] & 0xf0) >> 4), ((v1Bytes[4] & 0x0f) << 4) | ((v1Bytes[5] & 0xf0) >> 4), ((v1Bytes[5] & 0x0f) << 4) | ((v1Bytes[0] & 0xf0) >> 4), ((v1Bytes[0] & 0x0f) << 4) | ((v1Bytes[1] & 0xf0) >> 4), ((v1Bytes[1] & 0x0f) << 4) | ((v1Bytes[2] & 0xf0) >> 4), 0x60 | (v1Bytes[2] & 0x0f), v1Bytes[3], v1Bytes[8], v1Bytes[9], v1Bytes[10], v1Bytes[11], v1Bytes[12], v1Bytes[13], v1Bytes[14], v1Bytes[15]);
|
|
13
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { UUIDTypes } from './types.js';
|
|
2
|
-
export { DNS, URL } from './v35.js';
|
|
3
|
-
declare function v3(value: string | Uint8Array, namespace: UUIDTypes, buf?: undefined, offset?: number): string;
|
|
4
|
-
declare function v3<TBuf extends Uint8Array = Uint8Array>(value: string | Uint8Array, namespace: UUIDTypes, buf: TBuf, offset?: number): TBuf;
|
|
5
|
-
declare namespace v3 {
|
|
6
|
-
var DNS: string;
|
|
7
|
-
var URL: string;
|
|
8
|
-
}
|
|
9
|
-
export default v3;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.URL = exports.DNS = void 0;
|
|
4
|
-
const md5_js_1 = require("./md5.js");
|
|
5
|
-
const v35_js_1 = require("./v35.js");
|
|
6
|
-
var v35_js_2 = require("./v35.js");
|
|
7
|
-
Object.defineProperty(exports, "DNS", { enumerable: true, get: function () { return v35_js_2.DNS; } });
|
|
8
|
-
Object.defineProperty(exports, "URL", { enumerable: true, get: function () { return v35_js_2.URL; } });
|
|
9
|
-
function v3(value, namespace, buf, offset) {
|
|
10
|
-
return (0, v35_js_1.default)(0x30, md5_js_1.default, value, namespace, buf, offset);
|
|
11
|
-
}
|
|
12
|
-
v3.DNS = v35_js_1.DNS;
|
|
13
|
-
v3.URL = v35_js_1.URL;
|
|
14
|
-
exports.default = v3;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { UUIDTypes } from './types.js';
|
|
2
|
-
export declare function stringToBytes(str: string): Uint8Array;
|
|
3
|
-
export declare const DNS = "6ba7b810-9dad-11d1-80b4-00c04fd430c8";
|
|
4
|
-
export declare const URL = "6ba7b811-9dad-11d1-80b4-00c04fd430c8";
|
|
5
|
-
type HashFunction = (bytes: Uint8Array) => Uint8Array;
|
|
6
|
-
export default function v35<TBuf extends Uint8Array = Uint8Array>(version: 0x30 | 0x50, hash: HashFunction, value: string | Uint8Array, namespace: UUIDTypes, buf?: TBuf, offset?: number): UUIDTypes<TBuf>;
|
|
7
|
-
export {};
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.URL = exports.DNS = exports.stringToBytes = void 0;
|
|
4
|
-
const parse_js_1 = require("./parse.js");
|
|
5
|
-
const stringify_js_1 = require("./stringify.js");
|
|
6
|
-
function stringToBytes(str) {
|
|
7
|
-
str = unescape(encodeURIComponent(str));
|
|
8
|
-
const bytes = new Uint8Array(str.length);
|
|
9
|
-
for (let i = 0; i < str.length; ++i) {
|
|
10
|
-
bytes[i] = str.charCodeAt(i);
|
|
11
|
-
}
|
|
12
|
-
return bytes;
|
|
13
|
-
}
|
|
14
|
-
exports.stringToBytes = stringToBytes;
|
|
15
|
-
exports.DNS = '6ba7b810-9dad-11d1-80b4-00c04fd430c8';
|
|
16
|
-
exports.URL = '6ba7b811-9dad-11d1-80b4-00c04fd430c8';
|
|
17
|
-
function v35(version, hash, value, namespace, buf, offset) {
|
|
18
|
-
const valueBytes = typeof value === 'string' ? stringToBytes(value) : value;
|
|
19
|
-
const namespaceBytes = typeof namespace === 'string' ? (0, parse_js_1.default)(namespace) : namespace;
|
|
20
|
-
if (typeof namespace === 'string') {
|
|
21
|
-
namespace = (0, parse_js_1.default)(namespace);
|
|
22
|
-
}
|
|
23
|
-
if (namespace?.length !== 16) {
|
|
24
|
-
throw TypeError('Namespace must be array-like (16 iterable integer values, 0-255)');
|
|
25
|
-
}
|
|
26
|
-
let bytes = new Uint8Array(16 + valueBytes.length);
|
|
27
|
-
bytes.set(namespaceBytes);
|
|
28
|
-
bytes.set(valueBytes, namespaceBytes.length);
|
|
29
|
-
bytes = hash(bytes);
|
|
30
|
-
bytes[6] = (bytes[6] & 0x0f) | version;
|
|
31
|
-
bytes[8] = (bytes[8] & 0x3f) | 0x80;
|
|
32
|
-
if (buf) {
|
|
33
|
-
offset = offset || 0;
|
|
34
|
-
for (let i = 0; i < 16; ++i) {
|
|
35
|
-
buf[offset + i] = bytes[i];
|
|
36
|
-
}
|
|
37
|
-
return buf;
|
|
38
|
-
}
|
|
39
|
-
return (0, stringify_js_1.unsafeStringify)(bytes);
|
|
40
|
-
}
|
|
41
|
-
exports.default = v35;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { Version4Options } from './types.js';
|
|
2
|
-
declare function v4(options?: Version4Options, buf?: undefined, offset?: number): string;
|
|
3
|
-
declare function v4<TBuf extends Uint8Array = Uint8Array>(options: Version4Options | undefined, buf: TBuf, offset?: number): TBuf;
|
|
4
|
-
export default v4;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const native_js_1 = require("./native.js");
|
|
4
|
-
const rng_js_1 = require("./rng.js");
|
|
5
|
-
const stringify_js_1 = require("./stringify.js");
|
|
6
|
-
function v4(options, buf, offset) {
|
|
7
|
-
if (native_js_1.default.randomUUID && !buf && !options) {
|
|
8
|
-
return native_js_1.default.randomUUID();
|
|
9
|
-
}
|
|
10
|
-
options = options || {};
|
|
11
|
-
const rnds = options.random ?? options.rng?.() ?? (0, rng_js_1.default)();
|
|
12
|
-
if (rnds.length < 16) {
|
|
13
|
-
throw new Error('Random bytes length must be >= 16');
|
|
14
|
-
}
|
|
15
|
-
rnds[6] = (rnds[6] & 0x0f) | 0x40;
|
|
16
|
-
rnds[8] = (rnds[8] & 0x3f) | 0x80;
|
|
17
|
-
if (buf) {
|
|
18
|
-
offset = offset || 0;
|
|
19
|
-
if (offset < 0 || offset + 16 > buf.length) {
|
|
20
|
-
throw new RangeError(`UUID byte range ${offset}:${offset + 15} is out of buffer bounds`);
|
|
21
|
-
}
|
|
22
|
-
for (let i = 0; i < 16; ++i) {
|
|
23
|
-
buf[offset + i] = rnds[i];
|
|
24
|
-
}
|
|
25
|
-
return buf;
|
|
26
|
-
}
|
|
27
|
-
return (0, stringify_js_1.unsafeStringify)(rnds);
|
|
28
|
-
}
|
|
29
|
-
exports.default = v4;
|