@cloudcare/browser-core 2.0.15 → 2.0.16

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.
@@ -88,6 +88,7 @@ var TraceType = {
88
88
  ZIPKIN_MULTI_HEADER: 'zipkin',
89
89
  ZIPKIN_SINGLE_HEADER: 'zipkin_single_header',
90
90
  W3C_TRACEPARENT: 'w3c_traceparent',
91
+ W3C_TRACEPARENT_64: 'w3c_traceparent_64bit',
91
92
  SKYWALKING_V3: 'skywalking_v3',
92
93
  JAEGER: 'jaeger'
93
94
  };
@@ -48,6 +48,7 @@ exports.isFunction = exports.isEmptyObject = exports.isElement = exports.isDate
48
48
  exports.isHashAnAnchor = isHashAnAnchor;
49
49
  exports.isIE = isIE;
50
50
  exports.isJSONString = void 0;
51
+ exports.isMatchOption = isMatchOption;
51
52
  exports.isNullUndefinedDefaultValue = isNullUndefinedDefaultValue;
52
53
  exports.isObject = exports.isNumber = void 0;
53
54
  exports.isPercentage = isPercentage;
@@ -1889,6 +1890,11 @@ function safeTruncate(candidate, length) {
1889
1890
  return candidate.slice(0, length);
1890
1891
  }
1891
1892
 
1893
+ function isMatchOption(item) {
1894
+ var itemType = getType(item);
1895
+ return itemType === 'string' || itemType === 'function' || item instanceof RegExp;
1896
+ }
1897
+
1892
1898
  function includes(candidate, search) {
1893
1899
  // tslint:disable-next-line: no-unsafe-any
1894
1900
  return candidate.indexOf(search) !== -1;
@@ -75,6 +75,7 @@ export var TraceType = {
75
75
  ZIPKIN_MULTI_HEADER: 'zipkin',
76
76
  ZIPKIN_SINGLE_HEADER: 'zipkin_single_header',
77
77
  W3C_TRACEPARENT: 'w3c_traceparent',
78
+ W3C_TRACEPARENT_64: 'w3c_traceparent_64bit',
78
79
  SKYWALKING_V3: 'skywalking_v3',
79
80
  JAEGER: 'jaeger'
80
81
  };
@@ -1558,6 +1558,10 @@ export function safeTruncate(candidate, length) {
1558
1558
 
1559
1559
  return candidate.slice(0, length);
1560
1560
  }
1561
+ export function isMatchOption(item) {
1562
+ var itemType = getType(item);
1563
+ return itemType === 'string' || itemType === 'function' || item instanceof RegExp;
1564
+ }
1561
1565
  export function includes(candidate, search) {
1562
1566
  // tslint:disable-next-line: no-unsafe-any
1563
1567
  return candidate.indexOf(search) !== -1;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloudcare/browser-core",
3
- "version": "2.0.15",
3
+ "version": "2.0.16",
4
4
  "main": "cjs/index.js",
5
5
  "module": "esm/index.js",
6
6
  "scripts": {
@@ -20,5 +20,5 @@
20
20
  "author": "dataflux",
21
21
  "license": "MIT",
22
22
  "description": "DataFlux RUM Web 端数据指标监控",
23
- "gitHead": "a62a6d650316cdd0471530a2954add77a21ebaad"
23
+ "gitHead": "d68cc2e25637dbe6a09461ca4186b882f878c169"
24
24
  }
@@ -78,6 +78,7 @@ export var TraceType = {
78
78
  ZIPKIN_MULTI_HEADER: 'zipkin',
79
79
  ZIPKIN_SINGLE_HEADER: 'zipkin_single_header',
80
80
  W3C_TRACEPARENT: 'w3c_traceparent',
81
+ W3C_TRACEPARENT_64: 'w3c_traceparent_64bit',
81
82
  SKYWALKING_V3: 'skywalking_v3',
82
83
  JAEGER: 'jaeger'
83
84
  }
@@ -1542,7 +1542,12 @@ export function safeTruncate(candidate, length) {
1542
1542
  }
1543
1543
  return candidate.slice(0, length)
1544
1544
  }
1545
-
1545
+ export function isMatchOption(item) {
1546
+ const itemType = getType(item)
1547
+ return (
1548
+ itemType === 'string' || itemType === 'function' || item instanceof RegExp
1549
+ )
1550
+ }
1546
1551
  export function includes(candidate, search) {
1547
1552
  // tslint:disable-next-line: no-unsafe-any
1548
1553
  return candidate.indexOf(search) !== -1