@motiadev/stream-client 0.8.2-beta.140-957262 → 0.8.2-beta.140-111855
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.d.ts +4 -4
- package/dist/cjs/index.js +4 -4
- package/dist/cjs/src/adapter-factory.d.ts +1 -1
- package/dist/cjs/src/stream-group.d.ts +1 -1
- package/dist/cjs/src/stream-item.d.ts +1 -1
- package/dist/cjs/src/stream-subscription.d.ts +1 -1
- package/dist/cjs/src/stream.d.ts +2 -2
- package/dist/esm/index.d.ts +4 -4
- package/dist/esm/index.js +2 -2
- package/dist/esm/src/adapter-factory.d.ts +1 -1
- package/dist/esm/src/stream-group.d.ts +1 -1
- package/dist/esm/src/stream-item.d.ts +1 -1
- package/dist/esm/src/stream-subscription.d.ts +1 -1
- package/dist/esm/src/stream.d.ts +2 -2
- package/dist/types/index.d.ts +4 -4
- package/dist/types/src/adapter-factory.d.ts +1 -1
- package/dist/types/src/stream-group.d.ts +1 -1
- package/dist/types/src/stream-item.d.ts +1 -1
- package/dist/types/src/stream-subscription.d.ts +1 -1
- package/dist/types/src/stream.d.ts +2 -2
- package/package.json +1 -1
package/dist/cjs/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
export { SocketAdapterFactory } from './src/adapter-factory';
|
|
2
|
+
export { SocketAdapter } from './src/socket-adapter';
|
|
1
3
|
export { Stream } from './src/stream';
|
|
2
|
-
export
|
|
4
|
+
export * from './src/stream.types';
|
|
3
5
|
export { StreamGroupSubscription } from './src/stream-group';
|
|
6
|
+
export { StreamItemSubscription } from './src/stream-item';
|
|
4
7
|
export { StreamSubscription } from './src/stream-subscription';
|
|
5
|
-
export { SocketAdapter } from './src/socket-adapter';
|
|
6
|
-
export { SocketAdapterFactory } from './src/adapter-factory';
|
|
7
|
-
export * from './src/stream.types';
|
package/dist/cjs/index.js
CHANGED
|
@@ -14,13 +14,13 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.StreamSubscription = exports.
|
|
17
|
+
exports.StreamSubscription = exports.StreamItemSubscription = exports.StreamGroupSubscription = exports.Stream = void 0;
|
|
18
18
|
var stream_1 = require("./src/stream");
|
|
19
19
|
Object.defineProperty(exports, "Stream", { enumerable: true, get: function () { return stream_1.Stream; } });
|
|
20
|
-
|
|
21
|
-
Object.defineProperty(exports, "StreamItemSubscription", { enumerable: true, get: function () { return stream_item_1.StreamItemSubscription; } });
|
|
20
|
+
__exportStar(require("./src/stream.types"), exports);
|
|
22
21
|
var stream_group_1 = require("./src/stream-group");
|
|
23
22
|
Object.defineProperty(exports, "StreamGroupSubscription", { enumerable: true, get: function () { return stream_group_1.StreamGroupSubscription; } });
|
|
23
|
+
var stream_item_1 = require("./src/stream-item");
|
|
24
|
+
Object.defineProperty(exports, "StreamItemSubscription", { enumerable: true, get: function () { return stream_item_1.StreamItemSubscription; } });
|
|
24
25
|
var stream_subscription_1 = require("./src/stream-subscription");
|
|
25
26
|
Object.defineProperty(exports, "StreamSubscription", { enumerable: true, get: function () { return stream_subscription_1.StreamSubscription; } });
|
|
26
|
-
__exportStar(require("./src/stream.types"), exports);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { SocketAdapter } from './socket-adapter';
|
|
1
|
+
import type { SocketAdapter } from './socket-adapter';
|
|
2
2
|
export type SocketAdapterFactory = () => SocketAdapter;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import type { GroupEventMessage, JoinMessage } from './stream.types';
|
|
1
2
|
import { StreamSubscription } from './stream-subscription';
|
|
2
|
-
import { GroupEventMessage, JoinMessage } from './stream.types';
|
|
3
3
|
export declare class StreamGroupSubscription<TData extends {
|
|
4
4
|
id: string;
|
|
5
5
|
}> extends StreamSubscription<TData[], GroupEventMessage<TData>> {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import type { ItemEventMessage, JoinMessage } from './stream.types';
|
|
1
2
|
import { StreamSubscription } from './stream-subscription';
|
|
2
|
-
import { ItemEventMessage, JoinMessage } from './stream.types';
|
|
3
3
|
export declare class StreamItemSubscription<TData extends {
|
|
4
4
|
id: string;
|
|
5
5
|
}> extends StreamSubscription<TData | null, ItemEventMessage<TData>> {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CustomEvent, JoinMessage, Listener } from './stream.types';
|
|
1
|
+
import type { CustomEvent, JoinMessage, Listener } from './stream.types';
|
|
2
2
|
type CustomEventListener = (event: any) => void;
|
|
3
3
|
export declare abstract class StreamSubscription<TData = unknown, TEventData = unknown> {
|
|
4
4
|
private customEventListeners;
|
package/dist/cjs/src/stream.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import type { SocketAdapterFactory } from './adapter-factory';
|
|
2
|
+
import type { SocketAdapter } from './socket-adapter';
|
|
1
3
|
import { StreamGroupSubscription } from './stream-group';
|
|
2
4
|
import { StreamItemSubscription } from './stream-item';
|
|
3
|
-
import { SocketAdapter } from './socket-adapter';
|
|
4
|
-
import { SocketAdapterFactory } from './adapter-factory';
|
|
5
5
|
export declare class Stream {
|
|
6
6
|
private adapterFactory;
|
|
7
7
|
private ws;
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
export { SocketAdapterFactory } from './src/adapter-factory';
|
|
2
|
+
export { SocketAdapter } from './src/socket-adapter';
|
|
1
3
|
export { Stream } from './src/stream';
|
|
2
|
-
export
|
|
4
|
+
export * from './src/stream.types';
|
|
3
5
|
export { StreamGroupSubscription } from './src/stream-group';
|
|
6
|
+
export { StreamItemSubscription } from './src/stream-item';
|
|
4
7
|
export { StreamSubscription } from './src/stream-subscription';
|
|
5
|
-
export { SocketAdapter } from './src/socket-adapter';
|
|
6
|
-
export { SocketAdapterFactory } from './src/adapter-factory';
|
|
7
|
-
export * from './src/stream.types';
|
package/dist/esm/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { Stream } from './src/stream';
|
|
2
|
-
export
|
|
2
|
+
export * from './src/stream.types';
|
|
3
3
|
export { StreamGroupSubscription } from './src/stream-group';
|
|
4
|
+
export { StreamItemSubscription } from './src/stream-item';
|
|
4
5
|
export { StreamSubscription } from './src/stream-subscription';
|
|
5
|
-
export * from './src/stream.types';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { SocketAdapter } from './socket-adapter';
|
|
1
|
+
import type { SocketAdapter } from './socket-adapter';
|
|
2
2
|
export type SocketAdapterFactory = () => SocketAdapter;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import type { GroupEventMessage, JoinMessage } from './stream.types';
|
|
1
2
|
import { StreamSubscription } from './stream-subscription';
|
|
2
|
-
import { GroupEventMessage, JoinMessage } from './stream.types';
|
|
3
3
|
export declare class StreamGroupSubscription<TData extends {
|
|
4
4
|
id: string;
|
|
5
5
|
}> extends StreamSubscription<TData[], GroupEventMessage<TData>> {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import type { ItemEventMessage, JoinMessage } from './stream.types';
|
|
1
2
|
import { StreamSubscription } from './stream-subscription';
|
|
2
|
-
import { ItemEventMessage, JoinMessage } from './stream.types';
|
|
3
3
|
export declare class StreamItemSubscription<TData extends {
|
|
4
4
|
id: string;
|
|
5
5
|
}> extends StreamSubscription<TData | null, ItemEventMessage<TData>> {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CustomEvent, JoinMessage, Listener } from './stream.types';
|
|
1
|
+
import type { CustomEvent, JoinMessage, Listener } from './stream.types';
|
|
2
2
|
type CustomEventListener = (event: any) => void;
|
|
3
3
|
export declare abstract class StreamSubscription<TData = unknown, TEventData = unknown> {
|
|
4
4
|
private customEventListeners;
|
package/dist/esm/src/stream.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import type { SocketAdapterFactory } from './adapter-factory';
|
|
2
|
+
import type { SocketAdapter } from './socket-adapter';
|
|
1
3
|
import { StreamGroupSubscription } from './stream-group';
|
|
2
4
|
import { StreamItemSubscription } from './stream-item';
|
|
3
|
-
import { SocketAdapter } from './socket-adapter';
|
|
4
|
-
import { SocketAdapterFactory } from './adapter-factory';
|
|
5
5
|
export declare class Stream {
|
|
6
6
|
private adapterFactory;
|
|
7
7
|
private ws;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
export { SocketAdapterFactory } from './src/adapter-factory';
|
|
2
|
+
export { SocketAdapter } from './src/socket-adapter';
|
|
1
3
|
export { Stream } from './src/stream';
|
|
2
|
-
export
|
|
4
|
+
export * from './src/stream.types';
|
|
3
5
|
export { StreamGroupSubscription } from './src/stream-group';
|
|
6
|
+
export { StreamItemSubscription } from './src/stream-item';
|
|
4
7
|
export { StreamSubscription } from './src/stream-subscription';
|
|
5
|
-
export { SocketAdapter } from './src/socket-adapter';
|
|
6
|
-
export { SocketAdapterFactory } from './src/adapter-factory';
|
|
7
|
-
export * from './src/stream.types';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { SocketAdapter } from './socket-adapter';
|
|
1
|
+
import type { SocketAdapter } from './socket-adapter';
|
|
2
2
|
export type SocketAdapterFactory = () => SocketAdapter;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import type { GroupEventMessage, JoinMessage } from './stream.types';
|
|
1
2
|
import { StreamSubscription } from './stream-subscription';
|
|
2
|
-
import { GroupEventMessage, JoinMessage } from './stream.types';
|
|
3
3
|
export declare class StreamGroupSubscription<TData extends {
|
|
4
4
|
id: string;
|
|
5
5
|
}> extends StreamSubscription<TData[], GroupEventMessage<TData>> {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import type { ItemEventMessage, JoinMessage } from './stream.types';
|
|
1
2
|
import { StreamSubscription } from './stream-subscription';
|
|
2
|
-
import { ItemEventMessage, JoinMessage } from './stream.types';
|
|
3
3
|
export declare class StreamItemSubscription<TData extends {
|
|
4
4
|
id: string;
|
|
5
5
|
}> extends StreamSubscription<TData | null, ItemEventMessage<TData>> {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CustomEvent, JoinMessage, Listener } from './stream.types';
|
|
1
|
+
import type { CustomEvent, JoinMessage, Listener } from './stream.types';
|
|
2
2
|
type CustomEventListener = (event: any) => void;
|
|
3
3
|
export declare abstract class StreamSubscription<TData = unknown, TEventData = unknown> {
|
|
4
4
|
private customEventListeners;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import type { SocketAdapterFactory } from './adapter-factory';
|
|
2
|
+
import type { SocketAdapter } from './socket-adapter';
|
|
1
3
|
import { StreamGroupSubscription } from './stream-group';
|
|
2
4
|
import { StreamItemSubscription } from './stream-item';
|
|
3
|
-
import { SocketAdapter } from './socket-adapter';
|
|
4
|
-
import { SocketAdapterFactory } from './adapter-factory';
|
|
5
5
|
export declare class Stream {
|
|
6
6
|
private adapterFactory;
|
|
7
7
|
private ws;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@motiadev/stream-client",
|
|
3
3
|
"description": "Motia Stream Client Package – Responsible for managing streams of data.",
|
|
4
|
-
"version": "0.8.2-beta.140-
|
|
4
|
+
"version": "0.8.2-beta.140-111855",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/cjs/index.js",
|
|
7
7
|
"module": "dist/esm/index.js",
|