@fraym/streams 0.1.7 → 0.1.9

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.
@@ -16,10 +16,10 @@ export interface BaseEvent {
16
16
  causationId?: string;
17
17
  reason?: string;
18
18
  }
19
- export declare type EventData = string | GdprEventData;
19
+ export type EventData = string | GdprEventData;
20
20
  export interface GdprEventData {
21
21
  value: string;
22
22
  gdprDefault: string;
23
23
  }
24
- export declare type HandlerFunc = (event: SubscriptionEvent) => Promise<void>;
24
+ export type HandlerFunc = (event: SubscriptionEvent) => Promise<void>;
25
25
  export declare const getSubscriptionEvent: (eventEnvelope: PublishEventEnvelope) => SubscriptionEvent | null;
@@ -1,5 +1,5 @@
1
1
  import { ClientConfig } from "./config";
2
2
  import { ClientDuplexStream } from "@grpc/grpc-js";
3
3
  import { Request, ServiceClient, Response } from "@fraym/streams-proto";
4
- export declare type Stream = ClientDuplexStream<Request, Response>;
4
+ export type Stream = ClientDuplexStream<Request, Response>;
5
5
  export declare const initStream: (config: ClientConfig, serviceClient: ServiceClient) => Promise<Stream>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fraym/streams",
3
- "version": "0.1.7",
3
+ "version": "0.1.9",
4
4
  "license": "UNLICENSED",
5
5
  "homepage": "https://github.com/fraym/streams-nodejs",
6
6
  "repository": {
@@ -24,8 +24,9 @@
24
24
  "main": "dist/index.js",
25
25
  "types": "dist/index.d.ts",
26
26
  "dependencies": {
27
- "@fraym/streams-proto": "^6.0.0-alpha.9",
28
- "@grpc/grpc-js": "1.7.2",
27
+ "@fraym/streams-proto": "^6.0.0-alpha.10",
28
+ "@grpc/grpc-js": "^1.8.7",
29
+ "ts-node": "^10.9.1",
29
30
  "uuid": "^9.0.0"
30
31
  },
31
32
  "devDependencies": {