Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@vtex/api

Package Overview
Dependencies
Maintainers
6
Versions
890
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vtex/api - npm Package Compare versions

Comparing version 0.11.5 to 0.11.6-beta

31

lib/AppsClient.js

@@ -43,7 +43,7 @@ 'use strict';

let authToken = _ref.authToken;
let userAgent = _ref.userAgent;
let authToken = _ref.authToken,
userAgent = _ref.userAgent;
var _ref$accept = _ref.accept;
let accept = _ref$accept === undefined ? CURRENT_MAJOR_VND : _ref$accept;
let timeout = _ref.timeout;
let accept = _ref$accept === undefined ? CURRENT_MAJOR_VND : _ref$accept,
timeout = _ref.timeout;

@@ -54,3 +54,10 @@ super((0, _endpoints.api)(endpointUrl), { authToken: authToken, userAgent: userAgent, accept: accept, timeout: timeout });

installApp(account, workspace, descriptor) {
return this.http.post(routes.Apps(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 }
});
}

@@ -100,6 +107,6 @@

let oldVersion = _ref5.oldVersion;
let context = _ref5.context;
let since = _ref5.since;
let service = _ref5.service;
let oldVersion = _ref5.oldVersion,
context = _ref5.context,
since = _ref5.since,
service = _ref5.service;

@@ -118,5 +125,5 @@ const params = {

let prefix = _ref6.prefix;
let context = _ref6.context;
let nextMarker = _ref6.nextMarker;
let prefix = _ref6.prefix,
context = _ref6.context,
nextMarker = _ref6.nextMarker;

@@ -123,0 +130,0 @@ const params = {

@@ -25,5 +25,5 @@ 'use strict';

let authToken = _ref2.authToken;
let userAgent = _ref2.userAgent;
let accept = _ref2.accept;
let authToken = _ref2.authToken,
userAgent = _ref2.userAgent,
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;
let userAgent = _ref.userAgent;
let authToken = _ref.authToken,
userAgent = _ref.userAgent;
var _ref$accept = _ref.accept;
let accept = _ref$accept === undefined ? CURRENT_MAJOR_VND : _ref$accept;
let timeout = _ref.timeout;
let accept = _ref$accept === undefined ? CURRENT_MAJOR_VND : _ref$accept,
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 isDevelopment = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
let prototype = 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;
let contents = _ref3.contents;
let path = _ref3.path,
contents = _ref3.contents;
return multipart.addPart({

@@ -99,3 +99,3 @@ headers: {

data: multipart.pipe(gz),
params: { isDevelopment: isDevelopment },
params: { prototype: prototype },
headers: {

@@ -102,0 +102,0 @@ 'Content-Encoding': 'gzip',

@@ -45,7 +45,7 @@ 'use strict';

let authToken = _ref.authToken;
let userAgent = _ref.userAgent;
let authToken = _ref.authToken,
userAgent = _ref.userAgent;
var _ref$accept = _ref.accept;
let accept = _ref$accept === undefined ? CURRENT_MAJOR_VND : _ref$accept;
let timeout = _ref.timeout;
let accept = _ref$accept === undefined ? CURRENT_MAJOR_VND : _ref$accept,
timeout = _ref.timeout;

@@ -52,0 +52,0 @@ super((0, _endpoints.vbase)(endpointUrl), { authToken: authToken, userAgent: userAgent, accept: accept, timeout: timeout });

{
"name": "@vtex/api",
"version": "0.11.5",
"version": "0.11.6-beta",
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc