perimeterx-js-core 0.35.0 → 0.35.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.
@@ -48,7 +48,7 @@ var GetRiskResponseV2 = /** @class */ (function (_super) {
48
48
  data_enrichment: dataEnrichment ? JSON.parse(dataEnrichment) : undefined,
49
49
  pxhdDomain: pxhdDomain,
50
50
  additional_risk_info: additionalRiskInfo,
51
- telemetry_requested: !!telemetryRequested,
51
+ telemetry_requested: telemetryRequested === 'true',
52
52
  drc: drc ? parseInt(drc) : undefined,
53
53
  cookie_cfg_block_result: blockResult,
54
54
  };
@@ -15,4 +15,4 @@ exports.PUSH_DATA_FEATURE_HEADER_NAME = 'x-px-feature';
15
15
  exports.EMAIL_ADDRESS_REGEX = /^[a-zA-Z0-9_+&*-]+(?:\.[a-zA-Z0-9_+&*-]+)*@(?:[a-zA-Z0-9-]+\.)+[a-zA-Z]{2,7}$/;
16
16
  exports.URL_REGEX = /^(https?:)\/\/(([^@\s:\/]+):?([^@\s\/]*)@)?(([^:\/?#]*)(?:\:([0-9]+))?)(\/?[^?#]*)(\?[^#]*|)(#.*|)$/;
17
17
  exports.REGEX_STRUCTURE = /^\/(.+?)\/([gimsuyvd]*)$/;
18
- exports.CORE_MODULE_VERSION = 'JS Core 0.35.0';
18
+ exports.CORE_MODULE_VERSION = 'JS Core 0.35.1';
@@ -29,7 +29,7 @@ export class GetRiskResponseV2 extends RiskResponseBase {
29
29
  data_enrichment: dataEnrichment ? JSON.parse(dataEnrichment) : undefined,
30
30
  pxhdDomain,
31
31
  additional_risk_info: additionalRiskInfo,
32
- telemetry_requested: !!telemetryRequested,
32
+ telemetry_requested: telemetryRequested === 'true',
33
33
  drc: drc ? parseInt(drc) : undefined,
34
34
  cookie_cfg_block_result: blockResult,
35
35
  };
@@ -12,4 +12,4 @@ export const PUSH_DATA_FEATURE_HEADER_NAME = 'x-px-feature';
12
12
  export const EMAIL_ADDRESS_REGEX = /^[a-zA-Z0-9_+&*-]+(?:\.[a-zA-Z0-9_+&*-]+)*@(?:[a-zA-Z0-9-]+\.)+[a-zA-Z]{2,7}$/;
13
13
  export const URL_REGEX = /^(https?:)\/\/(([^@\s:\/]+):?([^@\s\/]*)@)?(([^:\/?#]*)(?:\:([0-9]+))?)(\/?[^?#]*)(\?[^#]*|)(#.*|)$/;
14
14
  export const REGEX_STRUCTURE = /^\/(.+?)\/([gimsuyvd]*)$/;
15
- export const CORE_MODULE_VERSION = 'JS Core 0.35.0';
15
+ export const CORE_MODULE_VERSION = 'JS Core 0.35.1';
@@ -12,4 +12,4 @@ export declare const PUSH_DATA_FEATURE_HEADER_NAME = "x-px-feature";
12
12
  export declare const EMAIL_ADDRESS_REGEX: RegExp;
13
13
  export declare const URL_REGEX: RegExp;
14
14
  export declare const REGEX_STRUCTURE: RegExp;
15
- export declare const CORE_MODULE_VERSION = "JS Core 0.35.0";
15
+ export declare const CORE_MODULE_VERSION = "JS Core 0.35.1";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "perimeterx-js-core",
3
- "version": "0.35.0",
3
+ "version": "0.35.1",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "typesVersions": {