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

@vtex/api

Package Overview
Dependencies
Maintainers
20
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.21.1 to 0.21.2

.idea/codeStyleSettings.xml

24

lib/Apps.js

@@ -401,13 +401,17 @@ 'use strict';

getAppBundle: (app, bundlePath) => client(routes.AppBundle(app, bundlePath), {
responseType: 'stream',
transformResponse: _baseClient.noTransforms,
headers: {
'Accept': 'application/x-gzip',
'Accept-Encoding': 'gzip'
}
}),
getAppBundle: (app, bundlePath, generatePackageJson) => {
const params = generatePackageJson && { _packageJSONEngine: 'npm', _packageJSONFilter: 'vtex.render-builder@x' };
return client(routes.AppBundle(app, bundlePath), {
responseType: 'stream',
transformResponse: _baseClient.noTransforms,
params: params,
headers: {
'Accept': 'application/x-gzip',
'Accept-Encoding': 'gzip'
}
});
},
unpackAppBundle: (app, bundlePath, unpackPath) => new Promise(function ($return, $error) {
return apps.getAppBundle(app, bundlePath).then(function ($await_1) {
unpackAppBundle: (app, bundlePath, unpackPath, generatePackageJson) => new Promise(function ($return, $error) {
return apps.getAppBundle(app, bundlePath, generatePackageJson).then(function ($await_1) {
$await_1.pipe((0, _zlib.createGunzip)()).pipe((0, _tarFs.extract)(unpackPath));

@@ -414,0 +418,0 @@ return $return();

@@ -373,13 +373,17 @@ 'use strict';

getAppBundle: (app, version, bundlePath) => client(routes.AppBundle(app, version, bundlePath), {
responseType: 'stream',
transformResponse: _baseClient.noTransforms,
headers: {
'Accept': 'application/x-gzip',
'Accept-Encoding': 'gzip'
}
}),
getAppBundle: (app, version, bundlePath, generatePackageJson) => {
const params = generatePackageJson && { _packageJSONEngine: 'npm', _packageJSONFilter: 'vtex.render-builder@x' };
return client(routes.AppBundle(app, version, bundlePath), {
responseType: 'stream',
transformResponse: _baseClient.noTransforms,
params: params,
headers: {
'Accept': 'application/x-gzip',
'Accept-Encoding': 'gzip'
}
});
},
unpackAppBundle: (app, version, bundlePath, unpackPath) => new Promise(function ($return, $error) {
return registry.getAppBundle(app, version, bundlePath).then(function ($await_1) {
unpackAppBundle: (app, version, bundlePath, unpackPath, generatePackageJson) => new Promise(function ($return, $error) {
return registry.getAppBundle(app, version, bundlePath, generatePackageJson).then(function ($await_1) {
$await_1.pipe((0, _zlib.createGunzip)()).pipe((0, _tarFs.extract)(unpackPath));

@@ -386,0 +390,0 @@ return $return();

{
"name": "@vtex/api",
"version": "0.21.1",
"version": "0.21.2",
"description": "VTEX I/O API client",

@@ -5,0 +5,0 @@ "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