@arms/rum-core
Advanced tools
Comparing version 0.0.3 to 0.0.4
@@ -47,3 +47,5 @@ "use strict"; | ||
var res = processor.process(ctx); | ||
ctx.setRumEvent(res); | ||
if (res) { | ||
ctx.setRumEvent(res); | ||
} | ||
} | ||
@@ -50,0 +52,0 @@ } |
@@ -5,1 +5,5 @@ export type IsFnHelper<T = unknown> = (value: unknown) => value is T; | ||
export declare const isUndefined: IsFnHelper<undefined>; | ||
export declare const isString: IsFnHelper<string>; | ||
export declare function isToString<T = unknown>(value: unknown, type: string): value is T; | ||
export declare const isArray: IsFnHelper<unknown[]>; | ||
export declare const isRegExp: IsFnHelper<string>; |
"use strict"; | ||
exports.__esModule = true; | ||
exports.isFunction = void 0; | ||
exports.isString = exports.isRegExp = exports.isFunction = exports.isArray = void 0; | ||
exports.isToString = isToString; | ||
exports.isTypeof = isTypeof; | ||
@@ -15,2 +16,14 @@ exports.isUndefined = void 0; | ||
return isTypeof(value, 'undefined'); | ||
}; | ||
var isString = exports.isString = function isString(value) { | ||
return isTypeof(value, 'string'); | ||
}; | ||
function isToString(value, type) { | ||
return Object.prototype.toString.call(value) === "[object " + type + "]"; | ||
} | ||
var isArray = exports.isArray = function isArray(value) { | ||
return isToString(value, 'Array'); | ||
}; | ||
var isRegExp = exports.isRegExp = function isRegExp(value) { | ||
return isToString(value, 'RegExp'); | ||
}; |
{ | ||
"name": "@arms/rum-core", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"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
25818
781