Skip to content

Commit

Permalink
Merge pull request #1 from alphauslabs/chore/fix-issues-while-receivi…
Browse files Browse the repository at this point in the history
…ng-streaming-data

chore: fix issues while receiving streaming data
  • Loading branch information
henry0hai authored Mar 24, 2023
2 parents 39964c3 + 6bf4d85 commit f4d2b9f
Show file tree
Hide file tree
Showing 7 changed files with 185 additions and 180 deletions.
11 changes: 10 additions & 1 deletion dist/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
export interface DynamicObject {
[key: string]: any;
}
export declare const parseGrpcData: (url: string, method: 'POST' | 'GET', headers: DynamicObject, body: DynamicObject, onChunkReceive: (data: any) => void, limiter?: number) => Promise<void>;
export declare const parseGrpcData: (requestObject: {
url: string;
method: 'POST' | 'GET' | 'post' | 'get';
headers: DynamicObject;
body?: DynamicObject;
}, dataObject: {
limiter?: number;
concatData?: boolean;
objectPrefix?: string;
}, onChunkReceive?: (data: any) => void, onFinish?: (data: any) => void, onError?: (e: any) => void) => Promise<void>;
135 changes: 84 additions & 51 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

65 changes: 22 additions & 43 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 1 addition & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@alphauslabs/grpc-chunk-parser",
"version": "1.1.12",
"version": "1.2.0",
"description": "Typescript package for parsing grpc chunk data",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down Expand Up @@ -30,10 +30,6 @@
"tslint": "^6.1.3",
"typescript": "~4.0.3"
},
"dependencies": {
"@types/lodash": "^4.14.172",
"lodash": "^4.17.21"
},
"engines": {
"node": ">=8"
},
Expand Down
Loading

0 comments on commit f4d2b9f

Please sign in to comment.