@huolala-tech/page-spy-types
Advanced tools
Comparing version 1.9.3 to 1.9.4
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; | ||
} |
@@ -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" | ||
} |
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
17923
1
621
+ Added@huolala-tech/page-spy-base@1.0.7(transitive)
+ Added@huolala-tech/page-spy-types@1.9.7(transitive)