@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 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: './' + appFilePath });
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;
@@ -317,5 +317,5 @@
317
317
  ]
318
318
  }
319
319
  },
320
- "version": "3.1.0"
320
+ "version": "3.1.1-alpha.1"
321
321
  }
package/package.json CHANGED
@@ -80,7 +80,7 @@
80
80
  "test": "mocha --forbid-only \"test/**/*.test.ts\"",
81
81
  "version": "oclif readme && git add README.md"
82
82
  },
83
- "version": "3.1.0",
83
+ "version": "3.1.1-alpha.1",
84
84
  "bugs": {
85
85
  "url": "https://discord.gg/gm3mJwcNw8"
86
86
  },