@arms/rum-core
Advanced tools
Comparing version 0.0.25-beta.14 to 0.0.25-beta.15
@@ -45,2 +45,10 @@ export declare enum RumEventType { | ||
} | ||
/** | ||
* 枚举值,表示资源是否加载成功 | ||
*/ | ||
export declare enum ResourceStatus { | ||
Unknown = -1, | ||
Failed = 0, | ||
Success = 1 | ||
} | ||
export interface RumResourceEvent extends RumBaseEvent { | ||
@@ -52,3 +60,3 @@ name?: string; | ||
message?: string; | ||
success?: -1 | 0 | 1; | ||
success?: -1 | 0 | 1 | ResourceStatus; | ||
trace_id?: string; | ||
@@ -101,3 +109,4 @@ duration?: number; | ||
browser = "browser", | ||
miniapp = "miniapp" | ||
miniapp = "miniapp", | ||
uniapp = "uniapp" | ||
} | ||
@@ -104,0 +113,0 @@ export interface RumEventBundle { |
"use strict"; | ||
exports.__esModule = true; | ||
exports.RumEventType = exports.AppType = void 0; | ||
exports.RumEventType = exports.ResourceStatus = exports.AppType = void 0; | ||
var RumEventType = exports.RumEventType = /*#__PURE__*/function (RumEventType) { | ||
@@ -14,6 +14,16 @@ RumEventType["VIEW"] = "view"; | ||
}({}); | ||
/** | ||
* 枚举值,表示资源是否加载成功 | ||
*/ | ||
var ResourceStatus = exports.ResourceStatus = /*#__PURE__*/function (ResourceStatus) { | ||
ResourceStatus[ResourceStatus["Unknown"] = -1] = "Unknown"; | ||
ResourceStatus[ResourceStatus["Failed"] = 0] = "Failed"; | ||
ResourceStatus[ResourceStatus["Success"] = 1] = "Success"; | ||
return ResourceStatus; | ||
}({}); | ||
var AppType = exports.AppType = /*#__PURE__*/function (AppType) { | ||
AppType["browser"] = "browser"; | ||
AppType["miniapp"] = "miniapp"; | ||
AppType["uniapp"] = "uniapp"; | ||
return AppType; | ||
}({}); |
{ | ||
"name": "@arms/rum-core", | ||
"version": "0.0.25-beta.14", | ||
"version": "0.0.25-beta.15", | ||
"description": "arms rum javascript sdk core", | ||
@@ -8,2 +8,3 @@ "author": "guangli.fj <guangli.fj@alibaba-inc.com>", | ||
"main": "lib/index.js", | ||
"module": "es/index.js", | ||
"directories": { | ||
@@ -14,3 +15,4 @@ "lib": "lib", | ||
"files": [ | ||
"lib" | ||
"lib", | ||
"es" | ||
], | ||
@@ -23,3 +25,2 @@ "publishConfig": { | ||
"build": "build-scripts build --skip-demo", | ||
"prepublishOnly": "npm run build", | ||
"test": "node ./__tests__/@arms/core.test.js" | ||
@@ -26,0 +27,0 @@ }, |
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
87852
76
2747