perimeterx-js-core 1.2.1 → 1.2.3
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.
|
@@ -134,7 +134,8 @@ exports.addCustomParametersToDetails = addCustomParametersToDetails;
|
|
|
134
134
|
var addProductDataToDetails = function (details, productData) {
|
|
135
135
|
if (productData.ad) {
|
|
136
136
|
if (productData.ad.appUserId) {
|
|
137
|
-
|
|
137
|
+
var appUserId = productData.ad.appUserId;
|
|
138
|
+
details.app_user_id = typeof appUserId === 'string' ? appUserId : "".concat(appUserId);
|
|
138
139
|
}
|
|
139
140
|
if (productData.ad.additionalFields) {
|
|
140
141
|
details.jwt_additional_fields = productData.ad.additionalFields;
|
|
@@ -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 1.2.
|
|
18
|
+
exports.CORE_MODULE_VERSION = 'JS Core 1.2.3';
|
|
@@ -121,7 +121,8 @@ export const addCustomParametersToDetails = (details, customParameters, response
|
|
|
121
121
|
export const addProductDataToDetails = (details, productData) => {
|
|
122
122
|
if (productData.ad) {
|
|
123
123
|
if (productData.ad.appUserId) {
|
|
124
|
-
|
|
124
|
+
const appUserId = productData.ad.appUserId;
|
|
125
|
+
details.app_user_id = typeof appUserId === 'string' ? appUserId : `${appUserId}`;
|
|
125
126
|
}
|
|
126
127
|
if (productData.ad.additionalFields) {
|
|
127
128
|
details.jwt_additional_fields = productData.ad.additionalFields;
|
|
@@ -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 1.2.
|
|
15
|
+
export const CORE_MODULE_VERSION = 'JS Core 1.2.3';
|
|
@@ -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 1.2.
|
|
15
|
+
export declare const CORE_MODULE_VERSION = "JS Core 1.2.3";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "perimeterx-js-core",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.3",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"typesVersions": {
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"ip-range-check": "^0.2.0",
|
|
48
48
|
"js-base64": "^3.7.2",
|
|
49
49
|
"ts-essentials": "^10.0.0",
|
|
50
|
-
"undici": "^6.
|
|
50
|
+
"undici": "^6.29.1",
|
|
51
51
|
"uuid": "^11.1.1"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|