@amazon/vinyl-util 1.0.0
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/dist/browserTestUtil/index.js +2641 -0
- package/dist/browserTestUtil/index.js.map +7 -0
- package/dist/browserTestUtil/types/current/async/async.d.ts +30 -0
- package/dist/browserTestUtil/types/current/async/async.d.ts.map +1 -0
- package/dist/browserTestUtil/types/current/async/async.js +48 -0
- package/dist/browserTestUtil/types/current/async/createCallbackTimingTest.d.ts +16 -0
- package/dist/browserTestUtil/types/current/async/createCallbackTimingTest.d.ts.map +1 -0
- package/dist/browserTestUtil/types/current/async/createCallbackTimingTest.js +57 -0
- package/dist/browserTestUtil/types/current/async/marble.d.ts +12 -0
- package/dist/browserTestUtil/types/current/async/marble.d.ts.map +1 -0
- package/dist/browserTestUtil/types/current/async/marble.js +27 -0
- package/dist/browserTestUtil/types/current/benchmark/Benchmark.d.ts +90 -0
- package/dist/browserTestUtil/types/current/benchmark/Benchmark.d.ts.map +1 -0
- package/dist/browserTestUtil/types/current/benchmark/Benchmark.js +247 -0
- package/dist/browserTestUtil/types/current/env/jasmineEnv.d.ts +14 -0
- package/dist/browserTestUtil/types/current/env/jasmineEnv.d.ts.map +1 -0
- package/dist/browserTestUtil/types/current/env/jasmineEnv.js +34 -0
- package/dist/browserTestUtil/types/current/expect/expectIterableEquals.d.ts +8 -0
- package/dist/browserTestUtil/types/current/expect/expectIterableEquals.d.ts.map +1 -0
- package/dist/browserTestUtil/types/current/expect/expectIterableEquals.js +13 -0
- package/dist/browserTestUtil/types/current/expect/expectNothing.d.ts +5 -0
- package/dist/browserTestUtil/types/current/expect/expectNothing.d.ts.map +1 -0
- package/dist/browserTestUtil/types/current/expect/expectNothing.js +10 -0
- package/dist/browserTestUtil/types/current/expect/prototype.d.ts +18 -0
- package/dist/browserTestUtil/types/current/expect/prototype.d.ts.map +1 -0
- package/dist/browserTestUtil/types/current/expect/prototype.js +28 -0
- package/dist/browserTestUtil/types/current/expect/typesafety.d.ts +38 -0
- package/dist/browserTestUtil/types/current/expect/typesafety.d.ts.map +1 -0
- package/dist/browserTestUtil/types/current/expect/typesafety.js +43 -0
- package/dist/browserTestUtil/types/current/index.d.ts +22 -0
- package/dist/browserTestUtil/types/current/index.d.ts.map +1 -0
- package/dist/browserTestUtil/types/current/index.js +21 -0
- package/dist/browserTestUtil/types/current/matchers/customMatchers.d.ts +9 -0
- package/dist/browserTestUtil/types/current/matchers/customMatchers.d.ts.map +1 -0
- package/dist/browserTestUtil/types/current/matchers/customMatchers.js +8 -0
- package/dist/browserTestUtil/types/current/matchers/toBeCloseToWithin.d.ts +5 -0
- package/dist/browserTestUtil/types/current/matchers/toBeCloseToWithin.d.ts.map +1 -0
- package/dist/browserTestUtil/types/current/matchers/toBeCloseToWithin.js +25 -0
- package/dist/browserTestUtil/types/current/mock/asSpy.d.ts +18 -0
- package/dist/browserTestUtil/types/current/mock/asSpy.d.ts.map +1 -0
- package/dist/browserTestUtil/types/current/mock/asSpy.js +24 -0
- package/dist/browserTestUtil/types/current/mock/createSpyFactory.d.ts +44 -0
- package/dist/browserTestUtil/types/current/mock/createSpyFactory.d.ts.map +1 -0
- package/dist/browserTestUtil/types/current/mock/createSpyFactory.js +27 -0
- package/dist/browserTestUtil/types/current/mock/dom/MockTimeRanges.d.ts +12 -0
- package/dist/browserTestUtil/types/current/mock/dom/MockTimeRanges.d.ts.map +1 -0
- package/dist/browserTestUtil/types/current/mock/dom/MockTimeRanges.js +30 -0
- package/dist/browserTestUtil/types/current/mock/dom/globals.d.ts +11 -0
- package/dist/browserTestUtil/types/current/mock/dom/globals.d.ts.map +1 -0
- package/dist/browserTestUtil/types/current/mock/dom/globals.js +15 -0
- package/dist/browserTestUtil/types/current/mock/dom/lib.dom.d.ts +2110 -0
- package/dist/browserTestUtil/types/current/mock/dom/lib.dom.d.ts.map +1 -0
- package/dist/browserTestUtil/types/current/mock/dom/lib.dom.js +1828 -0
- package/dist/browserTestUtil/types/current/mock/dom/mockEvent.d.ts +7 -0
- package/dist/browserTestUtil/types/current/mock/dom/mockEvent.d.ts.map +1 -0
- package/dist/browserTestUtil/types/current/mock/dom/mockEvent.js +14 -0
- package/dist/browserTestUtil/types/current/mock/implementEventFakes.d.ts +17 -0
- package/dist/browserTestUtil/types/current/mock/implementEventFakes.d.ts.map +1 -0
- package/dist/browserTestUtil/types/current/mock/implementEventFakes.js +108 -0
- package/dist/browserTestUtil/types/current/mock/polyfillCustomEvent.d.ts +2 -0
- package/dist/browserTestUtil/types/current/mock/polyfillCustomEvent.d.ts.map +1 -0
- package/dist/browserTestUtil/types/current/mock/polyfillCustomEvent.js +26 -0
- package/dist/browserTestUtil/types/current/reporters/ConsoleReporter.d.ts +10 -0
- package/dist/browserTestUtil/types/current/reporters/ConsoleReporter.d.ts.map +1 -0
- package/dist/browserTestUtil/types/current/reporters/ConsoleReporter.js +32 -0
- package/dist/browserTestUtil/types/current/tsconfig.tsbuildinfo +1 -0
- package/dist/browserTestUtil/types/ts3.7/async/async.d.ts +30 -0
- package/dist/browserTestUtil/types/ts3.7/async/createCallbackTimingTest.d.ts +16 -0
- package/dist/browserTestUtil/types/ts3.7/async/marble.d.ts +12 -0
- package/dist/browserTestUtil/types/ts3.7/benchmark/Benchmark.d.ts +84 -0
- package/dist/browserTestUtil/types/ts3.7/env/jasmineEnv.d.ts +14 -0
- package/dist/browserTestUtil/types/ts3.7/expect/expectIterableEquals.d.ts +8 -0
- package/dist/browserTestUtil/types/ts3.7/expect/expectNothing.d.ts +5 -0
- package/dist/browserTestUtil/types/ts3.7/expect/prototype.d.ts +18 -0
- package/dist/browserTestUtil/types/ts3.7/expect/typesafety.d.ts +50 -0
- package/dist/browserTestUtil/types/ts3.7/index.d.ts +22 -0
- package/dist/browserTestUtil/types/ts3.7/matchers/customMatchers.d.ts +9 -0
- package/dist/browserTestUtil/types/ts3.7/matchers/toBeCloseToWithin.d.ts +5 -0
- package/dist/browserTestUtil/types/ts3.7/mock/asSpy.d.ts +18 -0
- package/dist/browserTestUtil/types/ts3.7/mock/createSpyFactory.d.ts +44 -0
- package/dist/browserTestUtil/types/ts3.7/mock/dom/MockTimeRanges.d.ts +15 -0
- package/dist/browserTestUtil/types/ts3.7/mock/dom/globals.d.ts +11 -0
- package/dist/browserTestUtil/types/ts3.7/mock/dom/lib.dom.d.ts +2110 -0
- package/dist/browserTestUtil/types/ts3.7/mock/dom/mockEvent.d.ts +7 -0
- package/dist/browserTestUtil/types/ts3.7/mock/implementEventFakes.d.ts +17 -0
- package/dist/browserTestUtil/types/ts3.7/mock/polyfillCustomEvent.d.ts +2 -0
- package/dist/browserTestUtil/types/ts3.7/reporters/ConsoleReporter.d.ts +10 -0
- package/dist/browserTestUtil/types/ts4.1/async/async.d.ts +30 -0
- package/dist/browserTestUtil/types/ts4.1/async/createCallbackTimingTest.d.ts +16 -0
- package/dist/browserTestUtil/types/ts4.1/async/marble.d.ts +12 -0
- package/dist/browserTestUtil/types/ts4.1/benchmark/Benchmark.d.ts +84 -0
- package/dist/browserTestUtil/types/ts4.1/env/jasmineEnv.d.ts +14 -0
- package/dist/browserTestUtil/types/ts4.1/expect/expectIterableEquals.d.ts +8 -0
- package/dist/browserTestUtil/types/ts4.1/expect/expectNothing.d.ts +5 -0
- package/dist/browserTestUtil/types/ts4.1/expect/prototype.d.ts +18 -0
- package/dist/browserTestUtil/types/ts4.1/expect/typesafety.d.ts +50 -0
- package/dist/browserTestUtil/types/ts4.1/index.d.ts +22 -0
- package/dist/browserTestUtil/types/ts4.1/matchers/customMatchers.d.ts +9 -0
- package/dist/browserTestUtil/types/ts4.1/matchers/toBeCloseToWithin.d.ts +5 -0
- package/dist/browserTestUtil/types/ts4.1/mock/asSpy.d.ts +18 -0
- package/dist/browserTestUtil/types/ts4.1/mock/createSpyFactory.d.ts +44 -0
- package/dist/browserTestUtil/types/ts4.1/mock/dom/MockTimeRanges.d.ts +15 -0
- package/dist/browserTestUtil/types/ts4.1/mock/dom/globals.d.ts +11 -0
- package/dist/browserTestUtil/types/ts4.1/mock/dom/lib.dom.d.ts +2110 -0
- package/dist/browserTestUtil/types/ts4.1/mock/dom/mockEvent.d.ts +7 -0
- package/dist/browserTestUtil/types/ts4.1/mock/implementEventFakes.d.ts +17 -0
- package/dist/browserTestUtil/types/ts4.1/mock/polyfillCustomEvent.d.ts +2 -0
- package/dist/browserTestUtil/types/ts4.1/reporters/ConsoleReporter.d.ts +10 -0
- package/dist/browserTestUtil/types/ts4.7/async/async.d.ts +30 -0
- package/dist/browserTestUtil/types/ts4.7/async/createCallbackTimingTest.d.ts +16 -0
- package/dist/browserTestUtil/types/ts4.7/async/marble.d.ts +12 -0
- package/dist/browserTestUtil/types/ts4.7/benchmark/Benchmark.d.ts +90 -0
- package/dist/browserTestUtil/types/ts4.7/env/jasmineEnv.d.ts +14 -0
- package/dist/browserTestUtil/types/ts4.7/expect/expectIterableEquals.d.ts +8 -0
- package/dist/browserTestUtil/types/ts4.7/expect/expectNothing.d.ts +5 -0
- package/dist/browserTestUtil/types/ts4.7/expect/prototype.d.ts +18 -0
- package/dist/browserTestUtil/types/ts4.7/expect/typesafety.d.ts +50 -0
- package/dist/browserTestUtil/types/ts4.7/index.d.ts +22 -0
- package/dist/browserTestUtil/types/ts4.7/matchers/customMatchers.d.ts +9 -0
- package/dist/browserTestUtil/types/ts4.7/matchers/toBeCloseToWithin.d.ts +5 -0
- package/dist/browserTestUtil/types/ts4.7/mock/asSpy.d.ts +18 -0
- package/dist/browserTestUtil/types/ts4.7/mock/createSpyFactory.d.ts +44 -0
- package/dist/browserTestUtil/types/ts4.7/mock/dom/MockTimeRanges.d.ts +15 -0
- package/dist/browserTestUtil/types/ts4.7/mock/dom/globals.d.ts +11 -0
- package/dist/browserTestUtil/types/ts4.7/mock/dom/lib.dom.d.ts +2110 -0
- package/dist/browserTestUtil/types/ts4.7/mock/dom/mockEvent.d.ts +7 -0
- package/dist/browserTestUtil/types/ts4.7/mock/implementEventFakes.d.ts +17 -0
- package/dist/browserTestUtil/types/ts4.7/mock/polyfillCustomEvent.d.ts +2 -0
- package/dist/browserTestUtil/types/ts4.7/reporters/ConsoleReporter.d.ts +10 -0
- package/dist/index.cjs +6104 -0
- package/dist/index.cjs.map +7 -0
- package/dist/index.js +6084 -0
- package/dist/index.js.map +7 -0
- package/dist/polyfill/index.d.ts +7 -0
- package/dist/polyfill/index.d.ts.map +1 -0
- package/dist/polyfill/index.js +3552 -0
- package/dist/polyfill/index.js.map +7 -0
- package/dist/polyfill/tsconfig.tsbuildinfo +1 -0
- package/dist/test/benchmark.es5.js +266 -0
- package/dist/test/benchmark.js +2026 -0
- package/dist/test/benchmark.js.map +7 -0
- package/dist/testUtil/index.js +593 -0
- package/dist/testUtil/index.js.map +7 -0
- package/dist/testUtil/types/current/error/uncaughtErrorUtil.d.ts +15 -0
- package/dist/testUtil/types/current/error/uncaughtErrorUtil.d.ts.map +1 -0
- package/dist/testUtil/types/current/error/uncaughtErrorUtil.js +52 -0
- package/dist/testUtil/types/current/global/overrideGlobalInit.d.ts +5 -0
- package/dist/testUtil/types/current/global/overrideGlobalInit.d.ts.map +1 -0
- package/dist/testUtil/types/current/global/overrideGlobalInit.js +10 -0
- package/dist/testUtil/types/current/index.d.ts +20 -0
- package/dist/testUtil/types/current/index.d.ts.map +1 -0
- package/dist/testUtil/types/current/index.js +19 -0
- package/dist/testUtil/types/current/mock/event/MockEventHost.d.ts +15 -0
- package/dist/testUtil/types/current/mock/event/MockEventHost.d.ts.map +1 -0
- package/dist/testUtil/types/current/mock/event/MockEventHost.js +21 -0
- package/dist/testUtil/types/current/mock/event/emptyLogTarget.d.ts +3 -0
- package/dist/testUtil/types/current/mock/event/emptyLogTarget.d.ts.map +1 -0
- package/dist/testUtil/types/current/mock/event/emptyLogTarget.js +7 -0
- package/dist/testUtil/types/current/mock/logging/MockLogger.d.ts +18 -0
- package/dist/testUtil/types/current/mock/logging/MockLogger.d.ts.map +1 -0
- package/dist/testUtil/types/current/mock/logging/MockLogger.js +41 -0
- package/dist/testUtil/types/current/mock/navigator/setMockNavigator.d.ts +7 -0
- package/dist/testUtil/types/current/mock/navigator/setMockNavigator.d.ts.map +1 -0
- package/dist/testUtil/types/current/mock/navigator/setMockNavigator.js +15 -0
- package/dist/testUtil/types/current/mock/network/MockNetworkInformation.d.ts +10 -0
- package/dist/testUtil/types/current/mock/network/MockNetworkInformation.d.ts.map +1 -0
- package/dist/testUtil/types/current/mock/network/MockNetworkInformation.js +12 -0
- package/dist/testUtil/types/current/mock/network/MockNetworkMetricsController.d.ts +10 -0
- package/dist/testUtil/types/current/mock/network/MockNetworkMetricsController.d.ts.map +1 -0
- package/dist/testUtil/types/current/mock/network/MockNetworkMetricsController.js +15 -0
- package/dist/testUtil/types/current/mock/network/MockNetworkState.d.ts +7 -0
- package/dist/testUtil/types/current/mock/network/MockNetworkState.d.ts.map +1 -0
- package/dist/testUtil/types/current/mock/network/MockNetworkState.js +11 -0
- package/dist/testUtil/types/current/mock/network/MockRequester.d.ts +6 -0
- package/dist/testUtil/types/current/mock/network/MockRequester.d.ts.map +1 -0
- package/dist/testUtil/types/current/mock/network/MockRequester.js +10 -0
- package/dist/testUtil/types/current/mock/network/emptyRequestInfo.d.ts +10 -0
- package/dist/testUtil/types/current/mock/network/emptyRequestInfo.d.ts.map +1 -0
- package/dist/testUtil/types/current/mock/network/emptyRequestInfo.js +71 -0
- package/dist/testUtil/types/current/mock/persistence/MockPersistence.d.ts +9 -0
- package/dist/testUtil/types/current/mock/persistence/MockPersistence.d.ts.map +1 -0
- package/dist/testUtil/types/current/mock/persistence/MockPersistence.js +12 -0
- package/dist/testUtil/types/current/mock/util/spyOnPropertySafe.d.ts +6 -0
- package/dist/testUtil/types/current/mock/util/spyOnPropertySafe.d.ts.map +1 -0
- package/dist/testUtil/types/current/mock/util/spyOnPropertySafe.js +20 -0
- package/dist/testUtil/types/current/patch/addPatchTests.d.ts +35 -0
- package/dist/testUtil/types/current/patch/addPatchTests.d.ts.map +1 -0
- package/dist/testUtil/types/current/patch/addPatchTests.js +54 -0
- package/dist/testUtil/types/current/reporters/LogReporter.d.ts +57 -0
- package/dist/testUtil/types/current/reporters/LogReporter.d.ts.map +1 -0
- package/dist/testUtil/types/current/reporters/LogReporter.js +145 -0
- package/dist/testUtil/types/current/reporters/RestApiReporter.d.ts +23 -0
- package/dist/testUtil/types/current/reporters/RestApiReporter.d.ts.map +1 -0
- package/dist/testUtil/types/current/reporters/RestApiReporter.js +91 -0
- package/dist/testUtil/types/current/tsconfig.tsbuildinfo +1 -0
- package/dist/testUtil/types/current/util/event/createEventSpy.d.ts +31 -0
- package/dist/testUtil/types/current/util/event/createEventSpy.d.ts.map +1 -0
- package/dist/testUtil/types/current/util/event/createEventSpy.js +33 -0
- package/dist/testUtil/types/current/util/initializeUncaughtErrorLogging.d.ts +6 -0
- package/dist/testUtil/types/current/util/initializeUncaughtErrorLogging.d.ts.map +1 -0
- package/dist/testUtil/types/current/util/initializeUncaughtErrorLogging.js +20 -0
- package/dist/testUtil/types/ts3.7/error/uncaughtErrorUtil.d.ts +15 -0
- package/dist/testUtil/types/ts3.7/global/overrideGlobalInit.d.ts +5 -0
- package/dist/testUtil/types/ts3.7/index.d.ts +20 -0
- package/dist/testUtil/types/ts3.7/mock/event/MockEventHost.d.ts +15 -0
- package/dist/testUtil/types/ts3.7/mock/event/emptyLogTarget.d.ts +3 -0
- package/dist/testUtil/types/ts3.7/mock/logging/MockLogger.d.ts +18 -0
- package/dist/testUtil/types/ts3.7/mock/navigator/setMockNavigator.d.ts +7 -0
- package/dist/testUtil/types/ts3.7/mock/network/MockNetworkInformation.d.ts +10 -0
- package/dist/testUtil/types/ts3.7/mock/network/MockNetworkMetricsController.d.ts +10 -0
- package/dist/testUtil/types/ts3.7/mock/network/MockNetworkState.d.ts +7 -0
- package/dist/testUtil/types/ts3.7/mock/network/MockRequester.d.ts +6 -0
- package/dist/testUtil/types/ts3.7/mock/network/emptyRequestInfo.d.ts +10 -0
- package/dist/testUtil/types/ts3.7/mock/persistence/MockPersistence.d.ts +9 -0
- package/dist/testUtil/types/ts3.7/mock/util/spyOnPropertySafe.d.ts +6 -0
- package/dist/testUtil/types/ts3.7/patch/addPatchTests.d.ts +35 -0
- package/dist/testUtil/types/ts3.7/reporters/LogReporter.d.ts +57 -0
- package/dist/testUtil/types/ts3.7/reporters/RestApiReporter.d.ts +23 -0
- package/dist/testUtil/types/ts3.7/util/event/createEventSpy.d.ts +31 -0
- package/dist/testUtil/types/ts3.7/util/initializeUncaughtErrorLogging.d.ts +6 -0
- package/dist/testUtil/types/ts4.1/error/uncaughtErrorUtil.d.ts +15 -0
- package/dist/testUtil/types/ts4.1/global/overrideGlobalInit.d.ts +5 -0
- package/dist/testUtil/types/ts4.1/index.d.ts +20 -0
- package/dist/testUtil/types/ts4.1/mock/event/MockEventHost.d.ts +15 -0
- package/dist/testUtil/types/ts4.1/mock/event/emptyLogTarget.d.ts +3 -0
- package/dist/testUtil/types/ts4.1/mock/logging/MockLogger.d.ts +18 -0
- package/dist/testUtil/types/ts4.1/mock/navigator/setMockNavigator.d.ts +7 -0
- package/dist/testUtil/types/ts4.1/mock/network/MockNetworkInformation.d.ts +10 -0
- package/dist/testUtil/types/ts4.1/mock/network/MockNetworkMetricsController.d.ts +10 -0
- package/dist/testUtil/types/ts4.1/mock/network/MockNetworkState.d.ts +7 -0
- package/dist/testUtil/types/ts4.1/mock/network/MockRequester.d.ts +6 -0
- package/dist/testUtil/types/ts4.1/mock/network/emptyRequestInfo.d.ts +10 -0
- package/dist/testUtil/types/ts4.1/mock/persistence/MockPersistence.d.ts +9 -0
- package/dist/testUtil/types/ts4.1/mock/util/spyOnPropertySafe.d.ts +6 -0
- package/dist/testUtil/types/ts4.1/patch/addPatchTests.d.ts +35 -0
- package/dist/testUtil/types/ts4.1/reporters/LogReporter.d.ts +58 -0
- package/dist/testUtil/types/ts4.1/reporters/RestApiReporter.d.ts +24 -0
- package/dist/testUtil/types/ts4.1/util/event/createEventSpy.d.ts +31 -0
- package/dist/testUtil/types/ts4.1/util/initializeUncaughtErrorLogging.d.ts +6 -0
- package/dist/testUtil/types/ts4.7/error/uncaughtErrorUtil.d.ts +15 -0
- package/dist/testUtil/types/ts4.7/global/overrideGlobalInit.d.ts +5 -0
- package/dist/testUtil/types/ts4.7/index.d.ts +20 -0
- package/dist/testUtil/types/ts4.7/mock/event/MockEventHost.d.ts +15 -0
- package/dist/testUtil/types/ts4.7/mock/event/emptyLogTarget.d.ts +3 -0
- package/dist/testUtil/types/ts4.7/mock/logging/MockLogger.d.ts +18 -0
- package/dist/testUtil/types/ts4.7/mock/navigator/setMockNavigator.d.ts +7 -0
- package/dist/testUtil/types/ts4.7/mock/network/MockNetworkInformation.d.ts +10 -0
- package/dist/testUtil/types/ts4.7/mock/network/MockNetworkMetricsController.d.ts +10 -0
- package/dist/testUtil/types/ts4.7/mock/network/MockNetworkState.d.ts +7 -0
- package/dist/testUtil/types/ts4.7/mock/network/MockRequester.d.ts +6 -0
- package/dist/testUtil/types/ts4.7/mock/network/emptyRequestInfo.d.ts +10 -0
- package/dist/testUtil/types/ts4.7/mock/persistence/MockPersistence.d.ts +9 -0
- package/dist/testUtil/types/ts4.7/mock/util/spyOnPropertySafe.d.ts +6 -0
- package/dist/testUtil/types/ts4.7/patch/addPatchTests.d.ts +35 -0
- package/dist/testUtil/types/ts4.7/reporters/LogReporter.d.ts +57 -0
- package/dist/testUtil/types/ts4.7/reporters/RestApiReporter.d.ts +23 -0
- package/dist/testUtil/types/ts4.7/util/event/createEventSpy.d.ts +31 -0
- package/dist/testUtil/types/ts4.7/util/initializeUncaughtErrorLogging.d.ts +6 -0
- package/dist/types/current/client/Version.d.ts +38 -0
- package/dist/types/current/client/Version.d.ts.map +1 -0
- package/dist/types/current/client/Version.js +40 -0
- package/dist/types/current/client/userAgent/UserAgentInfo.d.ts +36 -0
- package/dist/types/current/client/userAgent/UserAgentInfo.d.ts.map +1 -0
- package/dist/types/current/client/userAgent/UserAgentInfo.js +12 -0
- package/dist/types/current/client/userAgent/defaultUserAgentRules.d.ts +94 -0
- package/dist/types/current/client/userAgent/defaultUserAgentRules.d.ts.map +1 -0
- package/dist/types/current/client/userAgent/defaultUserAgentRules.js +251 -0
- package/dist/types/current/client/userAgent/hasBrowser.d.ts +26 -0
- package/dist/types/current/client/userAgent/hasBrowser.d.ts.map +1 -0
- package/dist/types/current/client/userAgent/hasBrowser.js +49 -0
- package/dist/types/current/client/userAgent/parseUserAgent.d.ts +14 -0
- package/dist/types/current/client/userAgent/parseUserAgent.d.ts.map +1 -0
- package/dist/types/current/client/userAgent/parseUserAgent.js +67 -0
- package/dist/types/current/client/userAgent/tokenizeUserAgent.d.ts +104 -0
- package/dist/types/current/client/userAgent/tokenizeUserAgent.d.ts.map +1 -0
- package/dist/types/current/client/userAgent/tokenizeUserAgent.js +167 -0
- package/dist/types/current/client/userAgent/userAgentRuleHelpers.d.ts +52 -0
- package/dist/types/current/client/userAgent/userAgentRuleHelpers.d.ts.map +1 -0
- package/dist/types/current/client/userAgent/userAgentRuleHelpers.js +96 -0
- package/dist/types/current/core/Unsubscribe.d.ts +2 -0
- package/dist/types/current/core/Unsubscribe.d.ts.map +1 -0
- package/dist/types/current/core/Unsubscribe.js +5 -0
- package/dist/types/current/core/clearable.d.ts +19 -0
- package/dist/types/current/core/clearable.d.ts.map +1 -0
- package/dist/types/current/core/clearable.js +24 -0
- package/dist/types/current/core/cloneable.d.ts +14 -0
- package/dist/types/current/core/cloneable.d.ts.map +1 -0
- package/dist/types/current/core/cloneable.js +14 -0
- package/dist/types/current/core/disposable.d.ts +66 -0
- package/dist/types/current/core/disposable.d.ts.map +1 -0
- package/dist/types/current/core/disposable.js +91 -0
- package/dist/types/current/error/AbortError.d.ts +6 -0
- package/dist/types/current/error/AbortError.d.ts.map +1 -0
- package/dist/types/current/error/AbortError.js +15 -0
- package/dist/types/current/error/ErrorOrigin.d.ts +45 -0
- package/dist/types/current/error/ErrorOrigin.d.ts.map +1 -0
- package/dist/types/current/error/ErrorOrigin.js +48 -0
- package/dist/types/current/error/IllegalArgumentError.d.ts +10 -0
- package/dist/types/current/error/IllegalArgumentError.d.ts.map +1 -0
- package/dist/types/current/error/IllegalArgumentError.js +20 -0
- package/dist/types/current/error/IllegalStateError.d.ts +9 -0
- package/dist/types/current/error/IllegalStateError.d.ts.map +1 -0
- package/dist/types/current/error/IllegalStateError.js +17 -0
- package/dist/types/current/error/MediaUnsupportedError.d.ts +9 -0
- package/dist/types/current/error/MediaUnsupportedError.d.ts.map +1 -0
- package/dist/types/current/error/MediaUnsupportedError.js +20 -0
- package/dist/types/current/error/ReportableError.d.ts +39 -0
- package/dist/types/current/error/ReportableError.d.ts.map +1 -0
- package/dist/types/current/error/ReportableError.js +66 -0
- package/dist/types/current/error/ServiceResponseError.d.ts +14 -0
- package/dist/types/current/error/ServiceResponseError.d.ts.map +1 -0
- package/dist/types/current/error/ServiceResponseError.js +31 -0
- package/dist/types/current/error/StackOverflowError.d.ts +9 -0
- package/dist/types/current/error/StackOverflowError.d.ts.map +1 -0
- package/dist/types/current/error/StackOverflowError.js +17 -0
- package/dist/types/current/error/TimeoutError.d.ts +6 -0
- package/dist/types/current/error/TimeoutError.d.ts.map +1 -0
- package/dist/types/current/error/TimeoutError.js +15 -0
- package/dist/types/current/error/UnreachableCodeError.d.ts +9 -0
- package/dist/types/current/error/UnreachableCodeError.d.ts.map +1 -0
- package/dist/types/current/error/UnreachableCodeError.js +17 -0
- package/dist/types/current/error/ValidationError.d.ts +17 -0
- package/dist/types/current/error/ValidationError.d.ts.map +1 -0
- package/dist/types/current/error/ValidationError.js +32 -0
- package/dist/types/current/event/DomEventHost.d.ts +45 -0
- package/dist/types/current/event/DomEventHost.d.ts.map +1 -0
- package/dist/types/current/event/DomEventHost.js +53 -0
- package/dist/types/current/event/EventHost.d.ts +69 -0
- package/dist/types/current/event/EventHost.d.ts.map +1 -0
- package/dist/types/current/event/EventHost.js +38 -0
- package/dist/types/current/event/Signal.d.ts +57 -0
- package/dist/types/current/event/Signal.d.ts.map +1 -0
- package/dist/types/current/event/Signal.js +66 -0
- package/dist/types/current/event/nextEventAsPromise.d.ts +30 -0
- package/dist/types/current/event/nextEventAsPromise.d.ts.map +1 -0
- package/dist/types/current/event/nextEventAsPromise.js +23 -0
- package/dist/types/current/event/onAny.d.ts +13 -0
- package/dist/types/current/event/onAny.d.ts.map +1 -0
- package/dist/types/current/event/onAny.js +24 -0
- package/dist/types/current/event/redispatchEvents.d.ts +15 -0
- package/dist/types/current/event/redispatchEvents.d.ts.map +1 -0
- package/dist/types/current/event/redispatchEvents.js +23 -0
- package/dist/types/current/global/environment.d.ts +26 -0
- package/dist/types/current/global/environment.d.ts.map +1 -0
- package/dist/types/current/global/environment.js +29 -0
- package/dist/types/current/global/globalRegistry.d.ts +86 -0
- package/dist/types/current/global/globalRegistry.d.ts.map +1 -0
- package/dist/types/current/global/globalRegistry.js +181 -0
- package/dist/types/current/global/globalTarget.d.ts +8 -0
- package/dist/types/current/global/globalTarget.d.ts.map +1 -0
- package/dist/types/current/global/globalTarget.js +12 -0
- package/dist/types/current/index.d.ts +118 -0
- package/dist/types/current/index.d.ts.map +1 -0
- package/dist/types/current/index.js +117 -0
- package/dist/types/current/logging/ConsoleLogHandler.d.ts +26 -0
- package/dist/types/current/logging/ConsoleLogHandler.d.ts.map +1 -0
- package/dist/types/current/logging/ConsoleLogHandler.js +43 -0
- package/dist/types/current/logging/HistoryLogHandler.d.ts +56 -0
- package/dist/types/current/logging/HistoryLogHandler.d.ts.map +1 -0
- package/dist/types/current/logging/HistoryLogHandler.js +54 -0
- package/dist/types/current/logging/LogTarget.d.ts +19 -0
- package/dist/types/current/logging/LogTarget.d.ts.map +1 -0
- package/dist/types/current/logging/LogTarget.js +18 -0
- package/dist/types/current/logging/Logger.d.ts +66 -0
- package/dist/types/current/logging/Logger.d.ts.map +1 -0
- package/dist/types/current/logging/Logger.js +110 -0
- package/dist/types/current/logging/VinylLogging.d.ts +9 -0
- package/dist/types/current/logging/VinylLogging.d.ts.map +1 -0
- package/dist/types/current/logging/VinylLogging.js +22 -0
- package/dist/types/current/logging/getLogLevelFromSearch.d.ts +8 -0
- package/dist/types/current/logging/getLogLevelFromSearch.d.ts.map +1 -0
- package/dist/types/current/logging/getLogLevelFromSearch.js +17 -0
- package/dist/types/current/logging/logTimer.d.ts +10 -0
- package/dist/types/current/logging/logTimer.d.ts.map +1 -0
- package/dist/types/current/logging/logTimer.js +18 -0
- package/dist/types/current/network/RequestError.d.ts +26 -0
- package/dist/types/current/network/RequestError.d.ts.map +1 -0
- package/dist/types/current/network/RequestError.js +78 -0
- package/dist/types/current/network/RequestInterceptor.d.ts +14 -0
- package/dist/types/current/network/RequestInterceptor.d.ts.map +1 -0
- package/dist/types/current/network/RequestInterceptor.js +5 -0
- package/dist/types/current/network/Requester.d.ts +84 -0
- package/dist/types/current/network/Requester.d.ts.map +1 -0
- package/dist/types/current/network/Requester.js +10 -0
- package/dist/types/current/network/RequesterImpl.d.ts +120 -0
- package/dist/types/current/network/RequesterImpl.d.ts.map +1 -0
- package/dist/types/current/network/RequesterImpl.js +321 -0
- package/dist/types/current/network/RequesterImplEventMap.d.ts +230 -0
- package/dist/types/current/network/RequesterImplEventMap.d.ts.map +1 -0
- package/dist/types/current/network/RequesterImplEventMap.js +23 -0
- package/dist/types/current/network/browser/NetworkInformation.d.ts +48 -0
- package/dist/types/current/network/browser/NetworkInformation.d.ts.map +1 -0
- package/dist/types/current/network/browser/NetworkInformation.js +17 -0
- package/dist/types/current/network/createRequester.d.ts +12 -0
- package/dist/types/current/network/createRequester.d.ts.map +1 -0
- package/dist/types/current/network/createRequester.js +29 -0
- package/dist/types/current/network/logging/networkLoggingHandler.d.ts +14 -0
- package/dist/types/current/network/logging/networkLoggingHandler.d.ts.map +1 -0
- package/dist/types/current/network/logging/networkLoggingHandler.js +74 -0
- package/dist/types/current/network/metrics/NetworkMetricsController.d.ts +41 -0
- package/dist/types/current/network/metrics/NetworkMetricsController.d.ts.map +1 -0
- package/dist/types/current/network/metrics/NetworkMetricsController.js +5 -0
- package/dist/types/current/network/metrics/NetworkMetricsControllerImpl.d.ts +119 -0
- package/dist/types/current/network/metrics/NetworkMetricsControllerImpl.d.ts.map +1 -0
- package/dist/types/current/network/metrics/NetworkMetricsControllerImpl.js +210 -0
- package/dist/types/current/network/metrics/networkMetricsGlobal.d.ts +11 -0
- package/dist/types/current/network/metrics/networkMetricsGlobal.d.ts.map +1 -0
- package/dist/types/current/network/metrics/networkMetricsGlobal.js +19 -0
- package/dist/types/current/network/metrics/networkMetricsModel.d.ts +147 -0
- package/dist/types/current/network/metrics/networkMetricsModel.d.ts.map +1 -0
- package/dist/types/current/network/metrics/networkMetricsModel.js +35 -0
- package/dist/types/current/network/network.d.ts +47 -0
- package/dist/types/current/network/network.d.ts.map +1 -0
- package/dist/types/current/network/network.js +54 -0
- package/dist/types/current/network/requesterGlobal.d.ts +19 -0
- package/dist/types/current/network/requesterGlobal.d.ts.map +1 -0
- package/dist/types/current/network/requesterGlobal.js +29 -0
- package/dist/types/current/network/requesterUtil.d.ts +28 -0
- package/dist/types/current/network/requesterUtil.d.ts.map +1 -0
- package/dist/types/current/network/requesterUtil.js +71 -0
- package/dist/types/current/network/responseUtil.d.ts +10 -0
- package/dist/types/current/network/responseUtil.d.ts.map +1 -0
- package/dist/types/current/network/responseUtil.js +14 -0
- package/dist/types/current/patch/network/fetch.d.ts +11 -0
- package/dist/types/current/patch/network/fetch.d.ts.map +1 -0
- package/dist/types/current/patch/network/fetch.js +43 -0
- package/dist/types/current/patch/patchTarget.d.ts +114 -0
- package/dist/types/current/patch/patchTarget.d.ts.map +1 -0
- package/dist/types/current/patch/patchTarget.js +219 -0
- package/dist/types/current/persistence/KeyValuePersistence.d.ts +28 -0
- package/dist/types/current/persistence/KeyValuePersistence.d.ts.map +1 -0
- package/dist/types/current/persistence/KeyValuePersistence.js +5 -0
- package/dist/types/current/persistence/PersistentItem.d.ts +86 -0
- package/dist/types/current/persistence/PersistentItem.d.ts.map +1 -0
- package/dist/types/current/persistence/PersistentItem.js +70 -0
- package/dist/types/current/persistence/StoragePersistence.d.ts +11 -0
- package/dist/types/current/persistence/StoragePersistence.d.ts.map +1 -0
- package/dist/types/current/persistence/StoragePersistence.js +25 -0
- package/dist/types/current/persistence/persistenceRef.d.ts +7 -0
- package/dist/types/current/persistence/persistenceRef.d.ts.map +1 -0
- package/dist/types/current/persistence/persistenceRef.js +13 -0
- package/dist/types/current/tsconfig.tsbuildinfo +1 -0
- package/dist/types/current/util/async/Abort.d.ts +99 -0
- package/dist/types/current/util/async/Abort.d.ts.map +1 -0
- package/dist/types/current/util/async/Abort.js +122 -0
- package/dist/types/current/util/async/Deferred.d.ts +25 -0
- package/dist/types/current/util/async/Deferred.d.ts.map +1 -0
- package/dist/types/current/util/async/Deferred.js +41 -0
- package/dist/types/current/util/async/TaskQueue.d.ts +74 -0
- package/dist/types/current/util/async/TaskQueue.d.ts.map +1 -0
- package/dist/types/current/util/async/TaskQueue.js +124 -0
- package/dist/types/current/util/async/TimeoutController.d.ts +36 -0
- package/dist/types/current/util/async/TimeoutController.d.ts.map +1 -0
- package/dist/types/current/util/async/TimeoutController.js +62 -0
- package/dist/types/current/util/async/TimeoutSlot.d.ts +29 -0
- package/dist/types/current/util/async/TimeoutSlot.d.ts.map +1 -0
- package/dist/types/current/util/async/TimeoutSlot.js +50 -0
- package/dist/types/current/util/async/abortUtils.d.ts +15 -0
- package/dist/types/current/util/async/abortUtils.d.ts.map +1 -0
- package/dist/types/current/util/async/abortUtils.js +27 -0
- package/dist/types/current/util/async/never.d.ts +5 -0
- package/dist/types/current/util/async/never.d.ts.map +1 -0
- package/dist/types/current/util/async/never.js +22 -0
- package/dist/types/current/util/async/promise.d.ts +53 -0
- package/dist/types/current/util/async/promise.d.ts.map +1 -0
- package/dist/types/current/util/async/promise.js +131 -0
- package/dist/types/current/util/async/sleep.d.ts +27 -0
- package/dist/types/current/util/async/sleep.d.ts.map +1 -0
- package/dist/types/current/util/async/sleep.js +41 -0
- package/dist/types/current/util/async/timeout.d.ts +29 -0
- package/dist/types/current/util/async/timeout.d.ts.map +1 -0
- package/dist/types/current/util/async/timeout.js +55 -0
- package/dist/types/current/util/browser/searchParams.d.ts +13 -0
- package/dist/types/current/util/browser/searchParams.d.ts.map +1 -0
- package/dist/types/current/util/browser/searchParams.js +26 -0
- package/dist/types/current/util/buffer/BufferError.d.ts +6 -0
- package/dist/types/current/util/buffer/BufferError.d.ts.map +1 -0
- package/dist/types/current/util/buffer/BufferError.js +15 -0
- package/dist/types/current/util/buffer/BufferReader.d.ts +77 -0
- package/dist/types/current/util/buffer/BufferReader.d.ts.map +1 -0
- package/dist/types/current/util/buffer/BufferReader.js +150 -0
- package/dist/types/current/util/buffer/BufferWriter.d.ts +30 -0
- package/dist/types/current/util/buffer/BufferWriter.d.ts.map +1 -0
- package/dist/types/current/util/buffer/BufferWriter.js +80 -0
- package/dist/types/current/util/buffer/buffer.d.ts +55 -0
- package/dist/types/current/util/buffer/buffer.d.ts.map +1 -0
- package/dist/types/current/util/buffer/buffer.js +99 -0
- package/dist/types/current/util/collection/CacheMap.d.ts +12 -0
- package/dist/types/current/util/collection/CacheMap.d.ts.map +1 -0
- package/dist/types/current/util/collection/CacheMap.js +5 -0
- package/dist/types/current/util/collection/LinkedList.d.ts +165 -0
- package/dist/types/current/util/collection/LinkedList.d.ts.map +1 -0
- package/dist/types/current/util/collection/LinkedList.js +332 -0
- package/dist/types/current/util/collection/LruCache.d.ts +93 -0
- package/dist/types/current/util/collection/LruCache.d.ts.map +1 -0
- package/dist/types/current/util/collection/LruCache.js +170 -0
- package/dist/types/current/util/collection/array.d.ts +207 -0
- package/dist/types/current/util/collection/array.d.ts.map +1 -0
- package/dist/types/current/util/collection/array.js +403 -0
- package/dist/types/current/util/collection/typedArray.d.ts +17 -0
- package/dist/types/current/util/collection/typedArray.d.ts.map +1 -0
- package/dist/types/current/util/collection/typedArray.js +32 -0
- package/dist/types/current/util/comparison/compare.d.ts +33 -0
- package/dist/types/current/util/comparison/compare.d.ts.map +1 -0
- package/dist/types/current/util/comparison/compare.js +53 -0
- package/dist/types/current/util/config/ValueProvider.d.ts +17 -0
- package/dist/types/current/util/config/ValueProvider.d.ts.map +1 -0
- package/dist/types/current/util/config/ValueProvider.js +18 -0
- package/dist/types/current/util/date/date.d.ts +32 -0
- package/dist/types/current/util/date/date.d.ts.map +1 -0
- package/dist/types/current/util/date/date.js +49 -0
- package/dist/types/current/util/error/stack.d.ts +79 -0
- package/dist/types/current/util/error/stack.d.ts.map +1 -0
- package/dist/types/current/util/error/stack.js +135 -0
- package/dist/types/current/util/fun/debounce.d.ts +12 -0
- package/dist/types/current/util/fun/debounce.d.ts.map +1 -0
- package/dist/types/current/util/fun/debounce.js +28 -0
- package/dist/types/current/util/fun/flow.d.ts +38 -0
- package/dist/types/current/util/fun/flow.d.ts.map +1 -0
- package/dist/types/current/util/fun/flow.js +28 -0
- package/dist/types/current/util/fun/function.d.ts +5 -0
- package/dist/types/current/util/fun/function.d.ts.map +1 -0
- package/dist/types/current/util/fun/function.js +8 -0
- package/dist/types/current/util/fun/memoize.d.ts +24 -0
- package/dist/types/current/util/fun/memoize.d.ts.map +1 -0
- package/dist/types/current/util/fun/memoize.js +62 -0
- package/dist/types/current/util/fun/throttle.d.ts +34 -0
- package/dist/types/current/util/fun/throttle.d.ts.map +1 -0
- package/dist/types/current/util/fun/throttle.js +66 -0
- package/dist/types/current/util/iteration/iterable.d.ts +26 -0
- package/dist/types/current/util/iteration/iterable.d.ts.map +1 -0
- package/dist/types/current/util/iteration/iterable.js +97 -0
- package/dist/types/current/util/map/map.d.ts +17 -0
- package/dist/types/current/util/map/map.d.ts.map +1 -0
- package/dist/types/current/util/map/map.js +35 -0
- package/dist/types/current/util/math/math.d.ts +79 -0
- package/dist/types/current/util/math/math.d.ts.map +1 -0
- package/dist/types/current/util/math/math.js +94 -0
- package/dist/types/current/util/mpeg/parseSidxBox.d.ts +100 -0
- package/dist/types/current/util/mpeg/parseSidxBox.d.ts.map +1 -0
- package/dist/types/current/util/mpeg/parseSidxBox.js +91 -0
- package/dist/types/current/util/network/request.d.ts +18 -0
- package/dist/types/current/util/network/request.d.ts.map +1 -0
- package/dist/types/current/util/network/request.js +79 -0
- package/dist/types/current/util/object/clone.d.ts +68 -0
- package/dist/types/current/util/object/clone.d.ts.map +1 -0
- package/dist/types/current/util/object/clone.js +36 -0
- package/dist/types/current/util/object/equalDeep.d.ts +54 -0
- package/dist/types/current/util/object/equalDeep.d.ts.map +1 -0
- package/dist/types/current/util/object/equalDeep.js +144 -0
- package/dist/types/current/util/object/lazy.d.ts +54 -0
- package/dist/types/current/util/object/lazy.d.ts.map +1 -0
- package/dist/types/current/util/object/lazy.js +70 -0
- package/dist/types/current/util/object/merge.d.ts +72 -0
- package/dist/types/current/util/object/merge.d.ts.map +1 -0
- package/dist/types/current/util/object/merge.js +19 -0
- package/dist/types/current/util/object/mergeDeep.d.ts +126 -0
- package/dist/types/current/util/object/mergeDeep.d.ts.map +1 -0
- package/dist/types/current/util/object/mergeDeep.js +256 -0
- package/dist/types/current/util/object/mutableType.d.ts +64 -0
- package/dist/types/current/util/object/mutableType.d.ts.map +1 -0
- package/dist/types/current/util/object/mutableType.js +5 -0
- package/dist/types/current/util/object/object.d.ts +55 -0
- package/dist/types/current/util/object/object.d.ts.map +1 -0
- package/dist/types/current/util/object/object.js +91 -0
- package/dist/types/current/util/object/readonlyType.d.ts +71 -0
- package/dist/types/current/util/object/readonlyType.d.ts.map +1 -0
- package/dist/types/current/util/object/readonlyType.js +5 -0
- package/dist/types/current/util/range/IntersectionRanges.d.ts +37 -0
- package/dist/types/current/util/range/IntersectionRanges.d.ts.map +1 -0
- package/dist/types/current/util/range/IntersectionRanges.js +77 -0
- package/dist/types/current/util/range/Ranges.d.ts +123 -0
- package/dist/types/current/util/range/Ranges.d.ts.map +1 -0
- package/dist/types/current/util/range/Ranges.js +192 -0
- package/dist/types/current/util/range/UnionRanges.d.ts +37 -0
- package/dist/types/current/util/range/UnionRanges.d.ts.map +1 -0
- package/dist/types/current/util/range/UnionRanges.js +56 -0
- package/dist/types/current/util/range/timeRanges.d.ts +14 -0
- package/dist/types/current/util/range/timeRanges.d.ts.map +1 -0
- package/dist/types/current/util/range/timeRanges.js +25 -0
- package/dist/types/current/util/serialization/ParseError.d.ts +48 -0
- package/dist/types/current/util/serialization/ParseError.d.ts.map +1 -0
- package/dist/types/current/util/serialization/ParseError.js +42 -0
- package/dist/types/current/util/serialization/json.d.ts +30 -0
- package/dist/types/current/util/serialization/json.d.ts.map +1 -0
- package/dist/types/current/util/serialization/json.js +79 -0
- package/dist/types/current/util/serialization/primitives.d.ts +24 -0
- package/dist/types/current/util/serialization/primitives.d.ts.map +1 -0
- package/dist/types/current/util/serialization/primitives.js +48 -0
- package/dist/types/current/util/serialization/stringifyForPrint.d.ts +14 -0
- package/dist/types/current/util/serialization/stringifyForPrint.d.ts.map +1 -0
- package/dist/types/current/util/serialization/stringifyForPrint.js +39 -0
- package/dist/types/current/util/set/set.d.ts +17 -0
- package/dist/types/current/util/set/set.d.ts.map +1 -0
- package/dist/types/current/util/set/set.js +29 -0
- package/dist/types/current/util/string/StringReader.d.ts +149 -0
- package/dist/types/current/util/string/StringReader.d.ts.map +1 -0
- package/dist/types/current/util/string/StringReader.js +242 -0
- package/dist/types/current/util/string/string.d.ts +130 -0
- package/dist/types/current/util/string/string.d.ts.map +1 -0
- package/dist/types/current/util/string/string.js +249 -0
- package/dist/types/current/util/string/uid.d.ts +20 -0
- package/dist/types/current/util/string/uid.d.ts.map +1 -0
- package/dist/types/current/util/string/uid.js +26 -0
- package/dist/types/current/util/type.d.ts +166 -0
- package/dist/types/current/util/type.d.ts.map +1 -0
- package/dist/types/current/util/type.js +25 -0
- package/dist/types/current/util/url/resolveUrl.d.ts +23 -0
- package/dist/types/current/util/url/resolveUrl.d.ts.map +1 -0
- package/dist/types/current/util/url/resolveUrl.js +79 -0
- package/dist/types/ts3.7/client/Version.d.ts +38 -0
- package/dist/types/ts3.7/client/userAgent/UserAgentInfo.d.ts +36 -0
- package/dist/types/ts3.7/client/userAgent/defaultUserAgentRules.d.ts +94 -0
- package/dist/types/ts3.7/client/userAgent/hasBrowser.d.ts +26 -0
- package/dist/types/ts3.7/client/userAgent/parseUserAgent.d.ts +14 -0
- package/dist/types/ts3.7/client/userAgent/tokenizeUserAgent.d.ts +104 -0
- package/dist/types/ts3.7/client/userAgent/userAgentRuleHelpers.d.ts +52 -0
- package/dist/types/ts3.7/core/Unsubscribe.d.ts +2 -0
- package/dist/types/ts3.7/core/clearable.d.ts +19 -0
- package/dist/types/ts3.7/core/cloneable.d.ts +14 -0
- package/dist/types/ts3.7/core/disposable.d.ts +66 -0
- package/dist/types/ts3.7/error/AbortError.d.ts +6 -0
- package/dist/types/ts3.7/error/ErrorOrigin.d.ts +45 -0
- package/dist/types/ts3.7/error/IllegalArgumentError.d.ts +10 -0
- package/dist/types/ts3.7/error/IllegalStateError.d.ts +9 -0
- package/dist/types/ts3.7/error/MediaUnsupportedError.d.ts +9 -0
- package/dist/types/ts3.7/error/ReportableError.d.ts +39 -0
- package/dist/types/ts3.7/error/ServiceResponseError.d.ts +14 -0
- package/dist/types/ts3.7/error/StackOverflowError.d.ts +9 -0
- package/dist/types/ts3.7/error/TimeoutError.d.ts +6 -0
- package/dist/types/ts3.7/error/UnreachableCodeError.d.ts +9 -0
- package/dist/types/ts3.7/error/ValidationError.d.ts +17 -0
- package/dist/types/ts3.7/event/DomEventHost.d.ts +45 -0
- package/dist/types/ts3.7/event/EventHost.d.ts +69 -0
- package/dist/types/ts3.7/event/Signal.d.ts +57 -0
- package/dist/types/ts3.7/event/nextEventAsPromise.d.ts +30 -0
- package/dist/types/ts3.7/event/onAny.d.ts +13 -0
- package/dist/types/ts3.7/event/redispatchEvents.d.ts +15 -0
- package/dist/types/ts3.7/global/environment.d.ts +26 -0
- package/dist/types/ts3.7/global/globalRegistry.d.ts +83 -0
- package/dist/types/ts3.7/global/globalTarget.d.ts +8 -0
- package/dist/types/ts3.7/index.d.ts +118 -0
- package/dist/types/ts3.7/logging/ConsoleLogHandler.d.ts +26 -0
- package/dist/types/ts3.7/logging/HistoryLogHandler.d.ts +56 -0
- package/dist/types/ts3.7/logging/LogTarget.d.ts +19 -0
- package/dist/types/ts3.7/logging/Logger.d.ts +66 -0
- package/dist/types/ts3.7/logging/VinylLogging.d.ts +9 -0
- package/dist/types/ts3.7/logging/getLogLevelFromSearch.d.ts +8 -0
- package/dist/types/ts3.7/logging/logTimer.d.ts +10 -0
- package/dist/types/ts3.7/network/RequestError.d.ts +26 -0
- package/dist/types/ts3.7/network/RequestInterceptor.d.ts +14 -0
- package/dist/types/ts3.7/network/Requester.d.ts +84 -0
- package/dist/types/ts3.7/network/RequesterImpl.d.ts +116 -0
- package/dist/types/ts3.7/network/RequesterImplEventMap.d.ts +230 -0
- package/dist/types/ts3.7/network/browser/NetworkInformation.d.ts +48 -0
- package/dist/types/ts3.7/network/createRequester.d.ts +12 -0
- package/dist/types/ts3.7/network/logging/networkLoggingHandler.d.ts +14 -0
- package/dist/types/ts3.7/network/metrics/NetworkMetricsController.d.ts +41 -0
- package/dist/types/ts3.7/network/metrics/NetworkMetricsControllerImpl.d.ts +119 -0
- package/dist/types/ts3.7/network/metrics/networkMetricsGlobal.d.ts +11 -0
- package/dist/types/ts3.7/network/metrics/networkMetricsModel.d.ts +147 -0
- package/dist/types/ts3.7/network/network.d.ts +47 -0
- package/dist/types/ts3.7/network/requesterGlobal.d.ts +19 -0
- package/dist/types/ts3.7/network/requesterUtil.d.ts +28 -0
- package/dist/types/ts3.7/network/responseUtil.d.ts +10 -0
- package/dist/types/ts3.7/patch/network/fetch.d.ts +11 -0
- package/dist/types/ts3.7/patch/patchTarget.d.ts +114 -0
- package/dist/types/ts3.7/persistence/KeyValuePersistence.d.ts +28 -0
- package/dist/types/ts3.7/persistence/PersistentItem.d.ts +86 -0
- package/dist/types/ts3.7/persistence/StoragePersistence.d.ts +11 -0
- package/dist/types/ts3.7/persistence/persistenceRef.d.ts +7 -0
- package/dist/types/ts3.7/util/async/Abort.d.ts +96 -0
- package/dist/types/ts3.7/util/async/Deferred.d.ts +25 -0
- package/dist/types/ts3.7/util/async/TaskQueue.d.ts +71 -0
- package/dist/types/ts3.7/util/async/TimeoutController.d.ts +36 -0
- package/dist/types/ts3.7/util/async/TimeoutSlot.d.ts +26 -0
- package/dist/types/ts3.7/util/async/abortUtils.d.ts +15 -0
- package/dist/types/ts3.7/util/async/never.d.ts +5 -0
- package/dist/types/ts3.7/util/async/promise.d.ts +53 -0
- package/dist/types/ts3.7/util/async/sleep.d.ts +27 -0
- package/dist/types/ts3.7/util/async/timeout.d.ts +29 -0
- package/dist/types/ts3.7/util/browser/searchParams.d.ts +13 -0
- package/dist/types/ts3.7/util/buffer/BufferError.d.ts +6 -0
- package/dist/types/ts3.7/util/buffer/BufferReader.d.ts +77 -0
- package/dist/types/ts3.7/util/buffer/BufferWriter.d.ts +30 -0
- package/dist/types/ts3.7/util/buffer/buffer.d.ts +55 -0
- package/dist/types/ts3.7/util/collection/CacheMap.d.ts +12 -0
- package/dist/types/ts3.7/util/collection/LinkedList.d.ts +156 -0
- package/dist/types/ts3.7/util/collection/LruCache.d.ts +96 -0
- package/dist/types/ts3.7/util/collection/array.d.ts +207 -0
- package/dist/types/ts3.7/util/collection/typedArray.d.ts +17 -0
- package/dist/types/ts3.7/util/comparison/compare.d.ts +33 -0
- package/dist/types/ts3.7/util/config/ValueProvider.d.ts +17 -0
- package/dist/types/ts3.7/util/date/date.d.ts +32 -0
- package/dist/types/ts3.7/util/error/stack.d.ts +79 -0
- package/dist/types/ts3.7/util/fun/debounce.d.ts +12 -0
- package/dist/types/ts3.7/util/fun/flow.d.ts +38 -0
- package/dist/types/ts3.7/util/fun/function.d.ts +5 -0
- package/dist/types/ts3.7/util/fun/memoize.d.ts +24 -0
- package/dist/types/ts3.7/util/fun/throttle.d.ts +34 -0
- package/dist/types/ts3.7/util/iteration/iterable.d.ts +26 -0
- package/dist/types/ts3.7/util/map/map.d.ts +17 -0
- package/dist/types/ts3.7/util/math/math.d.ts +79 -0
- package/dist/types/ts3.7/util/mpeg/parseSidxBox.d.ts +100 -0
- package/dist/types/ts3.7/util/network/request.d.ts +18 -0
- package/dist/types/ts3.7/util/object/clone.d.ts +68 -0
- package/dist/types/ts3.7/util/object/equalDeep.d.ts +54 -0
- package/dist/types/ts3.7/util/object/lazy.d.ts +54 -0
- package/dist/types/ts3.7/util/object/merge.d.ts +72 -0
- package/dist/types/ts3.7/util/object/mergeDeep.d.ts +153 -0
- package/dist/types/ts3.7/util/object/mutableType.d.ts +85 -0
- package/dist/types/ts3.7/util/object/object.d.ts +55 -0
- package/dist/types/ts3.7/util/object/readonlyType.d.ts +100 -0
- package/dist/types/ts3.7/util/range/IntersectionRanges.d.ts +37 -0
- package/dist/types/ts3.7/util/range/Ranges.d.ts +126 -0
- package/dist/types/ts3.7/util/range/UnionRanges.d.ts +37 -0
- package/dist/types/ts3.7/util/range/timeRanges.d.ts +14 -0
- package/dist/types/ts3.7/util/serialization/ParseError.d.ts +48 -0
- package/dist/types/ts3.7/util/serialization/json.d.ts +30 -0
- package/dist/types/ts3.7/util/serialization/primitives.d.ts +24 -0
- package/dist/types/ts3.7/util/serialization/stringifyForPrint.d.ts +14 -0
- package/dist/types/ts3.7/util/set/set.d.ts +17 -0
- package/dist/types/ts3.7/util/string/StringReader.d.ts +134 -0
- package/dist/types/ts3.7/util/string/string.d.ts +130 -0
- package/dist/types/ts3.7/util/string/uid.d.ts +20 -0
- package/dist/types/ts3.7/util/type.d.ts +173 -0
- package/dist/types/ts3.7/util/url/resolveUrl.d.ts +23 -0
- package/dist/types/ts4.1/client/Version.d.ts +38 -0
- package/dist/types/ts4.1/client/userAgent/UserAgentInfo.d.ts +36 -0
- package/dist/types/ts4.1/client/userAgent/defaultUserAgentRules.d.ts +94 -0
- package/dist/types/ts4.1/client/userAgent/hasBrowser.d.ts +26 -0
- package/dist/types/ts4.1/client/userAgent/parseUserAgent.d.ts +14 -0
- package/dist/types/ts4.1/client/userAgent/tokenizeUserAgent.d.ts +104 -0
- package/dist/types/ts4.1/client/userAgent/userAgentRuleHelpers.d.ts +52 -0
- package/dist/types/ts4.1/core/Unsubscribe.d.ts +2 -0
- package/dist/types/ts4.1/core/clearable.d.ts +19 -0
- package/dist/types/ts4.1/core/cloneable.d.ts +14 -0
- package/dist/types/ts4.1/core/disposable.d.ts +66 -0
- package/dist/types/ts4.1/error/AbortError.d.ts +6 -0
- package/dist/types/ts4.1/error/ErrorOrigin.d.ts +45 -0
- package/dist/types/ts4.1/error/IllegalArgumentError.d.ts +10 -0
- package/dist/types/ts4.1/error/IllegalStateError.d.ts +9 -0
- package/dist/types/ts4.1/error/MediaUnsupportedError.d.ts +9 -0
- package/dist/types/ts4.1/error/ReportableError.d.ts +39 -0
- package/dist/types/ts4.1/error/ServiceResponseError.d.ts +14 -0
- package/dist/types/ts4.1/error/StackOverflowError.d.ts +9 -0
- package/dist/types/ts4.1/error/TimeoutError.d.ts +6 -0
- package/dist/types/ts4.1/error/UnreachableCodeError.d.ts +9 -0
- package/dist/types/ts4.1/error/ValidationError.d.ts +17 -0
- package/dist/types/ts4.1/event/DomEventHost.d.ts +45 -0
- package/dist/types/ts4.1/event/EventHost.d.ts +69 -0
- package/dist/types/ts4.1/event/Signal.d.ts +57 -0
- package/dist/types/ts4.1/event/nextEventAsPromise.d.ts +30 -0
- package/dist/types/ts4.1/event/onAny.d.ts +13 -0
- package/dist/types/ts4.1/event/redispatchEvents.d.ts +15 -0
- package/dist/types/ts4.1/global/environment.d.ts +26 -0
- package/dist/types/ts4.1/global/globalRegistry.d.ts +83 -0
- package/dist/types/ts4.1/global/globalTarget.d.ts +8 -0
- package/dist/types/ts4.1/index.d.ts +118 -0
- package/dist/types/ts4.1/logging/ConsoleLogHandler.d.ts +26 -0
- package/dist/types/ts4.1/logging/HistoryLogHandler.d.ts +56 -0
- package/dist/types/ts4.1/logging/LogTarget.d.ts +19 -0
- package/dist/types/ts4.1/logging/Logger.d.ts +66 -0
- package/dist/types/ts4.1/logging/VinylLogging.d.ts +9 -0
- package/dist/types/ts4.1/logging/getLogLevelFromSearch.d.ts +8 -0
- package/dist/types/ts4.1/logging/logTimer.d.ts +10 -0
- package/dist/types/ts4.1/network/RequestError.d.ts +26 -0
- package/dist/types/ts4.1/network/RequestInterceptor.d.ts +14 -0
- package/dist/types/ts4.1/network/Requester.d.ts +84 -0
- package/dist/types/ts4.1/network/RequesterImpl.d.ts +116 -0
- package/dist/types/ts4.1/network/RequesterImplEventMap.d.ts +230 -0
- package/dist/types/ts4.1/network/browser/NetworkInformation.d.ts +48 -0
- package/dist/types/ts4.1/network/createRequester.d.ts +12 -0
- package/dist/types/ts4.1/network/logging/networkLoggingHandler.d.ts +14 -0
- package/dist/types/ts4.1/network/metrics/NetworkMetricsController.d.ts +41 -0
- package/dist/types/ts4.1/network/metrics/NetworkMetricsControllerImpl.d.ts +119 -0
- package/dist/types/ts4.1/network/metrics/networkMetricsGlobal.d.ts +11 -0
- package/dist/types/ts4.1/network/metrics/networkMetricsModel.d.ts +147 -0
- package/dist/types/ts4.1/network/network.d.ts +47 -0
- package/dist/types/ts4.1/network/requesterGlobal.d.ts +19 -0
- package/dist/types/ts4.1/network/requesterUtil.d.ts +28 -0
- package/dist/types/ts4.1/network/responseUtil.d.ts +10 -0
- package/dist/types/ts4.1/patch/network/fetch.d.ts +11 -0
- package/dist/types/ts4.1/patch/patchTarget.d.ts +114 -0
- package/dist/types/ts4.1/persistence/KeyValuePersistence.d.ts +28 -0
- package/dist/types/ts4.1/persistence/PersistentItem.d.ts +86 -0
- package/dist/types/ts4.1/persistence/StoragePersistence.d.ts +11 -0
- package/dist/types/ts4.1/persistence/persistenceRef.d.ts +7 -0
- package/dist/types/ts4.1/util/async/Abort.d.ts +96 -0
- package/dist/types/ts4.1/util/async/Deferred.d.ts +25 -0
- package/dist/types/ts4.1/util/async/TaskQueue.d.ts +71 -0
- package/dist/types/ts4.1/util/async/TimeoutController.d.ts +37 -0
- package/dist/types/ts4.1/util/async/TimeoutSlot.d.ts +26 -0
- package/dist/types/ts4.1/util/async/abortUtils.d.ts +15 -0
- package/dist/types/ts4.1/util/async/never.d.ts +5 -0
- package/dist/types/ts4.1/util/async/promise.d.ts +53 -0
- package/dist/types/ts4.1/util/async/sleep.d.ts +27 -0
- package/dist/types/ts4.1/util/async/timeout.d.ts +29 -0
- package/dist/types/ts4.1/util/browser/searchParams.d.ts +13 -0
- package/dist/types/ts4.1/util/buffer/BufferError.d.ts +6 -0
- package/dist/types/ts4.1/util/buffer/BufferReader.d.ts +77 -0
- package/dist/types/ts4.1/util/buffer/BufferWriter.d.ts +30 -0
- package/dist/types/ts4.1/util/buffer/buffer.d.ts +55 -0
- package/dist/types/ts4.1/util/collection/CacheMap.d.ts +12 -0
- package/dist/types/ts4.1/util/collection/LinkedList.d.ts +156 -0
- package/dist/types/ts4.1/util/collection/LruCache.d.ts +96 -0
- package/dist/types/ts4.1/util/collection/array.d.ts +207 -0
- package/dist/types/ts4.1/util/collection/typedArray.d.ts +17 -0
- package/dist/types/ts4.1/util/comparison/compare.d.ts +33 -0
- package/dist/types/ts4.1/util/config/ValueProvider.d.ts +17 -0
- package/dist/types/ts4.1/util/date/date.d.ts +32 -0
- package/dist/types/ts4.1/util/error/stack.d.ts +79 -0
- package/dist/types/ts4.1/util/fun/debounce.d.ts +12 -0
- package/dist/types/ts4.1/util/fun/flow.d.ts +38 -0
- package/dist/types/ts4.1/util/fun/function.d.ts +5 -0
- package/dist/types/ts4.1/util/fun/memoize.d.ts +24 -0
- package/dist/types/ts4.1/util/fun/throttle.d.ts +34 -0
- package/dist/types/ts4.1/util/iteration/iterable.d.ts +26 -0
- package/dist/types/ts4.1/util/map/map.d.ts +17 -0
- package/dist/types/ts4.1/util/math/math.d.ts +79 -0
- package/dist/types/ts4.1/util/mpeg/parseSidxBox.d.ts +100 -0
- package/dist/types/ts4.1/util/network/request.d.ts +18 -0
- package/dist/types/ts4.1/util/object/clone.d.ts +68 -0
- package/dist/types/ts4.1/util/object/equalDeep.d.ts +54 -0
- package/dist/types/ts4.1/util/object/lazy.d.ts +54 -0
- package/dist/types/ts4.1/util/object/merge.d.ts +72 -0
- package/dist/types/ts4.1/util/object/mergeDeep.d.ts +153 -0
- package/dist/types/ts4.1/util/object/mutableType.d.ts +87 -0
- package/dist/types/ts4.1/util/object/object.d.ts +55 -0
- package/dist/types/ts4.1/util/object/readonlyType.d.ts +100 -0
- package/dist/types/ts4.1/util/range/IntersectionRanges.d.ts +38 -0
- package/dist/types/ts4.1/util/range/Ranges.d.ts +126 -0
- package/dist/types/ts4.1/util/range/UnionRanges.d.ts +38 -0
- package/dist/types/ts4.1/util/range/timeRanges.d.ts +14 -0
- package/dist/types/ts4.1/util/serialization/ParseError.d.ts +48 -0
- package/dist/types/ts4.1/util/serialization/json.d.ts +30 -0
- package/dist/types/ts4.1/util/serialization/primitives.d.ts +24 -0
- package/dist/types/ts4.1/util/serialization/stringifyForPrint.d.ts +14 -0
- package/dist/types/ts4.1/util/set/set.d.ts +17 -0
- package/dist/types/ts4.1/util/string/StringReader.d.ts +134 -0
- package/dist/types/ts4.1/util/string/string.d.ts +130 -0
- package/dist/types/ts4.1/util/string/uid.d.ts +20 -0
- package/dist/types/ts4.1/util/type.d.ts +173 -0
- package/dist/types/ts4.1/util/url/resolveUrl.d.ts +23 -0
- package/dist/types/ts4.7/client/Version.d.ts +38 -0
- package/dist/types/ts4.7/client/userAgent/UserAgentInfo.d.ts +36 -0
- package/dist/types/ts4.7/client/userAgent/defaultUserAgentRules.d.ts +94 -0
- package/dist/types/ts4.7/client/userAgent/hasBrowser.d.ts +26 -0
- package/dist/types/ts4.7/client/userAgent/parseUserAgent.d.ts +14 -0
- package/dist/types/ts4.7/client/userAgent/tokenizeUserAgent.d.ts +104 -0
- package/dist/types/ts4.7/client/userAgent/userAgentRuleHelpers.d.ts +52 -0
- package/dist/types/ts4.7/core/Unsubscribe.d.ts +2 -0
- package/dist/types/ts4.7/core/clearable.d.ts +19 -0
- package/dist/types/ts4.7/core/cloneable.d.ts +14 -0
- package/dist/types/ts4.7/core/disposable.d.ts +66 -0
- package/dist/types/ts4.7/error/AbortError.d.ts +6 -0
- package/dist/types/ts4.7/error/ErrorOrigin.d.ts +45 -0
- package/dist/types/ts4.7/error/IllegalArgumentError.d.ts +10 -0
- package/dist/types/ts4.7/error/IllegalStateError.d.ts +9 -0
- package/dist/types/ts4.7/error/MediaUnsupportedError.d.ts +9 -0
- package/dist/types/ts4.7/error/ReportableError.d.ts +39 -0
- package/dist/types/ts4.7/error/ServiceResponseError.d.ts +14 -0
- package/dist/types/ts4.7/error/StackOverflowError.d.ts +9 -0
- package/dist/types/ts4.7/error/TimeoutError.d.ts +6 -0
- package/dist/types/ts4.7/error/UnreachableCodeError.d.ts +9 -0
- package/dist/types/ts4.7/error/ValidationError.d.ts +17 -0
- package/dist/types/ts4.7/event/DomEventHost.d.ts +45 -0
- package/dist/types/ts4.7/event/EventHost.d.ts +69 -0
- package/dist/types/ts4.7/event/Signal.d.ts +57 -0
- package/dist/types/ts4.7/event/nextEventAsPromise.d.ts +30 -0
- package/dist/types/ts4.7/event/onAny.d.ts +13 -0
- package/dist/types/ts4.7/event/redispatchEvents.d.ts +15 -0
- package/dist/types/ts4.7/global/environment.d.ts +26 -0
- package/dist/types/ts4.7/global/globalRegistry.d.ts +86 -0
- package/dist/types/ts4.7/global/globalTarget.d.ts +8 -0
- package/dist/types/ts4.7/index.d.ts +118 -0
- package/dist/types/ts4.7/logging/ConsoleLogHandler.d.ts +26 -0
- package/dist/types/ts4.7/logging/HistoryLogHandler.d.ts +56 -0
- package/dist/types/ts4.7/logging/LogTarget.d.ts +19 -0
- package/dist/types/ts4.7/logging/Logger.d.ts +66 -0
- package/dist/types/ts4.7/logging/VinylLogging.d.ts +9 -0
- package/dist/types/ts4.7/logging/getLogLevelFromSearch.d.ts +8 -0
- package/dist/types/ts4.7/logging/logTimer.d.ts +10 -0
- package/dist/types/ts4.7/network/RequestError.d.ts +26 -0
- package/dist/types/ts4.7/network/RequestInterceptor.d.ts +14 -0
- package/dist/types/ts4.7/network/Requester.d.ts +84 -0
- package/dist/types/ts4.7/network/RequesterImpl.d.ts +120 -0
- package/dist/types/ts4.7/network/RequesterImplEventMap.d.ts +230 -0
- package/dist/types/ts4.7/network/browser/NetworkInformation.d.ts +48 -0
- package/dist/types/ts4.7/network/createRequester.d.ts +12 -0
- package/dist/types/ts4.7/network/logging/networkLoggingHandler.d.ts +14 -0
- package/dist/types/ts4.7/network/metrics/NetworkMetricsController.d.ts +41 -0
- package/dist/types/ts4.7/network/metrics/NetworkMetricsControllerImpl.d.ts +119 -0
- package/dist/types/ts4.7/network/metrics/networkMetricsGlobal.d.ts +11 -0
- package/dist/types/ts4.7/network/metrics/networkMetricsModel.d.ts +147 -0
- package/dist/types/ts4.7/network/network.d.ts +47 -0
- package/dist/types/ts4.7/network/requesterGlobal.d.ts +19 -0
- package/dist/types/ts4.7/network/requesterUtil.d.ts +28 -0
- package/dist/types/ts4.7/network/responseUtil.d.ts +10 -0
- package/dist/types/ts4.7/patch/network/fetch.d.ts +11 -0
- package/dist/types/ts4.7/patch/patchTarget.d.ts +114 -0
- package/dist/types/ts4.7/persistence/KeyValuePersistence.d.ts +28 -0
- package/dist/types/ts4.7/persistence/PersistentItem.d.ts +86 -0
- package/dist/types/ts4.7/persistence/StoragePersistence.d.ts +11 -0
- package/dist/types/ts4.7/persistence/persistenceRef.d.ts +7 -0
- package/dist/types/ts4.7/util/async/Abort.d.ts +99 -0
- package/dist/types/ts4.7/util/async/Deferred.d.ts +25 -0
- package/dist/types/ts4.7/util/async/TaskQueue.d.ts +74 -0
- package/dist/types/ts4.7/util/async/TimeoutController.d.ts +36 -0
- package/dist/types/ts4.7/util/async/TimeoutSlot.d.ts +29 -0
- package/dist/types/ts4.7/util/async/abortUtils.d.ts +15 -0
- package/dist/types/ts4.7/util/async/never.d.ts +5 -0
- package/dist/types/ts4.7/util/async/promise.d.ts +53 -0
- package/dist/types/ts4.7/util/async/sleep.d.ts +27 -0
- package/dist/types/ts4.7/util/async/timeout.d.ts +29 -0
- package/dist/types/ts4.7/util/browser/searchParams.d.ts +13 -0
- package/dist/types/ts4.7/util/buffer/BufferError.d.ts +6 -0
- package/dist/types/ts4.7/util/buffer/BufferReader.d.ts +77 -0
- package/dist/types/ts4.7/util/buffer/BufferWriter.d.ts +30 -0
- package/dist/types/ts4.7/util/buffer/buffer.d.ts +55 -0
- package/dist/types/ts4.7/util/collection/CacheMap.d.ts +12 -0
- package/dist/types/ts4.7/util/collection/LinkedList.d.ts +165 -0
- package/dist/types/ts4.7/util/collection/LruCache.d.ts +99 -0
- package/dist/types/ts4.7/util/collection/array.d.ts +207 -0
- package/dist/types/ts4.7/util/collection/typedArray.d.ts +17 -0
- package/dist/types/ts4.7/util/comparison/compare.d.ts +33 -0
- package/dist/types/ts4.7/util/config/ValueProvider.d.ts +17 -0
- package/dist/types/ts4.7/util/date/date.d.ts +32 -0
- package/dist/types/ts4.7/util/error/stack.d.ts +79 -0
- package/dist/types/ts4.7/util/fun/debounce.d.ts +12 -0
- package/dist/types/ts4.7/util/fun/flow.d.ts +38 -0
- package/dist/types/ts4.7/util/fun/function.d.ts +5 -0
- package/dist/types/ts4.7/util/fun/memoize.d.ts +24 -0
- package/dist/types/ts4.7/util/fun/throttle.d.ts +34 -0
- package/dist/types/ts4.7/util/iteration/iterable.d.ts +26 -0
- package/dist/types/ts4.7/util/map/map.d.ts +17 -0
- package/dist/types/ts4.7/util/math/math.d.ts +79 -0
- package/dist/types/ts4.7/util/mpeg/parseSidxBox.d.ts +100 -0
- package/dist/types/ts4.7/util/network/request.d.ts +18 -0
- package/dist/types/ts4.7/util/object/clone.d.ts +68 -0
- package/dist/types/ts4.7/util/object/equalDeep.d.ts +54 -0
- package/dist/types/ts4.7/util/object/lazy.d.ts +54 -0
- package/dist/types/ts4.7/util/object/merge.d.ts +72 -0
- package/dist/types/ts4.7/util/object/mergeDeep.d.ts +153 -0
- package/dist/types/ts4.7/util/object/mutableType.d.ts +87 -0
- package/dist/types/ts4.7/util/object/object.d.ts +55 -0
- package/dist/types/ts4.7/util/object/readonlyType.d.ts +100 -0
- package/dist/types/ts4.7/util/range/IntersectionRanges.d.ts +37 -0
- package/dist/types/ts4.7/util/range/Ranges.d.ts +126 -0
- package/dist/types/ts4.7/util/range/UnionRanges.d.ts +37 -0
- package/dist/types/ts4.7/util/range/timeRanges.d.ts +14 -0
- package/dist/types/ts4.7/util/serialization/ParseError.d.ts +48 -0
- package/dist/types/ts4.7/util/serialization/json.d.ts +30 -0
- package/dist/types/ts4.7/util/serialization/primitives.d.ts +24 -0
- package/dist/types/ts4.7/util/serialization/stringifyForPrint.d.ts +14 -0
- package/dist/types/ts4.7/util/set/set.d.ts +17 -0
- package/dist/types/ts4.7/util/string/StringReader.d.ts +149 -0
- package/dist/types/ts4.7/util/string/string.d.ts +130 -0
- package/dist/types/ts4.7/util/string/uid.d.ts +20 -0
- package/dist/types/ts4.7/util/type.d.ts +173 -0
- package/dist/types/ts4.7/util/url/resolveUrl.d.ts +23 -0
- package/docs/EVENTS.md +187 -0
- package/docs/GLOBALS.md +45 -0
- package/docs/NETWORKING.md +161 -0
- package/package.json +118 -0
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
import type { Maybe } from '../../util/type';
|
|
2
|
+
import type { ReadonlyRecord } from '../../util/object/readonlyType';
|
|
3
|
+
/**
|
|
4
|
+
* Substitutes named variable references in a string.
|
|
5
|
+
*
|
|
6
|
+
* Example:
|
|
7
|
+
* ```
|
|
8
|
+
* substitute('{fruit}, {veg}', { fruit: 'apples', veg: 'carrots' }) // 'apples, carrots'
|
|
9
|
+
* ```
|
|
10
|
+
*
|
|
11
|
+
* @param str The template string.
|
|
12
|
+
* @param variables A record of variable names to values.
|
|
13
|
+
* @param pattern A regex whose first capture group is the variable name. Defaults to `{name}`.
|
|
14
|
+
* @throws IllegalArgumentError if a referenced variable is not defined.
|
|
15
|
+
*/
|
|
16
|
+
export declare function substitute(str: string, variables: Readonly<Record<string, any>>, pattern?: RegExp): string;
|
|
17
|
+
/**
|
|
18
|
+
* Replaces substitution tokens.
|
|
19
|
+
*
|
|
20
|
+
* Each identifier may be suffixed, within the enclosing '$' characters, with an additional format tag for number
|
|
21
|
+
* padding following the prototype: `%0[width]d`
|
|
22
|
+
* For example:
|
|
23
|
+
* 'Segment_$Time%04d$' Where the `Time` property is `42` will have a replacement value of: `Segment_0042`
|
|
24
|
+
*/
|
|
25
|
+
export declare function substituteIdentifiers(str: string, props: ReadonlyRecord<string, string | number>): string;
|
|
26
|
+
/**
|
|
27
|
+
* Returns true if the character is one of: ' ', '\t', '\n', '\r'
|
|
28
|
+
*
|
|
29
|
+
* @param charCode The character code to test
|
|
30
|
+
*/
|
|
31
|
+
export declare function isWhitespaceChar(charCode: number): boolean;
|
|
32
|
+
/**
|
|
33
|
+
* Predefined general xml entities
|
|
34
|
+
* https://www.w3.org/TR/2008/REC-xml-20081126/#sec-predefined-ent
|
|
35
|
+
*/
|
|
36
|
+
export declare const predefinedDecodeEntities: ReadonlyMap<string, string>;
|
|
37
|
+
/**
|
|
38
|
+
* Replaces all specified entities with their mapped representations.
|
|
39
|
+
* For example (using {@link predefinedDecodeEntities}):
|
|
40
|
+
* ```
|
|
41
|
+
* `<Hello to y'all!>` becomes `<Hello to y'all!>`
|
|
42
|
+
* ```
|
|
43
|
+
*
|
|
44
|
+
* @param str
|
|
45
|
+
* @param namedEntities
|
|
46
|
+
*/
|
|
47
|
+
export declare function decodeEntities(str: string, namedEntities?: ReadonlyMap<string, string>): string;
|
|
48
|
+
/**
|
|
49
|
+
* Encodes the predefined xml standard entities into their entity names.
|
|
50
|
+
*
|
|
51
|
+
* & to &
|
|
52
|
+
* ' to '
|
|
53
|
+
* > to >
|
|
54
|
+
* < to <
|
|
55
|
+
* " to "
|
|
56
|
+
*
|
|
57
|
+
* @param str
|
|
58
|
+
*/
|
|
59
|
+
export declare function encodeEntities(str: string): string;
|
|
60
|
+
/**
|
|
61
|
+
* Returns true if the two strings are equal, optionally ignoring case.
|
|
62
|
+
*
|
|
63
|
+
* @param a
|
|
64
|
+
* @param b
|
|
65
|
+
* @param ignoreCase
|
|
66
|
+
*/
|
|
67
|
+
export declare function eqStr(a: string | null, b: string | null, ignoreCase?: boolean): boolean;
|
|
68
|
+
/**
|
|
69
|
+
* Given a single character string, returns the char code of the first character.
|
|
70
|
+
*
|
|
71
|
+
* @param str A single character string from which to get the first code point.
|
|
72
|
+
*/
|
|
73
|
+
export declare function char(str: string): number;
|
|
74
|
+
/**
|
|
75
|
+
* Returns the substring of string after the last instance of searchString, excluding searchString.
|
|
76
|
+
* If searchString is not found, the whole string will be returned.
|
|
77
|
+
*
|
|
78
|
+
* @param string
|
|
79
|
+
* @param searchString
|
|
80
|
+
* @param caseSensitive If true (default) the search will be case-sensitive.
|
|
81
|
+
*/
|
|
82
|
+
export declare function substringAfterLast(string: string, searchString: string, caseSensitive?: boolean): string;
|
|
83
|
+
/**
|
|
84
|
+
* Returns the substring of string before the first occurrence of searchString, excluding
|
|
85
|
+
* searchString.
|
|
86
|
+
* If searchString is not found, the whole string will be returned.
|
|
87
|
+
*
|
|
88
|
+
* @param string
|
|
89
|
+
* @param searchString
|
|
90
|
+
* @param caseSensitive If true (default) the search will be case-sensitive.
|
|
91
|
+
*/
|
|
92
|
+
export declare function substringBefore(string: string, searchString: string, caseSensitive?: boolean): string;
|
|
93
|
+
/**
|
|
94
|
+
* Tokenizes a string into lowercase alphanumeric words.
|
|
95
|
+
*
|
|
96
|
+
* E.g. `'Amazon Music x86_64'` becomes `['amazon', 'music', 'x86', '64']`
|
|
97
|
+
*
|
|
98
|
+
* @param str
|
|
99
|
+
*/
|
|
100
|
+
export declare function tokenizeWords(str: string): string[];
|
|
101
|
+
export declare function toLowerCase<T extends string>(str: T): Lowercase<T>;
|
|
102
|
+
export declare function toUpperCase<T extends string>(str: T): Uppercase<T>;
|
|
103
|
+
/**
|
|
104
|
+
* If the given string is greater than a max length, truncate the string with an indicator.
|
|
105
|
+
* Example:
|
|
106
|
+
* truncate('a very long string', 10) // 'a very ...'
|
|
107
|
+
*
|
|
108
|
+
* @param str A nullable string.
|
|
109
|
+
* @param maxLength
|
|
110
|
+
* @param indicator The string to indicate there was truncation, default is an ellipses … (U+2026)
|
|
111
|
+
* @return Returns the truncated string, or the nullish value if str is nullish.
|
|
112
|
+
*/
|
|
113
|
+
export declare function truncate<T extends Maybe<string>>(str: T, maxLength: number, indicator?: string): T | string;
|
|
114
|
+
/**
|
|
115
|
+
* Converts a string to kebab-case.
|
|
116
|
+
*
|
|
117
|
+
* This function transforms camelCase, PascalCase, snake_case, and space-separated
|
|
118
|
+
* strings into a normalized kebab-case format. It removes non-alphanumeric characters
|
|
119
|
+
* (excluding hyphens), collapses multiple delimiters, and trims leading/trailing hyphens.
|
|
120
|
+
*
|
|
121
|
+
* @example
|
|
122
|
+
* toKebabCase("HelloWorld") // "hello-world"
|
|
123
|
+
* toKebabCase("hello_world test") // "hello-world-test"
|
|
124
|
+
* toKebabCase("SomeText123") // "some-text123"
|
|
125
|
+
*
|
|
126
|
+
* @param str - The input string to convert.
|
|
127
|
+
* @returns The kebab-case version of the input.
|
|
128
|
+
*/
|
|
129
|
+
export declare function toKebabCase(str: string): string;
|
|
130
|
+
//# sourceMappingURL=string.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"string.d.ts","sourceRoot":"","sources":["../../../../../src/util/string/string.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAA;AACxC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAA;AAchE;;;;;;;;;;;;GAYG;AACH,wBAAgB,UAAU,CACtB,GAAG,EAAE,MAAM,EACX,SAAS,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,EACxC,OAAO,GAAE,MAAmC,GAC7C,MAAM,CASR;AAED;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CACjC,GAAG,EAAE,MAAM,EACX,KAAK,EAAE,cAAc,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,GAC/C,MAAM,CAYR;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAO1D;AAID;;;GAGG;AACH,eAAO,MAAM,wBAAwB,EAAE,WAAW,CAAC,MAAM,EAAE,MAAM,CAM/D,CAAA;AAEF;;;;;;;;;GASG;AACH,wBAAgB,cAAc,CAC1B,GAAG,EAAE,MAAM,EACX,aAAa,GAAE,WAAW,CAAC,MAAM,EAAE,MAAM,CAA4B,GACtE,MAAM,CAeR;AAKD;;;;;;;;;;GAUG;AACH,wBAAgB,cAAc,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CASlD;AAED;;;;;;GAMG;AACH,wBAAgB,KAAK,CACjB,CAAC,EAAE,MAAM,GAAG,IAAI,EAChB,CAAC,EAAE,MAAM,GAAG,IAAI,EAChB,UAAU,UAAQ,GACnB,OAAO,CAOT;AAED;;;;GAIG;AACH,wBAAgB,IAAI,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAExC;AAED;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAC9B,MAAM,EAAE,MAAM,EACd,YAAY,EAAE,MAAM,EACpB,aAAa,UAAO,GACrB,MAAM,CAMR;AAED;;;;;;;;GAQG;AACH,wBAAgB,eAAe,CAC3B,MAAM,EAAE,MAAM,EACd,YAAY,EAAE,MAAM,EACpB,aAAa,UAAO,GACrB,MAAM,CAMR;AAED;;;;;;GAMG;AACH,wBAAgB,aAAa,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,EAAE,CAQnD;AAED,wBAAgB,WAAW,CAAC,CAAC,SAAS,MAAM,EAAE,GAAG,EAAE,CAAC,GAAG,SAAS,CAAC,CAAC,CAAC,CAElE;AAED,wBAAgB,WAAW,CAAC,CAAC,SAAS,MAAM,EAAE,GAAG,EAAE,CAAC,GAAG,SAAS,CAAC,CAAC,CAAC,CAElE;AAED;;;;;;;;;GASG;AACH,wBAAgB,QAAQ,CAAC,CAAC,SAAS,KAAK,CAAC,MAAM,CAAC,EAC5C,GAAG,EAAE,CAAC,EACN,SAAS,EAAE,MAAM,EACjB,SAAS,SAAM,GAChB,CAAC,GAAG,MAAM,CAKZ;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAQ/C"}
|
|
@@ -0,0 +1,249 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
*/
|
|
5
|
+
import { IllegalArgumentError } from '../../error/IllegalArgumentError';
|
|
6
|
+
import { flipMap } from '../../util/map/map';
|
|
7
|
+
/**
|
|
8
|
+
* @private
|
|
9
|
+
*/
|
|
10
|
+
const locale = {
|
|
11
|
+
variableNotDefined: "Variable '{name}' is not defined",
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* The default substitution pattern, matching `{name}`.
|
|
15
|
+
*/
|
|
16
|
+
const DEFAULT_SUBSTITUTE_PATTERN = /\{(\w+)}/g;
|
|
17
|
+
/**
|
|
18
|
+
* Substitutes named variable references in a string.
|
|
19
|
+
*
|
|
20
|
+
* Example:
|
|
21
|
+
* ```
|
|
22
|
+
* substitute('{fruit}, {veg}', { fruit: 'apples', veg: 'carrots' }) // 'apples, carrots'
|
|
23
|
+
* ```
|
|
24
|
+
*
|
|
25
|
+
* @param str The template string.
|
|
26
|
+
* @param variables A record of variable names to values.
|
|
27
|
+
* @param pattern A regex whose first capture group is the variable name. Defaults to `{name}`.
|
|
28
|
+
* @throws IllegalArgumentError if a referenced variable is not defined.
|
|
29
|
+
*/
|
|
30
|
+
export function substitute(str, variables, pattern = DEFAULT_SUBSTITUTE_PATTERN) {
|
|
31
|
+
return str.replace(pattern, (_, name) => {
|
|
32
|
+
if (!(name in variables)) {
|
|
33
|
+
throw new IllegalArgumentError(locale.variableNotDefined.replace('{name}', String(name)));
|
|
34
|
+
}
|
|
35
|
+
return String(variables[name]);
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Replaces substitution tokens.
|
|
40
|
+
*
|
|
41
|
+
* Each identifier may be suffixed, within the enclosing '$' characters, with an additional format tag for number
|
|
42
|
+
* padding following the prototype: `%0[width]d`
|
|
43
|
+
* For example:
|
|
44
|
+
* 'Segment_$Time%04d$' Where the `Time` property is `42` will have a replacement value of: `Segment_0042`
|
|
45
|
+
*/
|
|
46
|
+
export function substituteIdentifiers(str, props) {
|
|
47
|
+
return str.replace(/\$(\w*)(?:%0(\d+)d)?\$/g, (_, match, maxLength) => {
|
|
48
|
+
if (!match)
|
|
49
|
+
return '$';
|
|
50
|
+
if (!(match in props)) {
|
|
51
|
+
throw new IllegalArgumentError(`Template substitution token '${match}' was not understood`);
|
|
52
|
+
}
|
|
53
|
+
let prop = String(props[match]);
|
|
54
|
+
if (maxLength)
|
|
55
|
+
prop = prop.padStart(maxLength, '0');
|
|
56
|
+
return prop;
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Returns true if the character is one of: ' ', '\t', '\n', '\r'
|
|
61
|
+
*
|
|
62
|
+
* @param charCode The character code to test
|
|
63
|
+
*/
|
|
64
|
+
export function isWhitespaceChar(charCode) {
|
|
65
|
+
return (charCode === 0x20 || // ' ' (space)
|
|
66
|
+
charCode === 0x09 || // '\t' (tab)
|
|
67
|
+
charCode === 0x0d || // '\r' (carriage return)
|
|
68
|
+
charCode === 0x0a // '\n' (line feed)
|
|
69
|
+
);
|
|
70
|
+
}
|
|
71
|
+
const encodedEntitiesRegex = /&(#(\d+)|\w+);/gi;
|
|
72
|
+
/**
|
|
73
|
+
* Predefined general xml entities
|
|
74
|
+
* https://www.w3.org/TR/2008/REC-xml-20081126/#sec-predefined-ent
|
|
75
|
+
*/
|
|
76
|
+
export const predefinedDecodeEntities = new Map([
|
|
77
|
+
['apos', "'"],
|
|
78
|
+
['amp', '&'],
|
|
79
|
+
['lt', '<'],
|
|
80
|
+
['gt', '>'],
|
|
81
|
+
['quot', '"'],
|
|
82
|
+
]);
|
|
83
|
+
/**
|
|
84
|
+
* Replaces all specified entities with their mapped representations.
|
|
85
|
+
* For example (using {@link predefinedDecodeEntities}):
|
|
86
|
+
* ```
|
|
87
|
+
* `<Hello to y'all!>` becomes `<Hello to y'all!>`
|
|
88
|
+
* ```
|
|
89
|
+
*
|
|
90
|
+
* @param str
|
|
91
|
+
* @param namedEntities
|
|
92
|
+
*/
|
|
93
|
+
export function decodeEntities(str, namedEntities = predefinedDecodeEntities) {
|
|
94
|
+
if (encodedEntitiesRegex.test(str)) {
|
|
95
|
+
return str.replace(encodedEntitiesRegex, (substring, entityName, codePoint) => {
|
|
96
|
+
if (codePoint !== undefined)
|
|
97
|
+
return String.fromCharCode(parseInt(codePoint));
|
|
98
|
+
const entityValue = namedEntities.get(entityName.toLowerCase());
|
|
99
|
+
if (!entityValue)
|
|
100
|
+
return substring;
|
|
101
|
+
return entityValue;
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
else {
|
|
105
|
+
return str;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
const standardEntityValueToNames = flipMap(predefinedDecodeEntities);
|
|
109
|
+
const entitiesRegex = /['&<>"]/g;
|
|
110
|
+
/**
|
|
111
|
+
* Encodes the predefined xml standard entities into their entity names.
|
|
112
|
+
*
|
|
113
|
+
* & to &
|
|
114
|
+
* ' to '
|
|
115
|
+
* > to >
|
|
116
|
+
* < to <
|
|
117
|
+
* " to "
|
|
118
|
+
*
|
|
119
|
+
* @param str
|
|
120
|
+
*/
|
|
121
|
+
export function encodeEntities(str) {
|
|
122
|
+
if (entitiesRegex.test(str)) {
|
|
123
|
+
return str.replace(entitiesRegex, (entityValue) => {
|
|
124
|
+
const entityName = standardEntityValueToNames.get(entityValue);
|
|
125
|
+
return `&${entityName};`;
|
|
126
|
+
});
|
|
127
|
+
}
|
|
128
|
+
else {
|
|
129
|
+
return str;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
* Returns true if the two strings are equal, optionally ignoring case.
|
|
134
|
+
*
|
|
135
|
+
* @param a
|
|
136
|
+
* @param b
|
|
137
|
+
* @param ignoreCase
|
|
138
|
+
*/
|
|
139
|
+
export function eqStr(a, b, ignoreCase = false) {
|
|
140
|
+
if (a == null && b == null)
|
|
141
|
+
return true;
|
|
142
|
+
if (a == null || b == null)
|
|
143
|
+
return false;
|
|
144
|
+
if (a === b)
|
|
145
|
+
return true;
|
|
146
|
+
if (ignoreCase)
|
|
147
|
+
return a.length === b.length && a.toLowerCase() === b.toLowerCase();
|
|
148
|
+
return false;
|
|
149
|
+
}
|
|
150
|
+
/**
|
|
151
|
+
* Given a single character string, returns the char code of the first character.
|
|
152
|
+
*
|
|
153
|
+
* @param str A single character string from which to get the first code point.
|
|
154
|
+
*/
|
|
155
|
+
export function char(str) {
|
|
156
|
+
return str.charCodeAt(0);
|
|
157
|
+
}
|
|
158
|
+
/**
|
|
159
|
+
* Returns the substring of string after the last instance of searchString, excluding searchString.
|
|
160
|
+
* If searchString is not found, the whole string will be returned.
|
|
161
|
+
*
|
|
162
|
+
* @param string
|
|
163
|
+
* @param searchString
|
|
164
|
+
* @param caseSensitive If true (default) the search will be case-sensitive.
|
|
165
|
+
*/
|
|
166
|
+
export function substringAfterLast(string, searchString, caseSensitive = true) {
|
|
167
|
+
const i = (caseSensitive ? string : string.toLowerCase()).lastIndexOf(caseSensitive ? searchString : searchString.toLowerCase());
|
|
168
|
+
if (i === -1)
|
|
169
|
+
return string;
|
|
170
|
+
return string.substring(i + searchString.length);
|
|
171
|
+
}
|
|
172
|
+
/**
|
|
173
|
+
* Returns the substring of string before the first occurrence of searchString, excluding
|
|
174
|
+
* searchString.
|
|
175
|
+
* If searchString is not found, the whole string will be returned.
|
|
176
|
+
*
|
|
177
|
+
* @param string
|
|
178
|
+
* @param searchString
|
|
179
|
+
* @param caseSensitive If true (default) the search will be case-sensitive.
|
|
180
|
+
*/
|
|
181
|
+
export function substringBefore(string, searchString, caseSensitive = true) {
|
|
182
|
+
const i = (caseSensitive ? string : string.toLowerCase()).indexOf(caseSensitive ? searchString : searchString.toLowerCase());
|
|
183
|
+
if (i === -1)
|
|
184
|
+
return string;
|
|
185
|
+
return string.substring(0, i);
|
|
186
|
+
}
|
|
187
|
+
/**
|
|
188
|
+
* Tokenizes a string into lowercase alphanumeric words.
|
|
189
|
+
*
|
|
190
|
+
* E.g. `'Amazon Music x86_64'` becomes `['amazon', 'music', 'x86', '64']`
|
|
191
|
+
*
|
|
192
|
+
* @param str
|
|
193
|
+
*/
|
|
194
|
+
export function tokenizeWords(str) {
|
|
195
|
+
const words = [];
|
|
196
|
+
const regex = /[a-z\d]+/gi;
|
|
197
|
+
let match;
|
|
198
|
+
while ((match = regex.exec(str))) {
|
|
199
|
+
words.push(match[0].toLowerCase());
|
|
200
|
+
}
|
|
201
|
+
return words;
|
|
202
|
+
}
|
|
203
|
+
export function toLowerCase(str) {
|
|
204
|
+
return str.toLowerCase();
|
|
205
|
+
}
|
|
206
|
+
export function toUpperCase(str) {
|
|
207
|
+
return str.toUpperCase();
|
|
208
|
+
}
|
|
209
|
+
/**
|
|
210
|
+
* If the given string is greater than a max length, truncate the string with an indicator.
|
|
211
|
+
* Example:
|
|
212
|
+
* truncate('a very long string', 10) // 'a very ...'
|
|
213
|
+
*
|
|
214
|
+
* @param str A nullable string.
|
|
215
|
+
* @param maxLength
|
|
216
|
+
* @param indicator The string to indicate there was truncation, default is an ellipses … (U+2026)
|
|
217
|
+
* @return Returns the truncated string, or the nullish value if str is nullish.
|
|
218
|
+
*/
|
|
219
|
+
export function truncate(str, maxLength, indicator = '…') {
|
|
220
|
+
if (str == null)
|
|
221
|
+
return str;
|
|
222
|
+
if (str.length > maxLength)
|
|
223
|
+
return str.substring(0, maxLength - indicator.length) + indicator;
|
|
224
|
+
return str;
|
|
225
|
+
}
|
|
226
|
+
/**
|
|
227
|
+
* Converts a string to kebab-case.
|
|
228
|
+
*
|
|
229
|
+
* This function transforms camelCase, PascalCase, snake_case, and space-separated
|
|
230
|
+
* strings into a normalized kebab-case format. It removes non-alphanumeric characters
|
|
231
|
+
* (excluding hyphens), collapses multiple delimiters, and trims leading/trailing hyphens.
|
|
232
|
+
*
|
|
233
|
+
* @example
|
|
234
|
+
* toKebabCase("HelloWorld") // "hello-world"
|
|
235
|
+
* toKebabCase("hello_world test") // "hello-world-test"
|
|
236
|
+
* toKebabCase("SomeText123") // "some-text123"
|
|
237
|
+
*
|
|
238
|
+
* @param str - The input string to convert.
|
|
239
|
+
* @returns The kebab-case version of the input.
|
|
240
|
+
*/
|
|
241
|
+
export function toKebabCase(str) {
|
|
242
|
+
return str
|
|
243
|
+
.replace(/([a-z0-9])([A-Z])/g, '$1-$2')
|
|
244
|
+
.replace(/[\s_]+/g, '-')
|
|
245
|
+
.replace(/[^a-zA-Z0-9-]/g, '')
|
|
246
|
+
.replace(/-+/g, '-')
|
|
247
|
+
.replace(/^-|-$/g, '')
|
|
248
|
+
.toLowerCase();
|
|
249
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Returns a short unique id.
|
|
3
|
+
* Optimized for performance. (2.1M ops/s ± 0.71%)
|
|
4
|
+
* The returned value is 7-22 A-Za-z0-9 characters.
|
|
5
|
+
*
|
|
6
|
+
* The uniqueness of the returned string is the current timestamp to ms precision plus 2^53-1
|
|
7
|
+
* possible values.
|
|
8
|
+
*
|
|
9
|
+
* The odds of a collision where n is the number of UIDs created within the same millisecond:
|
|
10
|
+
* 1-((2^53-2)/(2^53-1))^C(n, 2)
|
|
11
|
+
*
|
|
12
|
+
* For 1000 UIDs created within the same millisecond the odds of a collision are:
|
|
13
|
+
* 00.0000000055%, or 1 in 550 billion.
|
|
14
|
+
*/
|
|
15
|
+
export declare function createShortUid(): string;
|
|
16
|
+
/**
|
|
17
|
+
* @deprecated use createShortUid
|
|
18
|
+
*/
|
|
19
|
+
export declare const createUid: typeof createShortUid;
|
|
20
|
+
//# sourceMappingURL=uid.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"uid.d.ts","sourceRoot":"","sources":["../../../../../src/util/string/uid.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;GAaG;AACH,wBAAgB,cAAc,IAAI,MAAM,CAGvC;AAED;;GAEG;AACH,eAAO,MAAM,SAAS,uBAAiB,CAAA"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* Returns a short unique id.
|
|
7
|
+
* Optimized for performance. (2.1M ops/s ± 0.71%)
|
|
8
|
+
* The returned value is 7-22 A-Za-z0-9 characters.
|
|
9
|
+
*
|
|
10
|
+
* The uniqueness of the returned string is the current timestamp to ms precision plus 2^53-1
|
|
11
|
+
* possible values.
|
|
12
|
+
*
|
|
13
|
+
* The odds of a collision where n is the number of UIDs created within the same millisecond:
|
|
14
|
+
* 1-((2^53-2)/(2^53-1))^C(n, 2)
|
|
15
|
+
*
|
|
16
|
+
* For 1000 UIDs created within the same millisecond the odds of a collision are:
|
|
17
|
+
* 00.0000000055%, or 1 in 550 billion.
|
|
18
|
+
*/
|
|
19
|
+
export function createShortUid() {
|
|
20
|
+
// Date.now 7-8 chars, Math.random: 0-13
|
|
21
|
+
return Date.now().toString(36) + Math.random().toString(36).substring(2);
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* @deprecated use createShortUid
|
|
25
|
+
*/
|
|
26
|
+
export const createUid = createShortUid;
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Distributes the value types of an array into a union.
|
|
3
|
+
*/
|
|
4
|
+
export type Flatten<T> = T extends readonly any[] ? T[number] : T;
|
|
5
|
+
/**
|
|
6
|
+
* Property keys of an object that do not map to functions.
|
|
7
|
+
*/
|
|
8
|
+
export type NonFunctionPropertyNames<T> = {
|
|
9
|
+
[K in keyof T]: T[K] extends (...args: any) => any ? never : K;
|
|
10
|
+
}[keyof T];
|
|
11
|
+
/**
|
|
12
|
+
* All primitive types.
|
|
13
|
+
*/
|
|
14
|
+
export type Primitive = bigint | boolean | number | string | symbol | null | undefined;
|
|
15
|
+
/**
|
|
16
|
+
* An empty object, safer than using `object` type.
|
|
17
|
+
*/
|
|
18
|
+
export type AnyRecord = Record<never, any>;
|
|
19
|
+
/**
|
|
20
|
+
* never, with a message to help explain the problem.
|
|
21
|
+
* https://github.com/microsoft/TypeScript/issues/33098
|
|
22
|
+
*/
|
|
23
|
+
export type Never<Message extends string> = [never, Message];
|
|
24
|
+
/**
|
|
25
|
+
* A type representing any type of function.
|
|
26
|
+
*/
|
|
27
|
+
export type Fun = (...args: any[]) => any;
|
|
28
|
+
/**
|
|
29
|
+
* Enforces that the type represents data that can be serialized via JSON.stringify.
|
|
30
|
+
*/
|
|
31
|
+
export type JsonCompatible<T> = unknown extends T ? never : T extends bigint | symbol | Fun ? never : T extends boolean | number | string | null | undefined | {
|
|
32
|
+
toJSON(): any;
|
|
33
|
+
} ? T : T extends readonly any[] ? readonly JsonCompatible<T[number]>[] : {
|
|
34
|
+
[P in keyof T]: JsonCompatible<T[P]>;
|
|
35
|
+
};
|
|
36
|
+
/**
|
|
37
|
+
* A compile-time check that the given value/array/object is serializable via JSON.stringify.
|
|
38
|
+
*
|
|
39
|
+
* A value is serializable if any of these are true:
|
|
40
|
+
* - It is an object with a toJSON() function
|
|
41
|
+
* - It is an object with only serializable members.
|
|
42
|
+
* - It is an array with only serializable elements.
|
|
43
|
+
* - It is type boolean, string, number, null, or undefined.
|
|
44
|
+
*/
|
|
45
|
+
export declare function jsonCompatible<T>(value: JsonCompatible<T>): T;
|
|
46
|
+
/**
|
|
47
|
+
* An object whose properties are all optional, and all sub-properties are optional.
|
|
48
|
+
* Note: does not convert array or tuple elements to Partial.
|
|
49
|
+
*/
|
|
50
|
+
export type PartialDeep<T> = T extends Fun | Primitive ? T : T extends object ? {
|
|
51
|
+
[P in keyof T]?: PartialDeep<T[P]>;
|
|
52
|
+
} : T;
|
|
53
|
+
/**
|
|
54
|
+
* Defines specific properties of T that are not required.
|
|
55
|
+
*/
|
|
56
|
+
export type PickPartial<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;
|
|
57
|
+
/**
|
|
58
|
+
* Possible values `typeof` operator may return.
|
|
59
|
+
*/
|
|
60
|
+
export type Typeof = 'bigint' | 'boolean' | 'function' | 'number' | 'object' | 'string' | 'symbol' | 'undefined';
|
|
61
|
+
/**
|
|
62
|
+
* Given a possible result from `typeof`, provides the type to the matched value.
|
|
63
|
+
*/
|
|
64
|
+
export type FromTypeof<T extends Typeof> = T extends 'bigint' ? bigint : T extends 'boolean' ? boolean : T extends 'function' ? Fun : T extends 'number' ? number : T extends 'object' ? object | null : T extends 'string' ? string : T extends 'symbol' ? symbol : T extends 'undefined' ? undefined : any;
|
|
65
|
+
/**
|
|
66
|
+
* Extracts values from T which extends type U.
|
|
67
|
+
*/
|
|
68
|
+
export type ExtractValues<T, U> = Pick<T, {
|
|
69
|
+
[P in keyof T]: T[P] extends U ? P : never;
|
|
70
|
+
}[keyof T]>;
|
|
71
|
+
/**
|
|
72
|
+
* Excludes values from T which extends type U.
|
|
73
|
+
*/
|
|
74
|
+
export type ExcludeValues<T, U> = Pick<T, {
|
|
75
|
+
[P in keyof T]: T[P] extends U ? never : P;
|
|
76
|
+
}[keyof T]>;
|
|
77
|
+
export type Maybe<T> = T | undefined | null;
|
|
78
|
+
/**
|
|
79
|
+
* Infers the element type from an Array type.
|
|
80
|
+
*/
|
|
81
|
+
export type ElementType<T extends readonly any[]> = T extends ReadonlyArray<infer E> ? E : never;
|
|
82
|
+
/**
|
|
83
|
+
* Infers the element type from a Set type.
|
|
84
|
+
*/
|
|
85
|
+
export type SetElementType<T extends ReadonlySet<any>> = T extends ReadonlySet<infer E> ? E : never;
|
|
86
|
+
/**
|
|
87
|
+
* Enforces type T to be in an invariant position.
|
|
88
|
+
* For example `Invariant<Square>` cannot be assigned to type `Invariant<Polygon>` or vice versa.
|
|
89
|
+
*
|
|
90
|
+
* This should be used when an interface with type parameter T needs strict invariance in addition to what the
|
|
91
|
+
* compiler can infer from use.
|
|
92
|
+
*
|
|
93
|
+
* {@link https://en.wikipedia.org/wiki/Covariance_and_contravariance_(computer_science)}
|
|
94
|
+
*/
|
|
95
|
+
export type Invariant<T> = T & Required<T> & ((input: T & Required<T>) => T & Required<T>);
|
|
96
|
+
export declare function invariant<T>(): Invariant<T>;
|
|
97
|
+
/**
|
|
98
|
+
* Enforces type T to be in a covariant position.
|
|
99
|
+
* For example `Invariant<Square>` can be assigned to type `Invariant<Polygon>` but not vice versa.
|
|
100
|
+
*
|
|
101
|
+
* This should be used when an interface with type parameter T does not explicitly use T in an
|
|
102
|
+
* output position, but the interface implies `out T`.
|
|
103
|
+
*/
|
|
104
|
+
export type Covariant<T> = () => T;
|
|
105
|
+
export declare function covariant<T>(): Covariant<T>;
|
|
106
|
+
/**
|
|
107
|
+
* Enforces type T to be in a covariant position.
|
|
108
|
+
* For example `Invariant<Polygon>` can be assigned to type `Invariant<Square>` but not vice versa.
|
|
109
|
+
*
|
|
110
|
+
* This should be used when an interface with type parameter T does not explicitly use T in an
|
|
111
|
+
* input position, but the interface implies `in T`.
|
|
112
|
+
*/
|
|
113
|
+
export type Contravariant<T> = (input: T) => void;
|
|
114
|
+
export declare function contravariant<T>(): Contravariant<T>;
|
|
115
|
+
/**
|
|
116
|
+
* A type which may either be a direct instance of T or a promise that resolves to T.
|
|
117
|
+
*/
|
|
118
|
+
export type MaybePromise<T> = PromiseLike<T> | T;
|
|
119
|
+
/**
|
|
120
|
+
* Deeply excludes all keys from T extending K.
|
|
121
|
+
*/
|
|
122
|
+
export type OmitDeep<T, K extends keyof any> = Omit<{
|
|
123
|
+
[P in keyof T]: T[P] extends Primitive ? T[P] : OmitDeep<T[P], K>;
|
|
124
|
+
}, K>;
|
|
125
|
+
/**
|
|
126
|
+
* Make properties of T extending K optional.
|
|
127
|
+
*/
|
|
128
|
+
export type Optional<T, K extends keyof T> = Partial<Pick<T, K>> & Omit<T, K>;
|
|
129
|
+
/**
|
|
130
|
+
* Make properties of T extending K optional, recursively.
|
|
131
|
+
*/
|
|
132
|
+
export type OptionalDeep<T, K extends keyof any> = Optional<{
|
|
133
|
+
[P in keyof T]: T[P] extends Primitive ? T[P] : OptionalDeep<T[P], K>;
|
|
134
|
+
}, K & keyof T>;
|
|
135
|
+
/**
|
|
136
|
+
* true if T extends never, otherwise false
|
|
137
|
+
*/
|
|
138
|
+
export type IsNever<T> = [T] extends [never] ? true : false;
|
|
139
|
+
/**
|
|
140
|
+
* true if T extends any, otherwise false
|
|
141
|
+
*/
|
|
142
|
+
export type IsAny<T> = 0 extends 1 & T ? true : false;
|
|
143
|
+
/**
|
|
144
|
+
* Determines whether a property `P` of object type `U` is declared as optional.
|
|
145
|
+
*
|
|
146
|
+
* This checks whether the `{}` type (an empty object) is assignable to
|
|
147
|
+
* `Pick<U, P>`. In TypeScript, this is true only when `P` is marked optional
|
|
148
|
+
* using the `?` modifier in the type definition.
|
|
149
|
+
*
|
|
150
|
+
* Importantly, this detects *actual optionality* rather than checking whether
|
|
151
|
+
* the property's type includes `undefined`. For example:
|
|
152
|
+
*
|
|
153
|
+
* ```ts
|
|
154
|
+
* type A = { x?: string }; // optional
|
|
155
|
+
* type B = { x: string | undefined }; // required but allows undefined
|
|
156
|
+
*
|
|
157
|
+
* IsPropertyOptional<A, "x"> // true
|
|
158
|
+
* IsPropertyOptional<B, "x"> // false
|
|
159
|
+
* ```
|
|
160
|
+
*
|
|
161
|
+
* @template U - The object type containing the property.
|
|
162
|
+
* @template P - The key of the property to test.
|
|
163
|
+
* @returns `true` if `P` is an optional property, otherwise `false`.
|
|
164
|
+
*/
|
|
165
|
+
export type IsPropertyOptional<U, P extends keyof U> = AnyRecord extends Pick<U, P> ? true : false;
|
|
166
|
+
//# sourceMappingURL=type.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../../src/util/type.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* A compile-time check that the given value/array/object is serializable via JSON.stringify.
|
|
7
|
+
*
|
|
8
|
+
* A value is serializable if any of these are true:
|
|
9
|
+
* - It is an object with a toJSON() function
|
|
10
|
+
* - It is an object with only serializable members.
|
|
11
|
+
* - It is an array with only serializable elements.
|
|
12
|
+
* - It is type boolean, string, number, null, or undefined.
|
|
13
|
+
*/
|
|
14
|
+
export function jsonCompatible(value) {
|
|
15
|
+
return value;
|
|
16
|
+
}
|
|
17
|
+
export function invariant() {
|
|
18
|
+
return undefined;
|
|
19
|
+
}
|
|
20
|
+
export function covariant() {
|
|
21
|
+
return undefined;
|
|
22
|
+
}
|
|
23
|
+
export function contravariant() {
|
|
24
|
+
return undefined;
|
|
25
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Resolves a relative URI against a base URL using string manipulation,
|
|
3
|
+
* avoiding the overhead of constructing `URL` objects.
|
|
4
|
+
*
|
|
5
|
+
* Handles the same cases as `new URL(relative, base)`:
|
|
6
|
+
* - Absolute URIs (with scheme) are returned as-is.
|
|
7
|
+
* - Protocol-relative URIs (`//host/path`) inherit the base scheme.
|
|
8
|
+
* - Absolute paths (`/path`) replace the base path.
|
|
9
|
+
* - Relative paths are resolved against the base directory.
|
|
10
|
+
*
|
|
11
|
+
* @param relative The relative (or absolute) URI to resolve.
|
|
12
|
+
* @param base The base URL string to resolve against.
|
|
13
|
+
* @returns A resolved absolute URL string.
|
|
14
|
+
*/
|
|
15
|
+
export declare function resolveUrl(relative: string, base: string): string;
|
|
16
|
+
/**
|
|
17
|
+
* Extracts the hostname from an absolute URL string.
|
|
18
|
+
*
|
|
19
|
+
* @param url An absolute URL string (e.g. `https://example.com:8080/path`).
|
|
20
|
+
* @returns The hostname (e.g. `example.com`).
|
|
21
|
+
*/
|
|
22
|
+
export declare function getHostname(url: string): string;
|
|
23
|
+
//# sourceMappingURL=resolveUrl.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolveUrl.d.ts","sourceRoot":"","sources":["../../../../../src/util/url/resolveUrl.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;GAaG;AACH,wBAAgB,UAAU,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CA0BjE;AAED;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAO/C"}
|