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,83 +0,0 @@
|
|
|
1
|
-
import rng from './rng.js';
|
|
2
|
-
import { unsafeStringify } from './stringify.js';
|
|
3
|
-
const _state = {};
|
|
4
|
-
function v1(options, buf, offset) {
|
|
5
|
-
let bytes;
|
|
6
|
-
const isV6 = options?._v6 ?? false;
|
|
7
|
-
if (options) {
|
|
8
|
-
const optionsKeys = Object.keys(options);
|
|
9
|
-
if (optionsKeys.length === 1 && optionsKeys[0] === '_v6') {
|
|
10
|
-
options = undefined;
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
if (options) {
|
|
14
|
-
bytes = v1Bytes(options.random ?? options.rng?.() ?? rng(), options.msecs, options.nsecs, options.clockseq, options.node, buf, offset);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
const now = Date.now();
|
|
18
|
-
const rnds = rng();
|
|
19
|
-
updateV1State(_state, now, rnds);
|
|
20
|
-
bytes = v1Bytes(rnds, _state.msecs, _state.nsecs, isV6 ? undefined : _state.clockseq, isV6 ? undefined : _state.node, buf, offset);
|
|
21
|
-
}
|
|
22
|
-
return buf ?? unsafeStringify(bytes);
|
|
23
|
-
}
|
|
24
|
-
export function updateV1State(state, now, rnds) {
|
|
25
|
-
state.msecs ??= -Infinity;
|
|
26
|
-
state.nsecs ??= 0;
|
|
27
|
-
if (now === state.msecs) {
|
|
28
|
-
state.nsecs++;
|
|
29
|
-
if (state.nsecs >= 10000) {
|
|
30
|
-
state.node = undefined;
|
|
31
|
-
state.nsecs = 0;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
else if (now > state.msecs) {
|
|
35
|
-
state.nsecs = 0;
|
|
36
|
-
}
|
|
37
|
-
else if (now < state.msecs) {
|
|
38
|
-
state.node = undefined;
|
|
39
|
-
}
|
|
40
|
-
if (!state.node) {
|
|
41
|
-
state.node = rnds.slice(10, 16);
|
|
42
|
-
state.node[0] |= 0x01;
|
|
43
|
-
state.clockseq = ((rnds[8] << 8) | rnds[9]) & 0x3fff;
|
|
44
|
-
}
|
|
45
|
-
state.msecs = now;
|
|
46
|
-
return state;
|
|
47
|
-
}
|
|
48
|
-
function v1Bytes(rnds, msecs, nsecs, clockseq, node, buf, offset = 0) {
|
|
49
|
-
if (rnds.length < 16) {
|
|
50
|
-
throw new Error('Random bytes length must be >= 16');
|
|
51
|
-
}
|
|
52
|
-
if (!buf) {
|
|
53
|
-
buf = new Uint8Array(16);
|
|
54
|
-
offset = 0;
|
|
55
|
-
}
|
|
56
|
-
else {
|
|
57
|
-
if (offset < 0 || offset + 16 > buf.length) {
|
|
58
|
-
throw new RangeError(`UUID byte range ${offset}:${offset + 15} is out of buffer bounds`);
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
msecs ??= Date.now();
|
|
62
|
-
nsecs ??= 0;
|
|
63
|
-
clockseq ??= ((rnds[8] << 8) | rnds[9]) & 0x3fff;
|
|
64
|
-
node ??= rnds.slice(10, 16);
|
|
65
|
-
msecs += 12219292800000;
|
|
66
|
-
const tl = ((msecs & 0xfffffff) * 10000 + nsecs) % 0x100000000;
|
|
67
|
-
buf[offset++] = (tl >>> 24) & 0xff;
|
|
68
|
-
buf[offset++] = (tl >>> 16) & 0xff;
|
|
69
|
-
buf[offset++] = (tl >>> 8) & 0xff;
|
|
70
|
-
buf[offset++] = tl & 0xff;
|
|
71
|
-
const tmh = ((msecs / 0x100000000) * 10000) & 0xfffffff;
|
|
72
|
-
buf[offset++] = (tmh >>> 8) & 0xff;
|
|
73
|
-
buf[offset++] = tmh & 0xff;
|
|
74
|
-
buf[offset++] = ((tmh >>> 24) & 0xf) | 0x10;
|
|
75
|
-
buf[offset++] = (tmh >>> 16) & 0xff;
|
|
76
|
-
buf[offset++] = (clockseq >>> 8) | 0x80;
|
|
77
|
-
buf[offset++] = clockseq & 0xff;
|
|
78
|
-
for (let n = 0; n < 6; ++n) {
|
|
79
|
-
buf[offset++] = node[n];
|
|
80
|
-
}
|
|
81
|
-
return buf;
|
|
82
|
-
}
|
|
83
|
-
export default v1;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import parse from './parse.js';
|
|
2
|
-
import { unsafeStringify } from './stringify.js';
|
|
3
|
-
export default function v1ToV6(uuid) {
|
|
4
|
-
const v1Bytes = typeof uuid === 'string' ? parse(uuid) : uuid;
|
|
5
|
-
const v6Bytes = _v1ToV6(v1Bytes);
|
|
6
|
-
return typeof uuid === 'string' ? unsafeStringify(v6Bytes) : v6Bytes;
|
|
7
|
-
}
|
|
8
|
-
function _v1ToV6(v1Bytes) {
|
|
9
|
-
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]);
|
|
10
|
-
}
|
|
@@ -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,9 +0,0 @@
|
|
|
1
|
-
import md5 from './md5.js';
|
|
2
|
-
import v35, { DNS, URL } from './v35.js';
|
|
3
|
-
export { DNS, URL } from './v35.js';
|
|
4
|
-
function v3(value, namespace, buf, offset) {
|
|
5
|
-
return v35(0x30, md5, value, namespace, buf, offset);
|
|
6
|
-
}
|
|
7
|
-
v3.DNS = DNS;
|
|
8
|
-
v3.URL = URL;
|
|
9
|
-
export 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,36 +0,0 @@
|
|
|
1
|
-
import parse from './parse.js';
|
|
2
|
-
import { unsafeStringify } from './stringify.js';
|
|
3
|
-
export function stringToBytes(str) {
|
|
4
|
-
str = unescape(encodeURIComponent(str));
|
|
5
|
-
const bytes = new Uint8Array(str.length);
|
|
6
|
-
for (let i = 0; i < str.length; ++i) {
|
|
7
|
-
bytes[i] = str.charCodeAt(i);
|
|
8
|
-
}
|
|
9
|
-
return bytes;
|
|
10
|
-
}
|
|
11
|
-
export const DNS = '6ba7b810-9dad-11d1-80b4-00c04fd430c8';
|
|
12
|
-
export const URL = '6ba7b811-9dad-11d1-80b4-00c04fd430c8';
|
|
13
|
-
export default function v35(version, hash, value, namespace, buf, offset) {
|
|
14
|
-
const valueBytes = typeof value === 'string' ? stringToBytes(value) : value;
|
|
15
|
-
const namespaceBytes = typeof namespace === 'string' ? parse(namespace) : namespace;
|
|
16
|
-
if (typeof namespace === 'string') {
|
|
17
|
-
namespace = parse(namespace);
|
|
18
|
-
}
|
|
19
|
-
if (namespace?.length !== 16) {
|
|
20
|
-
throw TypeError('Namespace must be array-like (16 iterable integer values, 0-255)');
|
|
21
|
-
}
|
|
22
|
-
let bytes = new Uint8Array(16 + valueBytes.length);
|
|
23
|
-
bytes.set(namespaceBytes);
|
|
24
|
-
bytes.set(valueBytes, namespaceBytes.length);
|
|
25
|
-
bytes = hash(bytes);
|
|
26
|
-
bytes[6] = (bytes[6] & 0x0f) | version;
|
|
27
|
-
bytes[8] = (bytes[8] & 0x3f) | 0x80;
|
|
28
|
-
if (buf) {
|
|
29
|
-
offset = offset || 0;
|
|
30
|
-
for (let i = 0; i < 16; ++i) {
|
|
31
|
-
buf[offset + i] = bytes[i];
|
|
32
|
-
}
|
|
33
|
-
return buf;
|
|
34
|
-
}
|
|
35
|
-
return unsafeStringify(bytes);
|
|
36
|
-
}
|
|
@@ -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,27 +0,0 @@
|
|
|
1
|
-
import native from './native.js';
|
|
2
|
-
import rng from './rng.js';
|
|
3
|
-
import { unsafeStringify } from './stringify.js';
|
|
4
|
-
function v4(options, buf, offset) {
|
|
5
|
-
if (native.randomUUID && !buf && !options) {
|
|
6
|
-
return native.randomUUID();
|
|
7
|
-
}
|
|
8
|
-
options = options || {};
|
|
9
|
-
const rnds = options.random ?? options.rng?.() ?? rng();
|
|
10
|
-
if (rnds.length < 16) {
|
|
11
|
-
throw new Error('Random bytes length must be >= 16');
|
|
12
|
-
}
|
|
13
|
-
rnds[6] = (rnds[6] & 0x0f) | 0x40;
|
|
14
|
-
rnds[8] = (rnds[8] & 0x3f) | 0x80;
|
|
15
|
-
if (buf) {
|
|
16
|
-
offset = offset || 0;
|
|
17
|
-
if (offset < 0 || offset + 16 > buf.length) {
|
|
18
|
-
throw new RangeError(`UUID byte range ${offset}:${offset + 15} is out of buffer bounds`);
|
|
19
|
-
}
|
|
20
|
-
for (let i = 0; i < 16; ++i) {
|
|
21
|
-
buf[offset + i] = rnds[i];
|
|
22
|
-
}
|
|
23
|
-
return buf;
|
|
24
|
-
}
|
|
25
|
-
return unsafeStringify(rnds);
|
|
26
|
-
}
|
|
27
|
-
export default v4;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { UUIDTypes } from './types.js';
|
|
2
|
-
export { DNS, URL } from './v35.js';
|
|
3
|
-
declare function v5(value: string | Uint8Array, namespace: UUIDTypes, buf?: undefined, offset?: number): string;
|
|
4
|
-
declare function v5<TBuf extends Uint8Array = Uint8Array>(value: string | Uint8Array, namespace: UUIDTypes, buf: TBuf, offset?: number): TBuf;
|
|
5
|
-
declare namespace v5 {
|
|
6
|
-
var DNS: string;
|
|
7
|
-
var URL: string;
|
|
8
|
-
}
|
|
9
|
-
export default v5;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import sha1 from './sha1.js';
|
|
2
|
-
import v35, { DNS, URL } from './v35.js';
|
|
3
|
-
export { DNS, URL } from './v35.js';
|
|
4
|
-
function v5(value, namespace, buf, offset) {
|
|
5
|
-
return v35(0x50, sha1, value, namespace, buf, offset);
|
|
6
|
-
}
|
|
7
|
-
v5.DNS = DNS;
|
|
8
|
-
v5.URL = URL;
|
|
9
|
-
export default v5;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { Version6Options } from './types.js';
|
|
2
|
-
declare function v6(options?: Version6Options, buf?: undefined, offset?: number): string;
|
|
3
|
-
declare function v6<TBuf extends Uint8Array = Uint8Array>(options: Version6Options | undefined, buf: TBuf, offset?: number): TBuf;
|
|
4
|
-
export default v6;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { unsafeStringify } from './stringify.js';
|
|
2
|
-
import v1 from './v1.js';
|
|
3
|
-
import v1ToV6 from './v1ToV6.js';
|
|
4
|
-
function v6(options, buf, offset) {
|
|
5
|
-
options ??= {};
|
|
6
|
-
offset ??= 0;
|
|
7
|
-
let bytes = v1({ ...options, _v6: true }, new Uint8Array(16));
|
|
8
|
-
bytes = v1ToV6(bytes);
|
|
9
|
-
if (buf) {
|
|
10
|
-
for (let i = 0; i < 16; i++) {
|
|
11
|
-
buf[offset + i] = bytes[i];
|
|
12
|
-
}
|
|
13
|
-
return buf;
|
|
14
|
-
}
|
|
15
|
-
return unsafeStringify(bytes);
|
|
16
|
-
}
|
|
17
|
-
export default v6;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import parse from './parse.js';
|
|
2
|
-
import { unsafeStringify } from './stringify.js';
|
|
3
|
-
export default function v6ToV1(uuid) {
|
|
4
|
-
const v6Bytes = typeof uuid === 'string' ? parse(uuid) : uuid;
|
|
5
|
-
const v1Bytes = _v6ToV1(v6Bytes);
|
|
6
|
-
return typeof uuid === 'string' ? unsafeStringify(v1Bytes) : v1Bytes;
|
|
7
|
-
}
|
|
8
|
-
function _v6ToV1(v6Bytes) {
|
|
9
|
-
return Uint8Array.of(((v6Bytes[3] & 0x0f) << 4) | ((v6Bytes[4] >> 4) & 0x0f), ((v6Bytes[4] & 0x0f) << 4) | ((v6Bytes[5] & 0xf0) >> 4), ((v6Bytes[5] & 0x0f) << 4) | (v6Bytes[6] & 0x0f), v6Bytes[7], ((v6Bytes[1] & 0x0f) << 4) | ((v6Bytes[2] & 0xf0) >> 4), ((v6Bytes[2] & 0x0f) << 4) | ((v6Bytes[3] & 0xf0) >> 4), 0x10 | ((v6Bytes[0] & 0xf0) >> 4), ((v6Bytes[0] & 0x0f) << 4) | ((v6Bytes[1] & 0xf0) >> 4), v6Bytes[8], v6Bytes[9], v6Bytes[10], v6Bytes[11], v6Bytes[12], v6Bytes[13], v6Bytes[14], v6Bytes[15]);
|
|
10
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { Version7Options } from './types.js';
|
|
2
|
-
type V7State = {
|
|
3
|
-
msecs?: number;
|
|
4
|
-
seq?: number;
|
|
5
|
-
};
|
|
6
|
-
declare function v7(options?: Version7Options, buf?: undefined, offset?: number): string;
|
|
7
|
-
declare function v7<TBuf extends Uint8Array = Uint8Array>(options: Version7Options | undefined, buf: TBuf, offset?: number): TBuf;
|
|
8
|
-
export declare function updateV7State(state: V7State, now: number, rnds: Uint8Array): V7State;
|
|
9
|
-
export default v7;
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import rng from './rng.js';
|
|
2
|
-
import { unsafeStringify } from './stringify.js';
|
|
3
|
-
const _state = {};
|
|
4
|
-
function v7(options, buf, offset) {
|
|
5
|
-
let bytes;
|
|
6
|
-
if (options) {
|
|
7
|
-
bytes = v7Bytes(options.random ?? options.rng?.() ?? rng(), options.msecs, options.seq, buf, offset);
|
|
8
|
-
}
|
|
9
|
-
else {
|
|
10
|
-
const now = Date.now();
|
|
11
|
-
const rnds = rng();
|
|
12
|
-
updateV7State(_state, now, rnds);
|
|
13
|
-
bytes = v7Bytes(rnds, _state.msecs, _state.seq, buf, offset);
|
|
14
|
-
}
|
|
15
|
-
return buf ?? unsafeStringify(bytes);
|
|
16
|
-
}
|
|
17
|
-
export function updateV7State(state, now, rnds) {
|
|
18
|
-
state.msecs ??= -Infinity;
|
|
19
|
-
state.seq ??= 0;
|
|
20
|
-
if (now > state.msecs) {
|
|
21
|
-
state.seq = (rnds[6] << 23) | (rnds[7] << 16) | (rnds[8] << 8) | rnds[9];
|
|
22
|
-
state.msecs = now;
|
|
23
|
-
}
|
|
24
|
-
else {
|
|
25
|
-
state.seq = (state.seq + 1) | 0;
|
|
26
|
-
if (state.seq === 0) {
|
|
27
|
-
state.msecs++;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
return state;
|
|
31
|
-
}
|
|
32
|
-
function v7Bytes(rnds, msecs, seq, buf, offset = 0) {
|
|
33
|
-
if (rnds.length < 16) {
|
|
34
|
-
throw new Error('Random bytes length must be >= 16');
|
|
35
|
-
}
|
|
36
|
-
if (!buf) {
|
|
37
|
-
buf = new Uint8Array(16);
|
|
38
|
-
offset = 0;
|
|
39
|
-
}
|
|
40
|
-
else {
|
|
41
|
-
if (offset < 0 || offset + 16 > buf.length) {
|
|
42
|
-
throw new RangeError(`UUID byte range ${offset}:${offset + 15} is out of buffer bounds`);
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
msecs ??= Date.now();
|
|
46
|
-
seq ??= ((rnds[6] * 0x7f) << 24) | (rnds[7] << 16) | (rnds[8] << 8) | rnds[9];
|
|
47
|
-
buf[offset++] = (msecs / 0x10000000000) & 0xff;
|
|
48
|
-
buf[offset++] = (msecs / 0x100000000) & 0xff;
|
|
49
|
-
buf[offset++] = (msecs / 0x1000000) & 0xff;
|
|
50
|
-
buf[offset++] = (msecs / 0x10000) & 0xff;
|
|
51
|
-
buf[offset++] = (msecs / 0x100) & 0xff;
|
|
52
|
-
buf[offset++] = msecs & 0xff;
|
|
53
|
-
buf[offset++] = 0x70 | ((seq >>> 28) & 0x0f);
|
|
54
|
-
buf[offset++] = (seq >>> 20) & 0xff;
|
|
55
|
-
buf[offset++] = 0x80 | ((seq >>> 14) & 0x3f);
|
|
56
|
-
buf[offset++] = (seq >>> 6) & 0xff;
|
|
57
|
-
buf[offset++] = ((seq << 2) & 0xff) | (rnds[10] & 0x03);
|
|
58
|
-
buf[offset++] = rnds[11];
|
|
59
|
-
buf[offset++] = rnds[12];
|
|
60
|
-
buf[offset++] = rnds[13];
|
|
61
|
-
buf[offset++] = rnds[14];
|
|
62
|
-
buf[offset++] = rnds[15];
|
|
63
|
-
return buf;
|
|
64
|
-
}
|
|
65
|
-
export default v7;
|
|
@@ -1,132 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "uuid",
|
|
3
|
-
"version": "11.1.0",
|
|
4
|
-
"description": "RFC9562 UUIDs",
|
|
5
|
-
"type": "module",
|
|
6
|
-
"funding": [
|
|
7
|
-
"https://github.com/sponsors/broofa",
|
|
8
|
-
"https://github.com/sponsors/ctavan"
|
|
9
|
-
],
|
|
10
|
-
"commitlint": {
|
|
11
|
-
"extends": [
|
|
12
|
-
"@commitlint/config-conventional"
|
|
13
|
-
]
|
|
14
|
-
},
|
|
15
|
-
"keywords": [
|
|
16
|
-
"uuid",
|
|
17
|
-
"guid",
|
|
18
|
-
"rfc4122",
|
|
19
|
-
"rfc9562"
|
|
20
|
-
],
|
|
21
|
-
"license": "MIT",
|
|
22
|
-
"bin": {
|
|
23
|
-
"uuid": "./dist/esm/bin/uuid"
|
|
24
|
-
},
|
|
25
|
-
"sideEffects": false,
|
|
26
|
-
"main": "./dist/cjs/index.js",
|
|
27
|
-
"exports": {
|
|
28
|
-
".": {
|
|
29
|
-
"node": {
|
|
30
|
-
"import": "./dist/esm/index.js",
|
|
31
|
-
"require": "./dist/cjs/index.js"
|
|
32
|
-
},
|
|
33
|
-
"browser": {
|
|
34
|
-
"import": "./dist/esm-browser/index.js",
|
|
35
|
-
"require": "./dist/cjs-browser/index.js"
|
|
36
|
-
},
|
|
37
|
-
"default": "./dist/esm-browser/index.js"
|
|
38
|
-
},
|
|
39
|
-
"./package.json": "./package.json"
|
|
40
|
-
},
|
|
41
|
-
"module": "./dist/esm/index.js",
|
|
42
|
-
"browser": {
|
|
43
|
-
"./dist/esm/index.js": "./dist/esm-browser/index.js",
|
|
44
|
-
"./dist/cjs/index.js": "./dist/cjs-browser/index.js"
|
|
45
|
-
},
|
|
46
|
-
"files": [
|
|
47
|
-
"dist",
|
|
48
|
-
"!dist/**/test"
|
|
49
|
-
],
|
|
50
|
-
"devDependencies": {
|
|
51
|
-
"@babel/eslint-parser": "7.25.9",
|
|
52
|
-
"@commitlint/cli": "19.6.1",
|
|
53
|
-
"@commitlint/config-conventional": "19.6.0",
|
|
54
|
-
"@eslint/js": "9.17.0",
|
|
55
|
-
"@types/eslint__js": "8.42.3",
|
|
56
|
-
"bundlewatch": "0.4.0",
|
|
57
|
-
"commander": "12.1.0",
|
|
58
|
-
"eslint": "9.17.0",
|
|
59
|
-
"eslint-config-prettier": "9.1.0",
|
|
60
|
-
"eslint-plugin-prettier": "5.2.1",
|
|
61
|
-
"globals": "15.14.0",
|
|
62
|
-
"husky": "9.1.7",
|
|
63
|
-
"jest": "29.7.0",
|
|
64
|
-
"lint-staged": "15.2.11",
|
|
65
|
-
"neostandard": "0.12.0",
|
|
66
|
-
"npm-run-all": "4.1.5",
|
|
67
|
-
"prettier": "3.4.2",
|
|
68
|
-
"release-please": "16.15.0",
|
|
69
|
-
"runmd": "1.4.1",
|
|
70
|
-
"standard-version": "9.5.0",
|
|
71
|
-
"typescript": "5.0.4",
|
|
72
|
-
"typescript-eslint": "8.18.2"
|
|
73
|
-
},
|
|
74
|
-
"optionalDevDependencies": {
|
|
75
|
-
"@wdio/browserstack-service": "9.2.1",
|
|
76
|
-
"@wdio/cli": "9.2.1",
|
|
77
|
-
"@wdio/jasmine-framework": "9.2.1",
|
|
78
|
-
"@wdio/local-runner": "9.2.1",
|
|
79
|
-
"@wdio/spec-reporter": "9.1.3",
|
|
80
|
-
"@wdio/static-server-service": "9.1.3"
|
|
81
|
-
},
|
|
82
|
-
"scripts": {
|
|
83
|
-
"build": "./scripts/build.sh",
|
|
84
|
-
"build:watch": "tsc --watch -p tsconfig.esm.json",
|
|
85
|
-
"bundlewatch": "npm run pretest:browser && bundlewatch --config bundlewatch.config.json",
|
|
86
|
-
"docs:diff": "npm run docs && git diff --quiet README.md",
|
|
87
|
-
"docs": "npm run build && npx runmd --output=README.md README_js.md",
|
|
88
|
-
"eslint:check": "eslint src/ test/ examples/ *.[jt]s",
|
|
89
|
-
"eslint:fix": "eslint --fix src/ test/ examples/ *.[jt]s",
|
|
90
|
-
"examples:browser:rollup:build": "cd examples/browser-rollup && npm run build",
|
|
91
|
-
"examples:browser:webpack:build": "cd examples/browser-webpack && npm run build",
|
|
92
|
-
"examples:node:commonjs:test": "cd examples/node-commonjs && npm test",
|
|
93
|
-
"examples:node:esmodules:test": "cd examples/node-esmodules && npm test",
|
|
94
|
-
"examples:node:jest:test": "cd examples/node-jest && npm test",
|
|
95
|
-
"examples:node:typescript:test": "cd examples/typescript && npm test",
|
|
96
|
-
"lint": "npm run eslint:check && npm run prettier:check",
|
|
97
|
-
"md": "runmd --watch --output=README.md README_js.md",
|
|
98
|
-
"prepack": "npm run build -- --no-pack",
|
|
99
|
-
"prepare": "husky",
|
|
100
|
-
"prepublishOnly": "npm run build",
|
|
101
|
-
"pretest:benchmark": "npm run build",
|
|
102
|
-
"pretest:browser": "./scripts/iodd && npm run build && npm-run-all --parallel examples:browser:**",
|
|
103
|
-
"pretest:node": "npm run build",
|
|
104
|
-
"pretest": "npm run build",
|
|
105
|
-
"prettier:check": "prettier --check .",
|
|
106
|
-
"prettier:fix": "prettier --write .",
|
|
107
|
-
"release": "standard-version --no-verify",
|
|
108
|
-
"test:benchmark": "cd examples/benchmark && npm test",
|
|
109
|
-
"test:browser": "wdio run ./wdio.conf.js",
|
|
110
|
-
"test:node": "npm-run-all --parallel examples:node:**",
|
|
111
|
-
"test:watch": "node --test --enable-source-maps --watch dist/esm/test/*.js",
|
|
112
|
-
"test": "node --test --enable-source-maps dist/esm/test/*.js"
|
|
113
|
-
},
|
|
114
|
-
"repository": {
|
|
115
|
-
"type": "git",
|
|
116
|
-
"url": "https://github.com/uuidjs/uuid.git"
|
|
117
|
-
},
|
|
118
|
-
"lint-staged": {
|
|
119
|
-
"*": [
|
|
120
|
-
"prettier --no-error-on-unmatched-pattern --write"
|
|
121
|
-
],
|
|
122
|
-
"*.{js,jsx}": [
|
|
123
|
-
"eslint --no-error-on-unmatched-pattern --fix"
|
|
124
|
-
]
|
|
125
|
-
},
|
|
126
|
-
"standard-version": {
|
|
127
|
-
"scripts": {
|
|
128
|
-
"postchangelog": "prettier --write CHANGELOG.md"
|
|
129
|
-
}
|
|
130
|
-
},
|
|
131
|
-
"packageManager": "npm@11.0.0"
|
|
132
|
-
}
|