@medipass/utils 12.0.0 → 12.0.1
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/_virtual/rolldown_runtime.js +1 -29
- package/dist/build-validation-schema.d.ts +17 -18
- package/dist/build-validation-schema.js +26 -32
- package/dist/build-validation-schema.js.map +1 -1
- package/dist/datetime.js +3 -3
- package/dist/documents/workflow-state-formatted.d.ts +4 -4
- package/dist/documents/workflow-state-formatted.js +5 -7
- package/dist/documents/workflow-state-formatted.js.map +1 -1
- package/dist/funders.js +2 -4
- package/dist/funders.js.map +1 -1
- package/dist/get-env.js +5 -9
- package/dist/get-env.js.map +1 -1
- package/dist/get-select-options.js +7 -9
- package/dist/get-select-options.js.map +1 -1
- package/dist/google-addresses.js +4 -7
- package/dist/google-addresses.js.map +1 -1
- package/dist/masked.js +4 -7
- package/dist/masked.js.map +1 -1
- package/dist/products.js +4 -6
- package/dist/products.js.map +1 -1
- package/dist/redux-actions.js +2 -4
- package/dist/redux-actions.js.map +1 -1
- package/dist/redux-reducer.js +4 -7
- package/dist/redux-reducer.js.map +1 -1
- package/dist/sanitise-url.js +2 -4
- package/dist/sanitise-url.js.map +1 -1
- package/dist/sentry.js +15 -21
- package/dist/sentry.js.map +1 -1
- package/dist/service-items.js +18 -22
- package/dist/service-items.js.map +1 -1
- package/dist/transaction-status-helpers.js +2 -4
- package/dist/transaction-status-helpers.js.map +1 -1
- package/dist/transaction-status.js +7 -9
- package/dist/transaction-status.js.map +1 -1
- package/dist/validate-form.js +11 -14
- package/dist/validate-form.js.map +1 -1
- package/dist/validate.js +9 -14
- package/dist/validate.js.map +1 -1
- package/dist/workflow-state-formatted.d.ts +3 -3
- package/dist/workflow-state-formatted.js +4 -6
- package/dist/workflow-state-formatted.js.map +1 -1
- package/package.json +10 -7
- package/dist/node_modules/@sentry/browser/esm/backend.js +0 -59
- package/dist/node_modules/@sentry/browser/esm/backend.js.map +0 -1
- package/dist/node_modules/@sentry/browser/esm/client.js +0 -75
- package/dist/node_modules/@sentry/browser/esm/client.js.map +0 -1
- package/dist/node_modules/@sentry/browser/esm/eventbuilder.js +0 -48
- package/dist/node_modules/@sentry/browser/esm/eventbuilder.js.map +0 -1
- package/dist/node_modules/@sentry/browser/esm/helpers.js +0 -94
- package/dist/node_modules/@sentry/browser/esm/helpers.js.map +0 -1
- package/dist/node_modules/@sentry/browser/esm/index.js +0 -59
- package/dist/node_modules/@sentry/browser/esm/index.js.map +0 -1
- package/dist/node_modules/@sentry/browser/esm/integrations/breadcrumbs.js +0 -218
- package/dist/node_modules/@sentry/browser/esm/integrations/breadcrumbs.js.map +0 -1
- package/dist/node_modules/@sentry/browser/esm/integrations/globalhandlers.js +0 -166
- package/dist/node_modules/@sentry/browser/esm/integrations/globalhandlers.js.map +0 -1
- package/dist/node_modules/@sentry/browser/esm/integrations/index.js +0 -19
- package/dist/node_modules/@sentry/browser/esm/integrations/index.js.map +0 -1
- package/dist/node_modules/@sentry/browser/esm/integrations/linkederrors.js +0 -62
- package/dist/node_modules/@sentry/browser/esm/integrations/linkederrors.js.map +0 -1
- package/dist/node_modules/@sentry/browser/esm/integrations/trycatch.js +0 -172
- package/dist/node_modules/@sentry/browser/esm/integrations/trycatch.js.map +0 -1
- package/dist/node_modules/@sentry/browser/esm/integrations/useragent.js +0 -41
- package/dist/node_modules/@sentry/browser/esm/integrations/useragent.js.map +0 -1
- package/dist/node_modules/@sentry/browser/esm/parsers.js +0 -65
- package/dist/node_modules/@sentry/browser/esm/parsers.js.map +0 -1
- package/dist/node_modules/@sentry/browser/esm/sdk.js +0 -157
- package/dist/node_modules/@sentry/browser/esm/sdk.js.map +0 -1
- package/dist/node_modules/@sentry/browser/esm/tracekit.js +0 -146
- package/dist/node_modules/@sentry/browser/esm/tracekit.js.map +0 -1
- package/dist/node_modules/@sentry/browser/esm/transports/base.js +0 -31
- package/dist/node_modules/@sentry/browser/esm/transports/base.js.map +0 -1
- package/dist/node_modules/@sentry/browser/esm/transports/fetch.js +0 -57
- package/dist/node_modules/@sentry/browser/esm/transports/fetch.js.map +0 -1
- package/dist/node_modules/@sentry/browser/esm/transports/index.js +0 -15
- package/dist/node_modules/@sentry/browser/esm/transports/index.js.map +0 -1
- package/dist/node_modules/@sentry/browser/esm/transports/xhr.js +0 -54
- package/dist/node_modules/@sentry/browser/esm/transports/xhr.js.map +0 -1
- package/dist/node_modules/@sentry/browser/esm/version.js +0 -7
- package/dist/node_modules/@sentry/browser/esm/version.js.map +0 -1
- package/dist/node_modules/@sentry/browser/node_modules/tslib/tslib.es6.js +0 -65
- package/dist/node_modules/@sentry/browser/node_modules/tslib/tslib.es6.js.map +0 -1
- package/dist/node_modules/@sentry/core/esm/api.js +0 -75
- package/dist/node_modules/@sentry/core/esm/api.js.map +0 -1
- package/dist/node_modules/@sentry/core/esm/basebackend.js +0 -54
- package/dist/node_modules/@sentry/core/esm/basebackend.js.map +0 -1
- package/dist/node_modules/@sentry/core/esm/baseclient.js +0 -331
- package/dist/node_modules/@sentry/core/esm/baseclient.js.map +0 -1
- package/dist/node_modules/@sentry/core/esm/integration.js +0 -65
- package/dist/node_modules/@sentry/core/esm/integration.js.map +0 -1
- package/dist/node_modules/@sentry/core/esm/integrations/functiontostring.js +0 -32
- package/dist/node_modules/@sentry/core/esm/integrations/functiontostring.js.map +0 -1
- package/dist/node_modules/@sentry/core/esm/integrations/inboundfilters.js +0 -143
- package/dist/node_modules/@sentry/core/esm/integrations/inboundfilters.js.map +0 -1
- package/dist/node_modules/@sentry/core/esm/integrations/index.js +0 -13
- package/dist/node_modules/@sentry/core/esm/integrations/index.js.map +0 -1
- package/dist/node_modules/@sentry/core/esm/sdk.js +0 -19
- package/dist/node_modules/@sentry/core/esm/sdk.js.map +0 -1
- package/dist/node_modules/@sentry/core/esm/transports/noop.js +0 -28
- package/dist/node_modules/@sentry/core/esm/transports/noop.js.map +0 -1
- package/dist/node_modules/@sentry/core/node_modules/tslib/tslib.es6.js +0 -36
- package/dist/node_modules/@sentry/core/node_modules/tslib/tslib.es6.js.map +0 -1
- package/dist/node_modules/@sentry/hub/esm/hub.js +0 -383
- package/dist/node_modules/@sentry/hub/esm/hub.js.map +0 -1
- package/dist/node_modules/@sentry/hub/esm/scope.js +0 -271
- package/dist/node_modules/@sentry/hub/esm/scope.js.map +0 -1
- package/dist/node_modules/@sentry/hub/node_modules/tslib/tslib.es6.js +0 -36
- package/dist/node_modules/@sentry/hub/node_modules/tslib/tslib.es6.js.map +0 -1
- package/dist/node_modules/@sentry/minimal/esm/index.js +0 -146
- package/dist/node_modules/@sentry/minimal/esm/index.js.map +0 -1
- package/dist/node_modules/@sentry/minimal/node_modules/tslib/tslib.es6.js +0 -26
- package/dist/node_modules/@sentry/minimal/node_modules/tslib/tslib.es6.js.map +0 -1
- package/dist/node_modules/@sentry/types/esm/severity.js +0 -45
- package/dist/node_modules/@sentry/types/esm/severity.js.map +0 -1
- package/dist/node_modules/@sentry/types/esm/status.js +0 -37
- package/dist/node_modules/@sentry/types/esm/status.js.map +0 -1
- package/dist/node_modules/@sentry/utils/esm/dsn.js +0 -82
- package/dist/node_modules/@sentry/utils/esm/dsn.js.map +0 -1
- package/dist/node_modules/@sentry/utils/esm/error.js +0 -21
- package/dist/node_modules/@sentry/utils/esm/error.js.map +0 -1
- package/dist/node_modules/@sentry/utils/esm/instrument.js +0 -336
- package/dist/node_modules/@sentry/utils/esm/instrument.js.map +0 -1
- package/dist/node_modules/@sentry/utils/esm/is.js +0 -142
- package/dist/node_modules/@sentry/utils/esm/is.js.map +0 -1
- package/dist/node_modules/@sentry/utils/esm/logger.js +0 -55
- package/dist/node_modules/@sentry/utils/esm/logger.js.map +0 -1
- package/dist/node_modules/@sentry/utils/esm/memo.js +0 -40
- package/dist/node_modules/@sentry/utils/esm/memo.js.map +0 -1
- package/dist/node_modules/@sentry/utils/esm/misc.js +0 -250
- package/dist/node_modules/@sentry/utils/esm/misc.js.map +0 -1
- package/dist/node_modules/@sentry/utils/esm/object.js +0 -190
- package/dist/node_modules/@sentry/utils/esm/object.js.map +0 -1
- package/dist/node_modules/@sentry/utils/esm/polyfill.js +0 -20
- package/dist/node_modules/@sentry/utils/esm/polyfill.js.map +0 -1
- package/dist/node_modules/@sentry/utils/esm/promisebuffer.js +0 -75
- package/dist/node_modules/@sentry/utils/esm/promisebuffer.js.map +0 -1
- package/dist/node_modules/@sentry/utils/esm/string.js +0 -48
- package/dist/node_modules/@sentry/utils/esm/string.js.map +0 -1
- package/dist/node_modules/@sentry/utils/esm/supports.js +0 -84
- package/dist/node_modules/@sentry/utils/esm/supports.js.map +0 -1
- package/dist/node_modules/@sentry/utils/esm/syncpromise.js +0 -171
- package/dist/node_modules/@sentry/utils/esm/syncpromise.js.map +0 -1
- package/dist/node_modules/@sentry/utils/node_modules/tslib/tslib.es6.js +0 -73
- package/dist/node_modules/@sentry/utils/node_modules/tslib/tslib.es6.js.map +0 -1
- package/dist/node_modules/escape-html/index.js +0 -68
- package/dist/node_modules/escape-html/index.js.map +0 -1
- package/dist/node_modules/globalthis/implementation.browser.js +0 -14
- package/dist/node_modules/globalthis/implementation.browser.js.map +0 -1
- package/dist/node_modules/globalthis/polyfill.js +0 -17
- package/dist/node_modules/globalthis/polyfill.js.map +0 -1
- package/dist/node_modules/google-libphonenumber/dist/libphonenumber.js +0 -84028
- package/dist/node_modules/google-libphonenumber/dist/libphonenumber.js.map +0 -1
- package/dist/node_modules/lodash/_DataView.js +0 -15
- package/dist/node_modules/lodash/_DataView.js.map +0 -1
- package/dist/node_modules/lodash/_Hash.js +0 -38
- package/dist/node_modules/lodash/_Hash.js.map +0 -1
- package/dist/node_modules/lodash/_ListCache.js +0 -38
- package/dist/node_modules/lodash/_ListCache.js.map +0 -1
- package/dist/node_modules/lodash/_Map.js +0 -15
- package/dist/node_modules/lodash/_Map.js.map +0 -1
- package/dist/node_modules/lodash/_MapCache.js +0 -38
- package/dist/node_modules/lodash/_MapCache.js.map +0 -1
- package/dist/node_modules/lodash/_Promise.js +0 -15
- package/dist/node_modules/lodash/_Promise.js.map +0 -1
- package/dist/node_modules/lodash/_Set.js +0 -15
- package/dist/node_modules/lodash/_Set.js.map +0 -1
- package/dist/node_modules/lodash/_SetCache.js +0 -31
- package/dist/node_modules/lodash/_SetCache.js.map +0 -1
- package/dist/node_modules/lodash/_Stack.js +0 -34
- package/dist/node_modules/lodash/_Stack.js.map +0 -1
- package/dist/node_modules/lodash/_Symbol.js +0 -15
- package/dist/node_modules/lodash/_Symbol.js.map +0 -1
- package/dist/node_modules/lodash/_Uint8Array.js +0 -15
- package/dist/node_modules/lodash/_Uint8Array.js.map +0 -1
- package/dist/node_modules/lodash/_WeakMap.js +0 -15
- package/dist/node_modules/lodash/_WeakMap.js.map +0 -1
- package/dist/node_modules/lodash/_apply.js +0 -31
- package/dist/node_modules/lodash/_apply.js.map +0 -1
- package/dist/node_modules/lodash/_arrayEach.js +0 -26
- package/dist/node_modules/lodash/_arrayEach.js.map +0 -1
- package/dist/node_modules/lodash/_arrayFilter.js +0 -29
- package/dist/node_modules/lodash/_arrayFilter.js.map +0 -1
- package/dist/node_modules/lodash/_arrayIncludes.js +0 -26
- package/dist/node_modules/lodash/_arrayIncludes.js.map +0 -1
- package/dist/node_modules/lodash/_arrayIncludesWith.js +0 -26
- package/dist/node_modules/lodash/_arrayIncludesWith.js.map +0 -1
- package/dist/node_modules/lodash/_arrayLikeKeys.js +0 -34
- package/dist/node_modules/lodash/_arrayLikeKeys.js.map +0 -1
- package/dist/node_modules/lodash/_arrayMap.js +0 -26
- package/dist/node_modules/lodash/_arrayMap.js.map +0 -1
- package/dist/node_modules/lodash/_arrayPush.js +0 -25
- package/dist/node_modules/lodash/_arrayPush.js.map +0 -1
- package/dist/node_modules/lodash/_arrayReduce.js +0 -30
- package/dist/node_modules/lodash/_arrayReduce.js.map +0 -1
- package/dist/node_modules/lodash/_arraySome.js +0 -27
- package/dist/node_modules/lodash/_arraySome.js.map +0 -1
- package/dist/node_modules/lodash/_asciiToArray.js +0 -22
- package/dist/node_modules/lodash/_asciiToArray.js.map +0 -1
- package/dist/node_modules/lodash/_asciiWords.js +0 -24
- package/dist/node_modules/lodash/_asciiWords.js.map +0 -1
- package/dist/node_modules/lodash/_assignValue.js +0 -31
- package/dist/node_modules/lodash/_assignValue.js.map +0 -1
- package/dist/node_modules/lodash/_assocIndexOf.js +0 -27
- package/dist/node_modules/lodash/_assocIndexOf.js.map +0 -1
- package/dist/node_modules/lodash/_baseAssignValue.js +0 -32
- package/dist/node_modules/lodash/_baseAssignValue.js.map +0 -1
- package/dist/node_modules/lodash/_baseDifference.js +0 -55
- package/dist/node_modules/lodash/_baseDifference.js.map +0 -1
- package/dist/node_modules/lodash/_baseEach.js +0 -24
- package/dist/node_modules/lodash/_baseEach.js.map +0 -1
- package/dist/node_modules/lodash/_baseFindIndex.js +0 -28
- package/dist/node_modules/lodash/_baseFindIndex.js.map +0 -1
- package/dist/node_modules/lodash/_baseFlatten.js +0 -38
- package/dist/node_modules/lodash/_baseFlatten.js.map +0 -1
- package/dist/node_modules/lodash/_baseFor.js +0 -25
- package/dist/node_modules/lodash/_baseFor.js.map +0 -1
- package/dist/node_modules/lodash/_baseForOwn.js +0 -26
- package/dist/node_modules/lodash/_baseForOwn.js.map +0 -1
- package/dist/node_modules/lodash/_baseGet.js +0 -29
- package/dist/node_modules/lodash/_baseGet.js.map +0 -1
- package/dist/node_modules/lodash/_baseGetAllKeys.js +0 -30
- package/dist/node_modules/lodash/_baseGetAllKeys.js.map +0 -1
- package/dist/node_modules/lodash/_baseGetTag.js +0 -31
- package/dist/node_modules/lodash/_baseGetTag.js.map +0 -1
- package/dist/node_modules/lodash/_baseHas.js +0 -25
- package/dist/node_modules/lodash/_baseHas.js.map +0 -1
- package/dist/node_modules/lodash/_baseHasIn.js +0 -23
- package/dist/node_modules/lodash/_baseHasIn.js.map +0 -1
- package/dist/node_modules/lodash/_baseIndexOf.js +0 -28
- package/dist/node_modules/lodash/_baseIndexOf.js.map +0 -1
- package/dist/node_modules/lodash/_baseIsArguments.js +0 -27
- package/dist/node_modules/lodash/_baseIsArguments.js.map +0 -1
- package/dist/node_modules/lodash/_baseIsEqual.js +0 -34
- package/dist/node_modules/lodash/_baseIsEqual.js.map +0 -1
- package/dist/node_modules/lodash/_baseIsEqualDeep.js +0 -67
- package/dist/node_modules/lodash/_baseIsEqualDeep.js.map +0 -1
- package/dist/node_modules/lodash/_baseIsMatch.js +0 -48
- package/dist/node_modules/lodash/_baseIsMatch.js.map +0 -1
- package/dist/node_modules/lodash/_baseIsNaN.js +0 -22
- package/dist/node_modules/lodash/_baseIsNaN.js.map +0 -1
- package/dist/node_modules/lodash/_baseIsNative.js +0 -44
- package/dist/node_modules/lodash/_baseIsNative.js.map +0 -1
- package/dist/node_modules/lodash/_baseIsTypedArray.js +0 -33
- package/dist/node_modules/lodash/_baseIsTypedArray.js.map +0 -1
- package/dist/node_modules/lodash/_baseIteratee.js +0 -31
- package/dist/node_modules/lodash/_baseIteratee.js.map +0 -1
- package/dist/node_modules/lodash/_baseKeys.js +0 -30
- package/dist/node_modules/lodash/_baseKeys.js.map +0 -1
- package/dist/node_modules/lodash/_baseKeysIn.js +0 -31
- package/dist/node_modules/lodash/_baseKeysIn.js.map +0 -1
- package/dist/node_modules/lodash/_baseMatches.js +0 -30
- package/dist/node_modules/lodash/_baseMatches.js.map +0 -1
- package/dist/node_modules/lodash/_baseMatchesProperty.js +0 -37
- package/dist/node_modules/lodash/_baseMatchesProperty.js.map +0 -1
- package/dist/node_modules/lodash/_basePick.js +0 -29
- package/dist/node_modules/lodash/_basePick.js.map +0 -1
- package/dist/node_modules/lodash/_basePickBy.js +0 -33
- package/dist/node_modules/lodash/_basePickBy.js.map +0 -1
- package/dist/node_modules/lodash/_baseProperty.js +0 -24
- package/dist/node_modules/lodash/_baseProperty.js.map +0 -1
- package/dist/node_modules/lodash/_basePropertyDeep.js +0 -26
- package/dist/node_modules/lodash/_basePropertyDeep.js.map +0 -1
- package/dist/node_modules/lodash/_basePropertyOf.js +0 -24
- package/dist/node_modules/lodash/_basePropertyOf.js.map +0 -1
- package/dist/node_modules/lodash/_baseRepeat.js +0 -33
- package/dist/node_modules/lodash/_baseRepeat.js.map +0 -1
- package/dist/node_modules/lodash/_baseRest.js +0 -27
- package/dist/node_modules/lodash/_baseRest.js.map +0 -1
- package/dist/node_modules/lodash/_baseSet.js +0 -45
- package/dist/node_modules/lodash/_baseSet.js.map +0 -1
- package/dist/node_modules/lodash/_baseSetToString.js +0 -32
- package/dist/node_modules/lodash/_baseSetToString.js.map +0 -1
- package/dist/node_modules/lodash/_baseSlice.js +0 -32
- package/dist/node_modules/lodash/_baseSlice.js.map +0 -1
- package/dist/node_modules/lodash/_baseTimes.js +0 -26
- package/dist/node_modules/lodash/_baseTimes.js.map +0 -1
- package/dist/node_modules/lodash/_baseToString.js +0 -36
- package/dist/node_modules/lodash/_baseToString.js.map +0 -1
- package/dist/node_modules/lodash/_baseTrim.js +0 -26
- package/dist/node_modules/lodash/_baseTrim.js.map +0 -1
- package/dist/node_modules/lodash/_baseUnary.js +0 -24
- package/dist/node_modules/lodash/_baseUnary.js.map +0 -1
- package/dist/node_modules/lodash/_cacheHas.js +0 -23
- package/dist/node_modules/lodash/_cacheHas.js.map +0 -1
- package/dist/node_modules/lodash/_castFunction.js +0 -24
- package/dist/node_modules/lodash/_castFunction.js.map +0 -1
- package/dist/node_modules/lodash/_castPath.js +0 -29
- package/dist/node_modules/lodash/_castPath.js.map +0 -1
- package/dist/node_modules/lodash/_castSlice.js +0 -28
- package/dist/node_modules/lodash/_castSlice.js.map +0 -1
- package/dist/node_modules/lodash/_coreJsData.js +0 -15
- package/dist/node_modules/lodash/_coreJsData.js.map +0 -1
- package/dist/node_modules/lodash/_createBaseEach.js +0 -31
- package/dist/node_modules/lodash/_createBaseEach.js.map +0 -1
- package/dist/node_modules/lodash/_createBaseFor.js +0 -29
- package/dist/node_modules/lodash/_createBaseFor.js.map +0 -1
- package/dist/node_modules/lodash/_createCaseFirst.js +0 -33
- package/dist/node_modules/lodash/_createCaseFirst.js.map +0 -1
- package/dist/node_modules/lodash/_createCompounder.js +0 -30
- package/dist/node_modules/lodash/_createCompounder.js.map +0 -1
- package/dist/node_modules/lodash/_deburrLetter.js +0 -213
- package/dist/node_modules/lodash/_deburrLetter.js.map +0 -1
- package/dist/node_modules/lodash/_defineProperty.js +0 -21
- package/dist/node_modules/lodash/_defineProperty.js.map +0 -1
- package/dist/node_modules/lodash/_equalArrays.js +0 -64
- package/dist/node_modules/lodash/_equalArrays.js.map +0 -1
- package/dist/node_modules/lodash/_equalByTag.js +0 -74
- package/dist/node_modules/lodash/_equalByTag.js.map +0 -1
- package/dist/node_modules/lodash/_equalObjects.js +0 -64
- package/dist/node_modules/lodash/_equalObjects.js.map +0 -1
- package/dist/node_modules/lodash/_flatRest.js +0 -26
- package/dist/node_modules/lodash/_flatRest.js.map +0 -1
- package/dist/node_modules/lodash/_freeGlobal.js +0 -14
- package/dist/node_modules/lodash/_freeGlobal.js.map +0 -1
- package/dist/node_modules/lodash/_getAllKeys.js +0 -26
- package/dist/node_modules/lodash/_getAllKeys.js.map +0 -1
- package/dist/node_modules/lodash/_getAllKeysIn.js +0 -27
- package/dist/node_modules/lodash/_getAllKeysIn.js.map +0 -1
- package/dist/node_modules/lodash/_getMapData.js +0 -26
- package/dist/node_modules/lodash/_getMapData.js.map +0 -1
- package/dist/node_modules/lodash/_getMatchData.js +0 -34
- package/dist/node_modules/lodash/_getMatchData.js.map +0 -1
- package/dist/node_modules/lodash/_getNative.js +0 -27
- package/dist/node_modules/lodash/_getNative.js.map +0 -1
- package/dist/node_modules/lodash/_getPrototype.js +0 -15
- package/dist/node_modules/lodash/_getPrototype.js.map +0 -1
- package/dist/node_modules/lodash/_getRawTag.js +0 -44
- package/dist/node_modules/lodash/_getRawTag.js.map +0 -1
- package/dist/node_modules/lodash/_getSymbols.js +0 -32
- package/dist/node_modules/lodash/_getSymbols.js.map +0 -1
- package/dist/node_modules/lodash/_getSymbolsIn.js +0 -32
- package/dist/node_modules/lodash/_getSymbolsIn.js.map +0 -1
- package/dist/node_modules/lodash/_getTag.js +0 -44
- package/dist/node_modules/lodash/_getTag.js.map +0 -1
- package/dist/node_modules/lodash/_getValue.js +0 -23
- package/dist/node_modules/lodash/_getValue.js.map +0 -1
- package/dist/node_modules/lodash/_hasPath.js +0 -40
- package/dist/node_modules/lodash/_hasPath.js.map +0 -1
- package/dist/node_modules/lodash/_hasUnicode.js +0 -24
- package/dist/node_modules/lodash/_hasUnicode.js.map +0 -1
- package/dist/node_modules/lodash/_hasUnicodeWord.js +0 -24
- package/dist/node_modules/lodash/_hasUnicodeWord.js.map +0 -1
- package/dist/node_modules/lodash/_hashClear.js +0 -25
- package/dist/node_modules/lodash/_hashClear.js.map +0 -1
- package/dist/node_modules/lodash/_hashDelete.js +0 -27
- package/dist/node_modules/lodash/_hashDelete.js.map +0 -1
- package/dist/node_modules/lodash/_hashGet.js +0 -35
- package/dist/node_modules/lodash/_hashGet.js.map +0 -1
- package/dist/node_modules/lodash/_hashHas.js +0 -29
- package/dist/node_modules/lodash/_hashHas.js.map +0 -1
- package/dist/node_modules/lodash/_hashSet.js +0 -32
- package/dist/node_modules/lodash/_hashSet.js.map +0 -1
- package/dist/node_modules/lodash/_isFlattenable.js +0 -28
- package/dist/node_modules/lodash/_isFlattenable.js.map +0 -1
- package/dist/node_modules/lodash/_isIndex.js +0 -29
- package/dist/node_modules/lodash/_isIndex.js.map +0 -1
- package/dist/node_modules/lodash/_isIterateeCall.js +0 -33
- package/dist/node_modules/lodash/_isIterateeCall.js.map +0 -1
- package/dist/node_modules/lodash/_isKey.js +0 -31
- package/dist/node_modules/lodash/_isKey.js.map +0 -1
- package/dist/node_modules/lodash/_isKeyable.js +0 -23
- package/dist/node_modules/lodash/_isKeyable.js.map +0 -1
- package/dist/node_modules/lodash/_isMasked.js +0 -29
- package/dist/node_modules/lodash/_isMasked.js.map +0 -1
- package/dist/node_modules/lodash/_isPrototype.js +0 -25
- package/dist/node_modules/lodash/_isPrototype.js.map +0 -1
- package/dist/node_modules/lodash/_isStrictComparable.js +0 -25
- package/dist/node_modules/lodash/_isStrictComparable.js.map +0 -1
- package/dist/node_modules/lodash/_listCacheClear.js +0 -23
- package/dist/node_modules/lodash/_listCacheClear.js.map +0 -1
- package/dist/node_modules/lodash/_listCacheDelete.js +0 -33
- package/dist/node_modules/lodash/_listCacheDelete.js.map +0 -1
- package/dist/node_modules/lodash/_listCacheGet.js +0 -27
- package/dist/node_modules/lodash/_listCacheGet.js.map +0 -1
- package/dist/node_modules/lodash/_listCacheHas.js +0 -26
- package/dist/node_modules/lodash/_listCacheHas.js.map +0 -1
- package/dist/node_modules/lodash/_listCacheSet.js +0 -32
- package/dist/node_modules/lodash/_listCacheSet.js.map +0 -1
- package/dist/node_modules/lodash/_mapCacheClear.js +0 -31
- package/dist/node_modules/lodash/_mapCacheClear.js.map +0 -1
- package/dist/node_modules/lodash/_mapCacheDelete.js +0 -28
- package/dist/node_modules/lodash/_mapCacheDelete.js.map +0 -1
- package/dist/node_modules/lodash/_mapCacheGet.js +0 -26
- package/dist/node_modules/lodash/_mapCacheGet.js.map +0 -1
- package/dist/node_modules/lodash/_mapCacheHas.js +0 -26
- package/dist/node_modules/lodash/_mapCacheHas.js.map +0 -1
- package/dist/node_modules/lodash/_mapCacheSet.js +0 -30
- package/dist/node_modules/lodash/_mapCacheSet.js.map +0 -1
- package/dist/node_modules/lodash/_mapToArray.js +0 -26
- package/dist/node_modules/lodash/_mapToArray.js.map +0 -1
- package/dist/node_modules/lodash/_matchesStrictComparable.js +0 -27
- package/dist/node_modules/lodash/_matchesStrictComparable.js.map +0 -1
- package/dist/node_modules/lodash/_memoizeCapped.js +0 -32
- package/dist/node_modules/lodash/_memoizeCapped.js.map +0 -1
- package/dist/node_modules/lodash/_nativeCreate.js +0 -14
- package/dist/node_modules/lodash/_nativeCreate.js.map +0 -1
- package/dist/node_modules/lodash/_nativeKeys.js +0 -14
- package/dist/node_modules/lodash/_nativeKeys.js.map +0 -1
- package/dist/node_modules/lodash/_nativeKeysIn.js +0 -26
- package/dist/node_modules/lodash/_nativeKeysIn.js.map +0 -1
- package/dist/node_modules/lodash/_nodeUtil.js +0 -28
- package/dist/node_modules/lodash/_nodeUtil.js.map +0 -1
- package/dist/node_modules/lodash/_objectToString.js +0 -28
- package/dist/node_modules/lodash/_objectToString.js.map +0 -1
- package/dist/node_modules/lodash/_overArg.js +0 -25
- package/dist/node_modules/lodash/_overArg.js.map +0 -1
- package/dist/node_modules/lodash/_overRest.js +0 -36
- package/dist/node_modules/lodash/_overRest.js.map +0 -1
- package/dist/node_modules/lodash/_root.js +0 -18
- package/dist/node_modules/lodash/_root.js.map +0 -1
- package/dist/node_modules/lodash/_setCacheAdd.js +0 -28
- package/dist/node_modules/lodash/_setCacheAdd.js.map +0 -1
- package/dist/node_modules/lodash/_setCacheHas.js +0 -24
- package/dist/node_modules/lodash/_setCacheHas.js.map +0 -1
- package/dist/node_modules/lodash/_setToArray.js +0 -26
- package/dist/node_modules/lodash/_setToArray.js.map +0 -1
- package/dist/node_modules/lodash/_setToString.js +0 -24
- package/dist/node_modules/lodash/_setToString.js.map +0 -1
- package/dist/node_modules/lodash/_shortOut.js +0 -35
- package/dist/node_modules/lodash/_shortOut.js.map +0 -1
- package/dist/node_modules/lodash/_stackClear.js +0 -25
- package/dist/node_modules/lodash/_stackClear.js.map +0 -1
- package/dist/node_modules/lodash/_stackDelete.js +0 -26
- package/dist/node_modules/lodash/_stackDelete.js.map +0 -1
- package/dist/node_modules/lodash/_stackGet.js +0 -24
- package/dist/node_modules/lodash/_stackGet.js.map +0 -1
- package/dist/node_modules/lodash/_stackHas.js +0 -24
- package/dist/node_modules/lodash/_stackHas.js.map +0 -1
- package/dist/node_modules/lodash/_stackSet.js +0 -43
- package/dist/node_modules/lodash/_stackSet.js.map +0 -1
- package/dist/node_modules/lodash/_strictIndexOf.js +0 -27
- package/dist/node_modules/lodash/_strictIndexOf.js.map +0 -1
- package/dist/node_modules/lodash/_stringToArray.js +0 -26
- package/dist/node_modules/lodash/_stringToArray.js.map +0 -1
- package/dist/node_modules/lodash/_stringToPath.js +0 -33
- package/dist/node_modules/lodash/_stringToPath.js.map +0 -1
- package/dist/node_modules/lodash/_toKey.js +0 -28
- package/dist/node_modules/lodash/_toKey.js.map +0 -1
- package/dist/node_modules/lodash/_toSource.js +0 -32
- package/dist/node_modules/lodash/_toSource.js.map +0 -1
- package/dist/node_modules/lodash/_trimmedEndIndex.js +0 -27
- package/dist/node_modules/lodash/_trimmedEndIndex.js.map +0 -1
- package/dist/node_modules/lodash/_unicodeToArray.js +0 -40
- package/dist/node_modules/lodash/_unicodeToArray.js.map +0 -1
- package/dist/node_modules/lodash/_unicodeWords.js +0 -55
- package/dist/node_modules/lodash/_unicodeWords.js.map +0 -1
- package/dist/node_modules/lodash/camelCase.js +0 -39
- package/dist/node_modules/lodash/camelCase.js.map +0 -1
- package/dist/node_modules/lodash/capitalize.js +0 -33
- package/dist/node_modules/lodash/capitalize.js.map +0 -1
- package/dist/node_modules/lodash/constant.js +0 -36
- package/dist/node_modules/lodash/constant.js.map +0 -1
- package/dist/node_modules/lodash/deburr.js +0 -44
- package/dist/node_modules/lodash/deburr.js.map +0 -1
- package/dist/node_modules/lodash/difference.js +0 -41
- package/dist/node_modules/lodash/difference.js.map +0 -1
- package/dist/node_modules/lodash/eq.js +0 -47
- package/dist/node_modules/lodash/eq.js.map +0 -1
- package/dist/node_modules/lodash/flatten.js +0 -31
- package/dist/node_modules/lodash/flatten.js.map +0 -1
- package/dist/node_modules/lodash/forEach.js +0 -50
- package/dist/node_modules/lodash/forEach.js.map +0 -1
- package/dist/node_modules/lodash/forOwn.js +0 -46
- package/dist/node_modules/lodash/forOwn.js.map +0 -1
- package/dist/node_modules/lodash/get.js +0 -43
- package/dist/node_modules/lodash/get.js.map +0 -1
- package/dist/node_modules/lodash/has.js +0 -45
- package/dist/node_modules/lodash/has.js.map +0 -1
- package/dist/node_modules/lodash/hasIn.js +0 -44
- package/dist/node_modules/lodash/hasIn.js.map +0 -1
- package/dist/node_modules/lodash/identity.js +0 -31
- package/dist/node_modules/lodash/identity.js.map +0 -1
- package/dist/node_modules/lodash/isArguments.js +0 -44
- package/dist/node_modules/lodash/isArguments.js.map +0 -1
- package/dist/node_modules/lodash/isArray.js +0 -36
- package/dist/node_modules/lodash/isArray.js.map +0 -1
- package/dist/node_modules/lodash/isArrayLike.js +0 -43
- package/dist/node_modules/lodash/isArrayLike.js.map +0 -1
- package/dist/node_modules/lodash/isArrayLikeObject.js +0 -43
- package/dist/node_modules/lodash/isArrayLikeObject.js.map +0 -1
- package/dist/node_modules/lodash/isBuffer.js +0 -39
- package/dist/node_modules/lodash/isBuffer.js.map +0 -1
- package/dist/node_modules/lodash/isEmpty.js +0 -67
- package/dist/node_modules/lodash/isEmpty.js.map +0 -1
- package/dist/node_modules/lodash/isFunction.js +0 -39
- package/dist/node_modules/lodash/isFunction.js.map +0 -1
- package/dist/node_modules/lodash/isLength.js +0 -43
- package/dist/node_modules/lodash/isLength.js.map +0 -1
- package/dist/node_modules/lodash/isObject.js +0 -41
- package/dist/node_modules/lodash/isObject.js.map +0 -1
- package/dist/node_modules/lodash/isObjectLike.js +0 -39
- package/dist/node_modules/lodash/isObjectLike.js.map +0 -1
- package/dist/node_modules/lodash/isSymbol.js +0 -37
- package/dist/node_modules/lodash/isSymbol.js.map +0 -1
- package/dist/node_modules/lodash/isTypedArray.js +0 -35
- package/dist/node_modules/lodash/isTypedArray.js.map +0 -1
- package/dist/node_modules/lodash/keys.js +0 -47
- package/dist/node_modules/lodash/keys.js.map +0 -1
- package/dist/node_modules/lodash/keysIn.js +0 -42
- package/dist/node_modules/lodash/keysIn.js.map +0 -1
- package/dist/node_modules/lodash/mapKeys.js +0 -45
- package/dist/node_modules/lodash/mapKeys.js.map +0 -1
- package/dist/node_modules/lodash/mapValues.js +0 -52
- package/dist/node_modules/lodash/mapValues.js.map +0 -1
- package/dist/node_modules/lodash/memoize.js +0 -73
- package/dist/node_modules/lodash/memoize.js.map +0 -1
- package/dist/node_modules/lodash/negate.js +0 -47
- package/dist/node_modules/lodash/negate.js.map +0 -1
- package/dist/node_modules/lodash/omitBy.js +0 -39
- package/dist/node_modules/lodash/omitBy.js.map +0 -1
- package/dist/node_modules/lodash/pick.js +0 -35
- package/dist/node_modules/lodash/pick.js.map +0 -1
- package/dist/node_modules/lodash/pickBy.js +0 -45
- package/dist/node_modules/lodash/pickBy.js.map +0 -1
- package/dist/node_modules/lodash/property.js +0 -42
- package/dist/node_modules/lodash/property.js.map +0 -1
- package/dist/node_modules/lodash/repeat.js +0 -44
- package/dist/node_modules/lodash/repeat.js.map +0 -1
- package/dist/node_modules/lodash/set.js +0 -45
- package/dist/node_modules/lodash/set.js.map +0 -1
- package/dist/node_modules/lodash/snakeCase.js +0 -37
- package/dist/node_modules/lodash/snakeCase.js.map +0 -1
- package/dist/node_modules/lodash/stubArray.js +0 -33
- package/dist/node_modules/lodash/stubArray.js.map +0 -1
- package/dist/node_modules/lodash/stubFalse.js +0 -28
- package/dist/node_modules/lodash/stubFalse.js.map +0 -1
- package/dist/node_modules/lodash/toFinite.js +0 -45
- package/dist/node_modules/lodash/toFinite.js.map +0 -1
- package/dist/node_modules/lodash/toInteger.js +0 -44
- package/dist/node_modules/lodash/toInteger.js.map +0 -1
- package/dist/node_modules/lodash/toNumber.js +0 -61
- package/dist/node_modules/lodash/toNumber.js.map +0 -1
- package/dist/node_modules/lodash/toString.js +0 -38
- package/dist/node_modules/lodash/toString.js.map +0 -1
- package/dist/node_modules/lodash/upperFirst.js +0 -31
- package/dist/node_modules/lodash/upperFirst.js.map +0 -1
- package/dist/node_modules/lodash/words.js +0 -42
- package/dist/node_modules/lodash/words.js.map +0 -1
- package/dist/node_modules/nanoclone/src/index.js +0 -38
- package/dist/node_modules/nanoclone/src/index.js.map +0 -1
- package/dist/node_modules/payment/lib/index.js +0 -565
- package/dist/node_modules/payment/lib/index.js.map +0 -1
- package/dist/node_modules/property-expr/index.js +0 -100
- package/dist/node_modules/property-expr/index.js.map +0 -1
- package/dist/node_modules/qj/lib/index.js +0 -175
- package/dist/node_modules/qj/lib/index.js.map +0 -1
- package/dist/node_modules/redux-sentry-middleware/dist/index.umd.js +0 -86
- package/dist/node_modules/redux-sentry-middleware/dist/index.umd.js.map +0 -1
- package/dist/node_modules/toposort/index.js +0 -78
- package/dist/node_modules/toposort/index.js.map +0 -1
- package/dist/node_modules/yup/es/Condition.d.ts +0 -23
- package/dist/node_modules/yup/es/Condition.js +0 -40
- package/dist/node_modules/yup/es/Condition.js.map +0 -1
- package/dist/node_modules/yup/es/Lazy.d.ts +0 -29
- package/dist/node_modules/yup/es/Lazy.js +0 -49
- package/dist/node_modules/yup/es/Lazy.js.map +0 -1
- package/dist/node_modules/yup/es/Reference.d.ts +0 -36
- package/dist/node_modules/yup/es/Reference.js +0 -61
- package/dist/node_modules/yup/es/Reference.js.map +0 -1
- package/dist/node_modules/yup/es/ValidationError.d.ts +0 -16
- package/dist/node_modules/yup/es/ValidationError.js +0 -48
- package/dist/node_modules/yup/es/ValidationError.js.map +0 -1
- package/dist/node_modules/yup/es/array.js +0 -181
- package/dist/node_modules/yup/es/array.js.map +0 -1
- package/dist/node_modules/yup/es/boolean.js +0 -53
- package/dist/node_modules/yup/es/boolean.js.map +0 -1
- package/dist/node_modules/yup/es/date.js +0 -67
- package/dist/node_modules/yup/es/date.js.map +0 -1
- package/dist/node_modules/yup/es/index.js +0 -52
- package/dist/node_modules/yup/es/index.js.map +0 -1
- package/dist/node_modules/yup/es/locale.js +0 -61
- package/dist/node_modules/yup/es/locale.js.map +0 -1
- package/dist/node_modules/yup/es/mixed.js +0 -13
- package/dist/node_modules/yup/es/mixed.js.map +0 -1
- package/dist/node_modules/yup/es/number.js +0 -108
- package/dist/node_modules/yup/es/number.js.map +0 -1
- package/dist/node_modules/yup/es/object.d.ts +0 -48
- package/dist/node_modules/yup/es/object.js +0 -266
- package/dist/node_modules/yup/es/object.js.map +0 -1
- package/dist/node_modules/yup/es/schema.d.ts +0 -148
- package/dist/node_modules/yup/es/schema.js +0 -407
- package/dist/node_modules/yup/es/schema.js.map +0 -1
- package/dist/node_modules/yup/es/setLocale.js +0 -14
- package/dist/node_modules/yup/es/setLocale.js.map +0 -1
- package/dist/node_modules/yup/es/string.js +0 -132
- package/dist/node_modules/yup/es/string.js.map +0 -1
- package/dist/node_modules/yup/es/types.d.ts +0 -56
- package/dist/node_modules/yup/es/util/ReferenceSet.d.ts +0 -19
- package/dist/node_modules/yup/es/util/ReferenceSet.js +0 -51
- package/dist/node_modules/yup/es/util/ReferenceSet.js.map +0 -1
- package/dist/node_modules/yup/es/util/createValidation.d.ts +0 -43
- package/dist/node_modules/yup/es/util/createValidation.js +0 -96
- package/dist/node_modules/yup/es/util/createValidation.js.map +0 -1
- package/dist/node_modules/yup/es/util/isAbsent.js +0 -6
- package/dist/node_modules/yup/es/util/isAbsent.js.map +0 -1
- package/dist/node_modules/yup/es/util/isSchema.js +0 -6
- package/dist/node_modules/yup/es/util/isSchema.js.map +0 -1
- package/dist/node_modules/yup/es/util/isodate.js +0 -39
- package/dist/node_modules/yup/es/util/isodate.js.map +0 -1
- package/dist/node_modules/yup/es/util/printValue.js +0 -36
- package/dist/node_modules/yup/es/util/printValue.js.map +0 -1
- package/dist/node_modules/yup/es/util/reach.js +0 -47
- package/dist/node_modules/yup/es/util/reach.js.map +0 -1
- package/dist/node_modules/yup/es/util/runTests.js +0 -48
- package/dist/node_modules/yup/es/util/runTests.js.map +0 -1
- package/dist/node_modules/yup/es/util/sortByKeyOrder.js +0 -21
- package/dist/node_modules/yup/es/util/sortByKeyOrder.js.map +0 -1
- package/dist/node_modules/yup/es/util/sortFields.js +0 -31
- package/dist/node_modules/yup/es/util/sortFields.js.map +0 -1
- package/dist/node_modules/yup/es/util/toArray.js +0 -8
- package/dist/node_modules/yup/es/util/toArray.js.map +0 -1
- package/dist/node_modules/yup/es/util/types.d.ts +0 -11
- package/dist/node_modules/yup/lib/Condition.d.ts +0 -23
- package/dist/node_modules/yup/lib/Lazy.d.ts +0 -29
- package/dist/node_modules/yup/lib/Reference.d.ts +0 -36
- package/dist/node_modules/yup/lib/ValidationError.d.ts +0 -16
- package/dist/node_modules/yup/lib/locale.d.ts +0 -18
- package/dist/node_modules/yup/lib/object.d.ts +0 -13
- package/dist/node_modules/yup/lib/schema.d.ts +0 -141
- package/dist/node_modules/yup/lib/string.d.ts +0 -74
- package/dist/node_modules/yup/lib/types.d.ts +0 -54
- package/dist/node_modules/yup/lib/util/ReferenceSet.d.ts +0 -19
- package/dist/node_modules/yup/lib/util/createValidation.d.ts +0 -43
- package/dist/node_modules/yup/lib/util/types.d.ts +0 -12
- package/dist/packages/utils/node_modules/date-fns/esm/_lib/addLeadingZeros/index.js +0 -11
- package/dist/packages/utils/node_modules/date-fns/esm/_lib/addLeadingZeros/index.js.map +0 -1
- package/dist/packages/utils/node_modules/date-fns/esm/_lib/assign/index.js +0 -11
- package/dist/packages/utils/node_modules/date-fns/esm/_lib/assign/index.js.map +0 -1
- package/dist/packages/utils/node_modules/date-fns/esm/_lib/format/formatters/index.js +0 -437
- package/dist/packages/utils/node_modules/date-fns/esm/_lib/format/formatters/index.js.map +0 -1
- package/dist/packages/utils/node_modules/date-fns/esm/_lib/format/lightFormatters/index.js +0 -50
- package/dist/packages/utils/node_modules/date-fns/esm/_lib/format/lightFormatters/index.js.map +0 -1
- package/dist/packages/utils/node_modules/date-fns/esm/_lib/format/longFormatters/index.js +0 -51
- package/dist/packages/utils/node_modules/date-fns/esm/_lib/format/longFormatters/index.js.map +0 -1
- package/dist/packages/utils/node_modules/date-fns/esm/_lib/getTimezoneOffsetInMilliseconds/index.js +0 -27
- package/dist/packages/utils/node_modules/date-fns/esm/_lib/getTimezoneOffsetInMilliseconds/index.js.map +0 -1
- package/dist/packages/utils/node_modules/date-fns/esm/_lib/getUTCDayOfYear/index.js +0 -18
- package/dist/packages/utils/node_modules/date-fns/esm/_lib/getUTCDayOfYear/index.js.map +0 -1
- package/dist/packages/utils/node_modules/date-fns/esm/_lib/getUTCISOWeek/index.js +0 -17
- package/dist/packages/utils/node_modules/date-fns/esm/_lib/getUTCISOWeek/index.js.map +0 -1
- package/dist/packages/utils/node_modules/date-fns/esm/_lib/getUTCISOWeekYear/index.js +0 -25
- package/dist/packages/utils/node_modules/date-fns/esm/_lib/getUTCISOWeekYear/index.js.map +0 -1
- package/dist/packages/utils/node_modules/date-fns/esm/_lib/getUTCWeek/index.js +0 -17
- package/dist/packages/utils/node_modules/date-fns/esm/_lib/getUTCWeek/index.js.map +0 -1
- package/dist/packages/utils/node_modules/date-fns/esm/_lib/getUTCWeekYear/index.js +0 -32
- package/dist/packages/utils/node_modules/date-fns/esm/_lib/getUTCWeekYear/index.js.map +0 -1
- package/dist/packages/utils/node_modules/date-fns/esm/_lib/protectedTokens/index.js +0 -19
- package/dist/packages/utils/node_modules/date-fns/esm/_lib/protectedTokens/index.js.map +0 -1
- package/dist/packages/utils/node_modules/date-fns/esm/_lib/requiredArgs/index.js +0 -8
- package/dist/packages/utils/node_modules/date-fns/esm/_lib/requiredArgs/index.js.map +0 -1
- package/dist/packages/utils/node_modules/date-fns/esm/_lib/setUTCDay/index.js +0 -24
- package/dist/packages/utils/node_modules/date-fns/esm/_lib/setUTCDay/index.js.map +0 -1
- package/dist/packages/utils/node_modules/date-fns/esm/_lib/setUTCISODay/index.js +0 -20
- package/dist/packages/utils/node_modules/date-fns/esm/_lib/setUTCISODay/index.js.map +0 -1
- package/dist/packages/utils/node_modules/date-fns/esm/_lib/setUTCISOWeek/index.js +0 -18
- package/dist/packages/utils/node_modules/date-fns/esm/_lib/setUTCISOWeek/index.js.map +0 -1
- package/dist/packages/utils/node_modules/date-fns/esm/_lib/setUTCWeek/index.js +0 -18
- package/dist/packages/utils/node_modules/date-fns/esm/_lib/setUTCWeek/index.js.map +0 -1
- package/dist/packages/utils/node_modules/date-fns/esm/_lib/startOfUTCISOWeek/index.js +0 -18
- package/dist/packages/utils/node_modules/date-fns/esm/_lib/startOfUTCISOWeek/index.js.map +0 -1
- package/dist/packages/utils/node_modules/date-fns/esm/_lib/startOfUTCISOWeekYear/index.js +0 -17
- package/dist/packages/utils/node_modules/date-fns/esm/_lib/startOfUTCISOWeekYear/index.js.map +0 -1
- package/dist/packages/utils/node_modules/date-fns/esm/_lib/startOfUTCWeek/index.js +0 -24
- package/dist/packages/utils/node_modules/date-fns/esm/_lib/startOfUTCWeek/index.js.map +0 -1
- package/dist/packages/utils/node_modules/date-fns/esm/_lib/startOfUTCWeekYear/index.js +0 -23
- package/dist/packages/utils/node_modules/date-fns/esm/_lib/startOfUTCWeekYear/index.js.map +0 -1
- package/dist/packages/utils/node_modules/date-fns/esm/_lib/toInteger/index.js +0 -11
- package/dist/packages/utils/node_modules/date-fns/esm/_lib/toInteger/index.js.map +0 -1
- package/dist/packages/utils/node_modules/date-fns/esm/addMilliseconds/index.js +0 -37
- package/dist/packages/utils/node_modules/date-fns/esm/addMilliseconds/index.js.map +0 -1
- package/dist/packages/utils/node_modules/date-fns/esm/format/index.js +0 -378
- package/dist/packages/utils/node_modules/date-fns/esm/format/index.js.map +0 -1
- package/dist/packages/utils/node_modules/date-fns/esm/getMinutes/index.js +0 -33
- package/dist/packages/utils/node_modules/date-fns/esm/getMinutes/index.js.map +0 -1
- package/dist/packages/utils/node_modules/date-fns/esm/isBefore/index.js +0 -36
- package/dist/packages/utils/node_modules/date-fns/esm/isBefore/index.js.map +0 -1
- package/dist/packages/utils/node_modules/date-fns/esm/isFuture/index.js +0 -37
- package/dist/packages/utils/node_modules/date-fns/esm/isFuture/index.js.map +0 -1
- package/dist/packages/utils/node_modules/date-fns/esm/isValid/index.js +0 -70
- package/dist/packages/utils/node_modules/date-fns/esm/isValid/index.js.map +0 -1
- package/dist/packages/utils/node_modules/date-fns/esm/locale/_lib/buildFormatLongFn/index.js +0 -12
- package/dist/packages/utils/node_modules/date-fns/esm/locale/_lib/buildFormatLongFn/index.js.map +0 -1
- package/dist/packages/utils/node_modules/date-fns/esm/locale/_lib/buildLocalizeFn/index.js +0 -23
- package/dist/packages/utils/node_modules/date-fns/esm/locale/_lib/buildLocalizeFn/index.js.map +0 -1
- package/dist/packages/utils/node_modules/date-fns/esm/locale/_lib/buildMatchFn/index.js +0 -36
- package/dist/packages/utils/node_modules/date-fns/esm/locale/_lib/buildMatchFn/index.js.map +0 -1
- package/dist/packages/utils/node_modules/date-fns/esm/locale/_lib/buildMatchPatternFn/index.js +0 -22
- package/dist/packages/utils/node_modules/date-fns/esm/locale/_lib/buildMatchPatternFn/index.js.map +0 -1
- package/dist/packages/utils/node_modules/date-fns/esm/locale/en-US/_lib/formatDistance/index.js +0 -78
- package/dist/packages/utils/node_modules/date-fns/esm/locale/en-US/_lib/formatDistance/index.js.map +0 -1
- package/dist/packages/utils/node_modules/date-fns/esm/locale/en-US/_lib/formatLong/index.js +0 -37
- package/dist/packages/utils/node_modules/date-fns/esm/locale/en-US/_lib/formatLong/index.js.map +0 -1
- package/dist/packages/utils/node_modules/date-fns/esm/locale/en-US/_lib/formatRelative/index.js +0 -16
- package/dist/packages/utils/node_modules/date-fns/esm/locale/en-US/_lib/formatRelative/index.js.map +0 -1
- package/dist/packages/utils/node_modules/date-fns/esm/locale/en-US/_lib/localize/index.js +0 -217
- package/dist/packages/utils/node_modules/date-fns/esm/locale/en-US/_lib/localize/index.js.map +0 -1
- package/dist/packages/utils/node_modules/date-fns/esm/locale/en-US/_lib/match/index.js +0 -133
- package/dist/packages/utils/node_modules/date-fns/esm/locale/en-US/_lib/match/index.js.map +0 -1
- package/dist/packages/utils/node_modules/date-fns/esm/locale/en-US/index.js +0 -33
- package/dist/packages/utils/node_modules/date-fns/esm/locale/en-US/index.js.map +0 -1
- package/dist/packages/utils/node_modules/date-fns/esm/parse/_lib/parsers/index.js +0 -1346
- package/dist/packages/utils/node_modules/date-fns/esm/parse/_lib/parsers/index.js.map +0 -1
- package/dist/packages/utils/node_modules/date-fns/esm/parse/index.js +0 -461
- package/dist/packages/utils/node_modules/date-fns/esm/parse/index.js.map +0 -1
- package/dist/packages/utils/node_modules/date-fns/esm/setMinutes/index.js +0 -38
- package/dist/packages/utils/node_modules/date-fns/esm/setMinutes/index.js.map +0 -1
- package/dist/packages/utils/node_modules/date-fns/esm/startOfMinute/index.js +0 -36
- package/dist/packages/utils/node_modules/date-fns/esm/startOfMinute/index.js.map +0 -1
- package/dist/packages/utils/node_modules/date-fns/esm/subMilliseconds/index.js +0 -35
- package/dist/packages/utils/node_modules/date-fns/esm/subMilliseconds/index.js.map +0 -1
- package/dist/packages/utils/node_modules/date-fns/esm/toDate/index.js +0 -50
- package/dist/packages/utils/node_modules/date-fns/esm/toDate/index.js.map +0 -1
|
@@ -1,331 +0,0 @@
|
|
|
1
|
-
import { isPrimitive, isThenable } from "../../utils/esm/is.js";
|
|
2
|
-
import { truncate } from "../../utils/esm/string.js";
|
|
3
|
-
import { uuid4 } from "../../utils/esm/misc.js";
|
|
4
|
-
import { logger } from "../../utils/esm/logger.js";
|
|
5
|
-
import { normalize } from "../../utils/esm/object.js";
|
|
6
|
-
import { SyncPromise } from "../../utils/esm/syncpromise.js";
|
|
7
|
-
import { Dsn } from "../../utils/esm/dsn.js";
|
|
8
|
-
import { __assign } from "../node_modules/tslib/tslib.es6.js";
|
|
9
|
-
import { setupIntegrations } from "./integration.js";
|
|
10
|
-
|
|
11
|
-
//#region ../../node_modules/@sentry/core/esm/baseclient.js
|
|
12
|
-
/**
|
|
13
|
-
* Base implementation for all JavaScript SDK clients.
|
|
14
|
-
*
|
|
15
|
-
* Call the constructor with the corresponding backend constructor and options
|
|
16
|
-
* specific to the client subclass. To access these options later, use
|
|
17
|
-
* {@link Client.getOptions}. Also, the Backend instance is available via
|
|
18
|
-
* {@link Client.getBackend}.
|
|
19
|
-
*
|
|
20
|
-
* If a Dsn is specified in the options, it will be parsed and stored. Use
|
|
21
|
-
* {@link Client.getDsn} to retrieve the Dsn at any moment. In case the Dsn is
|
|
22
|
-
* invalid, the constructor will throw a {@link SentryException}. Note that
|
|
23
|
-
* without a valid Dsn, the SDK will not send any events to Sentry.
|
|
24
|
-
*
|
|
25
|
-
* Before sending an event via the backend, it is passed through
|
|
26
|
-
* {@link BaseClient.prepareEvent} to add SDK information and scope data
|
|
27
|
-
* (breadcrumbs and context). To add more custom information, override this
|
|
28
|
-
* method and extend the resulting prepared event.
|
|
29
|
-
*
|
|
30
|
-
* To issue automatically created events (e.g. via instrumentation), use
|
|
31
|
-
* {@link Client.captureEvent}. It will prepare the event and pass it through
|
|
32
|
-
* the callback lifecycle. To issue auto-breadcrumbs, use
|
|
33
|
-
* {@link Client.addBreadcrumb}.
|
|
34
|
-
*
|
|
35
|
-
* @example
|
|
36
|
-
* class NodeClient extends BaseClient<NodeBackend, NodeOptions> {
|
|
37
|
-
* public constructor(options: NodeOptions) {
|
|
38
|
-
* super(NodeBackend, options);
|
|
39
|
-
* }
|
|
40
|
-
*
|
|
41
|
-
* // ...
|
|
42
|
-
* }
|
|
43
|
-
*/
|
|
44
|
-
var BaseClient = function() {
|
|
45
|
-
/**
|
|
46
|
-
* Initializes this client instance.
|
|
47
|
-
*
|
|
48
|
-
* @param backendClass A constructor function to create the backend.
|
|
49
|
-
* @param options Options for the client.
|
|
50
|
-
*/
|
|
51
|
-
function BaseClient$1(backendClass, options) {
|
|
52
|
-
/** Array of used integrations. */
|
|
53
|
-
this._integrations = {};
|
|
54
|
-
/** Is the client still processing a call? */
|
|
55
|
-
this._processing = false;
|
|
56
|
-
this._backend = new backendClass(options);
|
|
57
|
-
this._options = options;
|
|
58
|
-
if (options.dsn) this._dsn = new Dsn(options.dsn);
|
|
59
|
-
if (this._isEnabled()) this._integrations = setupIntegrations(this._options);
|
|
60
|
-
}
|
|
61
|
-
/**
|
|
62
|
-
* @inheritDoc
|
|
63
|
-
*/
|
|
64
|
-
BaseClient$1.prototype.captureException = function(exception, hint, scope) {
|
|
65
|
-
var _this = this;
|
|
66
|
-
var eventId = hint && hint.event_id;
|
|
67
|
-
this._processing = true;
|
|
68
|
-
this._getBackend().eventFromException(exception, hint).then(function(event) {
|
|
69
|
-
return _this._processEvent(event, hint, scope);
|
|
70
|
-
}).then(function(finalEvent) {
|
|
71
|
-
eventId = finalEvent && finalEvent.event_id;
|
|
72
|
-
_this._processing = false;
|
|
73
|
-
}).then(null, function(reason) {
|
|
74
|
-
logger.error(reason);
|
|
75
|
-
_this._processing = false;
|
|
76
|
-
});
|
|
77
|
-
return eventId;
|
|
78
|
-
};
|
|
79
|
-
/**
|
|
80
|
-
* @inheritDoc
|
|
81
|
-
*/
|
|
82
|
-
BaseClient$1.prototype.captureMessage = function(message, level, hint, scope) {
|
|
83
|
-
var _this = this;
|
|
84
|
-
var eventId = hint && hint.event_id;
|
|
85
|
-
this._processing = true;
|
|
86
|
-
(isPrimitive(message) ? this._getBackend().eventFromMessage("" + message, level, hint) : this._getBackend().eventFromException(message, hint)).then(function(event) {
|
|
87
|
-
return _this._processEvent(event, hint, scope);
|
|
88
|
-
}).then(function(finalEvent) {
|
|
89
|
-
eventId = finalEvent && finalEvent.event_id;
|
|
90
|
-
_this._processing = false;
|
|
91
|
-
}).then(null, function(reason) {
|
|
92
|
-
logger.error(reason);
|
|
93
|
-
_this._processing = false;
|
|
94
|
-
});
|
|
95
|
-
return eventId;
|
|
96
|
-
};
|
|
97
|
-
/**
|
|
98
|
-
* @inheritDoc
|
|
99
|
-
*/
|
|
100
|
-
BaseClient$1.prototype.captureEvent = function(event, hint, scope) {
|
|
101
|
-
var _this = this;
|
|
102
|
-
var eventId = hint && hint.event_id;
|
|
103
|
-
this._processing = true;
|
|
104
|
-
this._processEvent(event, hint, scope).then(function(finalEvent) {
|
|
105
|
-
eventId = finalEvent && finalEvent.event_id;
|
|
106
|
-
_this._processing = false;
|
|
107
|
-
}).then(null, function(reason) {
|
|
108
|
-
logger.error(reason);
|
|
109
|
-
_this._processing = false;
|
|
110
|
-
});
|
|
111
|
-
return eventId;
|
|
112
|
-
};
|
|
113
|
-
/**
|
|
114
|
-
* @inheritDoc
|
|
115
|
-
*/
|
|
116
|
-
BaseClient$1.prototype.getDsn = function() {
|
|
117
|
-
return this._dsn;
|
|
118
|
-
};
|
|
119
|
-
/**
|
|
120
|
-
* @inheritDoc
|
|
121
|
-
*/
|
|
122
|
-
BaseClient$1.prototype.getOptions = function() {
|
|
123
|
-
return this._options;
|
|
124
|
-
};
|
|
125
|
-
/**
|
|
126
|
-
* @inheritDoc
|
|
127
|
-
*/
|
|
128
|
-
BaseClient$1.prototype.flush = function(timeout) {
|
|
129
|
-
var _this = this;
|
|
130
|
-
return this._isClientProcessing(timeout).then(function(status) {
|
|
131
|
-
clearInterval(status.interval);
|
|
132
|
-
return _this._getBackend().getTransport().close(timeout).then(function(transportFlushed) {
|
|
133
|
-
return status.ready && transportFlushed;
|
|
134
|
-
});
|
|
135
|
-
});
|
|
136
|
-
};
|
|
137
|
-
/**
|
|
138
|
-
* @inheritDoc
|
|
139
|
-
*/
|
|
140
|
-
BaseClient$1.prototype.close = function(timeout) {
|
|
141
|
-
var _this = this;
|
|
142
|
-
return this.flush(timeout).then(function(result) {
|
|
143
|
-
_this.getOptions().enabled = false;
|
|
144
|
-
return result;
|
|
145
|
-
});
|
|
146
|
-
};
|
|
147
|
-
/**
|
|
148
|
-
* @inheritDoc
|
|
149
|
-
*/
|
|
150
|
-
BaseClient$1.prototype.getIntegrations = function() {
|
|
151
|
-
return this._integrations || {};
|
|
152
|
-
};
|
|
153
|
-
/**
|
|
154
|
-
* @inheritDoc
|
|
155
|
-
*/
|
|
156
|
-
BaseClient$1.prototype.getIntegration = function(integration) {
|
|
157
|
-
try {
|
|
158
|
-
return this._integrations[integration.id] || null;
|
|
159
|
-
} catch (_oO) {
|
|
160
|
-
logger.warn("Cannot retrieve integration " + integration.id + " from the current Client");
|
|
161
|
-
return null;
|
|
162
|
-
}
|
|
163
|
-
};
|
|
164
|
-
/** Waits for the client to be done with processing. */
|
|
165
|
-
BaseClient$1.prototype._isClientProcessing = function(timeout) {
|
|
166
|
-
var _this = this;
|
|
167
|
-
return new SyncPromise(function(resolve) {
|
|
168
|
-
var ticked = 0;
|
|
169
|
-
var tick = 1;
|
|
170
|
-
var interval = 0;
|
|
171
|
-
clearInterval(interval);
|
|
172
|
-
interval = setInterval(function() {
|
|
173
|
-
if (!_this._processing) resolve({
|
|
174
|
-
interval,
|
|
175
|
-
ready: true
|
|
176
|
-
});
|
|
177
|
-
else {
|
|
178
|
-
ticked += tick;
|
|
179
|
-
if (timeout && ticked >= timeout) resolve({
|
|
180
|
-
interval,
|
|
181
|
-
ready: false
|
|
182
|
-
});
|
|
183
|
-
}
|
|
184
|
-
}, tick);
|
|
185
|
-
});
|
|
186
|
-
};
|
|
187
|
-
/** Returns the current backend. */
|
|
188
|
-
BaseClient$1.prototype._getBackend = function() {
|
|
189
|
-
return this._backend;
|
|
190
|
-
};
|
|
191
|
-
/** Determines whether this SDK is enabled and a valid Dsn is present. */
|
|
192
|
-
BaseClient$1.prototype._isEnabled = function() {
|
|
193
|
-
return this.getOptions().enabled !== false && this._dsn !== void 0;
|
|
194
|
-
};
|
|
195
|
-
/**
|
|
196
|
-
* Adds common information to events.
|
|
197
|
-
*
|
|
198
|
-
* The information includes release and environment from `options`,
|
|
199
|
-
* breadcrumbs and context (extra, tags and user) from the scope.
|
|
200
|
-
*
|
|
201
|
-
* Information that is already present in the event is never overwritten. For
|
|
202
|
-
* nested objects, such as the context, keys are merged.
|
|
203
|
-
*
|
|
204
|
-
* @param event The original event.
|
|
205
|
-
* @param hint May contain additional informartion about the original exception.
|
|
206
|
-
* @param scope A scope containing event metadata.
|
|
207
|
-
* @returns A new event with more information.
|
|
208
|
-
*/
|
|
209
|
-
BaseClient$1.prototype._prepareEvent = function(event, scope, hint) {
|
|
210
|
-
var _this = this;
|
|
211
|
-
var _a = this.getOptions(), environment = _a.environment, release = _a.release, dist = _a.dist, _b = _a.maxValueLength, maxValueLength = _b === void 0 ? 250 : _b, _c = _a.normalizeDepth, normalizeDepth = _c === void 0 ? 3 : _c;
|
|
212
|
-
var prepared = __assign({}, event);
|
|
213
|
-
if (prepared.environment === void 0 && environment !== void 0) prepared.environment = environment;
|
|
214
|
-
if (prepared.release === void 0 && release !== void 0) prepared.release = release;
|
|
215
|
-
if (prepared.dist === void 0 && dist !== void 0) prepared.dist = dist;
|
|
216
|
-
if (prepared.message) prepared.message = truncate(prepared.message, maxValueLength);
|
|
217
|
-
var exception = prepared.exception && prepared.exception.values && prepared.exception.values[0];
|
|
218
|
-
if (exception && exception.value) exception.value = truncate(exception.value, maxValueLength);
|
|
219
|
-
var request = prepared.request;
|
|
220
|
-
if (request && request.url) request.url = truncate(request.url, maxValueLength);
|
|
221
|
-
if (prepared.event_id === void 0) prepared.event_id = hint && hint.event_id ? hint.event_id : uuid4();
|
|
222
|
-
this._addIntegrations(prepared.sdk);
|
|
223
|
-
var result = SyncPromise.resolve(prepared);
|
|
224
|
-
if (scope) result = scope.applyToEvent(prepared, hint);
|
|
225
|
-
return result.then(function(evt) {
|
|
226
|
-
if (typeof normalizeDepth === "number" && normalizeDepth > 0) return _this._normalizeEvent(evt, normalizeDepth);
|
|
227
|
-
return evt;
|
|
228
|
-
});
|
|
229
|
-
};
|
|
230
|
-
/**
|
|
231
|
-
* Applies `normalize` function on necessary `Event` attributes to make them safe for serialization.
|
|
232
|
-
* Normalized keys:
|
|
233
|
-
* - `breadcrumbs.data`
|
|
234
|
-
* - `user`
|
|
235
|
-
* - `contexts`
|
|
236
|
-
* - `extra`
|
|
237
|
-
* @param event Event
|
|
238
|
-
* @returns Normalized event
|
|
239
|
-
*/
|
|
240
|
-
BaseClient$1.prototype._normalizeEvent = function(event, depth) {
|
|
241
|
-
if (!event) return null;
|
|
242
|
-
return __assign({}, event, event.breadcrumbs && { breadcrumbs: event.breadcrumbs.map(function(b) {
|
|
243
|
-
return __assign({}, b, b.data && { data: normalize(b.data, depth) });
|
|
244
|
-
}) }, event.user && { user: normalize(event.user, depth) }, event.contexts && { contexts: normalize(event.contexts, depth) }, event.extra && { extra: normalize(event.extra, depth) });
|
|
245
|
-
};
|
|
246
|
-
/**
|
|
247
|
-
* This function adds all used integrations to the SDK info in the event.
|
|
248
|
-
* @param sdkInfo The sdkInfo of the event that will be filled with all integrations.
|
|
249
|
-
*/
|
|
250
|
-
BaseClient$1.prototype._addIntegrations = function(sdkInfo) {
|
|
251
|
-
var integrationsArray = Object.keys(this._integrations);
|
|
252
|
-
if (sdkInfo && integrationsArray.length > 0) sdkInfo.integrations = integrationsArray;
|
|
253
|
-
};
|
|
254
|
-
/**
|
|
255
|
-
* Processes an event (either error or message) and sends it to Sentry.
|
|
256
|
-
*
|
|
257
|
-
* This also adds breadcrumbs and context information to the event. However,
|
|
258
|
-
* platform specific meta data (such as the User's IP address) must be added
|
|
259
|
-
* by the SDK implementor.
|
|
260
|
-
*
|
|
261
|
-
*
|
|
262
|
-
* @param event The event to send to Sentry.
|
|
263
|
-
* @param hint May contain additional informartion about the original exception.
|
|
264
|
-
* @param scope A scope containing event metadata.
|
|
265
|
-
* @returns A SyncPromise that resolves with the event or rejects in case event was/will not be send.
|
|
266
|
-
*/
|
|
267
|
-
BaseClient$1.prototype._processEvent = function(event, hint, scope) {
|
|
268
|
-
var _this = this;
|
|
269
|
-
var _a = this.getOptions(), beforeSend = _a.beforeSend, sampleRate = _a.sampleRate;
|
|
270
|
-
if (!this._isEnabled()) return SyncPromise.reject("SDK not enabled, will not send event.");
|
|
271
|
-
if (typeof sampleRate === "number" && Math.random() > sampleRate) return SyncPromise.reject("This event has been sampled, will not send event.");
|
|
272
|
-
return new SyncPromise(function(resolve, reject) {
|
|
273
|
-
_this._prepareEvent(event, scope, hint).then(function(prepared) {
|
|
274
|
-
if (prepared === null) {
|
|
275
|
-
reject("An event processor returned null, will not send event.");
|
|
276
|
-
return;
|
|
277
|
-
}
|
|
278
|
-
var finalEvent = prepared;
|
|
279
|
-
try {
|
|
280
|
-
if (hint && hint.data && hint.data.__sentry__ === true || !beforeSend) {
|
|
281
|
-
_this._getBackend().sendEvent(finalEvent);
|
|
282
|
-
resolve(finalEvent);
|
|
283
|
-
return;
|
|
284
|
-
}
|
|
285
|
-
var beforeSendResult = beforeSend(prepared, hint);
|
|
286
|
-
if (typeof beforeSendResult === "undefined") logger.error("`beforeSend` method has to return `null` or a valid event.");
|
|
287
|
-
else if (isThenable(beforeSendResult)) _this._handleAsyncBeforeSend(beforeSendResult, resolve, reject);
|
|
288
|
-
else {
|
|
289
|
-
finalEvent = beforeSendResult;
|
|
290
|
-
if (finalEvent === null) {
|
|
291
|
-
logger.log("`beforeSend` returned `null`, will not send event.");
|
|
292
|
-
resolve(null);
|
|
293
|
-
return;
|
|
294
|
-
}
|
|
295
|
-
_this._getBackend().sendEvent(finalEvent);
|
|
296
|
-
resolve(finalEvent);
|
|
297
|
-
}
|
|
298
|
-
} catch (exception) {
|
|
299
|
-
_this.captureException(exception, {
|
|
300
|
-
data: { __sentry__: true },
|
|
301
|
-
originalException: exception
|
|
302
|
-
});
|
|
303
|
-
reject("`beforeSend` threw an error, will not send event.");
|
|
304
|
-
}
|
|
305
|
-
}).then(null, function() {
|
|
306
|
-
reject("`beforeSend` threw an error, will not send event.");
|
|
307
|
-
});
|
|
308
|
-
});
|
|
309
|
-
};
|
|
310
|
-
/**
|
|
311
|
-
* Resolves before send Promise and calls resolve/reject on parent SyncPromise.
|
|
312
|
-
*/
|
|
313
|
-
BaseClient$1.prototype._handleAsyncBeforeSend = function(beforeSend, resolve, reject) {
|
|
314
|
-
var _this = this;
|
|
315
|
-
beforeSend.then(function(processedEvent) {
|
|
316
|
-
if (processedEvent === null) {
|
|
317
|
-
reject("`beforeSend` returned `null`, will not send event.");
|
|
318
|
-
return;
|
|
319
|
-
}
|
|
320
|
-
_this._getBackend().sendEvent(processedEvent);
|
|
321
|
-
resolve(processedEvent);
|
|
322
|
-
}).then(null, function(e) {
|
|
323
|
-
reject("beforeSend rejected with " + e);
|
|
324
|
-
});
|
|
325
|
-
};
|
|
326
|
-
return BaseClient$1;
|
|
327
|
-
}();
|
|
328
|
-
|
|
329
|
-
//#endregion
|
|
330
|
-
export { BaseClient };
|
|
331
|
-
//# sourceMappingURL=baseclient.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"baseclient.js","names":["BaseClient","tslib_1.__assign"],"sources":["../../../../../../../node_modules/@sentry/core/esm/baseclient.js"],"sourcesContent":["import * as tslib_1 from \"tslib\";\nimport { Dsn, isPrimitive, isThenable, logger, normalize, SyncPromise, truncate, uuid4 } from '@sentry/utils';\nimport { setupIntegrations } from './integration';\n/**\n * Base implementation for all JavaScript SDK clients.\n *\n * Call the constructor with the corresponding backend constructor and options\n * specific to the client subclass. To access these options later, use\n * {@link Client.getOptions}. Also, the Backend instance is available via\n * {@link Client.getBackend}.\n *\n * If a Dsn is specified in the options, it will be parsed and stored. Use\n * {@link Client.getDsn} to retrieve the Dsn at any moment. In case the Dsn is\n * invalid, the constructor will throw a {@link SentryException}. Note that\n * without a valid Dsn, the SDK will not send any events to Sentry.\n *\n * Before sending an event via the backend, it is passed through\n * {@link BaseClient.prepareEvent} to add SDK information and scope data\n * (breadcrumbs and context). To add more custom information, override this\n * method and extend the resulting prepared event.\n *\n * To issue automatically created events (e.g. via instrumentation), use\n * {@link Client.captureEvent}. It will prepare the event and pass it through\n * the callback lifecycle. To issue auto-breadcrumbs, use\n * {@link Client.addBreadcrumb}.\n *\n * @example\n * class NodeClient extends BaseClient<NodeBackend, NodeOptions> {\n * public constructor(options: NodeOptions) {\n * super(NodeBackend, options);\n * }\n *\n * // ...\n * }\n */\nvar BaseClient = /** @class */ (function () {\n /**\n * Initializes this client instance.\n *\n * @param backendClass A constructor function to create the backend.\n * @param options Options for the client.\n */\n function BaseClient(backendClass, options) {\n /** Array of used integrations. */\n this._integrations = {};\n /** Is the client still processing a call? */\n this._processing = false;\n this._backend = new backendClass(options);\n this._options = options;\n if (options.dsn) {\n this._dsn = new Dsn(options.dsn);\n }\n if (this._isEnabled()) {\n this._integrations = setupIntegrations(this._options);\n }\n }\n /**\n * @inheritDoc\n */\n BaseClient.prototype.captureException = function (exception, hint, scope) {\n var _this = this;\n var eventId = hint && hint.event_id;\n this._processing = true;\n this._getBackend()\n .eventFromException(exception, hint)\n .then(function (event) { return _this._processEvent(event, hint, scope); })\n .then(function (finalEvent) {\n // We need to check for finalEvent in case beforeSend returned null\n eventId = finalEvent && finalEvent.event_id;\n _this._processing = false;\n })\n .then(null, function (reason) {\n logger.error(reason);\n _this._processing = false;\n });\n return eventId;\n };\n /**\n * @inheritDoc\n */\n BaseClient.prototype.captureMessage = function (message, level, hint, scope) {\n var _this = this;\n var eventId = hint && hint.event_id;\n this._processing = true;\n var promisedEvent = isPrimitive(message)\n ? this._getBackend().eventFromMessage(\"\" + message, level, hint)\n : this._getBackend().eventFromException(message, hint);\n promisedEvent\n .then(function (event) { return _this._processEvent(event, hint, scope); })\n .then(function (finalEvent) {\n // We need to check for finalEvent in case beforeSend returned null\n eventId = finalEvent && finalEvent.event_id;\n _this._processing = false;\n })\n .then(null, function (reason) {\n logger.error(reason);\n _this._processing = false;\n });\n return eventId;\n };\n /**\n * @inheritDoc\n */\n BaseClient.prototype.captureEvent = function (event, hint, scope) {\n var _this = this;\n var eventId = hint && hint.event_id;\n this._processing = true;\n this._processEvent(event, hint, scope)\n .then(function (finalEvent) {\n // We need to check for finalEvent in case beforeSend returned null\n eventId = finalEvent && finalEvent.event_id;\n _this._processing = false;\n })\n .then(null, function (reason) {\n logger.error(reason);\n _this._processing = false;\n });\n return eventId;\n };\n /**\n * @inheritDoc\n */\n BaseClient.prototype.getDsn = function () {\n return this._dsn;\n };\n /**\n * @inheritDoc\n */\n BaseClient.prototype.getOptions = function () {\n return this._options;\n };\n /**\n * @inheritDoc\n */\n BaseClient.prototype.flush = function (timeout) {\n var _this = this;\n return this._isClientProcessing(timeout).then(function (status) {\n clearInterval(status.interval);\n return _this._getBackend()\n .getTransport()\n .close(timeout)\n .then(function (transportFlushed) { return status.ready && transportFlushed; });\n });\n };\n /**\n * @inheritDoc\n */\n BaseClient.prototype.close = function (timeout) {\n var _this = this;\n return this.flush(timeout).then(function (result) {\n _this.getOptions().enabled = false;\n return result;\n });\n };\n /**\n * @inheritDoc\n */\n BaseClient.prototype.getIntegrations = function () {\n return this._integrations || {};\n };\n /**\n * @inheritDoc\n */\n BaseClient.prototype.getIntegration = function (integration) {\n try {\n return this._integrations[integration.id] || null;\n }\n catch (_oO) {\n logger.warn(\"Cannot retrieve integration \" + integration.id + \" from the current Client\");\n return null;\n }\n };\n /** Waits for the client to be done with processing. */\n BaseClient.prototype._isClientProcessing = function (timeout) {\n var _this = this;\n return new SyncPromise(function (resolve) {\n var ticked = 0;\n var tick = 1;\n var interval = 0;\n clearInterval(interval);\n interval = setInterval(function () {\n if (!_this._processing) {\n resolve({\n interval: interval,\n ready: true,\n });\n }\n else {\n ticked += tick;\n if (timeout && ticked >= timeout) {\n resolve({\n interval: interval,\n ready: false,\n });\n }\n }\n }, tick);\n });\n };\n /** Returns the current backend. */\n BaseClient.prototype._getBackend = function () {\n return this._backend;\n };\n /** Determines whether this SDK is enabled and a valid Dsn is present. */\n BaseClient.prototype._isEnabled = function () {\n return this.getOptions().enabled !== false && this._dsn !== undefined;\n };\n /**\n * Adds common information to events.\n *\n * The information includes release and environment from `options`,\n * breadcrumbs and context (extra, tags and user) from the scope.\n *\n * Information that is already present in the event is never overwritten. For\n * nested objects, such as the context, keys are merged.\n *\n * @param event The original event.\n * @param hint May contain additional informartion about the original exception.\n * @param scope A scope containing event metadata.\n * @returns A new event with more information.\n */\n BaseClient.prototype._prepareEvent = function (event, scope, hint) {\n var _this = this;\n var _a = this.getOptions(), environment = _a.environment, release = _a.release, dist = _a.dist, _b = _a.maxValueLength, maxValueLength = _b === void 0 ? 250 : _b, _c = _a.normalizeDepth, normalizeDepth = _c === void 0 ? 3 : _c;\n var prepared = tslib_1.__assign({}, event);\n if (prepared.environment === undefined && environment !== undefined) {\n prepared.environment = environment;\n }\n if (prepared.release === undefined && release !== undefined) {\n prepared.release = release;\n }\n if (prepared.dist === undefined && dist !== undefined) {\n prepared.dist = dist;\n }\n if (prepared.message) {\n prepared.message = truncate(prepared.message, maxValueLength);\n }\n var exception = prepared.exception && prepared.exception.values && prepared.exception.values[0];\n if (exception && exception.value) {\n exception.value = truncate(exception.value, maxValueLength);\n }\n var request = prepared.request;\n if (request && request.url) {\n request.url = truncate(request.url, maxValueLength);\n }\n if (prepared.event_id === undefined) {\n prepared.event_id = hint && hint.event_id ? hint.event_id : uuid4();\n }\n this._addIntegrations(prepared.sdk);\n // We prepare the result here with a resolved Event.\n var result = SyncPromise.resolve(prepared);\n // This should be the last thing called, since we want that\n // {@link Hub.addEventProcessor} gets the finished prepared event.\n if (scope) {\n // In case we have a hub we reassign it.\n result = scope.applyToEvent(prepared, hint);\n }\n return result.then(function (evt) {\n // tslint:disable-next-line:strict-type-predicates\n if (typeof normalizeDepth === 'number' && normalizeDepth > 0) {\n return _this._normalizeEvent(evt, normalizeDepth);\n }\n return evt;\n });\n };\n /**\n * Applies `normalize` function on necessary `Event` attributes to make them safe for serialization.\n * Normalized keys:\n * - `breadcrumbs.data`\n * - `user`\n * - `contexts`\n * - `extra`\n * @param event Event\n * @returns Normalized event\n */\n BaseClient.prototype._normalizeEvent = function (event, depth) {\n if (!event) {\n return null;\n }\n // tslint:disable:no-unsafe-any\n return tslib_1.__assign({}, event, (event.breadcrumbs && {\n breadcrumbs: event.breadcrumbs.map(function (b) { return (tslib_1.__assign({}, b, (b.data && {\n data: normalize(b.data, depth),\n }))); }),\n }), (event.user && {\n user: normalize(event.user, depth),\n }), (event.contexts && {\n contexts: normalize(event.contexts, depth),\n }), (event.extra && {\n extra: normalize(event.extra, depth),\n }));\n };\n /**\n * This function adds all used integrations to the SDK info in the event.\n * @param sdkInfo The sdkInfo of the event that will be filled with all integrations.\n */\n BaseClient.prototype._addIntegrations = function (sdkInfo) {\n var integrationsArray = Object.keys(this._integrations);\n if (sdkInfo && integrationsArray.length > 0) {\n sdkInfo.integrations = integrationsArray;\n }\n };\n /**\n * Processes an event (either error or message) and sends it to Sentry.\n *\n * This also adds breadcrumbs and context information to the event. However,\n * platform specific meta data (such as the User's IP address) must be added\n * by the SDK implementor.\n *\n *\n * @param event The event to send to Sentry.\n * @param hint May contain additional informartion about the original exception.\n * @param scope A scope containing event metadata.\n * @returns A SyncPromise that resolves with the event or rejects in case event was/will not be send.\n */\n BaseClient.prototype._processEvent = function (event, hint, scope) {\n var _this = this;\n var _a = this.getOptions(), beforeSend = _a.beforeSend, sampleRate = _a.sampleRate;\n if (!this._isEnabled()) {\n return SyncPromise.reject('SDK not enabled, will not send event.');\n }\n // 1.0 === 100% events are sent\n // 0.0 === 0% events are sent\n if (typeof sampleRate === 'number' && Math.random() > sampleRate) {\n return SyncPromise.reject('This event has been sampled, will not send event.');\n }\n return new SyncPromise(function (resolve, reject) {\n _this._prepareEvent(event, scope, hint)\n .then(function (prepared) {\n if (prepared === null) {\n reject('An event processor returned null, will not send event.');\n return;\n }\n var finalEvent = prepared;\n try {\n var isInternalException = hint && hint.data && hint.data.__sentry__ === true;\n if (isInternalException || !beforeSend) {\n _this._getBackend().sendEvent(finalEvent);\n resolve(finalEvent);\n return;\n }\n var beforeSendResult = beforeSend(prepared, hint);\n // tslint:disable-next-line:strict-type-predicates\n if (typeof beforeSendResult === 'undefined') {\n logger.error('`beforeSend` method has to return `null` or a valid event.');\n }\n else if (isThenable(beforeSendResult)) {\n _this._handleAsyncBeforeSend(beforeSendResult, resolve, reject);\n }\n else {\n finalEvent = beforeSendResult;\n if (finalEvent === null) {\n logger.log('`beforeSend` returned `null`, will not send event.');\n resolve(null);\n return;\n }\n // From here on we are really async\n _this._getBackend().sendEvent(finalEvent);\n resolve(finalEvent);\n }\n }\n catch (exception) {\n _this.captureException(exception, {\n data: {\n __sentry__: true,\n },\n originalException: exception,\n });\n reject('`beforeSend` threw an error, will not send event.');\n }\n })\n .then(null, function () {\n reject('`beforeSend` threw an error, will not send event.');\n });\n });\n };\n /**\n * Resolves before send Promise and calls resolve/reject on parent SyncPromise.\n */\n BaseClient.prototype._handleAsyncBeforeSend = function (beforeSend, resolve, reject) {\n var _this = this;\n beforeSend\n .then(function (processedEvent) {\n if (processedEvent === null) {\n reject('`beforeSend` returned `null`, will not send event.');\n return;\n }\n // From here on we are really async\n _this._getBackend().sendEvent(processedEvent);\n resolve(processedEvent);\n })\n .then(null, function (e) {\n reject(\"beforeSend rejected with \" + e);\n });\n };\n return BaseClient;\n}());\nexport { BaseClient };\n//# sourceMappingURL=baseclient.js.map"],"x_google_ignoreList":[0],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmCA,IAAI,aAA4B,WAAY;;;;;;;CAOxC,SAASA,aAAW,cAAc,SAAS;;AAEvC,OAAK,gBAAgB,EAAE;;AAEvB,OAAK,cAAc;AACnB,OAAK,WAAW,IAAI,aAAa,QAAQ;AACzC,OAAK,WAAW;AAChB,MAAI,QAAQ,IACR,MAAK,OAAO,IAAI,IAAI,QAAQ,IAAI;AAEpC,MAAI,KAAK,YAAY,CACjB,MAAK,gBAAgB,kBAAkB,KAAK,SAAS;;;;;AAM7D,cAAW,UAAU,mBAAmB,SAAU,WAAW,MAAM,OAAO;EACtE,IAAI,QAAQ;EACZ,IAAI,UAAU,QAAQ,KAAK;AAC3B,OAAK,cAAc;AACnB,OAAK,aAAa,CACb,mBAAmB,WAAW,KAAK,CACnC,KAAK,SAAU,OAAO;AAAE,UAAO,MAAM,cAAc,OAAO,MAAM,MAAM;IAAI,CAC1E,KAAK,SAAU,YAAY;AAE5B,aAAU,cAAc,WAAW;AACnC,SAAM,cAAc;IACtB,CACG,KAAK,MAAM,SAAU,QAAQ;AAC9B,UAAO,MAAM,OAAO;AACpB,SAAM,cAAc;IACtB;AACF,SAAO;;;;;AAKX,cAAW,UAAU,iBAAiB,SAAU,SAAS,OAAO,MAAM,OAAO;EACzE,IAAI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,SAAS,QAAQ;EACjF,IAAI,QAAQ;AACZ,aACK,KAAK,SAAU,gBAAgB;AAChC,OAAI,mBAAmB,MAAM;AACzB,WAAO,qDAAqD;AAC5D;;AAGJ,SAAM,aAAa,CAAC,UAAU,eAAe;AAC7C,WAAQ,eAAe;IACzB,CACG,KAAK,MAAM,SAAU,GAAG;AACzB,UAAO,8BAA8B,EAAE;IACzC;;AAEN,QAAOD;GACR"}
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import { logger } from "../../utils/esm/logger.js";
|
|
2
|
-
import { addGlobalEventProcessor } from "../../hub/esm/scope.js";
|
|
3
|
-
import { getCurrentHub } from "../../hub/esm/hub.js";
|
|
4
|
-
import { __spread } from "../node_modules/tslib/tslib.es6.js";
|
|
5
|
-
|
|
6
|
-
//#region ../../node_modules/@sentry/core/esm/integration.js
|
|
7
|
-
var installedIntegrations = [];
|
|
8
|
-
/** Gets integration to install */
|
|
9
|
-
function getIntegrationsToSetup(options) {
|
|
10
|
-
var defaultIntegrations = options.defaultIntegrations && __spread(options.defaultIntegrations) || [];
|
|
11
|
-
var userIntegrations = options.integrations;
|
|
12
|
-
var integrations = [];
|
|
13
|
-
if (Array.isArray(userIntegrations)) {
|
|
14
|
-
var userIntegrationsNames_1 = userIntegrations.map(function(i) {
|
|
15
|
-
return i.name;
|
|
16
|
-
});
|
|
17
|
-
var pickedIntegrationsNames_1 = [];
|
|
18
|
-
defaultIntegrations.forEach(function(defaultIntegration) {
|
|
19
|
-
if (userIntegrationsNames_1.indexOf(defaultIntegration.name) === -1 && pickedIntegrationsNames_1.indexOf(defaultIntegration.name) === -1) {
|
|
20
|
-
integrations.push(defaultIntegration);
|
|
21
|
-
pickedIntegrationsNames_1.push(defaultIntegration.name);
|
|
22
|
-
}
|
|
23
|
-
});
|
|
24
|
-
userIntegrations.forEach(function(userIntegration) {
|
|
25
|
-
if (pickedIntegrationsNames_1.indexOf(userIntegration.name) === -1) {
|
|
26
|
-
integrations.push(userIntegration);
|
|
27
|
-
pickedIntegrationsNames_1.push(userIntegration.name);
|
|
28
|
-
}
|
|
29
|
-
});
|
|
30
|
-
} else if (typeof userIntegrations === "function") {
|
|
31
|
-
integrations = userIntegrations(defaultIntegrations);
|
|
32
|
-
integrations = Array.isArray(integrations) ? integrations : [integrations];
|
|
33
|
-
} else integrations = __spread(defaultIntegrations);
|
|
34
|
-
var integrationsNames = integrations.map(function(i) {
|
|
35
|
-
return i.name;
|
|
36
|
-
});
|
|
37
|
-
var alwaysLastToRun = "Debug";
|
|
38
|
-
if (integrationsNames.indexOf(alwaysLastToRun) !== -1) integrations.push.apply(integrations, __spread(integrations.splice(integrationsNames.indexOf(alwaysLastToRun), 1)));
|
|
39
|
-
return integrations;
|
|
40
|
-
}
|
|
41
|
-
/** Setup given integration */
|
|
42
|
-
function setupIntegration(integration) {
|
|
43
|
-
if (installedIntegrations.indexOf(integration.name) !== -1) return;
|
|
44
|
-
integration.setupOnce(addGlobalEventProcessor, getCurrentHub);
|
|
45
|
-
installedIntegrations.push(integration.name);
|
|
46
|
-
logger.log("Integration installed: " + integration.name);
|
|
47
|
-
}
|
|
48
|
-
/**
|
|
49
|
-
* Given a list of integration instances this installs them all. When `withDefaults` is set to `true` then all default
|
|
50
|
-
* integrations are added unless they were already provided before.
|
|
51
|
-
* @param integrations array of integration instances
|
|
52
|
-
* @param withDefault should enable default integrations
|
|
53
|
-
*/
|
|
54
|
-
function setupIntegrations(options) {
|
|
55
|
-
var integrations = {};
|
|
56
|
-
getIntegrationsToSetup(options).forEach(function(integration) {
|
|
57
|
-
integrations[integration.name] = integration;
|
|
58
|
-
setupIntegration(integration);
|
|
59
|
-
});
|
|
60
|
-
return integrations;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
//#endregion
|
|
64
|
-
export { setupIntegrations };
|
|
65
|
-
//# sourceMappingURL=integration.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"integration.js","names":["tslib_1.__spread"],"sources":["../../../../../../../node_modules/@sentry/core/esm/integration.js"],"sourcesContent":["import * as tslib_1 from \"tslib\";\nimport { addGlobalEventProcessor, getCurrentHub } from '@sentry/hub';\nimport { logger } from '@sentry/utils';\nexport var installedIntegrations = [];\n/** Gets integration to install */\nexport function getIntegrationsToSetup(options) {\n var defaultIntegrations = (options.defaultIntegrations && tslib_1.__spread(options.defaultIntegrations)) || [];\n var userIntegrations = options.integrations;\n var integrations = [];\n if (Array.isArray(userIntegrations)) {\n var userIntegrationsNames_1 = userIntegrations.map(function (i) { return i.name; });\n var pickedIntegrationsNames_1 = [];\n // Leave only unique default integrations, that were not overridden with provided user integrations\n defaultIntegrations.forEach(function (defaultIntegration) {\n if (userIntegrationsNames_1.indexOf(defaultIntegration.name) === -1 &&\n pickedIntegrationsNames_1.indexOf(defaultIntegration.name) === -1) {\n integrations.push(defaultIntegration);\n pickedIntegrationsNames_1.push(defaultIntegration.name);\n }\n });\n // Don't add same user integration twice\n userIntegrations.forEach(function (userIntegration) {\n if (pickedIntegrationsNames_1.indexOf(userIntegration.name) === -1) {\n integrations.push(userIntegration);\n pickedIntegrationsNames_1.push(userIntegration.name);\n }\n });\n }\n else if (typeof userIntegrations === 'function') {\n integrations = userIntegrations(defaultIntegrations);\n integrations = Array.isArray(integrations) ? integrations : [integrations];\n }\n else {\n integrations = tslib_1.__spread(defaultIntegrations);\n }\n // Make sure that if present, `Debug` integration will always run last\n var integrationsNames = integrations.map(function (i) { return i.name; });\n var alwaysLastToRun = 'Debug';\n if (integrationsNames.indexOf(alwaysLastToRun) !== -1) {\n integrations.push.apply(integrations, tslib_1.__spread(integrations.splice(integrationsNames.indexOf(alwaysLastToRun), 1)));\n }\n return integrations;\n}\n/** Setup given integration */\nexport function setupIntegration(integration) {\n if (installedIntegrations.indexOf(integration.name) !== -1) {\n return;\n }\n integration.setupOnce(addGlobalEventProcessor, getCurrentHub);\n installedIntegrations.push(integration.name);\n logger.log(\"Integration installed: \" + integration.name);\n}\n/**\n * Given a list of integration instances this installs them all. When `withDefaults` is set to `true` then all default\n * integrations are added unless they were already provided before.\n * @param integrations array of integration instances\n * @param withDefault should enable default integrations\n */\nexport function setupIntegrations(options) {\n var integrations = {};\n getIntegrationsToSetup(options).forEach(function (integration) {\n integrations[integration.name] = integration;\n setupIntegration(integration);\n });\n return integrations;\n}\n//# sourceMappingURL=integration.js.map"],"x_google_ignoreList":[0],"mappings":";;;;;;AAGA,IAAW,wBAAwB,EAAE;;AAErC,SAAgB,uBAAuB,SAAS;CAC5C,IAAI,sBAAuB,QAAQ,uBAAuBA,SAAiB,QAAQ,oBAAoB,IAAK,EAAE;CAC9G,IAAI,mBAAmB,QAAQ;CAC/B,IAAI,eAAe,EAAE;AACrB,KAAI,MAAM,QAAQ,iBAAiB,EAAE;EACjC,IAAI,0BAA0B,iBAAiB,IAAI,SAAU,GAAG;AAAE,UAAO,EAAE;IAAQ;EACnF,IAAI,4BAA4B,EAAE;AAElC,sBAAoB,QAAQ,SAAU,oBAAoB;AACtD,OAAI,wBAAwB,QAAQ,mBAAmB,KAAK,KAAK,MAC7D,0BAA0B,QAAQ,mBAAmB,KAAK,KAAK,IAAI;AACnE,iBAAa,KAAK,mBAAmB;AACrC,8BAA0B,KAAK,mBAAmB,KAAK;;IAE7D;AAEF,mBAAiB,QAAQ,SAAU,iBAAiB;AAChD,OAAI,0BAA0B,QAAQ,gBAAgB,KAAK,KAAK,IAAI;AAChE,iBAAa,KAAK,gBAAgB;AAClC,8BAA0B,KAAK,gBAAgB,KAAK;;IAE1D;YAEG,OAAO,qBAAqB,YAAY;AAC7C,iBAAe,iBAAiB,oBAAoB;AACpD,iBAAe,MAAM,QAAQ,aAAa,GAAG,eAAe,CAAC,aAAa;OAG1E,gBAAeA,SAAiB,oBAAoB;CAGxD,IAAI,oBAAoB,aAAa,IAAI,SAAU,GAAG;AAAE,SAAO,EAAE;GAAQ;CACzE,IAAI,kBAAkB;AACtB,KAAI,kBAAkB,QAAQ,gBAAgB,KAAK,GAC/C,cAAa,KAAK,MAAM,cAAcA,SAAiB,aAAa,OAAO,kBAAkB,QAAQ,gBAAgB,EAAE,EAAE,CAAC,CAAC;AAE/H,QAAO;;;AAGX,SAAgB,iBAAiB,aAAa;AAC1C,KAAI,sBAAsB,QAAQ,YAAY,KAAK,KAAK,GACpD;AAEJ,aAAY,UAAU,yBAAyB,cAAc;AAC7D,uBAAsB,KAAK,YAAY,KAAK;AAC5C,QAAO,IAAI,4BAA4B,YAAY,KAAK;;;;;;;;AAQ5D,SAAgB,kBAAkB,SAAS;CACvC,IAAI,eAAe,EAAE;AACrB,wBAAuB,QAAQ,CAAC,QAAQ,SAAU,aAAa;AAC3D,eAAa,YAAY,QAAQ;AACjC,mBAAiB,YAAY;GAC/B;AACF,QAAO"}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
//#region ../../node_modules/@sentry/core/esm/integrations/functiontostring.js
|
|
2
|
-
var originalFunctionToString;
|
|
3
|
-
/** Patch toString calls to return proper name for wrapped functions */
|
|
4
|
-
var FunctionToString = function() {
|
|
5
|
-
function FunctionToString$1() {
|
|
6
|
-
/**
|
|
7
|
-
* @inheritDoc
|
|
8
|
-
*/
|
|
9
|
-
this.name = FunctionToString$1.id;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* @inheritDoc
|
|
13
|
-
*/
|
|
14
|
-
FunctionToString$1.prototype.setupOnce = function() {
|
|
15
|
-
originalFunctionToString = Function.prototype.toString;
|
|
16
|
-
Function.prototype.toString = function() {
|
|
17
|
-
var args = [];
|
|
18
|
-
for (var _i = 0; _i < arguments.length; _i++) args[_i] = arguments[_i];
|
|
19
|
-
var context = this.__sentry_original__ || this;
|
|
20
|
-
return originalFunctionToString.apply(context, args);
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* @inheritDoc
|
|
25
|
-
*/
|
|
26
|
-
FunctionToString$1.id = "FunctionToString";
|
|
27
|
-
return FunctionToString$1;
|
|
28
|
-
}();
|
|
29
|
-
|
|
30
|
-
//#endregion
|
|
31
|
-
export { FunctionToString };
|
|
32
|
-
//# sourceMappingURL=functiontostring.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"functiontostring.js","names":["FunctionToString"],"sources":["../../../../../../../../node_modules/@sentry/core/esm/integrations/functiontostring.js"],"sourcesContent":["var originalFunctionToString;\n/** Patch toString calls to return proper name for wrapped functions */\nvar FunctionToString = /** @class */ (function () {\n function FunctionToString() {\n /**\n * @inheritDoc\n */\n this.name = FunctionToString.id;\n }\n /**\n * @inheritDoc\n */\n FunctionToString.prototype.setupOnce = function () {\n originalFunctionToString = Function.prototype.toString;\n Function.prototype.toString = function () {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n var context = this.__sentry_original__ || this;\n // tslint:disable-next-line:no-unsafe-any\n return originalFunctionToString.apply(context, args);\n };\n };\n /**\n * @inheritDoc\n */\n FunctionToString.id = 'FunctionToString';\n return FunctionToString;\n}());\nexport { FunctionToString };\n//# sourceMappingURL=functiontostring.js.map"],"x_google_ignoreList":[0],"mappings":";AAAA,IAAI;;AAEJ,IAAI,mBAAkC,WAAY;CAC9C,SAASA,qBAAmB;;;;AAIxB,OAAK,OAAOA,mBAAiB;;;;;AAKjC,oBAAiB,UAAU,YAAY,WAAY;AAC/C,6BAA2B,SAAS,UAAU;AAC9C,WAAS,UAAU,WAAW,WAAY;GACtC,IAAI,OAAO,EAAE;AACb,QAAK,IAAI,KAAK,GAAG,KAAK,UAAU,QAAQ,KACpC,MAAK,MAAM,UAAU;GAEzB,IAAI,UAAU,KAAK,uBAAuB;AAE1C,UAAO,yBAAyB,MAAM,SAAS,KAAK;;;;;;AAM5D,oBAAiB,KAAK;AACtB,QAAOA;GACR"}
|
|
@@ -1,143 +0,0 @@
|
|
|
1
|
-
import { isMatchingPattern } from "../../../utils/esm/string.js";
|
|
2
|
-
import { getEventDescription } from "../../../utils/esm/misc.js";
|
|
3
|
-
import { logger } from "../../../utils/esm/logger.js";
|
|
4
|
-
import { addGlobalEventProcessor } from "../../../hub/esm/scope.js";
|
|
5
|
-
import { getCurrentHub } from "../../../hub/esm/hub.js";
|
|
6
|
-
import { __spread } from "../../node_modules/tslib/tslib.es6.js";
|
|
7
|
-
|
|
8
|
-
//#region ../../node_modules/@sentry/core/esm/integrations/inboundfilters.js
|
|
9
|
-
var DEFAULT_IGNORE_ERRORS = [/^Script error\.?$/, /^Javascript error: Script error\.? on line 0$/];
|
|
10
|
-
/** Inbound filters configurable by the user */
|
|
11
|
-
var InboundFilters = function() {
|
|
12
|
-
function InboundFilters$1(_options) {
|
|
13
|
-
if (_options === void 0) _options = {};
|
|
14
|
-
this._options = _options;
|
|
15
|
-
/**
|
|
16
|
-
* @inheritDoc
|
|
17
|
-
*/
|
|
18
|
-
this.name = InboundFilters$1.id;
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* @inheritDoc
|
|
22
|
-
*/
|
|
23
|
-
InboundFilters$1.prototype.setupOnce = function() {
|
|
24
|
-
addGlobalEventProcessor(function(event) {
|
|
25
|
-
var hub = getCurrentHub();
|
|
26
|
-
if (!hub) return event;
|
|
27
|
-
var self = hub.getIntegration(InboundFilters$1);
|
|
28
|
-
if (self) {
|
|
29
|
-
var client = hub.getClient();
|
|
30
|
-
var clientOptions = client ? client.getOptions() : {};
|
|
31
|
-
var options = self._mergeOptions(clientOptions);
|
|
32
|
-
if (self._shouldDropEvent(event, options)) return null;
|
|
33
|
-
}
|
|
34
|
-
return event;
|
|
35
|
-
});
|
|
36
|
-
};
|
|
37
|
-
/** JSDoc */
|
|
38
|
-
InboundFilters$1.prototype._shouldDropEvent = function(event, options) {
|
|
39
|
-
if (this._isSentryError(event, options)) {
|
|
40
|
-
logger.warn("Event dropped due to being internal Sentry Error.\nEvent: " + getEventDescription(event));
|
|
41
|
-
return true;
|
|
42
|
-
}
|
|
43
|
-
if (this._isIgnoredError(event, options)) {
|
|
44
|
-
logger.warn("Event dropped due to being matched by `ignoreErrors` option.\nEvent: " + getEventDescription(event));
|
|
45
|
-
return true;
|
|
46
|
-
}
|
|
47
|
-
if (this._isBlacklistedUrl(event, options)) {
|
|
48
|
-
logger.warn("Event dropped due to being matched by `blacklistUrls` option.\nEvent: " + getEventDescription(event) + ".\nUrl: " + this._getEventFilterUrl(event));
|
|
49
|
-
return true;
|
|
50
|
-
}
|
|
51
|
-
if (!this._isWhitelistedUrl(event, options)) {
|
|
52
|
-
logger.warn("Event dropped due to not being matched by `whitelistUrls` option.\nEvent: " + getEventDescription(event) + ".\nUrl: " + this._getEventFilterUrl(event));
|
|
53
|
-
return true;
|
|
54
|
-
}
|
|
55
|
-
return false;
|
|
56
|
-
};
|
|
57
|
-
/** JSDoc */
|
|
58
|
-
InboundFilters$1.prototype._isSentryError = function(event, options) {
|
|
59
|
-
if (options === void 0) options = {};
|
|
60
|
-
if (!options.ignoreInternal) return false;
|
|
61
|
-
try {
|
|
62
|
-
return event && event.exception && event.exception.values && event.exception.values[0] && event.exception.values[0].type === "SentryError" || false;
|
|
63
|
-
} catch (_oO) {
|
|
64
|
-
return false;
|
|
65
|
-
}
|
|
66
|
-
};
|
|
67
|
-
/** JSDoc */
|
|
68
|
-
InboundFilters$1.prototype._isIgnoredError = function(event, options) {
|
|
69
|
-
if (options === void 0) options = {};
|
|
70
|
-
if (!options.ignoreErrors || !options.ignoreErrors.length) return false;
|
|
71
|
-
return this._getPossibleEventMessages(event).some(function(message) {
|
|
72
|
-
return options.ignoreErrors.some(function(pattern) {
|
|
73
|
-
return isMatchingPattern(message, pattern);
|
|
74
|
-
});
|
|
75
|
-
});
|
|
76
|
-
};
|
|
77
|
-
/** JSDoc */
|
|
78
|
-
InboundFilters$1.prototype._isBlacklistedUrl = function(event, options) {
|
|
79
|
-
if (options === void 0) options = {};
|
|
80
|
-
if (!options.blacklistUrls || !options.blacklistUrls.length) return false;
|
|
81
|
-
var url = this._getEventFilterUrl(event);
|
|
82
|
-
return !url ? false : options.blacklistUrls.some(function(pattern) {
|
|
83
|
-
return isMatchingPattern(url, pattern);
|
|
84
|
-
});
|
|
85
|
-
};
|
|
86
|
-
/** JSDoc */
|
|
87
|
-
InboundFilters$1.prototype._isWhitelistedUrl = function(event, options) {
|
|
88
|
-
if (options === void 0) options = {};
|
|
89
|
-
if (!options.whitelistUrls || !options.whitelistUrls.length) return true;
|
|
90
|
-
var url = this._getEventFilterUrl(event);
|
|
91
|
-
return !url ? true : options.whitelistUrls.some(function(pattern) {
|
|
92
|
-
return isMatchingPattern(url, pattern);
|
|
93
|
-
});
|
|
94
|
-
};
|
|
95
|
-
/** JSDoc */
|
|
96
|
-
InboundFilters$1.prototype._mergeOptions = function(clientOptions) {
|
|
97
|
-
if (clientOptions === void 0) clientOptions = {};
|
|
98
|
-
return {
|
|
99
|
-
blacklistUrls: __spread(this._options.blacklistUrls || [], clientOptions.blacklistUrls || []),
|
|
100
|
-
ignoreErrors: __spread(this._options.ignoreErrors || [], clientOptions.ignoreErrors || [], DEFAULT_IGNORE_ERRORS),
|
|
101
|
-
ignoreInternal: typeof this._options.ignoreInternal !== "undefined" ? this._options.ignoreInternal : true,
|
|
102
|
-
whitelistUrls: __spread(this._options.whitelistUrls || [], clientOptions.whitelistUrls || [])
|
|
103
|
-
};
|
|
104
|
-
};
|
|
105
|
-
/** JSDoc */
|
|
106
|
-
InboundFilters$1.prototype._getPossibleEventMessages = function(event) {
|
|
107
|
-
if (event.message) return [event.message];
|
|
108
|
-
if (event.exception) try {
|
|
109
|
-
var _a = event.exception.values && event.exception.values[0] || {}, _b = _a.type, type = _b === void 0 ? "" : _b, _c = _a.value, value = _c === void 0 ? "" : _c;
|
|
110
|
-
return ["" + value, type + ": " + value];
|
|
111
|
-
} catch (oO) {
|
|
112
|
-
logger.error("Cannot extract message for event " + getEventDescription(event));
|
|
113
|
-
return [];
|
|
114
|
-
}
|
|
115
|
-
return [];
|
|
116
|
-
};
|
|
117
|
-
/** JSDoc */
|
|
118
|
-
InboundFilters$1.prototype._getEventFilterUrl = function(event) {
|
|
119
|
-
try {
|
|
120
|
-
if (event.stacktrace) {
|
|
121
|
-
var frames_1 = event.stacktrace.frames;
|
|
122
|
-
return frames_1 && frames_1[frames_1.length - 1].filename || null;
|
|
123
|
-
}
|
|
124
|
-
if (event.exception) {
|
|
125
|
-
var frames_2 = event.exception.values && event.exception.values[0].stacktrace && event.exception.values[0].stacktrace.frames;
|
|
126
|
-
return frames_2 && frames_2[frames_2.length - 1].filename || null;
|
|
127
|
-
}
|
|
128
|
-
return null;
|
|
129
|
-
} catch (oO) {
|
|
130
|
-
logger.error("Cannot extract url for event " + getEventDescription(event));
|
|
131
|
-
return null;
|
|
132
|
-
}
|
|
133
|
-
};
|
|
134
|
-
/**
|
|
135
|
-
* @inheritDoc
|
|
136
|
-
*/
|
|
137
|
-
InboundFilters$1.id = "InboundFilters";
|
|
138
|
-
return InboundFilters$1;
|
|
139
|
-
}();
|
|
140
|
-
|
|
141
|
-
//#endregion
|
|
142
|
-
export { InboundFilters };
|
|
143
|
-
//# sourceMappingURL=inboundfilters.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"inboundfilters.js","names":["InboundFilters","tslib_1.__spread"],"sources":["../../../../../../../../node_modules/@sentry/core/esm/integrations/inboundfilters.js"],"sourcesContent":["import * as tslib_1 from \"tslib\";\nimport { addGlobalEventProcessor, getCurrentHub } from '@sentry/hub';\nimport { getEventDescription, isMatchingPattern, logger } from '@sentry/utils';\n// \"Script error.\" is hard coded into browsers for errors that it can't read.\n// this is the result of a script being pulled in from an external domain and CORS.\nvar DEFAULT_IGNORE_ERRORS = [/^Script error\\.?$/, /^Javascript error: Script error\\.? on line 0$/];\n/** Inbound filters configurable by the user */\nvar InboundFilters = /** @class */ (function () {\n function InboundFilters(_options) {\n if (_options === void 0) { _options = {}; }\n this._options = _options;\n /**\n * @inheritDoc\n */\n this.name = InboundFilters.id;\n }\n /**\n * @inheritDoc\n */\n InboundFilters.prototype.setupOnce = function () {\n addGlobalEventProcessor(function (event) {\n var hub = getCurrentHub();\n if (!hub) {\n return event;\n }\n var self = hub.getIntegration(InboundFilters);\n if (self) {\n var client = hub.getClient();\n var clientOptions = client ? client.getOptions() : {};\n var options = self._mergeOptions(clientOptions);\n if (self._shouldDropEvent(event, options)) {\n return null;\n }\n }\n return event;\n });\n };\n /** JSDoc */\n InboundFilters.prototype._shouldDropEvent = function (event, options) {\n if (this._isSentryError(event, options)) {\n logger.warn(\"Event dropped due to being internal Sentry Error.\\nEvent: \" + getEventDescription(event));\n return true;\n }\n if (this._isIgnoredError(event, options)) {\n logger.warn(\"Event dropped due to being matched by `ignoreErrors` option.\\nEvent: \" + getEventDescription(event));\n return true;\n }\n if (this._isBlacklistedUrl(event, options)) {\n logger.warn(\"Event dropped due to being matched by `blacklistUrls` option.\\nEvent: \" + getEventDescription(event) + \".\\nUrl: \" + this._getEventFilterUrl(event));\n return true;\n }\n if (!this._isWhitelistedUrl(event, options)) {\n logger.warn(\"Event dropped due to not being matched by `whitelistUrls` option.\\nEvent: \" + getEventDescription(event) + \".\\nUrl: \" + this._getEventFilterUrl(event));\n return true;\n }\n return false;\n };\n /** JSDoc */\n InboundFilters.prototype._isSentryError = function (event, options) {\n if (options === void 0) { options = {}; }\n if (!options.ignoreInternal) {\n return false;\n }\n try {\n return ((event &&\n event.exception &&\n event.exception.values &&\n event.exception.values[0] &&\n event.exception.values[0].type === 'SentryError') ||\n false);\n }\n catch (_oO) {\n return false;\n }\n };\n /** JSDoc */\n InboundFilters.prototype._isIgnoredError = function (event, options) {\n if (options === void 0) { options = {}; }\n if (!options.ignoreErrors || !options.ignoreErrors.length) {\n return false;\n }\n return this._getPossibleEventMessages(event).some(function (message) {\n // Not sure why TypeScript complains here...\n return options.ignoreErrors.some(function (pattern) { return isMatchingPattern(message, pattern); });\n });\n };\n /** JSDoc */\n InboundFilters.prototype._isBlacklistedUrl = function (event, options) {\n if (options === void 0) { options = {}; }\n // TODO: Use Glob instead?\n if (!options.blacklistUrls || !options.blacklistUrls.length) {\n return false;\n }\n var url = this._getEventFilterUrl(event);\n return !url ? false : options.blacklistUrls.some(function (pattern) { return isMatchingPattern(url, pattern); });\n };\n /** JSDoc */\n InboundFilters.prototype._isWhitelistedUrl = function (event, options) {\n if (options === void 0) { options = {}; }\n // TODO: Use Glob instead?\n if (!options.whitelistUrls || !options.whitelistUrls.length) {\n return true;\n }\n var url = this._getEventFilterUrl(event);\n return !url ? true : options.whitelistUrls.some(function (pattern) { return isMatchingPattern(url, pattern); });\n };\n /** JSDoc */\n InboundFilters.prototype._mergeOptions = function (clientOptions) {\n if (clientOptions === void 0) { clientOptions = {}; }\n return {\n blacklistUrls: tslib_1.__spread((this._options.blacklistUrls || []), (clientOptions.blacklistUrls || [])),\n ignoreErrors: tslib_1.__spread((this._options.ignoreErrors || []), (clientOptions.ignoreErrors || []), DEFAULT_IGNORE_ERRORS),\n ignoreInternal: typeof this._options.ignoreInternal !== 'undefined' ? this._options.ignoreInternal : true,\n whitelistUrls: tslib_1.__spread((this._options.whitelistUrls || []), (clientOptions.whitelistUrls || [])),\n };\n };\n /** JSDoc */\n InboundFilters.prototype._getPossibleEventMessages = function (event) {\n if (event.message) {\n return [event.message];\n }\n if (event.exception) {\n try {\n var _a = (event.exception.values && event.exception.values[0]) || {}, _b = _a.type, type = _b === void 0 ? '' : _b, _c = _a.value, value = _c === void 0 ? '' : _c;\n return [\"\" + value, type + \": \" + value];\n }\n catch (oO) {\n logger.error(\"Cannot extract message for event \" + getEventDescription(event));\n return [];\n }\n }\n return [];\n };\n /** JSDoc */\n InboundFilters.prototype._getEventFilterUrl = function (event) {\n try {\n if (event.stacktrace) {\n var frames_1 = event.stacktrace.frames;\n return (frames_1 && frames_1[frames_1.length - 1].filename) || null;\n }\n if (event.exception) {\n var frames_2 = event.exception.values && event.exception.values[0].stacktrace && event.exception.values[0].stacktrace.frames;\n return (frames_2 && frames_2[frames_2.length - 1].filename) || null;\n }\n return null;\n }\n catch (oO) {\n logger.error(\"Cannot extract url for event \" + getEventDescription(event));\n return null;\n }\n };\n /**\n * @inheritDoc\n */\n InboundFilters.id = 'InboundFilters';\n return InboundFilters;\n}());\nexport { InboundFilters };\n//# sourceMappingURL=inboundfilters.js.map"],"x_google_ignoreList":[0],"mappings":";;;;;;;;AAKA,IAAI,wBAAwB,CAAC,qBAAqB,gDAAgD;;AAElG,IAAI,iBAAgC,WAAY;CAC5C,SAASA,iBAAe,UAAU;AAC9B,MAAI,aAAa,KAAK,EAAK,YAAW,EAAE;AACxC,OAAK,WAAW;;;;AAIhB,OAAK,OAAOA,iBAAe;;;;;AAK/B,kBAAe,UAAU,YAAY,WAAY;AAC7C,0BAAwB,SAAU,OAAO;GACrC,IAAI,MAAM,eAAe;AACzB,OAAI,CAAC,IACD,QAAO;GAEX,IAAI,OAAO,IAAI,eAAeA,iBAAe;AAC7C,OAAI,MAAM;IACN,IAAI,SAAS,IAAI,WAAW;IAC5B,IAAI,gBAAgB,SAAS,OAAO,YAAY,GAAG,EAAE;IACrD,IAAI,UAAU,KAAK,cAAc,cAAc;AAC/C,QAAI,KAAK,iBAAiB,OAAO,QAAQ,CACrC,QAAO;;AAGf,UAAO;IACT;;;AAGN,kBAAe,UAAU,mBAAmB,SAAU,OAAO,SAAS;AAClE,MAAI,KAAK,eAAe,OAAO,QAAQ,EAAE;AACrC,UAAO,KAAK,+DAA+D,oBAAoB,MAAM,CAAC;AACtG,UAAO;;AAEX,MAAI,KAAK,gBAAgB,OAAO,QAAQ,EAAE;AACtC,UAAO,KAAK,0EAA0E,oBAAoB,MAAM,CAAC;AACjH,UAAO;;AAEX,MAAI,KAAK,kBAAkB,OAAO,QAAQ,EAAE;AACxC,UAAO,KAAK,2EAA2E,oBAAoB,MAAM,GAAG,aAAa,KAAK,mBAAmB,MAAM,CAAC;AAChK,UAAO;;AAEX,MAAI,CAAC,KAAK,kBAAkB,OAAO,QAAQ,EAAE;AACzC,UAAO,KAAK,+EAA+E,oBAAoB,MAAM,G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