@arms/rum-core
Advanced tools
Comparing version 0.0.25-beta.18 to 0.0.25-beta.19
@@ -36,2 +36,3 @@ import { ICollector } from './collector'; | ||
overtime?: number; | ||
storage?: string; | ||
} | ||
@@ -38,0 +39,0 @@ export interface IRumSession { |
@@ -7,3 +7,4 @@ export declare enum RumEventType { | ||
ACTION = "action", | ||
CUSTOM = "custom" | ||
CUSTOM = "custom", | ||
APPLICATION = "application" | ||
} | ||
@@ -106,3 +107,8 @@ export interface BaseObject { | ||
} | ||
export type RumEvent = RumViewEvent | RumResourceEvent | RumExceptionEvent | RumActionEvent | RumCustomEvent; | ||
export interface RumApplicationEvent extends RumBaseEvent { | ||
type: string; | ||
name: string; | ||
duration: number; | ||
} | ||
export type RumEvent = RumViewEvent | RumResourceEvent | RumExceptionEvent | RumActionEvent | RumCustomEvent | RumApplicationEvent; | ||
export declare enum AppType { | ||
@@ -109,0 +115,0 @@ browser = "browser", |
@@ -12,2 +12,3 @@ "use strict"; | ||
RumEventType["CUSTOM"] = "custom"; | ||
RumEventType["APPLICATION"] = "application"; | ||
return RumEventType; | ||
@@ -14,0 +15,0 @@ }({}); |
@@ -17,23 +17,11 @@ "use strict"; | ||
var registeredMethod = target[name]; | ||
try { | ||
Object.defineProperty(target, name, { | ||
configurable: true, | ||
writable: true | ||
}); | ||
} catch (e) { | ||
// | ||
} | ||
try { | ||
target[name] = function () { | ||
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { | ||
args[_key] = arguments[_key]; | ||
} | ||
callback.apply(this, args); | ||
if (registeredMethod) { | ||
return registeredMethod.apply(this, args); | ||
} | ||
}; | ||
} catch (e) { | ||
// | ||
} | ||
target[name] = function () { | ||
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { | ||
args[_key] = arguments[_key]; | ||
} | ||
callback.apply(this, args); | ||
if ((0, _is.isFunction)(registeredMethod)) { | ||
return registeredMethod.apply(this, args); | ||
} | ||
}; | ||
} | ||
@@ -40,0 +28,0 @@ |
{ | ||
"name": "@arms/rum-core", | ||
"version": "0.0.25-beta.18", | ||
"version": "0.0.25-beta.19", | ||
"description": "arms rum javascript sdk core", | ||
@@ -29,4 +29,5 @@ "author": "guangli.fj <guangli.fj@alibaba-inc.com>", | ||
"devDependencies": { | ||
"@babel/runtime": "^7.24.5", | ||
"typescript": "^4.9.4" | ||
} | ||
} |
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
47851
2
1455