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

@huolala-tech/page-spy-types

Package Overview
Dependencies
Maintainers
0
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@huolala-tech/page-spy-types - npm Package Compare versions

Comparing version 1.9.3 to 1.9.4

25

lib/base.d.ts
import type {
DataType,
InteractiveType,
InternalType,
InternalMsgType,
MessageItem,

@@ -22,25 +22,4 @@ } from './message-type';

export type EventType = InteractiveType | InternalType;
export type EventType = InteractiveType | InternalMsgType;
export type EventCallback = InteractiveEventCallback | InternalEventCallback;
export interface SocketStoreType {
// "noCache": should the message whether be cached in the SDK or not.
// - true: don't cache the data like developer wouldn't care
// about the stale storage data.
// - false: default value, cache the message like developer always cares
// the entire runtime log data
broadcastMessage(message: MessageItem, noCache?: boolean): void;
addListener(type: InteractiveType, fn: InteractiveEventCallback): void;
addListener(type: InternalType, fn: InternalEventCallback): void;
removeListener(type: InteractiveType, fn: InteractiveEventCallback): void;
removeListener(type: InternalType, fn: InternalEventCallback): void;
dispatchEvent(
type: InteractiveType | InternalType,
data: InteractiveEvent,
): void;
dispatchEvent(type: InternalType, data: any): void;
}

6

lib/index.d.ts

@@ -1,2 +0,2 @@

import { SocketStoreType } from './base';
import { SocketStoreBase } from '@huolala-tech/page-spy-base';
import { DataItem as ConsoleData } from './console';

@@ -107,3 +107,3 @@ import { DataItem as StorageData } from './storage';

*/
socketStore: SocketStoreType;
socketStore: SocketStoreBase;

@@ -125,3 +125,3 @@ /**

// communicate with Web / API by it.
socketStore: SocketStoreType;
socketStore: SocketStoreBase;
}

@@ -128,0 +128,0 @@

@@ -10,3 +10,4 @@ export type DataType =

| 'database'
| 'rrweb-event';
| 'rrweb-event'
| 'mark'; // DataHarborPlugin use the 'mark'

@@ -13,0 +14,0 @@ /**

{
"name": "@huolala-tech/page-spy-types",
"version": "1.9.3",
"version": "1.9.4",
"description": "Types for PageSpy SDK",

@@ -22,3 +22,6 @@ "license": "MIT",

},
"gitHead": "63f19ef319ea27265608f499d89edef5c36cb800"
"dependencies": {
"@huolala-tech/page-spy-base": "^1.0.4"
},
"gitHead": "5da16a649e0e91b56b9b21ae9681f3f566a3ff0b"
}
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