New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.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

to
0.21.4

.idea/codeStyleSettings.xml

12

lib/Apps.js

@@ -15,4 +15,10 @@ 'use strict';

var _streamToPromise = require('stream-to-promise');
var _streamToPromise2 = _interopRequireDefault(_streamToPromise);
var _baseClient = require('./baseClient');
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
Function.prototype.$asyncbind = function $asyncbind(self, catcher) {

@@ -416,5 +422,7 @@ "use strict";

unpackAppBundle: (app, bundlePath, unpackPath, generatePackageJson) => new Promise(function ($return, $error) {
var stream;
return apps.getAppBundle(app, bundlePath, generatePackageJson).then(function ($await_1) {
$await_1.pipe((0, _zlib.createGunzip)()).pipe((0, _tarFs.extract)(unpackPath));
return $return();
stream = $await_1;
return $return((0, _streamToPromise2.default)(stream.pipe((0, _zlib.createGunzip)()).pipe((0, _tarFs.extract)(unpackPath))));
}.$asyncbind(this, $error), $error);

@@ -421,0 +429,0 @@ }.$asyncbind(this)),

10

lib/Registry.js

@@ -19,2 +19,6 @@ 'use strict';

var _streamToPromise = require('stream-to-promise');
var _streamToPromise2 = _interopRequireDefault(_streamToPromise);
var _baseClient = require('./baseClient');

@@ -388,5 +392,7 @@

unpackAppBundle: (app, version, bundlePath, unpackPath, generatePackageJson) => new Promise(function ($return, $error) {
var stream;
return registry.getAppBundle(app, version, bundlePath, generatePackageJson).then(function ($await_1) {
$await_1.pipe((0, _zlib.createGunzip)()).pipe((0, _tarFs.extract)(unpackPath));
return $return();
stream = $await_1;
return $return((0, _streamToPromise2.default)(stream.pipe((0, _zlib.createGunzip)()).pipe((0, _tarFs.extract)(unpackPath))));
}.$asyncbind(this, $error), $error);

@@ -393,0 +399,0 @@ }.$asyncbind(this))

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

@@ -35,2 +35,3 @@ "main": "./lib/index.js",

"multipart-stream": "^2.0.1",
"stream-to-promise": "^2.2.0",
"tar-fs": "^1.15.3"

@@ -37,0 +38,0 @@ },

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