@arms/rum-core
Advanced tools
Comparing version 0.0.4 to 0.0.5
@@ -11,3 +11,7 @@ import Client from './model/client'; | ||
export * from './utils/base'; | ||
export * from './utils/polyfills'; | ||
export * from './utils/is'; | ||
export * from './utils/number'; | ||
export * from './utils/match'; | ||
export * from './utils/trace'; | ||
export { Client, Context, Reporter }; |
@@ -65,2 +65,9 @@ "use strict"; | ||
}); | ||
var _polyfills = require("./utils/polyfills"); | ||
Object.keys(_polyfills).forEach(function (key) { | ||
if (key === "default" || key === "__esModule") return; | ||
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return; | ||
if (key in exports && exports[key] === _polyfills[key]) return; | ||
exports[key] = _polyfills[key]; | ||
}); | ||
var _is = require("./utils/is"); | ||
@@ -72,2 +79,23 @@ Object.keys(_is).forEach(function (key) { | ||
exports[key] = _is[key]; | ||
}); | ||
var _number = require("./utils/number"); | ||
Object.keys(_number).forEach(function (key) { | ||
if (key === "default" || key === "__esModule") return; | ||
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return; | ||
if (key in exports && exports[key] === _number[key]) return; | ||
exports[key] = _number[key]; | ||
}); | ||
var _match = require("./utils/match"); | ||
Object.keys(_match).forEach(function (key) { | ||
if (key === "default" || key === "__esModule") return; | ||
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return; | ||
if (key in exports && exports[key] === _match[key]) return; | ||
exports[key] = _match[key]; | ||
}); | ||
var _trace = require("./utils/trace"); | ||
Object.keys(_trace).forEach(function (key) { | ||
if (key === "default" || key === "__esModule") return; | ||
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return; | ||
if (key in exports && exports[key] === _trace[key]) return; | ||
exports[key] = _trace[key]; | ||
}); |
@@ -44,3 +44,2 @@ "use strict"; | ||
} | ||
; | ||
if (processor.match(ctx)) { | ||
@@ -47,0 +46,0 @@ var res = processor.process(ctx); |
@@ -5,2 +5,3 @@ import { ICollector } from './collector'; | ||
import { RumEvent, RumEventBundle } from './rum-event'; | ||
import { ITracingOption } from '../utils/trace'; | ||
export declare enum EventType { | ||
@@ -99,3 +100,7 @@ /** | ||
collectors?: any; | ||
/** | ||
* tracing 配置 'tracecontext' | 'b3' | 'b3multi' | 'jaeger'; | ||
*/ | ||
tracing?: boolean | ITracingOption; | ||
[key: string]: any; | ||
} |
@@ -6,8 +6,10 @@ /** | ||
/** | ||
* GUID v4 | ||
* from https://gist.github.com/jed/982883 | ||
* @description: GUID v4 | ||
* @from https://gist.github.com/jed/982883 | ||
* @param placeholder {String} | ||
* @return {String} | ||
*/ | ||
export declare function generateGUID(placeholder?: string): string; | ||
/** | ||
* 唯一的字符串 universe unique id | ||
* @description: 唯一的字符串 universe unique id | ||
* @param len {String} | ||
@@ -14,0 +16,0 @@ * @return {String} |
@@ -24,4 +24,6 @@ "use strict"; | ||
/** | ||
* GUID v4 | ||
* from https://gist.github.com/jed/982883 | ||
* @description: GUID v4 | ||
* @from https://gist.github.com/jed/982883 | ||
* @param placeholder {String} | ||
* @return {String} | ||
*/ | ||
@@ -35,3 +37,3 @@ function generateGUID(placeholder) { | ||
/** | ||
* 唯一的字符串 universe unique id | ||
* @description: 唯一的字符串 universe unique id | ||
* @param len {String} | ||
@@ -38,0 +40,0 @@ * @return {String} |
@@ -9,1 +9,3 @@ export type IsFnHelper<T = unknown> = (value: unknown) => value is T; | ||
export declare const isRegExp: IsFnHelper<string>; | ||
export declare const isBoolean: IsFnHelper<boolean>; | ||
export declare const isNumber: IsFnHelper<number | bigint>; |
"use strict"; | ||
exports.__esModule = true; | ||
exports.isString = exports.isRegExp = exports.isFunction = exports.isArray = void 0; | ||
exports.isString = exports.isRegExp = exports.isNumber = exports.isFunction = exports.isBoolean = exports.isArray = void 0; | ||
exports.isToString = isToString; | ||
@@ -28,2 +28,8 @@ exports.isTypeof = isTypeof; | ||
return isToString(value, 'RegExp'); | ||
}; | ||
var isBoolean = exports.isBoolean = function isBoolean(value) { | ||
return isTypeof(value, 'boolean'); | ||
}; | ||
var isNumber = exports.isNumber = function isNumber(value) { | ||
return isTypeof(value, 'number') && !isNaN(value) || isTypeof(value, 'bigint'); | ||
}; |
{ | ||
"name": "@arms/rum-core", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"description": "arms rum javascript sdk core", | ||
@@ -5,0 +5,0 @@ "author": "guangli.fj <guangli.fj@alibaba-inc.com>", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
36839
37
1069