Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@heimdallr-sdk/types

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@heimdallr-sdk/types - npm Package Compare versions

Comparing version 0.0.12 to 0.0.13

7

esm/base.d.ts

@@ -23,9 +23,2 @@ import { BreadcrumbPushData } from './breadcrumb';

}
export interface CoreContextType {
app: AppInfoType;
uploadUrl: string;
initUrl: string;
debug: boolean;
enabled: boolean;
}
export interface ClientInfoType {

@@ -32,0 +25,0 @@ platform: PlatformTypes;

81

esm/browser.d.ts

@@ -1,48 +0,5 @@

import { ClientInfoType, ReportDataMsgType } from './base';
import { BreadcrumbPushData } from './breadcrumb';
import { PageLifeType } from './constant';
export interface CodeErrorDataType {
message: string;
lineno: number;
colno: number;
filename: string;
}
export interface CodeErrorType extends ReportDataMsgType, CodeErrorDataType {
}
import { ReportDataMsgType } from './base';
export interface LinkMsgDataType {
href?: string;
}
export interface ResourceErrorType extends ReportDataMsgType, LinkMsgDataType {
}
export interface LifecycleDataType extends LinkMsgDataType {
type: PageLifeType;
session_id: string;
user_id: string;
}
export interface LifeCycleMsgType extends ReportDataMsgType, LinkMsgDataType {
}
export interface PromiseErrorDataType {
message?: string;
}
export interface PromiseErrorType extends ReportDataMsgType, PromiseErrorDataType {
}
export interface BrowserReportPayloadDataType extends ClientInfoType {
[key: string]: any;
}
export interface CrashErrorType extends ReportDataMsgType, LinkMsgDataType {
sendUrl: string;
stack: BreadcrumbPushData[];
clientInfo: ClientInfoType;
}
export interface DomDataMsgType {
ele: string;
}
export interface DomMsgType extends ReportDataMsgType, DomDataMsgType {
}
export interface ConsoleDataMsgType {
args: any[];
level: string;
}
export interface ConsoleMsgType extends ReportDataMsgType, ConsoleDataMsgType {
}
export interface RouteDataMsgType {

@@ -54,40 +11,4 @@ from: string;

}
export interface PerformanceBasicMsgType extends ReportDataMsgType {
dnsSearch: number;
tcpConnect: number;
sslConnect: number;
request: number;
response: number;
parseDomTree: number;
resource: number;
domReady: number;
httpHead: number;
interactive: number;
complete: number;
redirect: number;
redirectTime: number;
duration: number;
fp: number;
fcp: number;
}
interface ResourceType {
name: string;
time: number;
}
export interface PerformanceSingleMsgType extends ReportDataMsgType {
value: number | ResourceType[];
}
export interface PerformanceVitalsMsgType extends ReportDataMsgType {
lcp: number;
fid: number;
cls: number;
}
export interface RecordDataType {
events: any[];
}
export interface RecordMsgType extends ReportDataMsgType, RecordDataType {
}
export interface IAnyMsgType extends ReportDataMsgType {
[key: string]: any;
}
export {};

@@ -30,9 +30,2 @@ export declare enum StoreKeyType {

}
export declare enum NodeErrorTypes {
UNCAUGHTEXCEPTION = "uncaughtException",
UNHANDLEDREJECTION = "unhandledrejection"
}
export declare enum WxErrorTypes {
UNCAUGHTEXCEPTION = "uncaughtException"
}
export declare enum DomTypes {

@@ -74,7 +67,2 @@ CLICK = "click"

}
export declare enum BrowserReportType {
BEACON = "beacon",
IMG = "img",
GET = "get"
}
export declare enum PageLifeType {

@@ -88,5 +76,2 @@ LOAD = "enter",

}
export declare enum VueTypes {
ERROR = "error"
}
export declare enum PlatformTypes {

@@ -97,5 +82,2 @@ BROWSER = "browser",

}
export declare enum RecordTypes {
SESSION = "session"
}
export declare enum BrowserBreadcrumbTypes {

@@ -123,15 +105,1 @@ ROUTE = "Route",

}
export declare enum WxRouteEvents {
SWITCHTAB = "switchTab",
RELAUNCH = "reLaunch",
REDIRECTTO = "redirectTo",
NAVIGATETO = "navigateTo",
NAVIGATEBACK = "navigateBack",
NAVIGATETOMINIPROGRAM = "navigateToMiniProgram",
ROUTEFAIL = "routeFail"
}
export declare enum WxXhrTypes {
REQUEST = "request",
DOWNLOADFILE = "downloadFile",
UPLOADFILE = "uploadFile"
}

@@ -34,11 +34,2 @@ export var StoreKeyType;

})(BrowserErrorTypes || (BrowserErrorTypes = {}));
export var NodeErrorTypes;
(function (NodeErrorTypes) {
NodeErrorTypes["UNCAUGHTEXCEPTION"] = "uncaughtException";
NodeErrorTypes["UNHANDLEDREJECTION"] = "unhandledrejection";
})(NodeErrorTypes || (NodeErrorTypes = {}));
export var WxErrorTypes;
(function (WxErrorTypes) {
WxErrorTypes["UNCAUGHTEXCEPTION"] = "uncaughtException";
})(WxErrorTypes || (WxErrorTypes = {}));
export var DomTypes;

@@ -85,8 +76,2 @@ (function (DomTypes) {

})(StoreType || (StoreType = {}));
export var BrowserReportType;
(function (BrowserReportType) {
BrowserReportType["BEACON"] = "beacon";
BrowserReportType["IMG"] = "img";
BrowserReportType["GET"] = "get";
})(BrowserReportType || (BrowserReportType = {}));
export var PageLifeType;

@@ -102,6 +87,2 @@ (function (PageLifeType) {

})(DeviceType || (DeviceType = {}));
export var VueTypes;
(function (VueTypes) {
VueTypes["ERROR"] = "error";
})(VueTypes || (VueTypes = {}));
export var PlatformTypes;

@@ -113,6 +94,2 @@ (function (PlatformTypes) {

})(PlatformTypes || (PlatformTypes = {}));
export var RecordTypes;
(function (RecordTypes) {
RecordTypes["SESSION"] = "session";
})(RecordTypes || (RecordTypes = {}));
export var BrowserBreadcrumbTypes;

@@ -142,17 +119,1 @@ (function (BrowserBreadcrumbTypes) {

})(WxBreadcrumbTypes || (WxBreadcrumbTypes = {}));
export var WxRouteEvents;
(function (WxRouteEvents) {
WxRouteEvents["SWITCHTAB"] = "switchTab";
WxRouteEvents["RELAUNCH"] = "reLaunch";
WxRouteEvents["REDIRECTTO"] = "redirectTo";
WxRouteEvents["NAVIGATETO"] = "navigateTo";
WxRouteEvents["NAVIGATEBACK"] = "navigateBack";
WxRouteEvents["NAVIGATETOMINIPROGRAM"] = "navigateToMiniProgram";
WxRouteEvents["ROUTEFAIL"] = "routeFail";
})(WxRouteEvents || (WxRouteEvents = {}));
export var WxXhrTypes;
(function (WxXhrTypes) {
WxXhrTypes["REQUEST"] = "request";
WxXhrTypes["DOWNLOADFILE"] = "downloadFile";
WxXhrTypes["UPLOADFILE"] = "uploadFile";
})(WxXhrTypes || (WxXhrTypes = {}));

@@ -12,4 +12,2 @@ export * from './common';

export * from './sourcemap';
export * from './node';
export * from './server';
export * from './wx';

@@ -12,4 +12,2 @@ export * from './common';

export * from './sourcemap';
export * from './node';
export * from './server';
export * from './wx';
import { AppInfoType, Dsn } from './base';
import { IAnyObject } from './common';
import { StoreTypes } from './constant';
import { BasePluginType } from './plugin';
import { InterfaceResponseType } from './server';
import { VueInstance } from './vue';
export interface BaseOptionsType {

@@ -15,9 +12,2 @@ dsn: Dsn;

}
export declare enum PerformanceFeat {
BASIC = "basic",
RESOURCE = "resource",
FMP = "fmp",
FPS = "fps",
VITALS = "vitals"
}
export interface CustomerOptionType {

@@ -27,13 +17,1 @@ name: string;

}
export interface BrowserOptionsType extends BaseOptionsType {
ignoreUrls?: string[];
userIdentify?: CustomerOptionType;
throttleDelayTime?: number;
vue?: VueInstance;
pageCrashWorkerUrl?: string;
performancOff?: PerformanceFeat[];
customers?: CustomerOptionType[];
}
export interface NodeOptionsType extends BaseOptionsType {
sendFunc?: (url: string, data: IAnyObject) => Promise<InterfaceResponseType<any>>;
}

@@ -1,8 +0,1 @@

export var PerformanceFeat;
(function (PerformanceFeat) {
PerformanceFeat["BASIC"] = "basic";
PerformanceFeat["RESOURCE"] = "resource";
PerformanceFeat["FMP"] = "fmp";
PerformanceFeat["FPS"] = "fps";
PerformanceFeat["VITALS"] = "vitals";
})(PerformanceFeat || (PerformanceFeat = {}));
export {};

4

package.json
{
"name": "@heimdallr-sdk/types",
"version": "0.0.12",
"version": "0.0.13",
"description": "@heimdallr-sdk/types",

@@ -27,3 +27,3 @@ "license": "MIT",

},
"gitHead": "86370321545cbc0ec383b4a16c8e72fb47cfafd4"
"gitHead": "5c2857d54fa5ad7701f58b115b03520e7f65f2e4"
}

@@ -1,3 +0,3 @@

# `types`
# @heimdallr-sdk/types
> helmdallr-sdk type describe
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc