scratch-storage 2.0.0 → 2.0.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/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "scratch-storage",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "description": "Load and store project and asset files for Scratch 3.0",
5
5
  "license": "BSD-3-Clause",
6
6
  "homepage": "https://github.com/LLK/scratch-storage#readme",
7
7
  "repository": {
8
8
  "type": "git",
9
9
  "url": "https://github.com/LLK/scratch-storage.git",
10
- "sha": "6aa3ebea57319215450963b29455cbb344ee59fd"
10
+ "sha": "3ae331e586ac94740b7ccd8f82f7dd4e901a2fff"
11
11
  },
12
12
  "main": "./dist/node/scratch-storage.js",
13
13
  "browser": "./src/index.js",
@@ -96,7 +96,8 @@ class PrivateFetchWorkerTool {
96
96
  reject
97
97
  };
98
98
  })
99
- .then(body => new Uint8Array(body));
99
+ /* eslint no-confusing-arrow: ["error", {"allowParens": true}] */
100
+ .then(body => (body ? new Uint8Array(body) : null));
100
101
  }
101
102
 
102
103
  /**