@newrelic/browser-agent 1.318.0-rc.2 → 1.318.0-rc.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/dist/cjs/common/constants/env.cdn.js +1 -1
- package/dist/cjs/common/constants/env.npm.js +1 -1
- package/dist/cjs/common/serialize/bel-serializer.js +3 -3
- package/dist/esm/common/constants/env.cdn.js +1 -1
- package/dist/esm/common/constants/env.npm.js +1 -1
- package/dist/esm/common/serialize/bel-serializer.js +3 -3
- package/dist/types/common/serialize/bel-serializer.d.ts +1 -1
- package/dist/types/common/serialize/bel-serializer.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/common/serialize/bel-serializer.js +3 -3
|
@@ -17,7 +17,7 @@ exports.VERSION = exports.RRWEB_VERSION = exports.RRWEB_PACKAGE_NAME = exports.D
|
|
|
17
17
|
/**
|
|
18
18
|
* Exposes the version of the agent
|
|
19
19
|
*/
|
|
20
|
-
const VERSION = exports.VERSION = "1.318.0-rc.
|
|
20
|
+
const VERSION = exports.VERSION = "1.318.0-rc.3";
|
|
21
21
|
|
|
22
22
|
/**
|
|
23
23
|
* Exposes the build type of the agent
|
|
@@ -17,7 +17,7 @@ exports.VERSION = exports.RRWEB_VERSION = exports.RRWEB_PACKAGE_NAME = exports.D
|
|
|
17
17
|
/**
|
|
18
18
|
* Exposes the version of the agent
|
|
19
19
|
*/
|
|
20
|
-
const VERSION = exports.VERSION = "1.318.0-rc.
|
|
20
|
+
const VERSION = exports.VERSION = "1.318.0-rc.3";
|
|
21
21
|
|
|
22
22
|
/**
|
|
23
23
|
* Exposes the build type of the agent
|
|
@@ -28,9 +28,9 @@ function getAddStringContext(obfuscator, truncator) {
|
|
|
28
28
|
let stringTableIdx = 0;
|
|
29
29
|
const stringTable = Object.prototype.hasOwnProperty.call(Object, 'create') ? Object.create(null) : {};
|
|
30
30
|
return addString;
|
|
31
|
-
function addString(str) {
|
|
31
|
+
function addString(str, obfuscate = true) {
|
|
32
32
|
if (typeof str === 'undefined' || str === '') return '';
|
|
33
|
-
str = obfuscator?.obfuscateString(String(str)) ?? String(str);
|
|
33
|
+
str = obfuscate ? obfuscator?.obfuscateString(String(str)) ?? String(str) : String(str);
|
|
34
34
|
str = truncator?.(str) ?? str;
|
|
35
35
|
if (hasOwnProp.call(stringTable, str)) {
|
|
36
36
|
return numeric(stringTable[str], true);
|
|
@@ -47,7 +47,7 @@ function addCustomAttributes(attrs, addString) {
|
|
|
47
47
|
var type = 5;
|
|
48
48
|
var serializedValue;
|
|
49
49
|
// add key to string table first
|
|
50
|
-
key = addString(key);
|
|
50
|
+
key = addString(key, false);
|
|
51
51
|
switch (typeof val) {
|
|
52
52
|
case 'object':
|
|
53
53
|
if (val) {
|
|
@@ -19,9 +19,9 @@ export function getAddStringContext(obfuscator, truncator) {
|
|
|
19
19
|
let stringTableIdx = 0;
|
|
20
20
|
const stringTable = Object.prototype.hasOwnProperty.call(Object, 'create') ? Object.create(null) : {};
|
|
21
21
|
return addString;
|
|
22
|
-
function addString(str) {
|
|
22
|
+
function addString(str, obfuscate = true) {
|
|
23
23
|
if (typeof str === 'undefined' || str === '') return '';
|
|
24
|
-
str = obfuscator?.obfuscateString(String(str)) ?? String(str);
|
|
24
|
+
str = obfuscate ? obfuscator?.obfuscateString(String(str)) ?? String(str) : String(str);
|
|
25
25
|
str = truncator?.(str) ?? str;
|
|
26
26
|
if (hasOwnProp.call(stringTable, str)) {
|
|
27
27
|
return numeric(stringTable[str], true);
|
|
@@ -38,7 +38,7 @@ export function addCustomAttributes(attrs, addString) {
|
|
|
38
38
|
var type = 5;
|
|
39
39
|
var serializedValue;
|
|
40
40
|
// add key to string table first
|
|
41
|
-
key = addString(key);
|
|
41
|
+
key = addString(key, false);
|
|
42
42
|
switch (typeof val) {
|
|
43
43
|
case 'object':
|
|
44
44
|
if (val) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export function nullable(val: any, fn: any, comma: any): string;
|
|
2
2
|
export function numeric(n: any, noDefault: any): string;
|
|
3
|
-
export function getAddStringContext(obfuscator: any, truncator: any): (str: any) => string;
|
|
3
|
+
export function getAddStringContext(obfuscator: any, truncator: any): (str: any, obfuscate?: boolean) => string;
|
|
4
4
|
export function addCustomAttributes(attrs: any, addString: any): any[];
|
|
5
5
|
//# sourceMappingURL=bel-serializer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bel-serializer.d.ts","sourceRoot":"","sources":["../../../../src/common/serialize/bel-serializer.js"],"names":[],"mappings":"AAUA,gEAIC;AAED,wDAKC;AAED,
|
|
1
|
+
{"version":3,"file":"bel-serializer.d.ts","sourceRoot":"","sources":["../../../../src/common/serialize/bel-serializer.js"],"names":[],"mappings":"AAUA,gEAIC;AAED,wDAKC;AAED,gHAiBC;AAED,uEAwCC"}
|
package/package.json
CHANGED
|
@@ -27,9 +27,9 @@ export function getAddStringContext (obfuscator, truncator) {
|
|
|
27
27
|
|
|
28
28
|
return addString
|
|
29
29
|
|
|
30
|
-
function addString (str) {
|
|
30
|
+
function addString (str, obfuscate = true) {
|
|
31
31
|
if (typeof str === 'undefined' || str === '') return ''
|
|
32
|
-
str = obfuscator?.obfuscateString(String(str)) ?? String(str)
|
|
32
|
+
str = obfuscate ? (obfuscator?.obfuscateString(String(str)) ?? String(str)) : String(str)
|
|
33
33
|
str = truncator?.(str) ?? str
|
|
34
34
|
if (hasOwnProp.call(stringTable, str)) {
|
|
35
35
|
return numeric(stringTable[str], true)
|
|
@@ -48,7 +48,7 @@ export function addCustomAttributes (attrs, addString) {
|
|
|
48
48
|
var type = 5
|
|
49
49
|
var serializedValue
|
|
50
50
|
// add key to string table first
|
|
51
|
-
key = addString(key)
|
|
51
|
+
key = addString(key, false)
|
|
52
52
|
|
|
53
53
|
switch (typeof val) {
|
|
54
54
|
case 'object':
|