@vtex/api
Advanced tools
Comparing version 0.11.6-beta to 0.11.6
@@ -43,7 +43,7 @@ 'use strict'; | ||
let authToken = _ref.authToken, | ||
userAgent = _ref.userAgent; | ||
let authToken = _ref.authToken; | ||
let userAgent = _ref.userAgent; | ||
var _ref$accept = _ref.accept; | ||
let accept = _ref$accept === undefined ? CURRENT_MAJOR_VND : _ref$accept, | ||
timeout = _ref.timeout; | ||
let accept = _ref$accept === undefined ? CURRENT_MAJOR_VND : _ref$accept; | ||
let timeout = _ref.timeout; | ||
@@ -54,10 +54,3 @@ super((0, _endpoints.api)(endpointUrl), { authToken: authToken, userAgent: userAgent, accept: accept, timeout: timeout }); | ||
installApp(account, workspace, descriptor) { | ||
let prototype = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false; | ||
return this.http({ | ||
method: 'POST', | ||
url: routes.Apps(account, workspace), | ||
data: descriptor, | ||
params: { prototype: prototype } | ||
}); | ||
return this.http.post(routes.Apps(account, workspace), descriptor); | ||
} | ||
@@ -107,6 +100,6 @@ | ||
let oldVersion = _ref5.oldVersion, | ||
context = _ref5.context, | ||
since = _ref5.since, | ||
service = _ref5.service; | ||
let oldVersion = _ref5.oldVersion; | ||
let context = _ref5.context; | ||
let since = _ref5.since; | ||
let service = _ref5.service; | ||
@@ -125,5 +118,5 @@ const params = { | ||
let prefix = _ref6.prefix, | ||
context = _ref6.context, | ||
nextMarker = _ref6.nextMarker; | ||
let prefix = _ref6.prefix; | ||
let context = _ref6.context; | ||
let nextMarker = _ref6.nextMarker; | ||
@@ -130,0 +123,0 @@ const params = { |
@@ -25,5 +25,5 @@ 'use strict'; | ||
let authToken = _ref2.authToken, | ||
userAgent = _ref2.userAgent, | ||
accept = _ref2.accept; | ||
let authToken = _ref2.authToken; | ||
let userAgent = _ref2.userAgent; | ||
let accept = _ref2.accept; | ||
var _ref2$timeout = _ref2.timeout; | ||
@@ -30,0 +30,0 @@ let timeout = _ref2$timeout === undefined ? DEFAULT_TIMEOUT_MS : _ref2$timeout; |
@@ -48,7 +48,7 @@ 'use strict'; | ||
let authToken = _ref.authToken, | ||
userAgent = _ref.userAgent; | ||
let authToken = _ref.authToken; | ||
let userAgent = _ref.userAgent; | ||
var _ref$accept = _ref.accept; | ||
let accept = _ref$accept === undefined ? CURRENT_MAJOR_VND : _ref$accept, | ||
timeout = _ref.timeout; | ||
let accept = _ref$accept === undefined ? CURRENT_MAJOR_VND : _ref$accept; | ||
let timeout = _ref.timeout; | ||
@@ -66,3 +66,3 @@ super((0, _endpoints.api)(endpointUrl), { authToken: authToken, userAgent: userAgent, accept: accept, timeout: timeout }); | ||
publishApp(account, workspace, files) { | ||
let prototype = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false; | ||
let isDevelopment = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false; | ||
@@ -83,4 +83,4 @@ if (!(files[0] && files[0].path && files[0].contents)) { | ||
sortedFiles.forEach((_ref3) => { | ||
let path = _ref3.path, | ||
contents = _ref3.contents; | ||
let path = _ref3.path; | ||
let contents = _ref3.contents; | ||
return multipart.addPart({ | ||
@@ -99,3 +99,3 @@ headers: { | ||
data: multipart.pipe(gz), | ||
params: { prototype: prototype }, | ||
params: { isDevelopment: isDevelopment }, | ||
headers: { | ||
@@ -102,0 +102,0 @@ 'Content-Encoding': 'gzip', |
@@ -36,3 +36,5 @@ 'use strict'; | ||
Files: (account, workspace, bucket, path) => `${ routes.Workspace(account, workspace) }/buckets/${ bucket }/files${ path ? '/' + path : '' }` | ||
Bucket: (account, workspace, bucket) => `${ routes.Workspace(account, workspace) }/buckets/${ bucket }`, | ||
Files: (account, workspace, bucket, path) => `${ routes.Bucket(account, workspace, bucket) }/files${ path ? '/' + path : '' }` | ||
}; | ||
@@ -46,7 +48,7 @@ | ||
let authToken = _ref.authToken, | ||
userAgent = _ref.userAgent; | ||
let authToken = _ref.authToken; | ||
let userAgent = _ref.userAgent; | ||
var _ref$accept = _ref.accept; | ||
let accept = _ref$accept === undefined ? CURRENT_MAJOR_VND : _ref$accept, | ||
timeout = _ref.timeout; | ||
let accept = _ref$accept === undefined ? CURRENT_MAJOR_VND : _ref$accept; | ||
let timeout = _ref.timeout; | ||
@@ -76,2 +78,6 @@ super((0, _endpoints.vbase)(endpointUrl), { authToken: authToken, userAgent: userAgent, accept: accept, timeout: timeout }); | ||
getBucket(account, workspace, bucket) { | ||
return this.http(routes.Bucket(account, workspace, bucket)); | ||
} | ||
listFiles(account, workspace, bucket, prefix) { | ||
@@ -78,0 +84,0 @@ const params = { prefix: prefix }; |
{ | ||
"name": "@vtex/api", | ||
"version": "0.11.6-beta", | ||
"version": "0.11.6", | ||
"description": "VTEX I/O API client", | ||
@@ -57,2 +57,2 @@ "main": "./lib/index.js", | ||
} | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
35242
0
415