@vtex/api
Advanced tools
Comparing version 0.31.0 to 0.31.1
@@ -16,3 +16,2 @@ "use strict"; | ||
const { url, method } = err.response.config; | ||
console.log(`Error calling ${method.toUpperCase()} ${url}`); | ||
} | ||
@@ -19,0 +18,0 @@ try { |
@@ -12,2 +12,3 @@ /// <reference types="node" /> | ||
listVersionsByApp: (app: string) => Promise<RegistryAppVersionsList>; | ||
deprecateApp: (app: string, version: string) => Promise<void>; | ||
getAppManifest: (app: string, version: string, opts?: AppsManifestOptions | undefined) => Promise<AppManifest>; | ||
@@ -14,0 +15,0 @@ listAppFiles: (app: string, version: string) => Promise<AppFilesList>; |
@@ -41,2 +41,5 @@ "use strict"; | ||
}; | ||
this.deprecateApp = (app, version) => { | ||
return this.http.patch(routes.AppVersion(app, version), { deprecated: true }); | ||
}; | ||
this.getAppManifest = (app, version, opts) => { | ||
@@ -43,0 +46,0 @@ return this.http.get(routes.AppVersion(app, version), { params: opts }); |
{ | ||
"name": "@vtex/api", | ||
"version": "0.31.0", | ||
"version": "0.31.1", | ||
"description": "VTEX I/O API client", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
82213
959