perimeterx-js-core 0.21.0 → 0.21.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.
@@ -45,8 +45,10 @@ var BodyLoginSuccessfulParser = /** @class */ (function () {
45
45
  var _a, _b;
46
46
  return __awaiter(this, void 0, void 0, function () {
47
47
  return __generator(this, function (_c) {
48
- // TODO: Possibly add IBody methods to IOutgoingResponse interface?
49
- return [2 /*return*/, !!((_b = (_a = response.body) === null || _a === void 0 ? void 0 : _a.match) === null || _b === void 0 ? void 0 : _b.call(_a, this.bodyRegex))];
48
+ switch (_c.label) {
49
+ case 0: return [4 /*yield*/, response.text()];
50
+ case 1: return [2 /*return*/, !!((_b = (_a = (_c.sent())) === null || _a === void 0 ? void 0 : _a.match) === null || _b === void 0 ? void 0 : _b.call(_a, this.bodyRegex))];
51
+ }
50
52
  });
51
53
  });
52
54
  };
@@ -14,4 +14,4 @@ exports.PUSH_DATA_FEATURE_HEADER_NAME = 'x-px-feature';
14
14
  exports.EMAIL_ADDRESS_REGEX = /^[a-zA-Z0-9_+&*-]+(?:\.[a-zA-Z0-9_+&*-]+)*@(?:[a-zA-Z0-9-]+\.)+[a-zA-Z]{2,7}$/;
15
15
  exports.URL_REGEX = /^(https?\:)\/\/(([^@\s:]+):?([^@\s]*)@)?(([^:\/?#]*)(?:\:([0-9]+))?)([\/]{0,1}[^?#]*)(\?[^#]*|)(#.*|)$/;
16
16
  exports.REGEX_STRUCTURE = /^\/(.+?)\/([gimsuyvd]*)$/;
17
- exports.CORE_MODULE_VERSION = 'JS Core 0.21.0';
17
+ exports.CORE_MODULE_VERSION = 'JS Core 0.21.1';
@@ -228,7 +228,7 @@ var toHash = function (string) {
228
228
  };
229
229
  var telemetryConfigReplacer = function (key, value) {
230
230
  if (value instanceof RegExp) {
231
- return '_REGEXP ' + value.toString();
231
+ return '_REGEXP ' + value.toString().replace(/\\\//g, '/');
232
232
  }
233
233
  if (value instanceof Function) {
234
234
  return '_FUNCTION_HASH' + toHash(value.toString()); // NOTE: Do not log functions
@@ -4,7 +4,6 @@ export class BodyLoginSuccessfulParser {
4
4
  this.bodyRegex = new RegExp(regex);
5
5
  }
6
6
  async isLoginSuccessful(response) {
7
- // TODO: Possibly add IBody methods to IOutgoingResponse interface?
8
- return !!response.body?.match?.(this.bodyRegex);
7
+ return !!(await response.text())?.match?.(this.bodyRegex);
9
8
  }
10
9
  }
@@ -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]+))?)([\/]{0,1}[^?#]*)(\?[^#]*|)(#.*|)$/;
13
13
  export const REGEX_STRUCTURE = /^\/(.+?)\/([gimsuyvd]*)$/;
14
- export const CORE_MODULE_VERSION = 'JS Core 0.21.0';
14
+ export const CORE_MODULE_VERSION = 'JS Core 0.21.1';
@@ -158,7 +158,7 @@ const toHash = (string) => {
158
158
  };
159
159
  export const telemetryConfigReplacer = (key, value) => {
160
160
  if (value instanceof RegExp) {
161
- return '_REGEXP ' + value.toString();
161
+ return '_REGEXP ' + value.toString().replace(/\\\//g, '/');
162
162
  }
163
163
  if (value instanceof Function) {
164
164
  return '_FUNCTION_HASH' + toHash(value.toString()); // NOTE: Do not log functions
@@ -285,6 +285,7 @@ export declare const createAsyncActivity: <Req, Res>(activityType: ActivityType,
285
285
  readonly forEach: (callbackfn: (value: string, key: string, parent: import("..").IHeaders) => void, thisArg?: any) => void;
286
286
  };
287
287
  readonly body: any;
288
+ readonly text: () => import("ts-essentials").AsyncOrSync<string>;
288
289
  readonly getUnderlyingResponse: () => Res;
289
290
  };
290
291
  readonly shouldSendLogs: boolean;
@@ -512,6 +513,7 @@ export declare const createAsyncActivity: <Req, Res>(activityType: ActivityType,
512
513
  readonly forEach: (callbackfn: (value: string, key: string, parent: import("..").IHeaders) => void, thisArg?: any) => void;
513
514
  };
514
515
  readonly body: any;
516
+ readonly text: () => import("ts-essentials").AsyncOrSync<string>;
515
517
  readonly getUnderlyingResponse: () => Res;
516
518
  };
517
519
  readonly shouldSendLogs: boolean;
@@ -670,6 +672,7 @@ export declare const createAsyncActivity: <Req, Res>(activityType: ActivityType,
670
672
  readonly forEach: (callbackfn: (value: string, key: string, parent: import("..").IHeaders) => void, thisArg?: any) => void;
671
673
  };
672
674
  readonly body: any;
675
+ readonly text: () => import("ts-essentials").AsyncOrSync<string>;
673
676
  readonly getUnderlyingResponse: () => Res;
674
677
  };
675
678
  readonly shouldSendLogs: boolean;
@@ -954,6 +957,7 @@ export declare const createActivityDetails: <Req, Res>(activityType: ActivityTyp
954
957
  readonly forEach: (callbackfn: (value: string, key: string, parent: import("..").IHeaders) => void, thisArg?: any) => void;
955
958
  };
956
959
  readonly body: any;
960
+ readonly text: () => import("ts-essentials").AsyncOrSync<string>;
957
961
  readonly getUnderlyingResponse: () => Res;
958
962
  };
959
963
  readonly shouldSendLogs: boolean;
@@ -1181,6 +1185,7 @@ export declare const createActivityDetails: <Req, Res>(activityType: ActivityTyp
1181
1185
  readonly forEach: (callbackfn: (value: string, key: string, parent: import("..").IHeaders) => void, thisArg?: any) => void;
1182
1186
  };
1183
1187
  readonly body: any;
1188
+ readonly text: () => import("ts-essentials").AsyncOrSync<string>;
1184
1189
  readonly getUnderlyingResponse: () => Res;
1185
1190
  };
1186
1191
  readonly shouldSendLogs: boolean;
@@ -1339,6 +1344,7 @@ export declare const createActivityDetails: <Req, Res>(activityType: ActivityTyp
1339
1344
  readonly forEach: (callbackfn: (value: string, key: string, parent: import("..").IHeaders) => void, thisArg?: any) => void;
1340
1345
  };
1341
1346
  readonly body: any;
1347
+ readonly text: () => import("ts-essentials").AsyncOrSync<string>;
1342
1348
  readonly getUnderlyingResponse: () => Res;
1343
1349
  };
1344
1350
  readonly shouldSendLogs: boolean;
@@ -1623,6 +1629,7 @@ export declare const createAsyncActivityCommonDetails: <Req, Res>(context: {
1623
1629
  readonly forEach: (callbackfn: (value: string, key: string, parent: import("..").IHeaders) => void, thisArg?: any) => void;
1624
1630
  };
1625
1631
  readonly body: any;
1632
+ readonly text: () => import("ts-essentials").AsyncOrSync<string>;
1626
1633
  readonly getUnderlyingResponse: () => Res;
1627
1634
  };
1628
1635
  readonly shouldSendLogs: boolean;
@@ -1850,6 +1857,7 @@ export declare const createAsyncActivityCommonDetails: <Req, Res>(context: {
1850
1857
  readonly forEach: (callbackfn: (value: string, key: string, parent: import("..").IHeaders) => void, thisArg?: any) => void;
1851
1858
  };
1852
1859
  readonly body: any;
1860
+ readonly text: () => import("ts-essentials").AsyncOrSync<string>;
1853
1861
  readonly getUnderlyingResponse: () => Res;
1854
1862
  };
1855
1863
  readonly shouldSendLogs: boolean;
@@ -2008,6 +2016,7 @@ export declare const createAsyncActivityCommonDetails: <Req, Res>(context: {
2008
2016
  readonly forEach: (callbackfn: (value: string, key: string, parent: import("..").IHeaders) => void, thisArg?: any) => void;
2009
2017
  };
2010
2018
  readonly body: any;
2019
+ readonly text: () => import("ts-essentials").AsyncOrSync<string>;
2011
2020
  readonly getUnderlyingResponse: () => Res;
2012
2021
  };
2013
2022
  readonly shouldSendLogs: boolean;
@@ -2292,6 +2301,7 @@ export declare const createCommonActivityDetails: <Req, Res>(config: IConfigurat
2292
2301
  readonly forEach: (callbackfn: (value: string, key: string, parent: import("..").IHeaders) => void, thisArg?: any) => void;
2293
2302
  };
2294
2303
  readonly body: any;
2304
+ readonly text: () => import("ts-essentials").AsyncOrSync<string>;
2295
2305
  readonly getUnderlyingResponse: () => Res;
2296
2306
  };
2297
2307
  readonly shouldSendLogs: boolean;
@@ -2519,6 +2529,7 @@ export declare const createCommonActivityDetails: <Req, Res>(config: IConfigurat
2519
2529
  readonly forEach: (callbackfn: (value: string, key: string, parent: import("..").IHeaders) => void, thisArg?: any) => void;
2520
2530
  };
2521
2531
  readonly body: any;
2532
+ readonly text: () => import("ts-essentials").AsyncOrSync<string>;
2522
2533
  readonly getUnderlyingResponse: () => Res;
2523
2534
  };
2524
2535
  readonly shouldSendLogs: boolean;
@@ -2677,6 +2688,7 @@ export declare const createCommonActivityDetails: <Req, Res>(config: IConfigurat
2677
2688
  readonly forEach: (callbackfn: (value: string, key: string, parent: import("..").IHeaders) => void, thisArg?: any) => void;
2678
2689
  };
2679
2690
  readonly body: any;
2691
+ readonly text: () => import("ts-essentials").AsyncOrSync<string>;
2680
2692
  readonly getUnderlyingResponse: () => Res;
2681
2693
  };
2682
2694
  readonly shouldSendLogs: boolean;
@@ -2961,6 +2973,7 @@ export declare const addRootContextDataToDetails: <Req, Res>(details: CommonActi
2961
2973
  readonly forEach: (callbackfn: (value: string, key: string, parent: import("..").IHeaders) => void, thisArg?: any) => void;
2962
2974
  };
2963
2975
  readonly body: any;
2976
+ readonly text: () => import("ts-essentials").AsyncOrSync<string>;
2964
2977
  readonly getUnderlyingResponse: () => Res;
2965
2978
  };
2966
2979
  readonly shouldSendLogs: boolean;
@@ -3188,6 +3201,7 @@ export declare const addRootContextDataToDetails: <Req, Res>(details: CommonActi
3188
3201
  readonly forEach: (callbackfn: (value: string, key: string, parent: import("..").IHeaders) => void, thisArg?: any) => void;
3189
3202
  };
3190
3203
  readonly body: any;
3204
+ readonly text: () => import("ts-essentials").AsyncOrSync<string>;
3191
3205
  readonly getUnderlyingResponse: () => Res;
3192
3206
  };
3193
3207
  readonly shouldSendLogs: boolean;
@@ -3346,6 +3360,7 @@ export declare const addRootContextDataToDetails: <Req, Res>(details: CommonActi
3346
3360
  readonly forEach: (callbackfn: (value: string, key: string, parent: import("..").IHeaders) => void, thisArg?: any) => void;
3347
3361
  };
3348
3362
  readonly body: any;
3363
+ readonly text: () => import("ts-essentials").AsyncOrSync<string>;
3349
3364
  readonly getUnderlyingResponse: () => Res;
3350
3365
  };
3351
3366
  readonly shouldSendLogs: boolean;
@@ -3688,6 +3703,7 @@ export declare const addRiskApiDataToAsyncActivityCommonDetails: <Req, Res>(deta
3688
3703
  readonly forEach: (callbackfn: (value: string, key: string, parent: import("..").IHeaders) => void, thisArg?: any) => void;
3689
3704
  };
3690
3705
  readonly body: any;
3706
+ readonly text: () => import("ts-essentials").AsyncOrSync<string>;
3691
3707
  readonly getUnderlyingResponse: () => Res;
3692
3708
  };
3693
3709
  readonly shouldSendLogs: boolean;
@@ -3915,6 +3931,7 @@ export declare const addRiskApiDataToAsyncActivityCommonDetails: <Req, Res>(deta
3915
3931
  readonly forEach: (callbackfn: (value: string, key: string, parent: import("..").IHeaders) => void, thisArg?: any) => void;
3916
3932
  };
3917
3933
  readonly body: any;
3934
+ readonly text: () => import("ts-essentials").AsyncOrSync<string>;
3918
3935
  readonly getUnderlyingResponse: () => Res;
3919
3936
  };
3920
3937
  readonly shouldSendLogs: boolean;
@@ -4073,6 +4090,7 @@ export declare const addRiskApiDataToAsyncActivityCommonDetails: <Req, Res>(deta
4073
4090
  readonly forEach: (callbackfn: (value: string, key: string, parent: import("..").IHeaders) => void, thisArg?: any) => void;
4074
4091
  };
4075
4092
  readonly body: any;
4093
+ readonly text: () => import("ts-essentials").AsyncOrSync<string>;
4076
4094
  readonly getUnderlyingResponse: () => Res;
4077
4095
  };
4078
4096
  readonly shouldSendLogs: boolean;
@@ -4357,6 +4375,7 @@ export declare const addResponseDataToAsyncActivityCommonDetails: <Req, Res>(det
4357
4375
  readonly forEach: (callbackfn: (value: string, key: string, parent: import("..").IHeaders) => void, thisArg?: any) => void;
4358
4376
  };
4359
4377
  readonly body: any;
4378
+ readonly text: () => import("ts-essentials").AsyncOrSync<string>;
4360
4379
  readonly getUnderlyingResponse: () => Res;
4361
4380
  };
4362
4381
  readonly shouldSendLogs: boolean;
@@ -4584,6 +4603,7 @@ export declare const addResponseDataToAsyncActivityCommonDetails: <Req, Res>(det
4584
4603
  readonly forEach: (callbackfn: (value: string, key: string, parent: import("..").IHeaders) => void, thisArg?: any) => void;
4585
4604
  };
4586
4605
  readonly body: any;
4606
+ readonly text: () => import("ts-essentials").AsyncOrSync<string>;
4587
4607
  readonly getUnderlyingResponse: () => Res;
4588
4608
  };
4589
4609
  readonly shouldSendLogs: boolean;
@@ -4742,6 +4762,7 @@ export declare const addResponseDataToAsyncActivityCommonDetails: <Req, Res>(det
4742
4762
  readonly forEach: (callbackfn: (value: string, key: string, parent: import("..").IHeaders) => void, thisArg?: any) => void;
4743
4763
  };
4744
4764
  readonly body: any;
4765
+ readonly text: () => import("ts-essentials").AsyncOrSync<string>;
4745
4766
  readonly getUnderlyingResponse: () => Res;
4746
4767
  };
4747
4768
  readonly shouldSendLogs: boolean;
@@ -5026,6 +5047,7 @@ export declare const createPageRequestedActivityDetails: <Req, Res>(context: {
5026
5047
  readonly forEach: (callbackfn: (value: string, key: string, parent: import("..").IHeaders) => void, thisArg?: any) => void;
5027
5048
  };
5028
5049
  readonly body: any;
5050
+ readonly text: () => import("ts-essentials").AsyncOrSync<string>;
5029
5051
  readonly getUnderlyingResponse: () => Res;
5030
5052
  };
5031
5053
  readonly shouldSendLogs: boolean;
@@ -5253,6 +5275,7 @@ export declare const createPageRequestedActivityDetails: <Req, Res>(context: {
5253
5275
  readonly forEach: (callbackfn: (value: string, key: string, parent: import("..").IHeaders) => void, thisArg?: any) => void;
5254
5276
  };
5255
5277
  readonly body: any;
5278
+ readonly text: () => import("ts-essentials").AsyncOrSync<string>;
5256
5279
  readonly getUnderlyingResponse: () => Res;
5257
5280
  };
5258
5281
  readonly shouldSendLogs: boolean;
@@ -5411,6 +5434,7 @@ export declare const createPageRequestedActivityDetails: <Req, Res>(context: {
5411
5434
  readonly forEach: (callbackfn: (value: string, key: string, parent: import("..").IHeaders) => void, thisArg?: any) => void;
5412
5435
  };
5413
5436
  readonly body: any;
5437
+ readonly text: () => import("ts-essentials").AsyncOrSync<string>;
5414
5438
  readonly getUnderlyingResponse: () => Res;
5415
5439
  };
5416
5440
  readonly shouldSendLogs: boolean;
@@ -5695,6 +5719,7 @@ export declare const createBlockActivityDetails: <Req, Res>(context: {
5695
5719
  readonly forEach: (callbackfn: (value: string, key: string, parent: import("..").IHeaders) => void, thisArg?: any) => void;
5696
5720
  };
5697
5721
  readonly body: any;
5722
+ readonly text: () => import("ts-essentials").AsyncOrSync<string>;
5698
5723
  readonly getUnderlyingResponse: () => Res;
5699
5724
  };
5700
5725
  readonly shouldSendLogs: boolean;
@@ -5922,6 +5947,7 @@ export declare const createBlockActivityDetails: <Req, Res>(context: {
5922
5947
  readonly forEach: (callbackfn: (value: string, key: string, parent: import("..").IHeaders) => void, thisArg?: any) => void;
5923
5948
  };
5924
5949
  readonly body: any;
5950
+ readonly text: () => import("ts-essentials").AsyncOrSync<string>;
5925
5951
  readonly getUnderlyingResponse: () => Res;
5926
5952
  };
5927
5953
  readonly shouldSendLogs: boolean;
@@ -6080,6 +6106,7 @@ export declare const createBlockActivityDetails: <Req, Res>(context: {
6080
6106
  readonly forEach: (callbackfn: (value: string, key: string, parent: import("..").IHeaders) => void, thisArg?: any) => void;
6081
6107
  };
6082
6108
  readonly body: any;
6109
+ readonly text: () => import("ts-essentials").AsyncOrSync<string>;
6083
6110
  readonly getUnderlyingResponse: () => Res;
6084
6111
  };
6085
6112
  readonly shouldSendLogs: boolean;
@@ -6364,6 +6391,7 @@ export declare const createAdditionalS2SActivityDetails: <Req, Res>({ ciSendRawU
6364
6391
  readonly forEach: (callbackfn: (value: string, key: string, parent: import("..").IHeaders) => void, thisArg?: any) => void;
6365
6392
  };
6366
6393
  readonly body: any;
6394
+ readonly text: () => import("ts-essentials").AsyncOrSync<string>;
6367
6395
  readonly getUnderlyingResponse: () => Res;
6368
6396
  };
6369
6397
  readonly shouldSendLogs: boolean;
@@ -6591,6 +6619,7 @@ export declare const createAdditionalS2SActivityDetails: <Req, Res>({ ciSendRawU
6591
6619
  readonly forEach: (callbackfn: (value: string, key: string, parent: import("..").IHeaders) => void, thisArg?: any) => void;
6592
6620
  };
6593
6621
  readonly body: any;
6622
+ readonly text: () => import("ts-essentials").AsyncOrSync<string>;
6594
6623
  readonly getUnderlyingResponse: () => Res;
6595
6624
  };
6596
6625
  readonly shouldSendLogs: boolean;
@@ -6749,6 +6778,7 @@ export declare const createAdditionalS2SActivityDetails: <Req, Res>({ ciSendRawU
6749
6778
  readonly forEach: (callbackfn: (value: string, key: string, parent: import("..").IHeaders) => void, thisArg?: any) => void;
6750
6779
  };
6751
6780
  readonly body: any;
6781
+ readonly text: () => import("ts-essentials").AsyncOrSync<string>;
6752
6782
  readonly getUnderlyingResponse: () => Res;
6753
6783
  };
6754
6784
  readonly shouldSendLogs: boolean;
@@ -281,6 +281,7 @@ export declare const createBlockData: <Req, Res>(config: IConfiguration<Req, Res
281
281
  readonly forEach: (callbackfn: (value: string, key: string, parent: import("..").IHeaders) => void, thisArg?: any) => void;
282
282
  };
283
283
  readonly body: any;
284
+ readonly text: () => import("ts-essentials").AsyncOrSync<string>;
284
285
  readonly getUnderlyingResponse: () => Res;
285
286
  };
286
287
  readonly shouldSendLogs: boolean;
@@ -508,6 +509,7 @@ export declare const createBlockData: <Req, Res>(config: IConfiguration<Req, Res
508
509
  readonly forEach: (callbackfn: (value: string, key: string, parent: import("..").IHeaders) => void, thisArg?: any) => void;
509
510
  };
510
511
  readonly body: any;
512
+ readonly text: () => import("ts-essentials").AsyncOrSync<string>;
511
513
  readonly getUnderlyingResponse: () => Res;
512
514
  };
513
515
  readonly shouldSendLogs: boolean;
@@ -666,6 +668,7 @@ export declare const createBlockData: <Req, Res>(config: IConfiguration<Req, Res
666
668
  readonly forEach: (callbackfn: (value: string, key: string, parent: import("..").IHeaders) => void, thisArg?: any) => void;
667
669
  };
668
670
  readonly body: any;
671
+ readonly text: () => import("ts-essentials").AsyncOrSync<string>;
669
672
  readonly getUnderlyingResponse: () => Res;
670
673
  };
671
674
  readonly shouldSendLogs: boolean;
@@ -1,6 +1,6 @@
1
1
  import { AsyncOrSync } from 'ts-essentials';
2
2
  import { IFormData } from './IFormData';
3
- import { IUrlSearchParams } from '../../utils/url/IUrlSearchParams';
3
+ import { IUrlSearchParams } from '../../utils';
4
4
  export interface IBody {
5
5
  /**
6
6
  * the unread body.
@@ -1,3 +1,4 @@
1
+ import { AsyncOrSync } from 'ts-essentials';
1
2
  import { IHeaders } from './IHeaders';
2
3
  /**
3
4
  * Describes a response that is going to be returned to the end user.
@@ -8,13 +9,17 @@ export interface IOutgoingResponse<Res> {
8
9
  */
9
10
  readonly status: number | null;
10
11
  /**
11
- * the response headers (for read usage)
12
+ * the response headers (for read and write)
12
13
  */
13
14
  readonly headers: IHeaders | null;
14
15
  /**
15
- * the response body.
16
+ * the response body
16
17
  */
17
18
  readonly body: any;
19
+ /**
20
+ * Converts the body to text (plain/text, text/html, etc.)
21
+ */
22
+ text(): AsyncOrSync<string>;
18
23
  /**
19
24
  * Returns the platform-specific implementation of the response.
20
25
  */
@@ -281,6 +281,7 @@ export declare namespace MonitoredRequestUtils {
281
281
  readonly forEach: (callbackfn: (value: string, key: string, parent: import("../http").IHeaders) => void, thisArg?: any) => void;
282
282
  };
283
283
  readonly body: any;
284
+ readonly text: () => import("ts-essentials").AsyncOrSync<string>;
284
285
  readonly getUnderlyingResponse: () => Res;
285
286
  };
286
287
  readonly shouldSendLogs: boolean;
@@ -508,6 +509,7 @@ export declare namespace MonitoredRequestUtils {
508
509
  readonly forEach: (callbackfn: (value: string, key: string, parent: import("../http").IHeaders) => void, thisArg?: any) => void;
509
510
  };
510
511
  readonly body: any;
512
+ readonly text: () => import("ts-essentials").AsyncOrSync<string>;
511
513
  readonly getUnderlyingResponse: () => Res;
512
514
  };
513
515
  readonly shouldSendLogs: boolean;
@@ -666,6 +668,7 @@ export declare namespace MonitoredRequestUtils {
666
668
  readonly forEach: (callbackfn: (value: string, key: string, parent: import("../http").IHeaders) => void, thisArg?: any) => void;
667
669
  };
668
670
  readonly body: any;
671
+ readonly text: () => import("ts-essentials").AsyncOrSync<string>;
669
672
  readonly getUnderlyingResponse: () => Res;
670
673
  };
671
674
  readonly shouldSendLogs: boolean;
@@ -952,6 +955,7 @@ export declare namespace MonitoredRequestUtils {
952
955
  readonly forEach: (callbackfn: (value: string, key: string, parent: import("../http").IHeaders) => void, thisArg?: any) => void;
953
956
  };
954
957
  readonly body: any;
958
+ readonly text: () => import("ts-essentials").AsyncOrSync<string>;
955
959
  readonly getUnderlyingResponse: () => Res;
956
960
  };
957
961
  readonly shouldSendLogs: boolean;
@@ -1179,6 +1183,7 @@ export declare namespace MonitoredRequestUtils {
1179
1183
  readonly forEach: (callbackfn: (value: string, key: string, parent: import("../http").IHeaders) => void, thisArg?: any) => void;
1180
1184
  };
1181
1185
  readonly body: any;
1186
+ readonly text: () => import("ts-essentials").AsyncOrSync<string>;
1182
1187
  readonly getUnderlyingResponse: () => Res;
1183
1188
  };
1184
1189
  readonly shouldSendLogs: boolean;
@@ -1337,6 +1342,7 @@ export declare namespace MonitoredRequestUtils {
1337
1342
  readonly forEach: (callbackfn: (value: string, key: string, parent: import("../http").IHeaders) => void, thisArg?: any) => void;
1338
1343
  };
1339
1344
  readonly body: any;
1345
+ readonly text: () => import("ts-essentials").AsyncOrSync<string>;
1340
1346
  readonly getUnderlyingResponse: () => Res;
1341
1347
  };
1342
1348
  readonly shouldSendLogs: boolean;
@@ -1621,6 +1627,7 @@ export declare namespace MonitoredRequestUtils {
1621
1627
  readonly forEach: (callbackfn: (value: string, key: string, parent: import("../http").IHeaders) => void, thisArg?: any) => void;
1622
1628
  };
1623
1629
  readonly body: any;
1630
+ readonly text: () => import("ts-essentials").AsyncOrSync<string>;
1624
1631
  readonly getUnderlyingResponse: () => Res;
1625
1632
  };
1626
1633
  readonly shouldSendLogs: boolean;
@@ -1848,6 +1855,7 @@ export declare namespace MonitoredRequestUtils {
1848
1855
  readonly forEach: (callbackfn: (value: string, key: string, parent: import("../http").IHeaders) => void, thisArg?: any) => void;
1849
1856
  };
1850
1857
  readonly body: any;
1858
+ readonly text: () => import("ts-essentials").AsyncOrSync<string>;
1851
1859
  readonly getUnderlyingResponse: () => Res;
1852
1860
  };
1853
1861
  readonly shouldSendLogs: boolean;
@@ -2006,6 +2014,7 @@ export declare namespace MonitoredRequestUtils {
2006
2014
  readonly forEach: (callbackfn: (value: string, key: string, parent: import("../http").IHeaders) => void, thisArg?: any) => void;
2007
2015
  };
2008
2016
  readonly body: any;
2017
+ readonly text: () => import("ts-essentials").AsyncOrSync<string>;
2009
2018
  readonly getUnderlyingResponse: () => Res;
2010
2019
  };
2011
2020
  readonly shouldSendLogs: boolean;
@@ -283,6 +283,7 @@ export declare namespace PXHDUtils {
283
283
  readonly forEach: (callbackfn: (value: string, key: string, parent: import("../http").IHeaders) => void, thisArg?: any) => void;
284
284
  };
285
285
  readonly body: any;
286
+ readonly text: () => import("ts-essentials").AsyncOrSync<string>;
286
287
  readonly getUnderlyingResponse: () => Res;
287
288
  };
288
289
  readonly shouldSendLogs: boolean;
@@ -510,6 +511,7 @@ export declare namespace PXHDUtils {
510
511
  readonly forEach: (callbackfn: (value: string, key: string, parent: import("../http").IHeaders) => void, thisArg?: any) => void;
511
512
  };
512
513
  readonly body: any;
514
+ readonly text: () => import("ts-essentials").AsyncOrSync<string>;
513
515
  readonly getUnderlyingResponse: () => Res;
514
516
  };
515
517
  readonly shouldSendLogs: boolean;
@@ -668,6 +670,7 @@ export declare namespace PXHDUtils {
668
670
  readonly forEach: (callbackfn: (value: string, key: string, parent: import("../http").IHeaders) => void, thisArg?: any) => void;
669
671
  };
670
672
  readonly body: any;
673
+ readonly text: () => import("ts-essentials").AsyncOrSync<string>;
671
674
  readonly getUnderlyingResponse: () => Res;
672
675
  };
673
676
  readonly shouldSendLogs: boolean;
@@ -952,6 +955,7 @@ export declare namespace PXHDUtils {
952
955
  readonly forEach: (callbackfn: (value: string, key: string, parent: import("../http").IHeaders) => void, thisArg?: any) => void;
953
956
  };
954
957
  readonly body: any;
958
+ readonly text: () => import("ts-essentials").AsyncOrSync<string>;
955
959
  readonly getUnderlyingResponse: () => Res;
956
960
  };
957
961
  readonly shouldSendLogs: boolean;
@@ -1179,6 +1183,7 @@ export declare namespace PXHDUtils {
1179
1183
  readonly forEach: (callbackfn: (value: string, key: string, parent: import("../http").IHeaders) => void, thisArg?: any) => void;
1180
1184
  };
1181
1185
  readonly body: any;
1186
+ readonly text: () => import("ts-essentials").AsyncOrSync<string>;
1182
1187
  readonly getUnderlyingResponse: () => Res;
1183
1188
  };
1184
1189
  readonly shouldSendLogs: boolean;
@@ -1337,6 +1342,7 @@ export declare namespace PXHDUtils {
1337
1342
  readonly forEach: (callbackfn: (value: string, key: string, parent: import("../http").IHeaders) => void, thisArg?: any) => void;
1338
1343
  };
1339
1344
  readonly body: any;
1345
+ readonly text: () => import("ts-essentials").AsyncOrSync<string>;
1340
1346
  readonly getUnderlyingResponse: () => Res;
1341
1347
  };
1342
1348
  readonly shouldSendLogs: boolean;
@@ -282,6 +282,7 @@ export declare namespace SensitiveRequestUtils {
282
282
  readonly forEach: (callbackfn: (value: string, key: string, parent: import("..").IHeaders) => void, thisArg?: any) => void;
283
283
  };
284
284
  readonly body: any;
285
+ readonly text: () => import("ts-essentials").AsyncOrSync<string>;
285
286
  readonly getUnderlyingResponse: () => Res;
286
287
  };
287
288
  readonly shouldSendLogs: boolean;
@@ -509,6 +510,7 @@ export declare namespace SensitiveRequestUtils {
509
510
  readonly forEach: (callbackfn: (value: string, key: string, parent: import("..").IHeaders) => void, thisArg?: any) => void;
510
511
  };
511
512
  readonly body: any;
513
+ readonly text: () => import("ts-essentials").AsyncOrSync<string>;
512
514
  readonly getUnderlyingResponse: () => Res;
513
515
  };
514
516
  readonly shouldSendLogs: boolean;
@@ -667,6 +669,7 @@ export declare namespace SensitiveRequestUtils {
667
669
  readonly forEach: (callbackfn: (value: string, key: string, parent: import("..").IHeaders) => void, thisArg?: any) => void;
668
670
  };
669
671
  readonly body: any;
672
+ readonly text: () => import("ts-essentials").AsyncOrSync<string>;
670
673
  readonly getUnderlyingResponse: () => Res;
671
674
  };
672
675
  readonly shouldSendLogs: boolean;
@@ -953,6 +956,7 @@ export declare namespace SensitiveRequestUtils {
953
956
  readonly forEach: (callbackfn: (value: string, key: string, parent: import("..").IHeaders) => void, thisArg?: any) => void;
954
957
  };
955
958
  readonly body: any;
959
+ readonly text: () => import("ts-essentials").AsyncOrSync<string>;
956
960
  readonly getUnderlyingResponse: () => Res;
957
961
  };
958
962
  readonly shouldSendLogs: boolean;
@@ -1180,6 +1184,7 @@ export declare namespace SensitiveRequestUtils {
1180
1184
  readonly forEach: (callbackfn: (value: string, key: string, parent: import("..").IHeaders) => void, thisArg?: any) => void;
1181
1185
  };
1182
1186
  readonly body: any;
1187
+ readonly text: () => import("ts-essentials").AsyncOrSync<string>;
1183
1188
  readonly getUnderlyingResponse: () => Res;
1184
1189
  };
1185
1190
  readonly shouldSendLogs: boolean;
@@ -1338,6 +1343,7 @@ export declare namespace SensitiveRequestUtils {
1338
1343
  readonly forEach: (callbackfn: (value: string, key: string, parent: import("..").IHeaders) => void, thisArg?: any) => void;
1339
1344
  };
1340
1345
  readonly body: any;
1346
+ readonly text: () => import("ts-essentials").AsyncOrSync<string>;
1341
1347
  readonly getUnderlyingResponse: () => Res;
1342
1348
  };
1343
1349
  readonly shouldSendLogs: boolean;
@@ -11,4 +11,4 @@ export declare const PUSH_DATA_FEATURE_HEADER_NAME = "x-px-feature";
11
11
  export declare const EMAIL_ADDRESS_REGEX: RegExp;
12
12
  export declare const URL_REGEX: RegExp;
13
13
  export declare const REGEX_STRUCTURE: RegExp;
14
- export declare const CORE_MODULE_VERSION = "JS Core 0.21.0";
14
+ export declare const CORE_MODULE_VERSION = "JS Core 0.21.1";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "perimeterx-js-core",
3
- "version": "0.21.0",
3
+ "version": "0.21.1",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "typesVersions": {