@loaders.gl/zip
Advanced tools
Comparing version 1.0.0-alpha.4 to 1.0.0
@@ -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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
782076
32
16408
1
1
+ Added@loaders.gl/core@1.0.0(transitive)
- Removed@loaders.gl/core@1.0.0-alpha.4(transitive)
- Removedtext-encoding@0.6.4(transitive)
Updated@loaders.gl/core@1.0.0