@devicecloud.dev/dcd 3.1.0 → 3.1.1-alpha.1
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 +5 -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) {
|
|
@@ -234,8 +234,11 @@ const uploadBinary = async (filePath, apiUrl, apiKey) => {
|
|
|
234
234
|
let sha = undefined;
|
|
235
235
|
try {
|
|
236
236
|
sha = await getFileHash(filePath);
|
|
237
|
+
console.log('File hash', sha);
|
|
237
238
|
}
|
|
238
|
-
catch {
|
|
239
|
+
catch (e) {
|
|
240
|
+
console.log('Failed to get file hash', e);
|
|
241
|
+
throw new Error('Failed to get file hash');
|
|
239
242
|
// do nothing
|
|
240
243
|
}
|
|
241
244
|
let metadata;
|
package/oclif.manifest.json
CHANGED