@metacall/protocol 0.1.30 → 0.1.31

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.
@@ -1,3 +1,5 @@
1
+ /// <reference types="node" />
2
+ import { Readable } from 'stream';
1
3
  import { Create, Deployment, LogType, MetaCallJSON } from './deployment';
2
4
  import { Plans } from './plan';
3
5
  export declare class ProtocolError extends Error {
@@ -69,7 +71,7 @@ export interface API {
69
71
  listSubscriptionsDeploys(): Promise<SubscriptionDeploy[]>;
70
72
  inspect(): Promise<Deployment[]>;
71
73
  inspectByName(suffix: string): Promise<Deployment>;
72
- upload(name: string, blob: unknown, jsons?: MetaCallJSON[], runners?: string[]): Promise<Resource>;
74
+ upload(name: string, blob: Blob | Readable, jsons?: MetaCallJSON[], runners?: string[]): Promise<Resource>;
73
75
  add(url: string, branch: string, jsons: MetaCallJSON[]): Promise<Resource>;
74
76
  deploy(name: string, env: {
75
77
  name: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@metacall/protocol",
3
- "version": "0.1.30",
3
+ "version": "0.1.31",
4
4
  "description": "Tool for deploying into MetaCall FaaS platform.",
5
5
  "exports": {
6
6
  "./*": "./dist/*.js",
package/src/protocol.ts CHANGED
@@ -109,7 +109,7 @@ export interface API {
109
109
  inspectByName(suffix: string): Promise<Deployment>;
110
110
  upload(
111
111
  name: string,
112
- blob: unknown,
112
+ blob: Blob | Readable,
113
113
  jsons?: MetaCallJSON[],
114
114
  runners?: string[]
115
115
  ): Promise<Resource>;