perimeterx-js-core 0.24.2 → 0.24.4
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/lib/cjs/action/ActionPriorityOrder.js +1 -1
- package/lib/cjs/action/index.js +6 -6
- package/lib/cjs/action/utils.js +3 -3
- package/lib/cjs/activities/HttpActivityClient.js +6 -6
- package/lib/cjs/activities/HttpBatchedActivityClient.js +1 -1
- package/lib/cjs/activities/index.js +7 -7
- package/lib/cjs/activities/model/index.js +4 -4
- package/lib/cjs/activities/utils.js +5 -5
- package/lib/cjs/additional_activity_handler/index.js +2 -2
- package/lib/cjs/blocker/BlockerBase.js +1 -1
- package/lib/cjs/blocker/JsonBlockerBase.js +2 -2
- package/lib/cjs/blocker/MobileBlocker.js +3 -3
- package/lib/cjs/blocker/index.js +7 -7
- package/lib/cjs/blocker/model/BlockActionToWordMap.js +1 -1
- package/lib/cjs/blocker/model/index.js +3 -3
- package/lib/cjs/blocker/utils.js +1 -1
- package/lib/cjs/config/ConfigurationBase.js +5 -5
- package/lib/cjs/config/ConfigurationBuilderBase.js +1 -1
- package/lib/cjs/config/defaults/DefaultConfigurationParams.js +4 -4
- package/lib/cjs/config/defaults/index.js +1 -1
- package/lib/cjs/config/index.js +7 -7
- package/lib/cjs/config/params/index.js +5 -5
- package/lib/cjs/config/remote_config/DefaultRemoteConfigUpdater.js +2 -2
- package/lib/cjs/config/remote_config/RemoteConfigUtils.js +3 -3
- package/lib/cjs/config/remote_config/index.js +7 -7
- package/lib/cjs/config/remote_config/model/index.js +2 -2
- package/lib/cjs/config/remote_config/service_client/HttpRemoteConfigServiceClient.js +2 -2
- package/lib/cjs/config/remote_config/service_client/index.js +2 -2
- package/lib/cjs/config/remote_config/storage_client/index.js +1 -1
- package/lib/cjs/context/DefaultContext.js +9 -9
- package/lib/cjs/context/SerializedContext.js +3 -3
- package/lib/cjs/context/index.js +4 -4
- package/lib/cjs/context/interfaces/index.js +8 -8
- package/lib/cjs/cors/DefaultCors.js +2 -2
- package/lib/cjs/cors/index.js +2 -2
- package/lib/cjs/custom_parameters/CustomParameters.js +1 -1
- package/lib/cjs/custom_parameters/CustomParametersUtils.js +1 -1
- package/lib/cjs/custom_parameters/index.js +1 -1
- package/lib/cjs/enforcer/EnforcerBase.js +2 -2
- package/lib/cjs/enforcer/index.js +4 -4
- package/lib/cjs/enforcer/utils.js +12 -12
- package/lib/cjs/filter/index.js +2 -2
- package/lib/cjs/first_party/index.js +2 -2
- package/lib/cjs/graphql/DefaultGraphQLParser.js +3 -3
- package/lib/cjs/graphql/index.js +4 -4
- package/lib/cjs/graphql/model/index.js +3 -3
- package/lib/cjs/http/index.js +2 -2
- package/lib/cjs/http/interfaces/index.js +10 -10
- package/lib/cjs/http/utils/MinimalResponseUtils.js +1 -1
- package/lib/cjs/http/utils/MultipartFormDataUtils.js +1 -1
- package/lib/cjs/http/utils/OutgoingRequestImpl.js +1 -1
- package/lib/cjs/http/utils/index.js +8 -8
- package/lib/cjs/impl/cipher/CryptoCipherUtils.js +1 -1
- package/lib/cjs/impl/hash/CryptoHashUtils.js +1 -1
- package/lib/cjs/impl/hash/CryptoJSHashUtils.js +1 -1
- package/lib/cjs/impl/hash/SubtleCryptoHashUtils.js +1 -1
- package/lib/cjs/impl/hmac/CryptoHmacUtils.js +1 -1
- package/lib/cjs/impl/hmac/CryptoJSHmacUtils.js +1 -1
- package/lib/cjs/impl/hmac/SubtleCryptoHmacUtils.js +1 -1
- package/lib/cjs/impl/http/phin/PhinHttpClient.js +3 -3
- package/lib/cjs/impl/http/phin/PhinIncomingResponse.js +3 -3
- package/lib/cjs/impl/http/phin/index.js +2 -2
- package/lib/cjs/impl/url/CustomImplUrlUtils.js +3 -3
- package/lib/cjs/impl/url/DefaultUrlUtils.js +1 -1
- package/lib/cjs/impl/url/UrlImpl.js +3 -3
- package/lib/cjs/index.js +25 -25
- package/lib/cjs/logger/DefaultLogger.js +1 -1
- package/lib/cjs/logger/HttpLogServiceClient.js +3 -3
- package/lib/cjs/logger/LoggerBase.js +1 -1
- package/lib/cjs/logger/index.js +6 -6
- package/lib/cjs/logger/model/index.js +3 -3
- package/lib/cjs/monitored_request/MonitoredRequestUtils.js +1 -1
- package/lib/cjs/monitored_request/index.js +1 -1
- package/lib/cjs/phase/flow/EndEnforcerFlow.js +2 -2
- package/lib/cjs/phase/flow/EnforceFlow.js +2 -2
- package/lib/cjs/phase/flow/FilterFlow.js +3 -3
- package/lib/cjs/phase/flow/PostEnforceFlow.js +1 -1
- package/lib/cjs/phase/flow/index.js +4 -4
- package/lib/cjs/phase/impl/AdditionalActivityHandlerPhase.js +1 -1
- package/lib/cjs/phase/impl/CreateBlockResponsePhase.js +4 -4
- package/lib/cjs/phase/impl/DecideActionPhase.js +3 -3
- package/lib/cjs/phase/impl/EnrichContextFromRequestPhase.js +2 -2
- package/lib/cjs/phase/impl/EnrichContextFromResponsePhase.js +1 -1
- package/lib/cjs/phase/impl/FirstPartyPhase.js +1 -1
- package/lib/cjs/phase/impl/ModifyOutgoingResponsePhase.js +2 -2
- package/lib/cjs/phase/impl/ParseTokenPhase.js +2 -2
- package/lib/cjs/phase/impl/RiskApiPhase.js +4 -4
- package/lib/cjs/phase/impl/SendAsyncActivitiesOnRequestPhase.js +1 -1
- package/lib/cjs/phase/impl/index.js +20 -20
- package/lib/cjs/phase/index.js +4 -4
- package/lib/cjs/products/account_defender/AccountDefender.js +2 -2
- package/lib/cjs/products/account_defender/index.js +5 -5
- package/lib/cjs/products/bot_defender/BotDefender.js +12 -12
- package/lib/cjs/products/bot_defender/BotDefenderUtils.js +2 -2
- package/lib/cjs/products/bot_defender/block/DefaultBotDefenderBlocker.js +6 -6
- package/lib/cjs/products/bot_defender/block/captcha/CaptchaBlocker.js +3 -3
- package/lib/cjs/products/bot_defender/block/captcha/HtmlCaptchaBlocker.js +3 -3
- package/lib/cjs/products/bot_defender/block/captcha/JsonCaptchaBlocker.js +1 -1
- package/lib/cjs/products/bot_defender/block/captcha/MobileCaptchaBlocker.js +2 -2
- package/lib/cjs/products/bot_defender/block/captcha/index.js +4 -4
- package/lib/cjs/products/bot_defender/block/index.js +5 -5
- package/lib/cjs/products/bot_defender/block/model/index.js +2 -2
- package/lib/cjs/products/bot_defender/block/templates/index.js +2 -2
- package/lib/cjs/products/bot_defender/filter/DefaultBotDefenderFilter.js +3 -3
- package/lib/cjs/products/bot_defender/filter/index.js +1 -1
- package/lib/cjs/products/bot_defender/first_party/DefaultBotDefenderFirstParty.js +5 -5
- package/lib/cjs/products/bot_defender/first_party/constants.js +1 -1
- package/lib/cjs/products/bot_defender/first_party/index.js +4 -4
- package/lib/cjs/products/bot_defender/first_party/utils.js +1 -1
- package/lib/cjs/products/bot_defender/index.js +9 -9
- package/lib/cjs/products/bot_defender/reasons/index.js +4 -4
- package/lib/cjs/products/credential_intelligence/CredentialIntelligence.js +4 -4
- package/lib/cjs/products/credential_intelligence/endpoint/extractor/BodyCredentialExtractor.js +2 -2
- package/lib/cjs/products/credential_intelligence/endpoint/extractor/CredentialExtractorFactory.js +6 -6
- package/lib/cjs/products/credential_intelligence/endpoint/extractor/index.js +5 -5
- package/lib/cjs/products/credential_intelligence/endpoint/hash_protocol/CredentialIntelligenceHashProtocolFactory.js +4 -4
- package/lib/cjs/products/credential_intelligence/endpoint/hash_protocol/MultistepHashProtocol.js +3 -3
- package/lib/cjs/products/credential_intelligence/endpoint/hash_protocol/SingleStepHashProtocol.js +2 -2
- package/lib/cjs/products/credential_intelligence/endpoint/hash_protocol/index.js +7 -7
- package/lib/cjs/products/credential_intelligence/endpoint/index.js +8 -8
- package/lib/cjs/products/credential_intelligence/endpoint/login_successful/HeaderLoginSuccessfulParser.js +1 -1
- package/lib/cjs/products/credential_intelligence/endpoint/login_successful/LoginSuccessfulParserFactory.js +6 -6
- package/lib/cjs/products/credential_intelligence/endpoint/login_successful/index.js +8 -8
- package/lib/cjs/products/credential_intelligence/endpoint/matcher/CredentialIntelligenceEndpointMatcherFactory.js +3 -3
- package/lib/cjs/products/credential_intelligence/endpoint/matcher/index.js +5 -5
- package/lib/cjs/products/credential_intelligence/index.js +5 -5
- package/lib/cjs/products/credential_intelligence/model/index.js +4 -4
- package/lib/cjs/products/hype_sale_challenge/HypeSaleChallenge.js +6 -6
- package/lib/cjs/products/hype_sale_challenge/block/JsonHypeSaleChallengeBlocker.js +2 -2
- package/lib/cjs/products/hype_sale_challenge/block/MobileHypeSaleChallengeBlocker.js +2 -2
- package/lib/cjs/products/hype_sale_challenge/block/index.js +3 -3
- package/lib/cjs/products/hype_sale_challenge/block/templates/index.js +1 -1
- package/lib/cjs/products/hype_sale_challenge/index.js +5 -5
- package/lib/cjs/products/hype_sale_challenge/model/index.js +2 -2
- package/lib/cjs/products/hype_sale_challenge/utils.js +1 -1
- package/lib/cjs/products/index.js +6 -6
- package/lib/cjs/products/interfaces/index.js +5 -5
- package/lib/cjs/products/utils/ProductPriorityOrder.js +1 -1
- package/lib/cjs/products/utils/index.js +2 -2
- package/lib/cjs/pxde/DefaultDataEnrichment.js +3 -3
- package/lib/cjs/pxde/index.js +4 -4
- package/lib/cjs/pxde/model/index.js +2 -2
- package/lib/cjs/pxhd/PXHDUtils.js +2 -2
- package/lib/cjs/pxhd/index.js +2 -2
- package/lib/cjs/pxhd/model/index.js +2 -2
- package/lib/cjs/risk_api/client/PostRiskApiClientBase.js +5 -5
- package/lib/cjs/risk_api/client/PostRiskApiClientV2.js +2 -2
- package/lib/cjs/risk_api/client/PostRiskApiClientV3.js +2 -2
- package/lib/cjs/risk_api/client/index.js +4 -4
- package/lib/cjs/risk_api/index.js +4 -4
- package/lib/cjs/risk_api/model/index.js +4 -4
- package/lib/cjs/risk_api/risk_response/RiskResponseBase.js +1 -1
- package/lib/cjs/risk_api/risk_response/index.js +6 -6
- package/lib/cjs/risk_api/risk_response/serialize/index.js +2 -2
- package/lib/cjs/risk_api/risk_response/v2/DefaultRiskResponseV2.js +1 -1
- package/lib/cjs/risk_api/risk_response/v2/index.js +2 -2
- package/lib/cjs/risk_api/risk_response/v3/DefaultRiskResponseV3.js +1 -1
- package/lib/cjs/risk_api/risk_response/v3/index.js +2 -2
- package/lib/cjs/risk_token/index.js +8 -8
- package/lib/cjs/risk_token/parser/DefaultTokenV2Parser.js +3 -3
- package/lib/cjs/risk_token/parser/DefaultTokenV3Parser.js +3 -3
- package/lib/cjs/risk_token/parser/TokenParserBase.js +4 -4
- package/lib/cjs/risk_token/parser/index.js +5 -5
- package/lib/cjs/risk_token/token/TokenBase.js +1 -1
- package/lib/cjs/risk_token/token/index.js +5 -5
- package/lib/cjs/risk_token/token/serialize/SerializedToken.js +1 -1
- package/lib/cjs/risk_token/token/serialize/index.js +2 -2
- package/lib/cjs/risk_token/token/v2/DefaultTokenV2.js +4 -4
- package/lib/cjs/risk_token/token/v2/index.js +2 -2
- package/lib/cjs/risk_token/token/v3/DefaultTokenV3.js +6 -6
- package/lib/cjs/risk_token/token/v3/index.js +3 -3
- package/lib/cjs/risk_token/utils.js +2 -2
- package/lib/cjs/sensitive_request/SensitiveRequestUtils.js +1 -1
- package/lib/cjs/sensitive_request/index.js +1 -1
- package/lib/cjs/snippet_injection/index.js +4 -4
- package/lib/cjs/snippet_injection/snippet_injector/index.js +1 -1
- package/lib/cjs/snippet_injection/snippet_retriever/DefaultSnippetRetriever.js +2 -2
- package/lib/cjs/snippet_injection/snippet_retriever/index.js +2 -2
- package/lib/cjs/telemetry/DefaultTelemetry.js +8 -4
- package/lib/cjs/telemetry/index.js +2 -2
- package/lib/cjs/utils/base64/index.js +1 -1
- package/lib/cjs/utils/cipher/index.js +1 -1
- package/lib/cjs/utils/constants.js +1 -1
- package/lib/cjs/utils/cookie_parser/StringSplitCookieParser.js +1 -1
- package/lib/cjs/utils/cookie_parser/index.js +2 -2
- package/lib/cjs/utils/error/EnforcerConfigurationError.js +2 -2
- package/lib/cjs/utils/error/EnforcerError.js +1 -1
- package/lib/cjs/utils/error/EnforcerTimeoutError.js +2 -2
- package/lib/cjs/utils/error/index.js +4 -4
- package/lib/cjs/utils/hash/index.js +1 -1
- package/lib/cjs/utils/hmac/index.js +1 -1
- package/lib/cjs/utils/index.js +16 -16
- package/lib/cjs/utils/ip_range_checker/index.js +1 -1
- package/lib/cjs/utils/request_id_generator/index.js +2 -2
- package/lib/cjs/utils/timestamp_hmac_header_validator/DefaultTimestampHmacHeaderValidator.js +2 -2
- package/lib/cjs/utils/timestamp_hmac_header_validator/index.js +2 -2
- package/lib/cjs/utils/url/index.js +3 -3
- package/lib/cjs/utils/utils.js +5 -5
- package/lib/esm/action/ActionPriorityOrder.js +1 -1
- package/lib/esm/action/index.js +6 -6
- package/lib/esm/action/utils.js +3 -3
- package/lib/esm/activities/HttpActivityClient.js +6 -6
- package/lib/esm/activities/HttpBatchedActivityClient.js +1 -1
- package/lib/esm/activities/index.js +7 -7
- package/lib/esm/activities/model/index.js +4 -4
- package/lib/esm/activities/utils.js +5 -5
- package/lib/esm/additional_activity_handler/index.js +2 -2
- package/lib/esm/blocker/BlockerBase.js +1 -1
- package/lib/esm/blocker/JsonBlockerBase.js +2 -2
- package/lib/esm/blocker/MobileBlocker.js +3 -3
- package/lib/esm/blocker/index.js +7 -7
- package/lib/esm/blocker/model/BlockActionToWordMap.js +1 -1
- package/lib/esm/blocker/model/index.js +3 -3
- package/lib/esm/blocker/utils.js +1 -1
- package/lib/esm/config/ConfigurationBase.js +5 -5
- package/lib/esm/config/ConfigurationBuilderBase.js +1 -1
- package/lib/esm/config/defaults/DefaultConfigurationParams.js +4 -4
- package/lib/esm/config/defaults/index.js +1 -1
- package/lib/esm/config/index.js +7 -7
- package/lib/esm/config/params/index.js +5 -5
- package/lib/esm/config/remote_config/DefaultRemoteConfigUpdater.js +2 -2
- package/lib/esm/config/remote_config/RemoteConfigUtils.js +3 -3
- package/lib/esm/config/remote_config/index.js +7 -7
- package/lib/esm/config/remote_config/model/index.js +2 -2
- package/lib/esm/config/remote_config/service_client/HttpRemoteConfigServiceClient.js +2 -2
- package/lib/esm/config/remote_config/service_client/index.js +2 -2
- package/lib/esm/config/remote_config/storage_client/index.js +1 -1
- package/lib/esm/context/DefaultContext.js +9 -9
- package/lib/esm/context/SerializedContext.js +3 -3
- package/lib/esm/context/index.js +4 -4
- package/lib/esm/context/interfaces/index.js +8 -8
- package/lib/esm/cors/DefaultCors.js +2 -2
- package/lib/esm/cors/index.js +2 -2
- package/lib/esm/custom_parameters/CustomParameters.js +1 -1
- package/lib/esm/custom_parameters/CustomParametersUtils.js +1 -1
- package/lib/esm/custom_parameters/index.js +1 -1
- package/lib/esm/enforcer/EnforcerBase.js +2 -2
- package/lib/esm/enforcer/index.js +4 -4
- package/lib/esm/enforcer/utils.js +12 -12
- package/lib/esm/filter/index.js +2 -2
- package/lib/esm/first_party/index.js +2 -2
- package/lib/esm/graphql/DefaultGraphQLParser.js +3 -3
- package/lib/esm/graphql/index.js +4 -4
- package/lib/esm/graphql/model/index.js +3 -3
- package/lib/esm/http/index.js +2 -2
- package/lib/esm/http/interfaces/index.js +10 -10
- package/lib/esm/http/utils/MinimalResponseUtils.js +1 -1
- package/lib/esm/http/utils/MultipartFormDataUtils.js +1 -1
- package/lib/esm/http/utils/OutgoingRequestImpl.js +1 -1
- package/lib/esm/http/utils/index.js +8 -8
- package/lib/esm/impl/cipher/CryptoCipherUtils.js +1 -1
- package/lib/esm/impl/hash/CryptoHashUtils.js +1 -1
- package/lib/esm/impl/hash/CryptoJSHashUtils.js +1 -1
- package/lib/esm/impl/hash/SubtleCryptoHashUtils.js +1 -1
- package/lib/esm/impl/hmac/CryptoHmacUtils.js +1 -1
- package/lib/esm/impl/hmac/CryptoJSHmacUtils.js +1 -1
- package/lib/esm/impl/hmac/SubtleCryptoHmacUtils.js +1 -1
- package/lib/esm/impl/http/phin/PhinHttpClient.js +3 -3
- package/lib/esm/impl/http/phin/PhinIncomingResponse.js +3 -3
- package/lib/esm/impl/http/phin/index.js +2 -2
- package/lib/esm/impl/url/CustomImplUrlUtils.js +3 -3
- package/lib/esm/impl/url/DefaultUrlUtils.js +1 -1
- package/lib/esm/impl/url/UrlImpl.js +3 -3
- package/lib/esm/index.js +25 -25
- package/lib/esm/logger/DefaultLogger.js +1 -1
- package/lib/esm/logger/HttpLogServiceClient.js +3 -3
- package/lib/esm/logger/LoggerBase.js +1 -1
- package/lib/esm/logger/index.js +6 -6
- package/lib/esm/logger/model/index.js +3 -3
- package/lib/esm/monitored_request/MonitoredRequestUtils.js +1 -1
- package/lib/esm/monitored_request/index.js +1 -1
- package/lib/esm/phase/flow/EndEnforcerFlow.js +2 -2
- package/lib/esm/phase/flow/EnforceFlow.js +2 -2
- package/lib/esm/phase/flow/FilterFlow.js +3 -3
- package/lib/esm/phase/flow/PostEnforceFlow.js +1 -1
- package/lib/esm/phase/flow/index.js +4 -4
- package/lib/esm/phase/impl/AdditionalActivityHandlerPhase.js +1 -1
- package/lib/esm/phase/impl/CreateBlockResponsePhase.js +4 -4
- package/lib/esm/phase/impl/DecideActionPhase.js +3 -3
- package/lib/esm/phase/impl/EnrichContextFromRequestPhase.js +2 -2
- package/lib/esm/phase/impl/EnrichContextFromResponsePhase.js +1 -1
- package/lib/esm/phase/impl/FirstPartyPhase.js +1 -1
- package/lib/esm/phase/impl/ModifyOutgoingResponsePhase.js +2 -2
- package/lib/esm/phase/impl/ParseTokenPhase.js +2 -2
- package/lib/esm/phase/impl/RiskApiPhase.js +4 -4
- package/lib/esm/phase/impl/SendAsyncActivitiesOnRequestPhase.js +1 -1
- package/lib/esm/phase/impl/index.js +20 -20
- package/lib/esm/phase/index.js +4 -4
- package/lib/esm/products/account_defender/AccountDefender.js +2 -2
- package/lib/esm/products/account_defender/index.js +5 -5
- package/lib/esm/products/bot_defender/BotDefender.js +12 -12
- package/lib/esm/products/bot_defender/BotDefenderUtils.js +2 -2
- package/lib/esm/products/bot_defender/block/DefaultBotDefenderBlocker.js +6 -6
- package/lib/esm/products/bot_defender/block/captcha/CaptchaBlocker.js +3 -3
- package/lib/esm/products/bot_defender/block/captcha/HtmlCaptchaBlocker.js +3 -3
- package/lib/esm/products/bot_defender/block/captcha/JsonCaptchaBlocker.js +1 -1
- package/lib/esm/products/bot_defender/block/captcha/MobileCaptchaBlocker.js +2 -2
- package/lib/esm/products/bot_defender/block/captcha/index.js +4 -4
- package/lib/esm/products/bot_defender/block/index.js +5 -5
- package/lib/esm/products/bot_defender/block/model/index.js +2 -2
- package/lib/esm/products/bot_defender/block/templates/index.js +2 -2
- package/lib/esm/products/bot_defender/filter/DefaultBotDefenderFilter.js +3 -3
- package/lib/esm/products/bot_defender/filter/index.js +1 -1
- package/lib/esm/products/bot_defender/first_party/DefaultBotDefenderFirstParty.js +5 -5
- package/lib/esm/products/bot_defender/first_party/constants.js +1 -1
- package/lib/esm/products/bot_defender/first_party/index.js +4 -4
- package/lib/esm/products/bot_defender/first_party/utils.js +1 -1
- package/lib/esm/products/bot_defender/index.js +9 -9
- package/lib/esm/products/bot_defender/reasons/index.js +4 -4
- package/lib/esm/products/credential_intelligence/CredentialIntelligence.js +4 -4
- package/lib/esm/products/credential_intelligence/endpoint/extractor/BodyCredentialExtractor.js +2 -2
- package/lib/esm/products/credential_intelligence/endpoint/extractor/CredentialExtractorFactory.js +6 -6
- package/lib/esm/products/credential_intelligence/endpoint/extractor/index.js +5 -5
- package/lib/esm/products/credential_intelligence/endpoint/hash_protocol/CredentialIntelligenceHashProtocolFactory.js +4 -4
- package/lib/esm/products/credential_intelligence/endpoint/hash_protocol/MultistepHashProtocol.js +3 -3
- package/lib/esm/products/credential_intelligence/endpoint/hash_protocol/SingleStepHashProtocol.js +2 -2
- package/lib/esm/products/credential_intelligence/endpoint/hash_protocol/index.js +7 -7
- package/lib/esm/products/credential_intelligence/endpoint/index.js +8 -8
- package/lib/esm/products/credential_intelligence/endpoint/login_successful/HeaderLoginSuccessfulParser.js +1 -1
- package/lib/esm/products/credential_intelligence/endpoint/login_successful/LoginSuccessfulParserFactory.js +6 -6
- package/lib/esm/products/credential_intelligence/endpoint/login_successful/index.js +8 -8
- package/lib/esm/products/credential_intelligence/endpoint/matcher/CredentialIntelligenceEndpointMatcherFactory.js +3 -3
- package/lib/esm/products/credential_intelligence/endpoint/matcher/index.js +5 -5
- package/lib/esm/products/credential_intelligence/index.js +5 -5
- package/lib/esm/products/credential_intelligence/model/index.js +4 -4
- package/lib/esm/products/hype_sale_challenge/HypeSaleChallenge.js +6 -6
- package/lib/esm/products/hype_sale_challenge/block/JsonHypeSaleChallengeBlocker.js +2 -2
- package/lib/esm/products/hype_sale_challenge/block/MobileHypeSaleChallengeBlocker.js +2 -2
- package/lib/esm/products/hype_sale_challenge/block/index.js +3 -3
- package/lib/esm/products/hype_sale_challenge/block/templates/index.js +1 -1
- package/lib/esm/products/hype_sale_challenge/index.js +5 -5
- package/lib/esm/products/hype_sale_challenge/model/index.js +2 -2
- package/lib/esm/products/hype_sale_challenge/utils.js +1 -1
- package/lib/esm/products/index.js +6 -6
- package/lib/esm/products/interfaces/index.js +5 -5
- package/lib/esm/products/utils/ProductPriorityOrder.js +1 -1
- package/lib/esm/products/utils/index.js +2 -2
- package/lib/esm/pxde/DefaultDataEnrichment.js +3 -3
- package/lib/esm/pxde/index.js +4 -4
- package/lib/esm/pxde/model/index.js +2 -2
- package/lib/esm/pxhd/PXHDUtils.js +2 -2
- package/lib/esm/pxhd/index.js +2 -2
- package/lib/esm/pxhd/model/index.js +2 -2
- package/lib/esm/risk_api/client/PostRiskApiClientBase.js +5 -5
- package/lib/esm/risk_api/client/PostRiskApiClientV2.js +2 -2
- package/lib/esm/risk_api/client/PostRiskApiClientV3.js +2 -2
- package/lib/esm/risk_api/client/index.js +4 -4
- package/lib/esm/risk_api/index.js +4 -4
- package/lib/esm/risk_api/model/index.js +4 -4
- package/lib/esm/risk_api/risk_response/RiskResponseBase.js +1 -1
- package/lib/esm/risk_api/risk_response/index.js +6 -6
- package/lib/esm/risk_api/risk_response/serialize/index.js +2 -2
- package/lib/esm/risk_api/risk_response/v2/DefaultRiskResponseV2.js +1 -1
- package/lib/esm/risk_api/risk_response/v2/index.js +2 -2
- package/lib/esm/risk_api/risk_response/v3/DefaultRiskResponseV3.js +1 -1
- package/lib/esm/risk_api/risk_response/v3/index.js +2 -2
- package/lib/esm/risk_token/index.js +8 -8
- package/lib/esm/risk_token/parser/DefaultTokenV2Parser.js +3 -3
- package/lib/esm/risk_token/parser/DefaultTokenV3Parser.js +3 -3
- package/lib/esm/risk_token/parser/TokenParserBase.js +4 -4
- package/lib/esm/risk_token/parser/index.js +5 -5
- package/lib/esm/risk_token/token/TokenBase.js +1 -1
- package/lib/esm/risk_token/token/index.js +5 -5
- package/lib/esm/risk_token/token/serialize/SerializedToken.js +1 -1
- package/lib/esm/risk_token/token/serialize/index.js +2 -2
- package/lib/esm/risk_token/token/v2/DefaultTokenV2.js +4 -4
- package/lib/esm/risk_token/token/v2/index.js +2 -2
- package/lib/esm/risk_token/token/v3/DefaultTokenV3.js +6 -6
- package/lib/esm/risk_token/token/v3/index.js +3 -3
- package/lib/esm/risk_token/utils.js +2 -2
- package/lib/esm/sensitive_request/SensitiveRequestUtils.js +1 -1
- package/lib/esm/sensitive_request/index.js +1 -1
- package/lib/esm/snippet_injection/index.js +4 -4
- package/lib/esm/snippet_injection/snippet_injector/index.js +1 -1
- package/lib/esm/snippet_injection/snippet_retriever/DefaultSnippetRetriever.js +2 -2
- package/lib/esm/snippet_injection/snippet_retriever/index.js +2 -2
- package/lib/esm/telemetry/DefaultTelemetry.js +8 -4
- package/lib/esm/telemetry/index.js +2 -2
- package/lib/esm/utils/base64/index.js +1 -1
- package/lib/esm/utils/cipher/index.js +1 -1
- package/lib/esm/utils/constants.js +1 -1
- package/lib/esm/utils/cookie_parser/StringSplitCookieParser.js +1 -1
- package/lib/esm/utils/cookie_parser/index.js +2 -2
- package/lib/esm/utils/error/EnforcerConfigurationError.js +2 -2
- package/lib/esm/utils/error/EnforcerError.js +1 -1
- package/lib/esm/utils/error/EnforcerTimeoutError.js +2 -2
- package/lib/esm/utils/error/index.js +4 -4
- package/lib/esm/utils/hash/index.js +1 -1
- package/lib/esm/utils/hmac/index.js +1 -1
- package/lib/esm/utils/index.js +16 -16
- package/lib/esm/utils/ip_range_checker/index.js +1 -1
- package/lib/esm/utils/request_id_generator/index.js +2 -2
- package/lib/esm/utils/timestamp_hmac_header_validator/DefaultTimestampHmacHeaderValidator.js +2 -2
- package/lib/esm/utils/timestamp_hmac_header_validator/index.js +2 -2
- package/lib/esm/utils/url/index.js +3 -3
- package/lib/esm/utils/utils.js +5 -5
- package/lib/types/phase/impl/index.d.ts +1 -1
- package/lib/types/telemetry/model/TelemetryActivity.d.ts +2 -0
- package/lib/types/utils/constants.d.ts +1 -1
- package/package.json +6 -5
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './HypeSaleChallengeData';
|
|
2
|
-
export * from './JsonHypeSaleChallengeBlockPayload';
|
|
1
|
+
export * from './HypeSaleChallengeData.js';
|
|
2
|
+
export * from './JsonHypeSaleChallengeBlockPayload.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CACHE_CONTROL_HEADER_NAME } from '../../http';
|
|
1
|
+
import { CACHE_CONTROL_HEADER_NAME } from '../../http/index.js';
|
|
2
2
|
export const X_PX_IS_HYPESALE_HEADER_NAME = 'x-px-is-hypesale';
|
|
3
3
|
export const IS_HYPESALE_PARAM_NAME = 'is_hype_sale';
|
|
4
4
|
export const SYNTHETIC_RESPONSE_DEFAULT_RESPONSE_CODE = 7190;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export * from './utils';
|
|
2
|
-
export * from './interfaces';
|
|
3
|
-
export * from './bot_defender';
|
|
4
|
-
export * from './credential_intelligence';
|
|
5
|
-
export * from './account_defender';
|
|
6
|
-
export * from './hype_sale_challenge';
|
|
1
|
+
export * from './utils/index.js';
|
|
2
|
+
export * from './interfaces/index.js';
|
|
3
|
+
export * from './bot_defender/index.js';
|
|
4
|
+
export * from './credential_intelligence/index.js';
|
|
5
|
+
export * from './account_defender/index.js';
|
|
6
|
+
export * from './hype_sale_challenge/index.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from './IProduct';
|
|
2
|
-
export * from './ProductType';
|
|
3
|
-
export * from './ProductData';
|
|
4
|
-
export * from './ProductDataType';
|
|
5
|
-
export * from './Products';
|
|
1
|
+
export * from './IProduct.js';
|
|
2
|
+
export * from './ProductType.js';
|
|
3
|
+
export * from './ProductData.js';
|
|
4
|
+
export * from './ProductDataType.js';
|
|
5
|
+
export * from './Products.js';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './ProductName';
|
|
2
|
-
export * from './ProductPriorityOrder';
|
|
1
|
+
export * from './ProductName.js';
|
|
2
|
+
export * from './ProductPriorityOrder.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Algorithm, PXDE_COOKIE_NAME } from '../utils';
|
|
2
|
-
import { PXDE_COOKIE_DELIMITER, PXDE_COOKIE_PARTS_COUNT, PXDE_HMAC_INDEX, PXDE_PAYLOAD_INDEX } from './constants';
|
|
3
|
-
import { COOKIE_SECRET_MAX_VALUES } from '../risk_token';
|
|
1
|
+
import { Algorithm, PXDE_COOKIE_NAME } from '../utils/index.js';
|
|
2
|
+
import { PXDE_COOKIE_DELIMITER, PXDE_COOKIE_PARTS_COUNT, PXDE_HMAC_INDEX, PXDE_PAYLOAD_INDEX } from './constants.js';
|
|
3
|
+
import { COOKIE_SECRET_MAX_VALUES } from '../risk_token/index.js';
|
|
4
4
|
export class DefaultDataEnrichment {
|
|
5
5
|
config;
|
|
6
6
|
base64Utils;
|
package/lib/esm/pxde/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from './constants';
|
|
2
|
-
export * from './model';
|
|
3
|
-
export * from './IDataEnrichment';
|
|
4
|
-
export * from './DefaultDataEnrichment';
|
|
1
|
+
export * from './constants.js';
|
|
2
|
+
export * from './model/index.js';
|
|
3
|
+
export * from './IDataEnrichment.js';
|
|
4
|
+
export * from './DefaultDataEnrichment.js';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './PXDE';
|
|
2
|
-
export * from './PxdeData';
|
|
1
|
+
export * from './PXDE.js';
|
|
2
|
+
export * from './PxdeData.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { PXHD_COOKIE_NAME } from '../utils';
|
|
2
|
-
import { MinimalResponseUtils, SET_COOKIE_HEADER_NAME } from '../http';
|
|
1
|
+
import { PXHD_COOKIE_NAME } from '../utils/index.js';
|
|
2
|
+
import { MinimalResponseUtils, SET_COOKIE_HEADER_NAME } from '../http/index.js';
|
|
3
3
|
export var PXHDUtils;
|
|
4
4
|
(function (PXHDUtils) {
|
|
5
5
|
PXHDUtils.PXHD_SAMESITE_VALUE = 'Lax';
|
package/lib/esm/pxhd/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { PXHDUtils } from './PXHDUtils';
|
|
2
|
-
export * from './model';
|
|
1
|
+
export { PXHDUtils } from './PXHDUtils.js';
|
|
2
|
+
export * from './model/index.js';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './PXHD';
|
|
2
|
-
export * from './PXHDSource';
|
|
1
|
+
export * from './PXHD.js';
|
|
2
|
+
export * from './PXHDSource.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { AUTHORIZATION_HEADER_NAME, CONTENT_TYPE_HEADER_NAME, ContentType, HttpMethod, OutgoingRequestImpl, } from '../../http';
|
|
2
|
-
import { EnforcerErrorName, getAuthorizationHeader, removeSensitiveHeaders } from '../../utils';
|
|
3
|
-
import { createCommonActivityDetails, toHeaderEntryArray } from '../../activities';
|
|
4
|
-
import { RISK_API_ENDPOINT } from '../constants';
|
|
5
|
-
import { RiskApiCallResult, RiskStatus, S2SErrorReason } from '../model';
|
|
1
|
+
import { AUTHORIZATION_HEADER_NAME, CONTENT_TYPE_HEADER_NAME, ContentType, HttpMethod, OutgoingRequestImpl, } from '../../http/index.js';
|
|
2
|
+
import { EnforcerErrorName, getAuthorizationHeader, removeSensitiveHeaders } from '../../utils/index.js';
|
|
3
|
+
import { createCommonActivityDetails, toHeaderEntryArray } from '../../activities/index.js';
|
|
4
|
+
import { RISK_API_ENDPOINT } from '../constants.js';
|
|
5
|
+
import { RiskApiCallResult, RiskStatus, S2SErrorReason } from '../model/index.js';
|
|
6
6
|
export class PostRiskApiClientBase {
|
|
7
7
|
config;
|
|
8
8
|
httpClient;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { DefaultRiskResponseV2 } from '../risk_response';
|
|
2
|
-
import { PostRiskApiClientBase } from './PostRiskApiClientBase';
|
|
1
|
+
import { DefaultRiskResponseV2 } from '../risk_response/index.js';
|
|
2
|
+
import { PostRiskApiClientBase } from './PostRiskApiClientBase.js';
|
|
3
3
|
export class PostRiskApiClientV2 extends PostRiskApiClientBase {
|
|
4
4
|
constructor(config, httpClient) {
|
|
5
5
|
super(config, httpClient);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { PostRiskApiClientBase } from './PostRiskApiClientBase';
|
|
2
|
-
import { DefaultRiskResponseV3 } from '../risk_response';
|
|
1
|
+
import { PostRiskApiClientBase } from './PostRiskApiClientBase.js';
|
|
2
|
+
import { DefaultRiskResponseV3 } from '../risk_response/index.js';
|
|
3
3
|
export class PostRiskApiClientV3 extends PostRiskApiClientBase {
|
|
4
4
|
constructor(config, httpClient) {
|
|
5
5
|
super(config, httpClient);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from './IRiskApiClient';
|
|
2
|
-
export * from './PostRiskApiClientBase';
|
|
3
|
-
export * from './PostRiskApiClientV2';
|
|
4
|
-
export * from './PostRiskApiClientV3';
|
|
1
|
+
export * from './IRiskApiClient.js';
|
|
2
|
+
export * from './PostRiskApiClientBase.js';
|
|
3
|
+
export * from './PostRiskApiClientV2.js';
|
|
4
|
+
export * from './PostRiskApiClientV3.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from './model';
|
|
2
|
-
export * from './risk_response';
|
|
3
|
-
export * from './client';
|
|
4
|
-
export * from './constants';
|
|
1
|
+
export * from './model/index.js';
|
|
2
|
+
export * from './risk_response/index.js';
|
|
3
|
+
export * from './client/index.js';
|
|
4
|
+
export * from './constants.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from './RiskActivity';
|
|
2
|
-
export * from './RiskStatus';
|
|
3
|
-
export * from './RiskApiCallResult';
|
|
4
|
-
export * from './S2SErrorReason';
|
|
1
|
+
export * from './RiskActivity.js';
|
|
2
|
+
export * from './RiskStatus.js';
|
|
3
|
+
export * from './RiskApiCallResult.js';
|
|
4
|
+
export * from './S2SErrorReason.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export * from './IRiskResponse';
|
|
2
|
-
export * from './RiskResponseBase';
|
|
3
|
-
export * from './CommonRiskResponsePayload';
|
|
4
|
-
export * from './v2';
|
|
5
|
-
export * from './v3';
|
|
6
|
-
export * from './serialize';
|
|
1
|
+
export * from './IRiskResponse.js';
|
|
2
|
+
export * from './RiskResponseBase.js';
|
|
3
|
+
export * from './CommonRiskResponsePayload.js';
|
|
4
|
+
export * from './v2/index.js';
|
|
5
|
+
export * from './v3/index.js';
|
|
6
|
+
export * from './serialize/index.js';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './SerializedRiskResponse';
|
|
2
|
-
export * from './RiskResponseJson';
|
|
1
|
+
export * from './SerializedRiskResponse.js';
|
|
2
|
+
export * from './RiskResponseJson.js';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './DefaultRiskResponseV2';
|
|
2
|
-
export * from './RiskResponseV2Payload';
|
|
1
|
+
export * from './DefaultRiskResponseV2.js';
|
|
2
|
+
export * from './RiskResponseV2Payload.js';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './DefaultRiskResponseV3';
|
|
2
|
-
export * from './RiskResponseV3Payload';
|
|
1
|
+
export * from './DefaultRiskResponseV3.js';
|
|
2
|
+
export * from './RiskResponseV3Payload.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export * from './constants';
|
|
2
|
-
export * from './utils';
|
|
3
|
-
export * from './token';
|
|
4
|
-
export * from './parser';
|
|
5
|
-
export { MobileError } from './MobileError';
|
|
6
|
-
export { TokenOrigin } from './TokenOrigin';
|
|
7
|
-
export { TokenParseResult } from './TokenParseResult';
|
|
8
|
-
export * from './TokenVersion';
|
|
1
|
+
export * from './constants.js';
|
|
2
|
+
export * from './utils.js';
|
|
3
|
+
export * from './token/index.js';
|
|
4
|
+
export * from './parser/index.js';
|
|
5
|
+
export { MobileError } from './MobileError.js';
|
|
6
|
+
export { TokenOrigin } from './TokenOrigin.js';
|
|
7
|
+
export { TokenParseResult } from './TokenParseResult.js';
|
|
8
|
+
export * from './TokenVersion.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { TokenParserBase } from './TokenParserBase';
|
|
2
|
-
import { DefaultTokenV2 } from '../token';
|
|
3
|
-
import { COOKIE_V2_NAME } from '../constants';
|
|
1
|
+
import { TokenParserBase } from './TokenParserBase.js';
|
|
2
|
+
import { DefaultTokenV2 } from '../token/index.js';
|
|
3
|
+
import { COOKIE_V2_NAME } from '../constants.js';
|
|
4
4
|
export class DefaultTokenV2Parser extends TokenParserBase {
|
|
5
5
|
constructor(config, options) {
|
|
6
6
|
super(config, options);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { DefaultTokenV3 } from '../token';
|
|
2
|
-
import { COOKIE_V3_NAME } from '../constants';
|
|
3
|
-
import { TokenParserBase } from './TokenParserBase';
|
|
1
|
+
import { DefaultTokenV3 } from '../token/index.js';
|
|
2
|
+
import { COOKIE_V3_NAME } from '../constants.js';
|
|
3
|
+
import { TokenParserBase } from './TokenParserBase.js';
|
|
4
4
|
export class DefaultTokenV3Parser extends TokenParserBase {
|
|
5
5
|
constructor(config, options) {
|
|
6
6
|
super(config, options);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { X_PX_AUTHORIZATION_HEADER_NAME, X_PX_BYPASS_REASON_HEADER_NAME, X_PX_ORIGINAL_TOKEN_HEADER_NAME, } from '../../utils';
|
|
2
|
-
import { TokenParseResult } from '../TokenParseResult';
|
|
3
|
-
import { COOKIE_SPLIT_DELIMITER } from '../constants';
|
|
4
|
-
import { convertMobileTokenVersionToCookieName } from '../utils';
|
|
1
|
+
import { X_PX_AUTHORIZATION_HEADER_NAME, X_PX_BYPASS_REASON_HEADER_NAME, X_PX_ORIGINAL_TOKEN_HEADER_NAME, } from '../../utils/index.js';
|
|
2
|
+
import { TokenParseResult } from '../TokenParseResult.js';
|
|
3
|
+
import { COOKIE_SPLIT_DELIMITER } from '../constants.js';
|
|
4
|
+
import { convertMobileTokenVersionToCookieName } from '../utils.js';
|
|
5
5
|
export class TokenParserBase {
|
|
6
6
|
config;
|
|
7
7
|
options;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from './ITokenParser';
|
|
2
|
-
export * from './TokenParserBase';
|
|
3
|
-
export * from './TokenParserOptions';
|
|
4
|
-
export * from './DefaultTokenV2Parser';
|
|
5
|
-
export * from './DefaultTokenV3Parser';
|
|
1
|
+
export * from './ITokenParser.js';
|
|
2
|
+
export * from './TokenParserBase.js';
|
|
3
|
+
export * from './TokenParserOptions.js';
|
|
4
|
+
export * from './DefaultTokenV2Parser.js';
|
|
5
|
+
export * from './DefaultTokenV3Parser.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from './IToken';
|
|
2
|
-
export * from './TokenBase';
|
|
3
|
-
export * from './v2';
|
|
4
|
-
export * from './v3';
|
|
5
|
-
export * from './serialize';
|
|
1
|
+
export * from './IToken.js';
|
|
2
|
+
export * from './TokenBase.js';
|
|
3
|
+
export * from './v2/index.js';
|
|
4
|
+
export * from './v3/index.js';
|
|
5
|
+
export * from './serialize/index.js';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './SerializedToken';
|
|
2
|
-
export * from './TokenJson';
|
|
1
|
+
export * from './SerializedToken.js';
|
|
2
|
+
export * from './TokenJson.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { BlockAction } from '../../../blocker';
|
|
2
|
-
import { Algorithm, isValidUuid } from '../../../utils';
|
|
3
|
-
import { TokenBase } from '../TokenBase';
|
|
4
|
-
import { COOKIE_SECRET_MAX_VALUES } from '../../constants';
|
|
1
|
+
import { BlockAction } from '../../../blocker/index.js';
|
|
2
|
+
import { Algorithm, isValidUuid } from '../../../utils/index.js';
|
|
3
|
+
import { TokenBase } from '../TokenBase.js';
|
|
4
|
+
import { COOKIE_SECRET_MAX_VALUES } from '../../constants.js';
|
|
5
5
|
export class DefaultTokenV2 extends TokenBase {
|
|
6
6
|
base64Utils;
|
|
7
7
|
hmacUtils;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './TokenV2Payload';
|
|
2
|
-
export * from './DefaultTokenV2';
|
|
1
|
+
export * from './TokenV2Payload.js';
|
|
2
|
+
export * from './DefaultTokenV2.js';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Algorithm } from '../../../utils';
|
|
2
|
-
import { BlockAction } from '../../../blocker';
|
|
3
|
-
import { COOKIE_SECRET_MAX_VALUES, COOKIE_SPLIT_DELIMITER, COOKIE_V3_HMAC_INDEX, COOKIE_V3_ITERATIONS_INDEX, COOKIE_V3_MAXIMUM_SALT_LENGTH, COOKIE_V3_PARTS_COUNT, COOKIE_V3_PAYLOAD_INDEX, COOKIE_V3_SALT_INDEX, } from '../../constants';
|
|
4
|
-
import { TokenSignField } from './TokenSignField';
|
|
5
|
-
import { TokenBase } from '../TokenBase';
|
|
6
|
-
import { redactCookieSecret } from '../../../activities';
|
|
1
|
+
import { Algorithm } from '../../../utils/index.js';
|
|
2
|
+
import { BlockAction } from '../../../blocker/index.js';
|
|
3
|
+
import { COOKIE_SECRET_MAX_VALUES, COOKIE_SPLIT_DELIMITER, COOKIE_V3_HMAC_INDEX, COOKIE_V3_ITERATIONS_INDEX, COOKIE_V3_MAXIMUM_SALT_LENGTH, COOKIE_V3_PARTS_COUNT, COOKIE_V3_PAYLOAD_INDEX, COOKIE_V3_SALT_INDEX, } from '../../constants.js';
|
|
4
|
+
import { TokenSignField } from './TokenSignField.js';
|
|
5
|
+
import { TokenBase } from '../TokenBase.js';
|
|
6
|
+
import { redactCookieSecret } from '../../../activities/index.js';
|
|
7
7
|
export class DefaultTokenV3 extends TokenBase {
|
|
8
8
|
maxIterations;
|
|
9
9
|
minIterations;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './DefaultTokenV3';
|
|
2
|
-
export * from './TokenV3Payload';
|
|
3
|
-
export * from './TokenSignField';
|
|
1
|
+
export * from './DefaultTokenV3.js';
|
|
2
|
+
export * from './TokenV3Payload.js';
|
|
3
|
+
export * from './TokenSignField.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { COOKIE_V2_NAME, COOKIE_V3_NAME } from './constants';
|
|
2
|
-
import { TokenVersion } from './TokenVersion';
|
|
1
|
+
import { COOKIE_V2_NAME, COOKIE_V3_NAME } from './constants.js';
|
|
2
|
+
import { TokenVersion } from './TokenVersion.js';
|
|
3
3
|
export const convertMobileTokenVersionToCookieName = (tokenVersion) => {
|
|
4
4
|
switch (tokenVersion) {
|
|
5
5
|
case TokenVersion.V2:
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './SensitiveRequestUtils';
|
|
1
|
+
export * from './SensitiveRequestUtils.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from './snippet_injector';
|
|
2
|
-
export * from './snippet_retriever';
|
|
3
|
-
export * from './utils';
|
|
4
|
-
export * from './CustomSnippetFunction';
|
|
1
|
+
export * from './snippet_injector/index.js';
|
|
2
|
+
export * from './snippet_retriever/index.js';
|
|
3
|
+
export * from './utils.js';
|
|
4
|
+
export * from './CustomSnippetFunction.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './ISnippetInjector';
|
|
1
|
+
export * from './ISnippetInjector.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { FirstPartySuffix, getMostCustomizedFirstPartyPath } from '../../products';
|
|
2
|
-
import { createDefaultSnippet } from '../utils';
|
|
1
|
+
import { FirstPartySuffix, getMostCustomizedFirstPartyPath } from '../../products/index.js';
|
|
2
|
+
import { createDefaultSnippet } from '../utils.js';
|
|
3
3
|
export class DefaultSnippetRetriever {
|
|
4
4
|
config;
|
|
5
5
|
constructor(config) {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './ISnippetRetriever';
|
|
2
|
-
export * from './DefaultSnippetRetriever';
|
|
1
|
+
export * from './ISnippetRetriever.js';
|
|
2
|
+
export * from './DefaultSnippetRetriever.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { AUTHORIZATION_HEADER_NAME, CONTENT_TYPE_HEADER_NAME, ContentType, HttpMethod, OutgoingRequestImpl, } from '../http';
|
|
2
|
-
import { ActivityType } from '../activities';
|
|
3
|
-
import { getAuthorizationHeader, transferExistingProperties, DefaultTimestampHmacHeaderValidator, telemetryConfigReplacer, redactSensitiveFields, } from '../utils';
|
|
4
|
-
import { TELEMETRY_ENDPOINT, TELEMETRY_HEADER_NAME, TELEMETRY_UPDATE_REASON } from './constants';
|
|
1
|
+
import { AUTHORIZATION_HEADER_NAME, CONTENT_TYPE_HEADER_NAME, ContentType, HttpMethod, OutgoingRequestImpl, } from '../http/index.js';
|
|
2
|
+
import { ActivityType } from '../activities/index.js';
|
|
3
|
+
import { getAuthorizationHeader, transferExistingProperties, DefaultTimestampHmacHeaderValidator, telemetryConfigReplacer, redactSensitiveFields, } from '../utils/index.js';
|
|
4
|
+
import { TELEMETRY_ENDPOINT, TELEMETRY_HEADER_NAME, TELEMETRY_UPDATE_REASON } from './constants.js';
|
|
5
5
|
export class DefaultTelemetry {
|
|
6
6
|
config;
|
|
7
7
|
httpClient;
|
|
@@ -83,6 +83,10 @@ export class DefaultTelemetry {
|
|
|
83
83
|
osName: 'os_name',
|
|
84
84
|
nodeName: 'node_name',
|
|
85
85
|
});
|
|
86
|
+
transferExistingProperties(this.config, activity.details, {
|
|
87
|
+
remoteConfigId: 'remote_config_id',
|
|
88
|
+
remoteConfigVersion: 'remote_config_version',
|
|
89
|
+
});
|
|
86
90
|
return activity;
|
|
87
91
|
}
|
|
88
92
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { DefaultTelemetry } from './DefaultTelemetry';
|
|
2
|
-
export * from './constants';
|
|
1
|
+
export { DefaultTelemetry } from './DefaultTelemetry.js';
|
|
2
|
+
export * from './constants.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './IBase64Utils';
|
|
1
|
+
export * from './IBase64Utils.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './ICipherUtils';
|
|
1
|
+
export * from './ICipherUtils.js';
|
|
@@ -11,4 +11,4 @@ export const PUSH_DATA_FEATURE_HEADER_NAME = 'x-px-feature';
|
|
|
11
11
|
export const EMAIL_ADDRESS_REGEX = /^[a-zA-Z0-9_+&*-]+(?:\.[a-zA-Z0-9_+&*-]+)*@(?:[a-zA-Z0-9-]+\.)+[a-zA-Z]{2,7}$/;
|
|
12
12
|
export const URL_REGEX = /^(https?:)\/\/(([^@\s:\/]+):?([^@\s\/]*)@)?(([^:\/?#]*)(?:\:([0-9]+))?)(\/?[^?#]*)(\?[^#]*|)(#.*|)$/;
|
|
13
13
|
export const REGEX_STRUCTURE = /^\/(.+?)\/([gimsuyvd]*)$/;
|
|
14
|
-
export const CORE_MODULE_VERSION = 'JS Core 0.24.
|
|
14
|
+
export const CORE_MODULE_VERSION = 'JS Core 0.24.4';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './ICookieParser';
|
|
2
|
-
export * from './StringSplitCookieParser';
|
|
1
|
+
export * from './ICookieParser.js';
|
|
2
|
+
export * from './StringSplitCookieParser.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { EnforcerError } from './EnforcerError';
|
|
2
|
-
import { EnforcerErrorName } from './EnforcerErrorName';
|
|
1
|
+
import { EnforcerError } from './EnforcerError.js';
|
|
2
|
+
import { EnforcerErrorName } from './EnforcerErrorName.js';
|
|
3
3
|
export class EnforcerConfigurationError extends EnforcerError {
|
|
4
4
|
constructor(configName, invalidConfigValue, possibleValues) {
|
|
5
5
|
const value = invalidConfigValue === null
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { EnforcerError } from './EnforcerError';
|
|
2
|
-
import { EnforcerErrorName } from './EnforcerErrorName';
|
|
1
|
+
import { EnforcerError } from './EnforcerError.js';
|
|
2
|
+
import { EnforcerErrorName } from './EnforcerErrorName.js';
|
|
3
3
|
export class EnforcerTimeoutError extends EnforcerError {
|
|
4
4
|
constructor(ms) {
|
|
5
5
|
super(`${typeof ms === 'number' ? `${ms}ms ` : ''}timeout reached`);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from './EnforcerErrorName';
|
|
2
|
-
export * from './EnforcerError';
|
|
3
|
-
export * from './EnforcerTimeoutError';
|
|
4
|
-
export * from './EnforcerConfigurationError';
|
|
1
|
+
export * from './EnforcerErrorName.js';
|
|
2
|
+
export * from './EnforcerError.js';
|
|
3
|
+
export * from './EnforcerTimeoutError.js';
|
|
4
|
+
export * from './EnforcerConfigurationError.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './IHashUtils';
|
|
1
|
+
export * from './IHashUtils.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './IHmacUtils';
|
|
1
|
+
export * from './IHmacUtils.js';
|
package/lib/esm/utils/index.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
export * from './base64';
|
|
2
|
-
export * from './cookie_parser';
|
|
3
|
-
export * from './hmac';
|
|
4
|
-
export * from './hash';
|
|
5
|
-
export * from './ip_range_checker';
|
|
6
|
-
export * from './request_id_generator';
|
|
7
|
-
export * from './timestamp_hmac_header_validator';
|
|
8
|
-
export * from './cipher';
|
|
9
|
-
export * from './error';
|
|
10
|
-
export * from './utils';
|
|
11
|
-
export * from './constants';
|
|
12
|
-
export * from './ModuleMode';
|
|
13
|
-
export * from './VidSource';
|
|
14
|
-
export * from './Algorithm';
|
|
15
|
-
export * from './url';
|
|
16
|
-
export * from './WaitsUntil';
|
|
1
|
+
export * from './base64/index.js';
|
|
2
|
+
export * from './cookie_parser/index.js';
|
|
3
|
+
export * from './hmac/index.js';
|
|
4
|
+
export * from './hash/index.js';
|
|
5
|
+
export * from './ip_range_checker/index.js';
|
|
6
|
+
export * from './request_id_generator/index.js';
|
|
7
|
+
export * from './timestamp_hmac_header_validator/index.js';
|
|
8
|
+
export * from './cipher/index.js';
|
|
9
|
+
export * from './error/index.js';
|
|
10
|
+
export * from './utils.js';
|
|
11
|
+
export * from './constants.js';
|
|
12
|
+
export * from './ModuleMode.js';
|
|
13
|
+
export * from './VidSource.js';
|
|
14
|
+
export * from './Algorithm.js';
|
|
15
|
+
export * from './url/index.js';
|
|
16
|
+
export * from './WaitsUntil.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './IIpRangeChecker';
|
|
1
|
+
export * from './IIpRangeChecker.js';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './IRequestIdGenerator';
|
|
2
|
-
export * from './SimpleRequestIdGenerator';
|
|
1
|
+
export * from './IRequestIdGenerator.js';
|
|
2
|
+
export * from './SimpleRequestIdGenerator.js';
|
package/lib/esm/utils/timestamp_hmac_header_validator/DefaultTimestampHmacHeaderValidator.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Algorithm } from '../Algorithm';
|
|
2
|
-
import { COOKIE_SECRET_MAX_VALUES } from '../../risk_token';
|
|
1
|
+
import { Algorithm } from '../Algorithm.js';
|
|
2
|
+
import { COOKIE_SECRET_MAX_VALUES } from '../../risk_token/index.js';
|
|
3
3
|
const TIMESTAMP_HMAC_HEADER_DELIMITER = ':';
|
|
4
4
|
const TIMESTAMP_HMAC_HEADER_PARTS_COUNT = 2;
|
|
5
5
|
export class DefaultTimestampHmacHeaderValidator {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './ITimestampHmacHeaderValidator';
|
|
2
|
-
export * from './DefaultTimestampHmacHeaderValidator';
|
|
1
|
+
export * from './ITimestampHmacHeaderValidator.js';
|
|
2
|
+
export * from './DefaultTimestampHmacHeaderValidator.js';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './IUrlUtils';
|
|
2
|
-
export * from './IUrlSearchParams';
|
|
3
|
-
export * from './IUrl';
|
|
1
|
+
export * from './IUrlUtils.js';
|
|
2
|
+
export * from './IUrlSearchParams.js';
|
|
3
|
+
export * from './IUrl.js';
|