@aws/lsp-codewhisperer 0.0.9 → 0.0.11
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 +8 -0
- package/node_modules/@amzn/codewhisperer-streaming/package.json +4 -4
- package/node_modules/@aws/lsp-fqn/out/common/commonFqnWorkerPool.js +12 -25
- package/node_modules/@aws/lsp-fqn/out/common/commonFqnWorkerPool.js.map +1 -1
- package/node_modules/@aws/lsp-fqn/out/common/fqnExtractor.js +1 -2
- package/node_modules/@aws/lsp-fqn/out/common/fqnExtractor.js.map +1 -1
- package/node_modules/@aws/lsp-fqn/package.json +1 -1
- package/node_modules/@aws/lsp-fqn/tsconfig.tsbuildinfo +1 -1
- package/out/client/streamingClient/codewhispererStreamingClient.d.ts +5 -0
- package/out/client/streamingClient/codewhispererStreamingClient.js +25 -0
- package/out/client/streamingClient/codewhispererStreamingClient.js.map +1 -0
- package/out/client/token/bearer-token-service.json +55 -2
- package/out/index.d.ts +1 -0
- package/out/index.js +1 -0
- package/out/index.js.map +1 -1
- package/out/language-server/chat/chatController.js +104 -108
- package/out/language-server/chat/chatController.js.map +1 -1
- package/out/language-server/chat/chatController.test.js +16 -1
- package/out/language-server/chat/chatController.test.js.map +1 -1
- package/out/language-server/chat/chatEventParser.js +28 -34
- package/out/language-server/chat/chatEventParser.js.map +1 -1
- package/out/language-server/chat/chatSessionManagementService.js +22 -36
- package/out/language-server/chat/chatSessionManagementService.js.map +1 -1
- package/out/language-server/chat/chatSessionService.js +24 -37
- package/out/language-server/chat/chatSessionService.js.map +1 -1
- package/out/language-server/chat/constants.d.ts +2 -0
- package/out/language-server/chat/constants.js +32 -0
- package/out/language-server/chat/constants.js.map +1 -0
- package/out/language-server/chat/contexts/documentContext.js +11 -24
- package/out/language-server/chat/contexts/documentContext.js.map +1 -1
- package/out/language-server/chat/contexts/documentFqnExtractor.js +67 -78
- package/out/language-server/chat/contexts/documentFqnExtractor.js.map +1 -1
- package/out/language-server/chat/contexts/triggerContext.js +32 -44
- package/out/language-server/chat/contexts/triggerContext.js.map +1 -1
- package/out/language-server/chat/quickActions.d.ts +0 -1
- package/out/language-server/chat/quickActions.js +1 -28
- package/out/language-server/chat/quickActions.js.map +1 -1
- package/out/language-server/chat/telemetry/chatTelemetryController.js +114 -126
- package/out/language-server/chat/telemetry/chatTelemetryController.js.map +1 -1
- package/out/language-server/chat/utils.d.ts +6 -0
- package/out/language-server/chat/utils.js +60 -0
- package/out/language-server/chat/utils.js.map +1 -0
- package/out/language-server/codeWhispererService.js +13 -11
- package/out/language-server/codeWhispererService.js.map +1 -1
- package/out/language-server/constants.d.ts +3 -0
- package/out/language-server/constants.js +7 -0
- package/out/language-server/constants.js.map +1 -0
- package/out/language-server/dependencyGraph/csharpDependencyGraph.js +2 -2
- package/out/language-server/dependencyGraph/csharpDependencyGraph.js.map +1 -1
- package/out/language-server/dependencyGraph/dependencyGraph.js +12 -9
- package/out/language-server/dependencyGraph/dependencyGraph.js.map +1 -1
- package/out/language-server/dependencyGraph/gitIgnoreFilter.js +1 -0
- package/out/language-server/dependencyGraph/gitIgnoreFilter.js.map +1 -1
- package/out/language-server/netTransform/artifactManager.d.ts +29 -0
- package/out/language-server/netTransform/artifactManager.js +191 -0
- package/out/language-server/netTransform/artifactManager.js.map +1 -0
- package/out/language-server/netTransform/converter.d.ts +9 -0
- package/out/language-server/netTransform/converter.js +108 -0
- package/out/language-server/netTransform/converter.js.map +1 -0
- package/out/language-server/netTransform/metrics.d.ts +17 -0
- package/out/language-server/netTransform/metrics.js +222 -0
- package/out/language-server/netTransform/metrics.js.map +1 -0
- package/out/language-server/netTransform/models.d.ts +84 -0
- package/out/language-server/netTransform/models.js +12 -0
- package/out/language-server/netTransform/models.js.map +1 -0
- package/out/language-server/netTransform/resources/SupportedProjects.d.ts +2 -0
- package/out/language-server/netTransform/resources/SupportedProjects.js +26 -0
- package/out/language-server/netTransform/resources/SupportedProjects.js.map +1 -0
- package/out/language-server/netTransform/tests/converter.test.d.ts +1 -0
- package/out/language-server/netTransform/tests/converter.test.js +265 -0
- package/out/language-server/netTransform/tests/converter.test.js.map +1 -0
- package/out/language-server/netTransform/tests/mockData.d.ts +21 -0
- package/out/language-server/netTransform/tests/mockData.js +60 -0
- package/out/language-server/netTransform/tests/mockData.js.map +1 -0
- package/out/language-server/netTransform/tests/transformHandler.test.d.ts +1 -0
- package/out/language-server/netTransform/tests/transformHandler.test.js +242 -0
- package/out/language-server/netTransform/tests/transformHandler.test.js.map +1 -0
- package/out/language-server/netTransform/tests/validation.test.d.ts +1 -0
- package/out/language-server/netTransform/tests/validation.test.js +80 -0
- package/out/language-server/netTransform/tests/validation.test.js.map +1 -0
- package/out/language-server/netTransform/transformHandler.d.ts +27 -0
- package/out/language-server/netTransform/transformHandler.js +315 -0
- package/out/language-server/netTransform/transformHandler.js.map +1 -0
- package/out/language-server/netTransform/validation.d.ts +9 -0
- package/out/language-server/netTransform/validation.js +79 -0
- package/out/language-server/netTransform/validation.js.map +1 -0
- package/out/language-server/netTransformServer.d.ts +5 -6
- package/out/language-server/netTransformServer.js +149 -15
- package/out/language-server/netTransformServer.js.map +1 -1
- package/out/language-server/proxy-server.d.ts +1 -0
- package/out/language-server/proxy-server.js +16 -1
- package/out/language-server/proxy-server.js.map +1 -1
- package/out/language-server/securityScan/securityScanDiagnosticsProvider.js +10 -6
- package/out/language-server/securityScan/securityScanDiagnosticsProvider.js.map +1 -1
- package/out/language-server/securityScan/securityScanHandler.js +4 -0
- package/out/language-server/securityScan/securityScanHandler.js.map +1 -1
- package/out/language-server/session/sessionManager.js +35 -15
- package/out/language-server/session/sessionManager.js.map +1 -1
- package/out/language-server/telemetry/codeDiffTracker.js +69 -80
- package/out/language-server/telemetry/codeDiffTracker.js.map +1 -1
- package/out/language-server/telemetry/codePercentage.js +3 -0
- package/out/language-server/telemetry/codePercentage.js.map +1 -1
- package/out/language-server/telemetry/metric.js +8 -21
- package/out/language-server/telemetry/metric.js.map +1 -1
- package/out/language-server/telemetry/types.d.ts +38 -0
- package/out/language-server/telemetry/types.js.map +1 -1
- package/out/language-server/utils.d.ts +2 -5
- package/out/language-server/utils.js +25 -49
- package/out/language-server/utils.js.map +1 -1
- package/package.json +5 -2
- package/node_modules/@aws/lsp-fqn/node_modules/workerpool/HISTORY.md +0 -395
- package/node_modules/@aws/lsp-fqn/node_modules/workerpool/LICENSE +0 -201
- package/node_modules/@aws/lsp-fqn/node_modules/workerpool/README.md +0 -530
- package/node_modules/@aws/lsp-fqn/node_modules/workerpool/dist/worker.js +0 -288
- package/node_modules/@aws/lsp-fqn/node_modules/workerpool/dist/worker.js.map +0 -1
- package/node_modules/@aws/lsp-fqn/node_modules/workerpool/dist/worker.min.js +0 -2
- package/node_modules/@aws/lsp-fqn/node_modules/workerpool/dist/worker.min.js.map +0 -1
- package/node_modules/@aws/lsp-fqn/node_modules/workerpool/dist/workerpool.js +0 -1737
- package/node_modules/@aws/lsp-fqn/node_modules/workerpool/dist/workerpool.js.map +0 -1
- package/node_modules/@aws/lsp-fqn/node_modules/workerpool/dist/workerpool.min.js +0 -3
- package/node_modules/@aws/lsp-fqn/node_modules/workerpool/dist/workerpool.min.js.LICENSE.txt +0 -24
- package/node_modules/@aws/lsp-fqn/node_modules/workerpool/dist/workerpool.min.js.map +0 -1
- package/node_modules/@aws/lsp-fqn/node_modules/workerpool/package.json +0 -57
- package/node_modules/@aws/lsp-fqn/node_modules/workerpool/src/Pool.js +0 -476
- package/node_modules/@aws/lsp-fqn/node_modules/workerpool/src/Promise.js +0 -293
- package/node_modules/@aws/lsp-fqn/node_modules/workerpool/src/WorkerHandler.js +0 -547
- package/node_modules/@aws/lsp-fqn/node_modules/workerpool/src/debug-port-allocator.js +0 -28
- package/node_modules/@aws/lsp-fqn/node_modules/workerpool/src/environment.js +0 -30
- package/node_modules/@aws/lsp-fqn/node_modules/workerpool/src/generated/embeddedWorker.js +0 -6
- package/node_modules/@aws/lsp-fqn/node_modules/workerpool/src/header.js +0 -24
- package/node_modules/@aws/lsp-fqn/node_modules/workerpool/src/index.js +0 -60
- package/node_modules/@aws/lsp-fqn/node_modules/workerpool/src/requireFoolWebpack.js +0 -8
- package/node_modules/@aws/lsp-fqn/node_modules/workerpool/src/transfer.js +0 -12
- package/node_modules/@aws/lsp-fqn/node_modules/workerpool/src/types.js +0 -46
- package/node_modules/@aws/lsp-fqn/node_modules/workerpool/src/validateOptions.js +0 -51
- package/node_modules/@aws/lsp-fqn/node_modules/workerpool/src/worker.js +0 -256
- package/node_modules/@aws/lsp-fqn/node_modules/workerpool/types/Pool.d.ts +0 -130
- package/node_modules/@aws/lsp-fqn/node_modules/workerpool/types/Promise.d.ts +0 -125
- package/node_modules/@aws/lsp-fqn/node_modules/workerpool/types/WorkerHandler.d.ts +0 -89
- package/node_modules/@aws/lsp-fqn/node_modules/workerpool/types/debug-port-allocator.d.ts +0 -8
- package/node_modules/@aws/lsp-fqn/node_modules/workerpool/types/environment.d.ts +0 -4
- package/node_modules/@aws/lsp-fqn/node_modules/workerpool/types/generated/embeddedWorker.d.ts +0 -2
- package/node_modules/@aws/lsp-fqn/node_modules/workerpool/types/index.d.ts +0 -43
- package/node_modules/@aws/lsp-fqn/node_modules/workerpool/types/transfer.d.ts +0 -19
- package/node_modules/@aws/lsp-fqn/node_modules/workerpool/types/types.d.ts +0 -99
- package/node_modules/@aws/lsp-fqn/node_modules/workerpool/types/validateOptions.d.ts +0 -4
- package/node_modules/@aws/lsp-fqn/node_modules/workerpool/types/worker.d.ts +0 -8
- package/node_modules/@aws-sdk/middleware-recursion-detection/LICENSE +0 -201
- package/node_modules/@aws-sdk/middleware-recursion-detection/README.md +0 -10
- package/node_modules/@aws-sdk/middleware-recursion-detection/dist-cjs/index.js +0 -39
- package/node_modules/@aws-sdk/middleware-recursion-detection/dist-es/index.js +0 -34
- package/node_modules/@aws-sdk/middleware-recursion-detection/dist-types/index.d.ts +0 -18
- package/node_modules/@aws-sdk/middleware-recursion-detection/dist-types/ts3.4/index.d.ts +0 -18
- package/node_modules/@aws-sdk/middleware-recursion-detection/package.json +0 -59
- package/node_modules/@aws-sdk/middleware-user-agent/LICENSE +0 -201
- package/node_modules/@aws-sdk/middleware-user-agent/README.md +0 -4
- package/node_modules/@aws-sdk/middleware-user-agent/dist-cjs/configurations.js +0 -10
- package/node_modules/@aws-sdk/middleware-user-agent/dist-cjs/constants.js +0 -10
- package/node_modules/@aws-sdk/middleware-user-agent/dist-cjs/index.js +0 -5
- package/node_modules/@aws-sdk/middleware-user-agent/dist-cjs/user-agent-middleware.js +0 -79
- package/node_modules/@aws-sdk/middleware-user-agent/dist-es/configurations.js +0 -6
- package/node_modules/@aws-sdk/middleware-user-agent/dist-es/constants.js +0 -7
- package/node_modules/@aws-sdk/middleware-user-agent/dist-es/index.js +0 -2
- package/node_modules/@aws-sdk/middleware-user-agent/dist-es/user-agent-middleware.js +0 -72
- package/node_modules/@aws-sdk/middleware-user-agent/dist-types/configurations.d.ts +0 -31
- package/node_modules/@aws-sdk/middleware-user-agent/dist-types/constants.d.ts +0 -7
- package/node_modules/@aws-sdk/middleware-user-agent/dist-types/index.d.ts +0 -2
- package/node_modules/@aws-sdk/middleware-user-agent/dist-types/ts3.4/configurations.d.ts +0 -17
- package/node_modules/@aws-sdk/middleware-user-agent/dist-types/ts3.4/constants.d.ts +0 -7
- package/node_modules/@aws-sdk/middleware-user-agent/dist-types/ts3.4/index.d.ts +0 -2
- package/node_modules/@aws-sdk/middleware-user-agent/dist-types/ts3.4/user-agent-middleware.d.ts +0 -20
- package/node_modules/@aws-sdk/middleware-user-agent/dist-types/user-agent-middleware.d.ts +0 -17
- package/node_modules/@aws-sdk/middleware-user-agent/package.json +0 -61
- package/node_modules/@aws-sdk/util-locate-window/LICENSE +0 -201
- package/node_modules/@aws-sdk/util-locate-window/README.md +0 -4
- package/node_modules/@aws-sdk/util-locate-window/dist-cjs/index.js +0 -41
- package/node_modules/@aws-sdk/util-locate-window/dist-es/index.js +0 -10
- package/node_modules/@aws-sdk/util-locate-window/dist-types/index.d.ts +0 -6
- package/node_modules/@aws-sdk/util-locate-window/dist-types/ts3.4/index.d.ts +0 -1
- package/node_modules/@aws-sdk/util-locate-window/package.json +0 -52
- package/node_modules/@smithy/eventstream-serde-config-resolver/LICENSE +0 -201
- package/node_modules/@smithy/eventstream-serde-config-resolver/README.md +0 -10
- package/node_modules/@smithy/eventstream-serde-config-resolver/dist-cjs/EventStreamSerdeConfig.js +0 -1
- package/node_modules/@smithy/eventstream-serde-config-resolver/dist-cjs/index.js +0 -37
- package/node_modules/@smithy/eventstream-serde-config-resolver/dist-es/EventStreamSerdeConfig.js +0 -4
- package/node_modules/@smithy/eventstream-serde-config-resolver/dist-es/index.js +0 -1
- package/node_modules/@smithy/eventstream-serde-config-resolver/dist-types/EventStreamSerdeConfig.d.ts +0 -24
- package/node_modules/@smithy/eventstream-serde-config-resolver/dist-types/index.d.ts +0 -4
- package/node_modules/@smithy/eventstream-serde-config-resolver/dist-types/ts3.4/EventStreamSerdeConfig.d.ts +0 -24
- package/node_modules/@smithy/eventstream-serde-config-resolver/dist-types/ts3.4/index.d.ts +0 -4
- package/node_modules/@smithy/eventstream-serde-config-resolver/package.json +0 -61
- package/node_modules/@smithy/util-utf8/LICENSE +0 -201
- package/node_modules/@smithy/util-utf8/README.md +0 -4
- package/node_modules/@smithy/util-utf8/dist-cjs/fromUtf8.browser.js +0 -1
- package/node_modules/@smithy/util-utf8/dist-cjs/fromUtf8.js +0 -1
- package/node_modules/@smithy/util-utf8/dist-cjs/index.js +0 -65
- package/node_modules/@smithy/util-utf8/dist-cjs/toUint8Array.js +0 -1
- package/node_modules/@smithy/util-utf8/dist-cjs/toUtf8.browser.js +0 -1
- package/node_modules/@smithy/util-utf8/dist-cjs/toUtf8.js +0 -1
- package/node_modules/@smithy/util-utf8/dist-es/fromUtf8.browser.js +0 -1
- package/node_modules/@smithy/util-utf8/dist-es/fromUtf8.js +0 -5
- package/node_modules/@smithy/util-utf8/dist-es/index.js +0 -3
- package/node_modules/@smithy/util-utf8/dist-es/toUint8Array.js +0 -10
- package/node_modules/@smithy/util-utf8/dist-es/toUtf8.browser.js +0 -9
- package/node_modules/@smithy/util-utf8/dist-es/toUtf8.js +0 -10
- package/node_modules/@smithy/util-utf8/dist-types/fromUtf8.browser.d.ts +0 -1
- package/node_modules/@smithy/util-utf8/dist-types/fromUtf8.d.ts +0 -1
- package/node_modules/@smithy/util-utf8/dist-types/index.d.ts +0 -3
- package/node_modules/@smithy/util-utf8/dist-types/toUint8Array.d.ts +0 -1
- package/node_modules/@smithy/util-utf8/dist-types/toUtf8.browser.d.ts +0 -7
- package/node_modules/@smithy/util-utf8/dist-types/toUtf8.d.ts +0 -7
- package/node_modules/@smithy/util-utf8/dist-types/ts3.4/fromUtf8.browser.d.ts +0 -1
- package/node_modules/@smithy/util-utf8/dist-types/ts3.4/fromUtf8.d.ts +0 -1
- package/node_modules/@smithy/util-utf8/dist-types/ts3.4/index.d.ts +0 -3
- package/node_modules/@smithy/util-utf8/dist-types/ts3.4/toUint8Array.d.ts +0 -1
- package/node_modules/@smithy/util-utf8/dist-types/ts3.4/toUtf8.browser.d.ts +0 -7
- package/node_modules/@smithy/util-utf8/dist-types/ts3.4/toUtf8.d.ts +0 -7
- package/node_modules/@smithy/util-utf8/package.json +0 -66
- package/node_modules/bowser/CHANGELOG.md +0 -218
- package/node_modules/bowser/LICENSE +0 -39
- package/node_modules/bowser/README.md +0 -179
- package/node_modules/bowser/bundled.js +0 -1
- package/node_modules/bowser/es5.js +0 -1
- package/node_modules/bowser/index.d.ts +0 -250
- package/node_modules/bowser/package.json +0 -83
- package/node_modules/bowser/src/bowser.js +0 -77
- package/node_modules/bowser/src/constants.js +0 -116
- package/node_modules/bowser/src/parser-browsers.js +0 -700
- package/node_modules/bowser/src/parser-engines.js +0 -120
- package/node_modules/bowser/src/parser-os.js +0 -199
- package/node_modules/bowser/src/parser-platforms.js +0 -266
- package/node_modules/bowser/src/parser.js +0 -496
- package/node_modules/bowser/src/utils.js +0 -309
- package/node_modules/tslib/CopyrightNotice.txt +0 -15
- package/node_modules/tslib/LICENSE.txt +0 -12
- package/node_modules/tslib/README.md +0 -164
- package/node_modules/tslib/SECURITY.md +0 -41
- package/node_modules/tslib/modules/index.d.ts +0 -37
- package/node_modules/tslib/modules/index.js +0 -68
- package/node_modules/tslib/modules/package.json +0 -3
- package/node_modules/tslib/package.json +0 -47
- package/node_modules/tslib/tslib.d.ts +0 -453
- package/node_modules/tslib/tslib.es6.html +0 -1
- package/node_modules/tslib/tslib.es6.js +0 -374
- package/node_modules/tslib/tslib.es6.mjs +0 -373
- package/node_modules/tslib/tslib.html +0 -1
- package/node_modules/tslib/tslib.js +0 -424
- package/node_modules/uuid/CHANGELOG.md +0 -274
- package/node_modules/uuid/CONTRIBUTING.md +0 -18
- package/node_modules/uuid/LICENSE.md +0 -9
- package/node_modules/uuid/README.md +0 -466
- package/node_modules/uuid/dist/bin/uuid +0 -2
- package/node_modules/uuid/dist/commonjs-browser/index.js +0 -79
- package/node_modules/uuid/dist/commonjs-browser/md5.js +0 -223
- package/node_modules/uuid/dist/commonjs-browser/native.js +0 -11
- package/node_modules/uuid/dist/commonjs-browser/nil.js +0 -8
- package/node_modules/uuid/dist/commonjs-browser/parse.js +0 -45
- package/node_modules/uuid/dist/commonjs-browser/regex.js +0 -8
- package/node_modules/uuid/dist/commonjs-browser/rng.js +0 -25
- package/node_modules/uuid/dist/commonjs-browser/sha1.js +0 -104
- package/node_modules/uuid/dist/commonjs-browser/stringify.js +0 -44
- package/node_modules/uuid/dist/commonjs-browser/v1.js +0 -107
- package/node_modules/uuid/dist/commonjs-browser/v3.js +0 -16
- package/node_modules/uuid/dist/commonjs-browser/v35.js +0 -80
- package/node_modules/uuid/dist/commonjs-browser/v4.js +0 -43
- package/node_modules/uuid/dist/commonjs-browser/v5.js +0 -16
- package/node_modules/uuid/dist/commonjs-browser/validate.js +0 -17
- package/node_modules/uuid/dist/commonjs-browser/version.js +0 -21
- package/node_modules/uuid/dist/esm-browser/index.js +0 -9
- package/node_modules/uuid/dist/esm-browser/md5.js +0 -215
- package/node_modules/uuid/dist/esm-browser/native.js +0 -4
- package/node_modules/uuid/dist/esm-browser/nil.js +0 -1
- package/node_modules/uuid/dist/esm-browser/parse.js +0 -35
- package/node_modules/uuid/dist/esm-browser/regex.js +0 -1
- package/node_modules/uuid/dist/esm-browser/rng.js +0 -18
- package/node_modules/uuid/dist/esm-browser/sha1.js +0 -96
- package/node_modules/uuid/dist/esm-browser/stringify.js +0 -33
- package/node_modules/uuid/dist/esm-browser/v1.js +0 -95
- package/node_modules/uuid/dist/esm-browser/v3.js +0 -4
- package/node_modules/uuid/dist/esm-browser/v35.js +0 -66
- package/node_modules/uuid/dist/esm-browser/v4.js +0 -29
- package/node_modules/uuid/dist/esm-browser/v5.js +0 -4
- package/node_modules/uuid/dist/esm-browser/validate.js +0 -7
- package/node_modules/uuid/dist/esm-browser/version.js +0 -11
- package/node_modules/uuid/dist/esm-node/index.js +0 -9
- package/node_modules/uuid/dist/esm-node/md5.js +0 -13
- package/node_modules/uuid/dist/esm-node/native.js +0 -4
- package/node_modules/uuid/dist/esm-node/nil.js +0 -1
- package/node_modules/uuid/dist/esm-node/parse.js +0 -35
- package/node_modules/uuid/dist/esm-node/regex.js +0 -1
- package/node_modules/uuid/dist/esm-node/rng.js +0 -12
- package/node_modules/uuid/dist/esm-node/sha1.js +0 -13
- package/node_modules/uuid/dist/esm-node/stringify.js +0 -33
- package/node_modules/uuid/dist/esm-node/v1.js +0 -95
- package/node_modules/uuid/dist/esm-node/v3.js +0 -4
- package/node_modules/uuid/dist/esm-node/v35.js +0 -66
- package/node_modules/uuid/dist/esm-node/v4.js +0 -29
- package/node_modules/uuid/dist/esm-node/v5.js +0 -4
- package/node_modules/uuid/dist/esm-node/validate.js +0 -7
- package/node_modules/uuid/dist/esm-node/version.js +0 -11
- package/node_modules/uuid/dist/index.js +0 -79
- package/node_modules/uuid/dist/md5-browser.js +0 -223
- package/node_modules/uuid/dist/md5.js +0 -23
- package/node_modules/uuid/dist/native-browser.js +0 -11
- package/node_modules/uuid/dist/native.js +0 -15
- package/node_modules/uuid/dist/nil.js +0 -8
- package/node_modules/uuid/dist/parse.js +0 -45
- package/node_modules/uuid/dist/regex.js +0 -8
- package/node_modules/uuid/dist/rng-browser.js +0 -25
- package/node_modules/uuid/dist/rng.js +0 -24
- package/node_modules/uuid/dist/sha1-browser.js +0 -104
- package/node_modules/uuid/dist/sha1.js +0 -23
- package/node_modules/uuid/dist/stringify.js +0 -44
- package/node_modules/uuid/dist/uuid-bin.js +0 -85
- package/node_modules/uuid/dist/v1.js +0 -107
- package/node_modules/uuid/dist/v3.js +0 -16
- package/node_modules/uuid/dist/v35.js +0 -80
- package/node_modules/uuid/dist/v4.js +0 -43
- package/node_modules/uuid/dist/v5.js +0 -16
- package/node_modules/uuid/dist/validate.js +0 -17
- package/node_modules/uuid/dist/version.js +0 -21
- package/node_modules/uuid/package.json +0 -135
- package/node_modules/uuid/wrapper.mjs +0 -10
|
@@ -1,309 +0,0 @@
|
|
|
1
|
-
import { BROWSER_MAP, BROWSER_ALIASES_MAP } from './constants.js';
|
|
2
|
-
|
|
3
|
-
export default class Utils {
|
|
4
|
-
/**
|
|
5
|
-
* Get first matched item for a string
|
|
6
|
-
* @param {RegExp} regexp
|
|
7
|
-
* @param {String} ua
|
|
8
|
-
* @return {Array|{index: number, input: string}|*|boolean|string}
|
|
9
|
-
*/
|
|
10
|
-
static getFirstMatch(regexp, ua) {
|
|
11
|
-
const match = ua.match(regexp);
|
|
12
|
-
return (match && match.length > 0 && match[1]) || '';
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* Get second matched item for a string
|
|
17
|
-
* @param regexp
|
|
18
|
-
* @param {String} ua
|
|
19
|
-
* @return {Array|{index: number, input: string}|*|boolean|string}
|
|
20
|
-
*/
|
|
21
|
-
static getSecondMatch(regexp, ua) {
|
|
22
|
-
const match = ua.match(regexp);
|
|
23
|
-
return (match && match.length > 1 && match[2]) || '';
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* Match a regexp and return a constant or undefined
|
|
28
|
-
* @param {RegExp} regexp
|
|
29
|
-
* @param {String} ua
|
|
30
|
-
* @param {*} _const Any const that will be returned if regexp matches the string
|
|
31
|
-
* @return {*}
|
|
32
|
-
*/
|
|
33
|
-
static matchAndReturnConst(regexp, ua, _const) {
|
|
34
|
-
if (regexp.test(ua)) {
|
|
35
|
-
return _const;
|
|
36
|
-
}
|
|
37
|
-
return void (0);
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
static getWindowsVersionName(version) {
|
|
41
|
-
switch (version) {
|
|
42
|
-
case 'NT': return 'NT';
|
|
43
|
-
case 'XP': return 'XP';
|
|
44
|
-
case 'NT 5.0': return '2000';
|
|
45
|
-
case 'NT 5.1': return 'XP';
|
|
46
|
-
case 'NT 5.2': return '2003';
|
|
47
|
-
case 'NT 6.0': return 'Vista';
|
|
48
|
-
case 'NT 6.1': return '7';
|
|
49
|
-
case 'NT 6.2': return '8';
|
|
50
|
-
case 'NT 6.3': return '8.1';
|
|
51
|
-
case 'NT 10.0': return '10';
|
|
52
|
-
default: return undefined;
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
/**
|
|
57
|
-
* Get macOS version name
|
|
58
|
-
* 10.5 - Leopard
|
|
59
|
-
* 10.6 - Snow Leopard
|
|
60
|
-
* 10.7 - Lion
|
|
61
|
-
* 10.8 - Mountain Lion
|
|
62
|
-
* 10.9 - Mavericks
|
|
63
|
-
* 10.10 - Yosemite
|
|
64
|
-
* 10.11 - El Capitan
|
|
65
|
-
* 10.12 - Sierra
|
|
66
|
-
* 10.13 - High Sierra
|
|
67
|
-
* 10.14 - Mojave
|
|
68
|
-
* 10.15 - Catalina
|
|
69
|
-
*
|
|
70
|
-
* @example
|
|
71
|
-
* getMacOSVersionName("10.14") // 'Mojave'
|
|
72
|
-
*
|
|
73
|
-
* @param {string} version
|
|
74
|
-
* @return {string} versionName
|
|
75
|
-
*/
|
|
76
|
-
static getMacOSVersionName(version) {
|
|
77
|
-
const v = version.split('.').splice(0, 2).map(s => parseInt(s, 10) || 0);
|
|
78
|
-
v.push(0);
|
|
79
|
-
if (v[0] !== 10) return undefined;
|
|
80
|
-
switch (v[1]) {
|
|
81
|
-
case 5: return 'Leopard';
|
|
82
|
-
case 6: return 'Snow Leopard';
|
|
83
|
-
case 7: return 'Lion';
|
|
84
|
-
case 8: return 'Mountain Lion';
|
|
85
|
-
case 9: return 'Mavericks';
|
|
86
|
-
case 10: return 'Yosemite';
|
|
87
|
-
case 11: return 'El Capitan';
|
|
88
|
-
case 12: return 'Sierra';
|
|
89
|
-
case 13: return 'High Sierra';
|
|
90
|
-
case 14: return 'Mojave';
|
|
91
|
-
case 15: return 'Catalina';
|
|
92
|
-
default: return undefined;
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
/**
|
|
97
|
-
* Get Android version name
|
|
98
|
-
* 1.5 - Cupcake
|
|
99
|
-
* 1.6 - Donut
|
|
100
|
-
* 2.0 - Eclair
|
|
101
|
-
* 2.1 - Eclair
|
|
102
|
-
* 2.2 - Froyo
|
|
103
|
-
* 2.x - Gingerbread
|
|
104
|
-
* 3.x - Honeycomb
|
|
105
|
-
* 4.0 - Ice Cream Sandwich
|
|
106
|
-
* 4.1 - Jelly Bean
|
|
107
|
-
* 4.4 - KitKat
|
|
108
|
-
* 5.x - Lollipop
|
|
109
|
-
* 6.x - Marshmallow
|
|
110
|
-
* 7.x - Nougat
|
|
111
|
-
* 8.x - Oreo
|
|
112
|
-
* 9.x - Pie
|
|
113
|
-
*
|
|
114
|
-
* @example
|
|
115
|
-
* getAndroidVersionName("7.0") // 'Nougat'
|
|
116
|
-
*
|
|
117
|
-
* @param {string} version
|
|
118
|
-
* @return {string} versionName
|
|
119
|
-
*/
|
|
120
|
-
static getAndroidVersionName(version) {
|
|
121
|
-
const v = version.split('.').splice(0, 2).map(s => parseInt(s, 10) || 0);
|
|
122
|
-
v.push(0);
|
|
123
|
-
if (v[0] === 1 && v[1] < 5) return undefined;
|
|
124
|
-
if (v[0] === 1 && v[1] < 6) return 'Cupcake';
|
|
125
|
-
if (v[0] === 1 && v[1] >= 6) return 'Donut';
|
|
126
|
-
if (v[0] === 2 && v[1] < 2) return 'Eclair';
|
|
127
|
-
if (v[0] === 2 && v[1] === 2) return 'Froyo';
|
|
128
|
-
if (v[0] === 2 && v[1] > 2) return 'Gingerbread';
|
|
129
|
-
if (v[0] === 3) return 'Honeycomb';
|
|
130
|
-
if (v[0] === 4 && v[1] < 1) return 'Ice Cream Sandwich';
|
|
131
|
-
if (v[0] === 4 && v[1] < 4) return 'Jelly Bean';
|
|
132
|
-
if (v[0] === 4 && v[1] >= 4) return 'KitKat';
|
|
133
|
-
if (v[0] === 5) return 'Lollipop';
|
|
134
|
-
if (v[0] === 6) return 'Marshmallow';
|
|
135
|
-
if (v[0] === 7) return 'Nougat';
|
|
136
|
-
if (v[0] === 8) return 'Oreo';
|
|
137
|
-
if (v[0] === 9) return 'Pie';
|
|
138
|
-
return undefined;
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
/**
|
|
142
|
-
* Get version precisions count
|
|
143
|
-
*
|
|
144
|
-
* @example
|
|
145
|
-
* getVersionPrecision("1.10.3") // 3
|
|
146
|
-
*
|
|
147
|
-
* @param {string} version
|
|
148
|
-
* @return {number}
|
|
149
|
-
*/
|
|
150
|
-
static getVersionPrecision(version) {
|
|
151
|
-
return version.split('.').length;
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
/**
|
|
155
|
-
* Calculate browser version weight
|
|
156
|
-
*
|
|
157
|
-
* @example
|
|
158
|
-
* compareVersions('1.10.2.1', '1.8.2.1.90') // 1
|
|
159
|
-
* compareVersions('1.010.2.1', '1.09.2.1.90'); // 1
|
|
160
|
-
* compareVersions('1.10.2.1', '1.10.2.1'); // 0
|
|
161
|
-
* compareVersions('1.10.2.1', '1.0800.2'); // -1
|
|
162
|
-
* compareVersions('1.10.2.1', '1.10', true); // 0
|
|
163
|
-
*
|
|
164
|
-
* @param {String} versionA versions versions to compare
|
|
165
|
-
* @param {String} versionB versions versions to compare
|
|
166
|
-
* @param {boolean} [isLoose] enable loose comparison
|
|
167
|
-
* @return {Number} comparison result: -1 when versionA is lower,
|
|
168
|
-
* 1 when versionA is bigger, 0 when both equal
|
|
169
|
-
*/
|
|
170
|
-
/* eslint consistent-return: 1 */
|
|
171
|
-
static compareVersions(versionA, versionB, isLoose = false) {
|
|
172
|
-
// 1) get common precision for both versions, for example for "10.0" and "9" it should be 2
|
|
173
|
-
const versionAPrecision = Utils.getVersionPrecision(versionA);
|
|
174
|
-
const versionBPrecision = Utils.getVersionPrecision(versionB);
|
|
175
|
-
|
|
176
|
-
let precision = Math.max(versionAPrecision, versionBPrecision);
|
|
177
|
-
let lastPrecision = 0;
|
|
178
|
-
|
|
179
|
-
const chunks = Utils.map([versionA, versionB], (version) => {
|
|
180
|
-
const delta = precision - Utils.getVersionPrecision(version);
|
|
181
|
-
|
|
182
|
-
// 2) "9" -> "9.0" (for precision = 2)
|
|
183
|
-
const _version = version + new Array(delta + 1).join('.0');
|
|
184
|
-
|
|
185
|
-
// 3) "9.0" -> ["000000000"", "000000009"]
|
|
186
|
-
return Utils.map(_version.split('.'), chunk => new Array(20 - chunk.length).join('0') + chunk).reverse();
|
|
187
|
-
});
|
|
188
|
-
|
|
189
|
-
// adjust precision for loose comparison
|
|
190
|
-
if (isLoose) {
|
|
191
|
-
lastPrecision = precision - Math.min(versionAPrecision, versionBPrecision);
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
// iterate in reverse order by reversed chunks array
|
|
195
|
-
precision -= 1;
|
|
196
|
-
while (precision >= lastPrecision) {
|
|
197
|
-
// 4) compare: "000000009" > "000000010" = false (but "9" > "10" = true)
|
|
198
|
-
if (chunks[0][precision] > chunks[1][precision]) {
|
|
199
|
-
return 1;
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
if (chunks[0][precision] === chunks[1][precision]) {
|
|
203
|
-
if (precision === lastPrecision) {
|
|
204
|
-
// all version chunks are same
|
|
205
|
-
return 0;
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
precision -= 1;
|
|
209
|
-
} else if (chunks[0][precision] < chunks[1][precision]) {
|
|
210
|
-
return -1;
|
|
211
|
-
}
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
return undefined;
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
/**
|
|
218
|
-
* Array::map polyfill
|
|
219
|
-
*
|
|
220
|
-
* @param {Array} arr
|
|
221
|
-
* @param {Function} iterator
|
|
222
|
-
* @return {Array}
|
|
223
|
-
*/
|
|
224
|
-
static map(arr, iterator) {
|
|
225
|
-
const result = [];
|
|
226
|
-
let i;
|
|
227
|
-
if (Array.prototype.map) {
|
|
228
|
-
return Array.prototype.map.call(arr, iterator);
|
|
229
|
-
}
|
|
230
|
-
for (i = 0; i < arr.length; i += 1) {
|
|
231
|
-
result.push(iterator(arr[i]));
|
|
232
|
-
}
|
|
233
|
-
return result;
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
/**
|
|
237
|
-
* Array::find polyfill
|
|
238
|
-
*
|
|
239
|
-
* @param {Array} arr
|
|
240
|
-
* @param {Function} predicate
|
|
241
|
-
* @return {Array}
|
|
242
|
-
*/
|
|
243
|
-
static find(arr, predicate) {
|
|
244
|
-
let i;
|
|
245
|
-
let l;
|
|
246
|
-
if (Array.prototype.find) {
|
|
247
|
-
return Array.prototype.find.call(arr, predicate);
|
|
248
|
-
}
|
|
249
|
-
for (i = 0, l = arr.length; i < l; i += 1) {
|
|
250
|
-
const value = arr[i];
|
|
251
|
-
if (predicate(value, i)) {
|
|
252
|
-
return value;
|
|
253
|
-
}
|
|
254
|
-
}
|
|
255
|
-
return undefined;
|
|
256
|
-
}
|
|
257
|
-
|
|
258
|
-
/**
|
|
259
|
-
* Object::assign polyfill
|
|
260
|
-
*
|
|
261
|
-
* @param {Object} obj
|
|
262
|
-
* @param {Object} ...objs
|
|
263
|
-
* @return {Object}
|
|
264
|
-
*/
|
|
265
|
-
static assign(obj, ...assigners) {
|
|
266
|
-
const result = obj;
|
|
267
|
-
let i;
|
|
268
|
-
let l;
|
|
269
|
-
if (Object.assign) {
|
|
270
|
-
return Object.assign(obj, ...assigners);
|
|
271
|
-
}
|
|
272
|
-
for (i = 0, l = assigners.length; i < l; i += 1) {
|
|
273
|
-
const assigner = assigners[i];
|
|
274
|
-
if (typeof assigner === 'object' && assigner !== null) {
|
|
275
|
-
const keys = Object.keys(assigner);
|
|
276
|
-
keys.forEach((key) => {
|
|
277
|
-
result[key] = assigner[key];
|
|
278
|
-
});
|
|
279
|
-
}
|
|
280
|
-
}
|
|
281
|
-
return obj;
|
|
282
|
-
}
|
|
283
|
-
|
|
284
|
-
/**
|
|
285
|
-
* Get short version/alias for a browser name
|
|
286
|
-
*
|
|
287
|
-
* @example
|
|
288
|
-
* getBrowserAlias('Microsoft Edge') // edge
|
|
289
|
-
*
|
|
290
|
-
* @param {string} browserName
|
|
291
|
-
* @return {string}
|
|
292
|
-
*/
|
|
293
|
-
static getBrowserAlias(browserName) {
|
|
294
|
-
return BROWSER_ALIASES_MAP[browserName];
|
|
295
|
-
}
|
|
296
|
-
|
|
297
|
-
/**
|
|
298
|
-
* Get short version/alias for a browser name
|
|
299
|
-
*
|
|
300
|
-
* @example
|
|
301
|
-
* getBrowserAlias('edge') // Microsoft Edge
|
|
302
|
-
*
|
|
303
|
-
* @param {string} browserAlias
|
|
304
|
-
* @return {string}
|
|
305
|
-
*/
|
|
306
|
-
static getBrowserTypeByAlias(browserAlias) {
|
|
307
|
-
return BROWSER_MAP[browserAlias] || '';
|
|
308
|
-
}
|
|
309
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/******************************************************************************
|
|
2
|
-
Copyright (c) Microsoft Corporation.
|
|
3
|
-
|
|
4
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
5
|
-
purpose with or without fee is hereby granted.
|
|
6
|
-
|
|
7
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
8
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
9
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
10
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
11
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
12
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
13
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
14
|
-
***************************************************************************** */
|
|
15
|
-
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
Copyright (c) Microsoft Corporation.
|
|
2
|
-
|
|
3
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
4
|
-
purpose with or without fee is hereby granted.
|
|
5
|
-
|
|
6
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
7
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
8
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
9
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
10
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
11
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
12
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
@@ -1,164 +0,0 @@
|
|
|
1
|
-
# tslib
|
|
2
|
-
|
|
3
|
-
This is a runtime library for [TypeScript](https://www.typescriptlang.org/) that contains all of the TypeScript helper functions.
|
|
4
|
-
|
|
5
|
-
This library is primarily used by the `--importHelpers` flag in TypeScript.
|
|
6
|
-
When using `--importHelpers`, a module that uses helper functions like `__extends` and `__assign` in the following emitted file:
|
|
7
|
-
|
|
8
|
-
```ts
|
|
9
|
-
var __assign = (this && this.__assign) || Object.assign || function(t) {
|
|
10
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
11
|
-
s = arguments[i];
|
|
12
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
13
|
-
t[p] = s[p];
|
|
14
|
-
}
|
|
15
|
-
return t;
|
|
16
|
-
};
|
|
17
|
-
exports.x = {};
|
|
18
|
-
exports.y = __assign({}, exports.x);
|
|
19
|
-
|
|
20
|
-
```
|
|
21
|
-
|
|
22
|
-
will instead be emitted as something like the following:
|
|
23
|
-
|
|
24
|
-
```ts
|
|
25
|
-
var tslib_1 = require("tslib");
|
|
26
|
-
exports.x = {};
|
|
27
|
-
exports.y = tslib_1.__assign({}, exports.x);
|
|
28
|
-
```
|
|
29
|
-
|
|
30
|
-
Because this can avoid duplicate declarations of things like `__extends`, `__assign`, etc., this means delivering users smaller files on average, as well as less runtime overhead.
|
|
31
|
-
For optimized bundles with TypeScript, you should absolutely consider using `tslib` and `--importHelpers`.
|
|
32
|
-
|
|
33
|
-
# Installing
|
|
34
|
-
|
|
35
|
-
For the latest stable version, run:
|
|
36
|
-
|
|
37
|
-
## npm
|
|
38
|
-
|
|
39
|
-
```sh
|
|
40
|
-
# TypeScript 3.9.2 or later
|
|
41
|
-
npm install tslib
|
|
42
|
-
|
|
43
|
-
# TypeScript 3.8.4 or earlier
|
|
44
|
-
npm install tslib@^1
|
|
45
|
-
|
|
46
|
-
# TypeScript 2.3.2 or earlier
|
|
47
|
-
npm install tslib@1.6.1
|
|
48
|
-
```
|
|
49
|
-
|
|
50
|
-
## yarn
|
|
51
|
-
|
|
52
|
-
```sh
|
|
53
|
-
# TypeScript 3.9.2 or later
|
|
54
|
-
yarn add tslib
|
|
55
|
-
|
|
56
|
-
# TypeScript 3.8.4 or earlier
|
|
57
|
-
yarn add tslib@^1
|
|
58
|
-
|
|
59
|
-
# TypeScript 2.3.2 or earlier
|
|
60
|
-
yarn add tslib@1.6.1
|
|
61
|
-
```
|
|
62
|
-
|
|
63
|
-
## bower
|
|
64
|
-
|
|
65
|
-
```sh
|
|
66
|
-
# TypeScript 3.9.2 or later
|
|
67
|
-
bower install tslib
|
|
68
|
-
|
|
69
|
-
# TypeScript 3.8.4 or earlier
|
|
70
|
-
bower install tslib@^1
|
|
71
|
-
|
|
72
|
-
# TypeScript 2.3.2 or earlier
|
|
73
|
-
bower install tslib@1.6.1
|
|
74
|
-
```
|
|
75
|
-
|
|
76
|
-
## JSPM
|
|
77
|
-
|
|
78
|
-
```sh
|
|
79
|
-
# TypeScript 3.9.2 or later
|
|
80
|
-
jspm install tslib
|
|
81
|
-
|
|
82
|
-
# TypeScript 3.8.4 or earlier
|
|
83
|
-
jspm install tslib@^1
|
|
84
|
-
|
|
85
|
-
# TypeScript 2.3.2 or earlier
|
|
86
|
-
jspm install tslib@1.6.1
|
|
87
|
-
```
|
|
88
|
-
|
|
89
|
-
# Usage
|
|
90
|
-
|
|
91
|
-
Set the `importHelpers` compiler option on the command line:
|
|
92
|
-
|
|
93
|
-
```
|
|
94
|
-
tsc --importHelpers file.ts
|
|
95
|
-
```
|
|
96
|
-
|
|
97
|
-
or in your tsconfig.json:
|
|
98
|
-
|
|
99
|
-
```json
|
|
100
|
-
{
|
|
101
|
-
"compilerOptions": {
|
|
102
|
-
"importHelpers": true
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
```
|
|
106
|
-
|
|
107
|
-
#### For bower and JSPM users
|
|
108
|
-
|
|
109
|
-
You will need to add a `paths` mapping for `tslib`, e.g. For Bower users:
|
|
110
|
-
|
|
111
|
-
```json
|
|
112
|
-
{
|
|
113
|
-
"compilerOptions": {
|
|
114
|
-
"module": "amd",
|
|
115
|
-
"importHelpers": true,
|
|
116
|
-
"baseUrl": "./",
|
|
117
|
-
"paths": {
|
|
118
|
-
"tslib" : ["bower_components/tslib/tslib.d.ts"]
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
```
|
|
123
|
-
|
|
124
|
-
For JSPM users:
|
|
125
|
-
|
|
126
|
-
```json
|
|
127
|
-
{
|
|
128
|
-
"compilerOptions": {
|
|
129
|
-
"module": "system",
|
|
130
|
-
"importHelpers": true,
|
|
131
|
-
"baseUrl": "./",
|
|
132
|
-
"paths": {
|
|
133
|
-
"tslib" : ["jspm_packages/npm/tslib@2.x.y/tslib.d.ts"]
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
```
|
|
138
|
-
|
|
139
|
-
## Deployment
|
|
140
|
-
|
|
141
|
-
- Choose your new version number
|
|
142
|
-
- Set it in `package.json` and `bower.json`
|
|
143
|
-
- Create a tag: `git tag [version]`
|
|
144
|
-
- Push the tag: `git push --tags`
|
|
145
|
-
- Create a [release in GitHub](https://github.com/microsoft/tslib/releases)
|
|
146
|
-
- Run the [publish to npm](https://github.com/microsoft/tslib/actions?query=workflow%3A%22Publish+to+NPM%22) workflow
|
|
147
|
-
|
|
148
|
-
Done.
|
|
149
|
-
|
|
150
|
-
# Contribute
|
|
151
|
-
|
|
152
|
-
There are many ways to [contribute](https://github.com/Microsoft/TypeScript/blob/master/CONTRIBUTING.md) to TypeScript.
|
|
153
|
-
|
|
154
|
-
* [Submit bugs](https://github.com/Microsoft/TypeScript/issues) and help us verify fixes as they are checked in.
|
|
155
|
-
* Review the [source code changes](https://github.com/Microsoft/TypeScript/pulls).
|
|
156
|
-
* Engage with other TypeScript users and developers on [StackOverflow](http://stackoverflow.com/questions/tagged/typescript).
|
|
157
|
-
* Join the [#typescript](http://twitter.com/#!/search/realtime/%23typescript) discussion on Twitter.
|
|
158
|
-
* [Contribute bug fixes](https://github.com/Microsoft/TypeScript/blob/master/CONTRIBUTING.md).
|
|
159
|
-
|
|
160
|
-
# Documentation
|
|
161
|
-
|
|
162
|
-
* [Quick tutorial](http://www.typescriptlang.org/Tutorial)
|
|
163
|
-
* [Programming handbook](http://www.typescriptlang.org/Handbook)
|
|
164
|
-
* [Homepage](http://www.typescriptlang.org/)
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
<!-- BEGIN MICROSOFT SECURITY.MD V0.0.7 BLOCK -->
|
|
2
|
-
|
|
3
|
-
## Security
|
|
4
|
-
|
|
5
|
-
Microsoft takes the security of our software products and services seriously, which includes all source code repositories managed through our GitHub organizations, which include [Microsoft](https://github.com/Microsoft), [Azure](https://github.com/Azure), [DotNet](https://github.com/dotnet), [AspNet](https://github.com/aspnet), [Xamarin](https://github.com/xamarin), and [our GitHub organizations](https://opensource.microsoft.com/).
|
|
6
|
-
|
|
7
|
-
If you believe you have found a security vulnerability in any Microsoft-owned repository that meets [Microsoft's definition of a security vulnerability](https://aka.ms/opensource/security/definition), please report it to us as described below.
|
|
8
|
-
|
|
9
|
-
## Reporting Security Issues
|
|
10
|
-
|
|
11
|
-
**Please do not report security vulnerabilities through public GitHub issues.**
|
|
12
|
-
|
|
13
|
-
Instead, please report them to the Microsoft Security Response Center (MSRC) at [https://msrc.microsoft.com/create-report](https://aka.ms/opensource/security/create-report).
|
|
14
|
-
|
|
15
|
-
If you prefer to submit without logging in, send email to [secure@microsoft.com](mailto:secure@microsoft.com). If possible, encrypt your message with our PGP key; please download it from the [Microsoft Security Response Center PGP Key page](https://aka.ms/opensource/security/pgpkey).
|
|
16
|
-
|
|
17
|
-
You should receive a response within 24 hours. If for some reason you do not, please follow up via email to ensure we received your original message. Additional information can be found at [microsoft.com/msrc](https://aka.ms/opensource/security/msrc).
|
|
18
|
-
|
|
19
|
-
Please include the requested information listed below (as much as you can provide) to help us better understand the nature and scope of the possible issue:
|
|
20
|
-
|
|
21
|
-
* Type of issue (e.g. buffer overflow, SQL injection, cross-site scripting, etc.)
|
|
22
|
-
* Full paths of source file(s) related to the manifestation of the issue
|
|
23
|
-
* The location of the affected source code (tag/branch/commit or direct URL)
|
|
24
|
-
* Any special configuration required to reproduce the issue
|
|
25
|
-
* Step-by-step instructions to reproduce the issue
|
|
26
|
-
* Proof-of-concept or exploit code (if possible)
|
|
27
|
-
* Impact of the issue, including how an attacker might exploit the issue
|
|
28
|
-
|
|
29
|
-
This information will help us triage your report more quickly.
|
|
30
|
-
|
|
31
|
-
If you are reporting for a bug bounty, more complete reports can contribute to a higher bounty award. Please visit our [Microsoft Bug Bounty Program](https://aka.ms/opensource/security/bounty) page for more details about our active programs.
|
|
32
|
-
|
|
33
|
-
## Preferred Languages
|
|
34
|
-
|
|
35
|
-
We prefer all communications to be in English.
|
|
36
|
-
|
|
37
|
-
## Policy
|
|
38
|
-
|
|
39
|
-
Microsoft follows the principle of [Coordinated Vulnerability Disclosure](https://aka.ms/opensource/security/cvd).
|
|
40
|
-
|
|
41
|
-
<!-- END MICROSOFT SECURITY.MD BLOCK -->
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
// Note: named reexports are used instead of `export *` because
|
|
2
|
-
// TypeScript itself doesn't resolve the `export *` when checking
|
|
3
|
-
// if a particular helper exists.
|
|
4
|
-
export {
|
|
5
|
-
__extends,
|
|
6
|
-
__assign,
|
|
7
|
-
__rest,
|
|
8
|
-
__decorate,
|
|
9
|
-
__param,
|
|
10
|
-
__esDecorate,
|
|
11
|
-
__runInitializers,
|
|
12
|
-
__propKey,
|
|
13
|
-
__setFunctionName,
|
|
14
|
-
__metadata,
|
|
15
|
-
__awaiter,
|
|
16
|
-
__generator,
|
|
17
|
-
__exportStar,
|
|
18
|
-
__values,
|
|
19
|
-
__read,
|
|
20
|
-
__spread,
|
|
21
|
-
__spreadArrays,
|
|
22
|
-
__spreadArray,
|
|
23
|
-
__await,
|
|
24
|
-
__asyncGenerator,
|
|
25
|
-
__asyncDelegator,
|
|
26
|
-
__asyncValues,
|
|
27
|
-
__makeTemplateObject,
|
|
28
|
-
__importStar,
|
|
29
|
-
__importDefault,
|
|
30
|
-
__classPrivateFieldGet,
|
|
31
|
-
__classPrivateFieldSet,
|
|
32
|
-
__classPrivateFieldIn,
|
|
33
|
-
__createBinding,
|
|
34
|
-
__addDisposableResource,
|
|
35
|
-
__disposeResources,
|
|
36
|
-
} from '../tslib.js';
|
|
37
|
-
export * as default from '../tslib.js';
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import tslib from '../tslib.js';
|
|
2
|
-
const {
|
|
3
|
-
__extends,
|
|
4
|
-
__assign,
|
|
5
|
-
__rest,
|
|
6
|
-
__decorate,
|
|
7
|
-
__param,
|
|
8
|
-
__esDecorate,
|
|
9
|
-
__runInitializers,
|
|
10
|
-
__propKey,
|
|
11
|
-
__setFunctionName,
|
|
12
|
-
__metadata,
|
|
13
|
-
__awaiter,
|
|
14
|
-
__generator,
|
|
15
|
-
__exportStar,
|
|
16
|
-
__createBinding,
|
|
17
|
-
__values,
|
|
18
|
-
__read,
|
|
19
|
-
__spread,
|
|
20
|
-
__spreadArrays,
|
|
21
|
-
__spreadArray,
|
|
22
|
-
__await,
|
|
23
|
-
__asyncGenerator,
|
|
24
|
-
__asyncDelegator,
|
|
25
|
-
__asyncValues,
|
|
26
|
-
__makeTemplateObject,
|
|
27
|
-
__importStar,
|
|
28
|
-
__importDefault,
|
|
29
|
-
__classPrivateFieldGet,
|
|
30
|
-
__classPrivateFieldSet,
|
|
31
|
-
__classPrivateFieldIn,
|
|
32
|
-
__addDisposableResource,
|
|
33
|
-
__disposeResources,
|
|
34
|
-
} = tslib;
|
|
35
|
-
export {
|
|
36
|
-
__extends,
|
|
37
|
-
__assign,
|
|
38
|
-
__rest,
|
|
39
|
-
__decorate,
|
|
40
|
-
__param,
|
|
41
|
-
__esDecorate,
|
|
42
|
-
__runInitializers,
|
|
43
|
-
__propKey,
|
|
44
|
-
__setFunctionName,
|
|
45
|
-
__metadata,
|
|
46
|
-
__awaiter,
|
|
47
|
-
__generator,
|
|
48
|
-
__exportStar,
|
|
49
|
-
__createBinding,
|
|
50
|
-
__values,
|
|
51
|
-
__read,
|
|
52
|
-
__spread,
|
|
53
|
-
__spreadArrays,
|
|
54
|
-
__spreadArray,
|
|
55
|
-
__await,
|
|
56
|
-
__asyncGenerator,
|
|
57
|
-
__asyncDelegator,
|
|
58
|
-
__asyncValues,
|
|
59
|
-
__makeTemplateObject,
|
|
60
|
-
__importStar,
|
|
61
|
-
__importDefault,
|
|
62
|
-
__classPrivateFieldGet,
|
|
63
|
-
__classPrivateFieldSet,
|
|
64
|
-
__classPrivateFieldIn,
|
|
65
|
-
__addDisposableResource,
|
|
66
|
-
__disposeResources,
|
|
67
|
-
};
|
|
68
|
-
export default tslib;
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "tslib",
|
|
3
|
-
"author": "Microsoft Corp.",
|
|
4
|
-
"homepage": "https://www.typescriptlang.org/",
|
|
5
|
-
"version": "2.6.3",
|
|
6
|
-
"license": "0BSD",
|
|
7
|
-
"description": "Runtime library for TypeScript helper functions",
|
|
8
|
-
"keywords": [
|
|
9
|
-
"TypeScript",
|
|
10
|
-
"Microsoft",
|
|
11
|
-
"compiler",
|
|
12
|
-
"language",
|
|
13
|
-
"javascript",
|
|
14
|
-
"tslib",
|
|
15
|
-
"runtime"
|
|
16
|
-
],
|
|
17
|
-
"bugs": {
|
|
18
|
-
"url": "https://github.com/Microsoft/TypeScript/issues"
|
|
19
|
-
},
|
|
20
|
-
"repository": {
|
|
21
|
-
"type": "git",
|
|
22
|
-
"url": "https://github.com/Microsoft/tslib.git"
|
|
23
|
-
},
|
|
24
|
-
"main": "tslib.js",
|
|
25
|
-
"module": "tslib.es6.js",
|
|
26
|
-
"jsnext:main": "tslib.es6.js",
|
|
27
|
-
"typings": "tslib.d.ts",
|
|
28
|
-
"sideEffects": false,
|
|
29
|
-
"exports": {
|
|
30
|
-
".": {
|
|
31
|
-
"module": {
|
|
32
|
-
"types": "./modules/index.d.ts",
|
|
33
|
-
"default": "./tslib.es6.mjs"
|
|
34
|
-
},
|
|
35
|
-
"import": {
|
|
36
|
-
"node": "./modules/index.js",
|
|
37
|
-
"default": {
|
|
38
|
-
"types": "./modules/index.d.ts",
|
|
39
|
-
"default": "./tslib.es6.mjs"
|
|
40
|
-
}
|
|
41
|
-
},
|
|
42
|
-
"default": "./tslib.js"
|
|
43
|
-
},
|
|
44
|
-
"./*": "./*",
|
|
45
|
-
"./": "./"
|
|
46
|
-
}
|
|
47
|
-
}
|