squishjs 0.7.65 → 0.7.66

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "squishjs",
3
- "version": "0.7.65",
3
+ "version": "0.7.66",
4
4
  "description": "squish & unsquish stuff",
5
5
  "scripts": {
6
6
  "test": "node testRunner.js"
package/src/Asset.js CHANGED
@@ -126,6 +126,8 @@ class Asset {
126
126
  this.doDownload(this.info.id, HG_ASSET_PATH).then((fileLocation) => {
127
127
  this.initialized = true;
128
128
  resolve(fileLocation);
129
+ }).catch(err => {
130
+ reject(err);
129
131
  });
130
132
  }
131
133
  });
@@ -145,6 +147,8 @@ class Asset {
145
147
  resolve(buf);
146
148
  }
147
149
  });
150
+ }).catch(err => {
151
+ reject(err);
148
152
  });
149
153
  }
150
154
  });
package/src/Squisher.js CHANGED
@@ -227,6 +227,9 @@ class Squisher {
227
227
  this.assetBundle = newAssetBundle;
228
228
  resolve(newAssetBundle);
229
229
  }
230
+ }).catch(err => {
231
+ console.error('Unable to get asset data for key ' + key);
232
+ console.error(err);
230
233
  });
231
234
  }
232
235