@metacall/protocol 0.1.17 → 0.1.18

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.
@@ -26,7 +26,10 @@ interface API {
26
26
  inspect(): Promise<Deployment[]>;
27
27
  upload(name: string, blob: unknown, jsons: MetaCallJSON[], runners: string[]): Promise<string>;
28
28
  add(url: string, branch: string, jsons: MetaCallJSON[]): Promise<AddResponse>;
29
- deploy(name: string, env: string[], plan: Plans, resourceType: ResourceType, release?: string, version?: string): Promise<Create>;
29
+ deploy(name: string, env: {
30
+ name: string;
31
+ value: string;
32
+ }[], plan: Plans, resourceType: ResourceType, release?: string, version?: string): Promise<Create>;
30
33
  deployDelete(prefix: string, suffix: string, version: string): Promise<string>;
31
34
  logs(container: string, type: LogType, suffix: string, prefix: string, version?: string): Promise<string>;
32
35
  branchList(url: string): Promise<Branches>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@metacall/protocol",
3
- "version": "0.1.17",
3
+ "version": "0.1.18",
4
4
  "description": "Tool for deploying into MetaCall FaaS platform.",
5
5
  "exports": {
6
6
  "./*": "./dist/*.js",
package/src/protocol.ts CHANGED
@@ -67,7 +67,7 @@ interface API {
67
67
  ): Promise<AddResponse>;
68
68
  deploy(
69
69
  name: string,
70
- env: string[],
70
+ env: { name: string; value: string }[],
71
71
  plan: Plans,
72
72
  resourceType: ResourceType,
73
73
  release?: string,
@@ -210,7 +210,7 @@ export default (token: string, baseURL: string): API => {
210
210
 
211
211
  deploy: (
212
212
  name: string,
213
- env: string[],
213
+ env: { name: string; value: string }[],
214
214
  plan: Plans,
215
215
  resourceType: ResourceType,
216
216
  release: string = Date.now().toString(16),