@arms/rum-core
Advanced tools
Comparing version 0.0.25-beta.21 to 0.0.28
@@ -11,3 +11,3 @@ "use strict"; | ||
var MAX_EVENT_COUNT = 20; | ||
var attrs = ['app', 'user', 'device', 'os', 'geo', 'isp', 'net', 'attributes']; | ||
var attrs = ['app', 'user', 'device', 'os', 'geo', 'isp', 'net', 'properties']; | ||
var Reporter = exports["default"] = /*#__PURE__*/function () { | ||
@@ -163,4 +163,4 @@ function Reporter() { | ||
if (key === 'user' && k === 'id') return; | ||
if (key === 'attributes') { | ||
bundle[key] = (0, _verify.verifyAttributes)(obj); | ||
if (key === 'properties') { | ||
bundle[key] = (0, _verify.verifyProperties)(obj); | ||
} else if ((0, _is.isString)(val) || (0, _is.isNumber)(val)) { | ||
@@ -167,0 +167,0 @@ if (!(key in bundle)) { |
@@ -27,3 +27,3 @@ export declare enum RumEventType { | ||
snapshots?: string; | ||
attributes?: BaseObject; | ||
properties?: BaseObject; | ||
} | ||
@@ -170,4 +170,4 @@ export interface RumViewEvent extends RumBaseEvent { | ||
events: Array<RumEvent>; | ||
attributes?: BaseObject; | ||
properties?: BaseObject; | ||
_v?: string; | ||
} |
import { BaseObject } from "../types/rum-event"; | ||
export declare function verifyAttributes(attrs: BaseObject): BaseObject; | ||
export declare function verifyProperties(attrs: BaseObject): BaseObject; |
"use strict"; | ||
exports.__esModule = true; | ||
exports.verifyAttributes = verifyAttributes; | ||
exports.verifyProperties = verifyProperties; | ||
var _is = require("./is"); | ||
function verifyAttributes(attrs) { | ||
function verifyProperties(attrs) { | ||
if (!(0, _is.isObject)(attrs)) { | ||
@@ -8,0 +8,0 @@ return; |
{ | ||
"name": "@arms/rum-core", | ||
"version": "0.0.25-beta.21", | ||
"version": "0.0.28", | ||
"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
51284