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

@loaders.gl/zip

Package Overview
Dependencies
Maintainers
8
Versions
332
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@loaders.gl/zip - npm Package Compare versions

Comparing version 1.0.0-alpha.4 to 1.0.0

dist/dist.js

8

dist/es5/zip-loader.js

@@ -23,3 +23,3 @@ "use strict";

var fileMap = {};
var jsZip = new _jszip.default();
var jsZip = new _jszip["default"]();
return jsZip.loadAsync(data, options).then(function (zip) {

@@ -30,7 +30,7 @@ zip.forEach(function (relativePath, zipEntry) {

fileMap[relativePath] = arrayBuffer;
}).catch(function (error) {
})["catch"](function (error) {
options.log.error("Unable to read ".concat(subFilename, " from zip archive: ").concat(error));
fileMap[relativePath] = error;
});
promises.push(promise.catch(function (e) {
promises.push(promise["catch"](function (e) {
return e;

@@ -42,3 +42,3 @@ }));

return fileMap;
}).catch(function (error) {
})["catch"](function (error) {
options.log.error("Unable to read zip archive: ".concat(error));

@@ -45,0 +45,0 @@ throw error;

@@ -22,3 +22,3 @@ "use strict";

function encodeZipAsync(fileMap, options) {
var jsZip = new _jszip.default();
var jsZip = new _jszip["default"]();

@@ -36,3 +36,3 @@ for (var subFileName in fileMap) {

onUpdate = _options$onUpdate === void 0 ? function () {} : _options$onUpdate;
return jsZip.generateAsync(options, onUpdate).catch(function (error) {
return jsZip.generateAsync(options, onUpdate)["catch"](function (error) {
options.log.error("Unable to write zip archive: ".concat(error));

@@ -39,0 +39,0 @@ throw error;

@@ -19,3 +19,3 @@ import JSZip from 'jszip';

}).catch(error => {
options.log.error(`Unable to read ${subFilename} from zip archive: ${error}`);
options.log.error("Unable to read ".concat(subFilename, " from zip archive: ").concat(error));
fileMap[relativePath] = error;

@@ -27,3 +27,3 @@ });

}).then(() => fileMap).catch(error => {
options.log.error(`Unable to read zip archive: ${error}`);
options.log.error("Unable to read zip archive: ".concat(error));
throw error;

@@ -30,0 +30,0 @@ });

@@ -25,3 +25,3 @@ import JSZip from 'jszip';

return jsZip.generateAsync(options, onUpdate).catch(error => {
options.log.error(`Unable to write zip archive: ${error}`);
options.log.error("Unable to write zip archive: ".concat(error));
throw error;

@@ -28,0 +28,0 @@ });

@@ -18,7 +18,7 @@ import JSZip from 'jszip';

fileMap[relativePath] = arrayBuffer;
}).catch(function (error) {
})["catch"](function (error) {
options.log.error("Unable to read ".concat(subFilename, " from zip archive: ").concat(error));
fileMap[relativePath] = error;
});
promises.push(promise.catch(function (e) {
promises.push(promise["catch"](function (e) {
return e;

@@ -30,3 +30,3 @@ }));

return fileMap;
}).catch(function (error) {
})["catch"](function (error) {
options.log.error("Unable to read zip archive: ".concat(error));

@@ -33,0 +33,0 @@ throw error;

@@ -24,3 +24,3 @@ import JSZip from 'jszip';

onUpdate = _options$onUpdate === void 0 ? function () {} : _options$onUpdate;
return jsZip.generateAsync(options, onUpdate).catch(function (error) {
return jsZip.generateAsync(options, onUpdate)["catch"](function (error) {
options.log.error("Unable to write zip archive: ".concat(error));

@@ -27,0 +27,0 @@ throw error;

{
"name": "@loaders.gl/zip",
"version": "1.0.0-alpha.4",
"version": "1.0.0",
"description": "Zip Archive Loader",

@@ -24,2 +24,3 @@ "license": "MIT",

"esnext": "dist/es6/index.js",
"sideEffects": false,
"files": [

@@ -30,8 +31,10 @@ "src",

],
"scripts": {},
"sideEffects": false,
"scripts": {
"pre-build": "npm run build-bundle && npm run build-bundle -- --env.dev",
"build-bundle": "webpack --display=minimal --config ../../scripts/bundle.config.js"
},
"dependencies": {
"@loaders.gl/core": "1.0.0-alpha.4",
"@loaders.gl/core": "1.0.0",
"jszip": "^3.1.5"
}
}

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

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

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