perimeterx-js-core 0.24.2 → 0.24.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.
- package/lib/cjs/telemetry/DefaultTelemetry.js +4 -0
- package/lib/cjs/utils/constants.js +1 -1
- package/lib/esm/telemetry/DefaultTelemetry.js +4 -0
- package/lib/esm/utils/constants.js +1 -1
- package/lib/types/telemetry/model/TelemetryActivity.d.ts +2 -0
- package/lib/types/utils/constants.d.ts +1 -1
- package/package.json +1 -1
|
@@ -161,6 +161,10 @@ var DefaultTelemetry = /** @class */ (function () {
|
|
|
161
161
|
osName: 'os_name',
|
|
162
162
|
nodeName: 'node_name',
|
|
163
163
|
});
|
|
164
|
+
(0, utils_1.transferExistingProperties)(this.config, activity.details, {
|
|
165
|
+
remoteConfigId: 'remote_config_id',
|
|
166
|
+
remoteConfigVersion: 'remote_config_version',
|
|
167
|
+
});
|
|
164
168
|
return activity;
|
|
165
169
|
};
|
|
166
170
|
return DefaultTelemetry;
|
|
@@ -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]+))?)(\/?[^?#]*)(\?[^#]*|)(#.*|)$/;
|
|
16
16
|
exports.REGEX_STRUCTURE = /^\/(.+?)\/([gimsuyvd]*)$/;
|
|
17
|
-
exports.CORE_MODULE_VERSION = 'JS Core 0.24.
|
|
17
|
+
exports.CORE_MODULE_VERSION = 'JS Core 0.24.3';
|
|
@@ -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
|
}
|
|
@@ -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.3';
|
|
@@ -6,6 +6,8 @@ export type TelemetryActivityDetails<Req, Res, Added, Removed> = {
|
|
|
6
6
|
update_reason: 'command';
|
|
7
7
|
node_name?: string;
|
|
8
8
|
os_name?: string;
|
|
9
|
+
remote_config_id?: string;
|
|
10
|
+
remote_config_version?: string;
|
|
9
11
|
};
|
|
10
12
|
export type TelemetryActivity<Req, Res, Added, Removed> = {
|
|
11
13
|
type: ActivityType.ENFORCER_TELEMETRY;
|
|
@@ -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.24.
|
|
14
|
+
export declare const CORE_MODULE_VERSION = "JS Core 0.24.3";
|