@devicecloud.dev/dcd 3.1.0 → 3.1.1-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/methods.js +4 -2
- package/oclif.manifest.json +1 -1
- package/package.json +1 -1
package/dist/methods.js
CHANGED
|
@@ -178,7 +178,7 @@ const parseInfoPlist = async (buffer) => {
|
|
|
178
178
|
return data;
|
|
179
179
|
};
|
|
180
180
|
const extractAppMetadataIosZip = async (appFilePath) => new Promise((resolve, reject) => {
|
|
181
|
-
const zip = new StreamZip({ file:
|
|
181
|
+
const zip = new StreamZip({ file: appFilePath });
|
|
182
182
|
zip.on('ready', () => {
|
|
183
183
|
const infoPlist = Object.values(zip.entries()).find((e) => e.name.includes('Info.plist'));
|
|
184
184
|
if (!infoPlist) {
|
|
@@ -235,7 +235,9 @@ const uploadBinary = async (filePath, apiUrl, apiKey) => {
|
|
|
235
235
|
try {
|
|
236
236
|
sha = await getFileHash(filePath);
|
|
237
237
|
}
|
|
238
|
-
catch {
|
|
238
|
+
catch (e) {
|
|
239
|
+
console.log('Failed to get file hash', e);
|
|
240
|
+
throw new Error('Failed to get file hash');
|
|
239
241
|
// do nothing
|
|
240
242
|
}
|
|
241
243
|
let metadata;
|
package/oclif.manifest.json
CHANGED