scratch-storage 2.3.49 → 2.3.51

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/CHANGELOG.md CHANGED
@@ -3,6 +3,20 @@
3
3
  All notable changes to this project will be documented in this file. See
4
4
  [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [2.3.51](https://github.com/scratchfoundation/scratch-storage/compare/v2.3.50...v2.3.51) (2024-03-20)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **deps:** lock file maintenance ([eceef25](https://github.com/scratchfoundation/scratch-storage/commit/eceef25aa35848afc84ead747f50e3524a6ff0d5))
12
+
13
+ ## [2.3.50](https://github.com/scratchfoundation/scratch-storage/compare/v2.3.49...v2.3.50) (2024-03-19)
14
+
15
+
16
+ ### Bug Fixes
17
+
18
+ * **deps:** lock file maintenance ([7feadb8](https://github.com/scratchfoundation/scratch-storage/commit/7feadb85173f8ea77d623d83b698962c3717782f))
19
+
6
20
  ## [2.3.49](https://github.com/scratchfoundation/scratch-storage/compare/v2.3.48...v2.3.49) (2024-03-19)
7
21
 
8
22
 
@@ -416,7 +416,7 @@ var _typeof = __webpack_require__(/*! ./typeof.js */ "./node_modules/@babel/runt
416
416
  var toPrimitive = __webpack_require__(/*! ./toPrimitive.js */ "./node_modules/@babel/runtime/helpers/toPrimitive.js");
417
417
  function toPropertyKey(t) {
418
418
  var i = toPrimitive(t, "string");
419
- return "symbol" == _typeof(i) ? i : String(i);
419
+ return "symbol" == _typeof(i) ? i : i + "";
420
420
  }
421
421
  module.exports = toPropertyKey, module.exports.__esModule = true, module.exports["default"] = module.exports;
422
422
 
@@ -5548,7 +5548,7 @@ var Asset = /*#__PURE__*/function () {
5548
5548
  /** @type {Asset[]} */
5549
5549
  this.dependencies = [];
5550
5550
  }
5551
- _createClass(Asset, [{
5551
+ return _createClass(Asset, [{
5552
5552
  key: "setData",
5553
5553
  value: function setData(data, dataFormat, generateId) {
5554
5554
  if (data && !dataFormat) {
@@ -5601,7 +5601,6 @@ var Asset = /*#__PURE__*/function () {
5601
5601
  return "data:".concat(contentType, ";base64,").concat(memoizedToString(this.assetId, this.data));
5602
5602
  }
5603
5603
  }]);
5604
- return Asset;
5605
5604
  }();
5606
5605
  module.exports = Asset;
5607
5606
 
@@ -5721,7 +5720,6 @@ var BuiltinAssets = DefaultAssets.concat([]);
5721
5720
  var BuiltinHelper = /*#__PURE__*/function (_Helper) {
5722
5721
  "use strict";
5723
5722
 
5724
- _inherits(BuiltinHelper, _Helper);
5725
5723
  function BuiltinHelper(parent) {
5726
5724
  var _this;
5727
5725
  _classCallCheck(this, BuiltinHelper);
@@ -5742,7 +5740,8 @@ var BuiltinHelper = /*#__PURE__*/function (_Helper) {
5742
5740
  /**
5743
5741
  * Call `setDefaultAssetId` on the parent `ScratchStorage` instance to register all built-in default assets.
5744
5742
  */
5745
- _createClass(BuiltinHelper, [{
5743
+ _inherits(BuiltinHelper, _Helper);
5744
+ return _createClass(BuiltinHelper, [{
5746
5745
  key: "registerDefaultAssets",
5747
5746
  value: function registerDefaultAssets() {
5748
5747
  var numAssets = DefaultAssets.length;
@@ -5846,7 +5845,6 @@ var BuiltinHelper = /*#__PURE__*/function (_Helper) {
5846
5845
  return Promise.resolve(this.get(assetId));
5847
5846
  }
5848
5847
  }]);
5849
- return BuiltinHelper;
5850
5848
  }(Helper);
5851
5849
  module.exports = BuiltinHelper;
5852
5850
 
@@ -5905,7 +5903,7 @@ var FetchTool = /*#__PURE__*/function () {
5905
5903
  function FetchTool() {
5906
5904
  _classCallCheck(this, FetchTool);
5907
5905
  }
5908
- _createClass(FetchTool, [{
5906
+ return _createClass(FetchTool, [{
5909
5907
  key: "isGetSupported",
5910
5908
  get:
5911
5909
  /**
@@ -5969,7 +5967,6 @@ var FetchTool = /*#__PURE__*/function () {
5969
5967
  });
5970
5968
  }
5971
5969
  }]);
5972
- return FetchTool;
5973
5970
  }();
5974
5971
  module.exports = FetchTool;
5975
5972
 
@@ -6073,7 +6070,7 @@ var PrivateFetchWorkerTool = /*#__PURE__*/function () {
6073
6070
  * guess that it does if the window does until the worker can inform us.
6074
6071
  * @returns {boolean} Is get supported?
6075
6072
  */
6076
- _createClass(PrivateFetchWorkerTool, [{
6073
+ return _createClass(PrivateFetchWorkerTool, [{
6077
6074
  key: "isGetSupported",
6078
6075
  get: function get() {
6079
6076
  return typeof Worker !== 'undefined' && this._workerSupport.fetch && !this._supportError;
@@ -6154,7 +6151,6 @@ var PrivateFetchWorkerTool = /*#__PURE__*/function () {
6154
6151
  return this._instance;
6155
6152
  }
6156
6153
  }]);
6157
- return PrivateFetchWorkerTool;
6158
6154
  }();
6159
6155
  /**
6160
6156
  * Get and send assets with a worker that uses fetch.
@@ -6176,7 +6172,7 @@ var PublicFetchWorkerTool = /*#__PURE__*/function () {
6176
6172
  * Is get supported?
6177
6173
  * @returns {boolean} Is get supported?
6178
6174
  */
6179
- _createClass(PublicFetchWorkerTool, [{
6175
+ return _createClass(PublicFetchWorkerTool, [{
6180
6176
  key: "isGetSupported",
6181
6177
  get: function get() {
6182
6178
  return this.inner.isGetSupported;
@@ -6213,7 +6209,6 @@ var PublicFetchWorkerTool = /*#__PURE__*/function () {
6213
6209
  throw new Error('Not implemented.');
6214
6210
  }
6215
6211
  }]);
6216
- return PublicFetchWorkerTool;
6217
6212
  }();
6218
6213
  module.exports = PublicFetchWorkerTool;
6219
6214
 
@@ -6247,13 +6242,12 @@ var Helper = /*#__PURE__*/function () {
6247
6242
  * @param {DataFormat} dataFormat - The file format / file extension of the asset to fetch: PNG, JPG, etc.
6248
6243
  * @return {Promise.<Asset>} A promise for the contents of the asset.
6249
6244
  */
6250
- _createClass(Helper, [{
6245
+ return _createClass(Helper, [{
6251
6246
  key: "load",
6252
6247
  value: function load(assetType, assetId, dataFormat) {
6253
6248
  return Promise.reject(new Error("No asset of type ".concat(assetType, " for ID ").concat(assetId, " with format ").concat(dataFormat)));
6254
6249
  }
6255
6250
  }]);
6256
- return Helper;
6257
6251
  }();
6258
6252
  module.exports = Helper;
6259
6253
 
@@ -6306,7 +6300,7 @@ var ProxyTool = /*#__PURE__*/function () {
6306
6300
  * Is get supported? false if all proxied tool return false.
6307
6301
  * @returns {boolean} Is get supported?
6308
6302
  */
6309
- _createClass(ProxyTool, [{
6303
+ return _createClass(ProxyTool, [{
6310
6304
  key: "isGetSupported",
6311
6305
  get: function get() {
6312
6306
  return this.tools.some(function (tool) {
@@ -6372,7 +6366,6 @@ var ProxyTool = /*#__PURE__*/function () {
6372
6366
  return nextTool();
6373
6367
  }
6374
6368
  }]);
6375
- return ProxyTool;
6376
6369
  }();
6377
6370
  /**
6378
6371
  * Constant values that filter the set of tools in a ProxyTool instance.
@@ -6430,7 +6423,7 @@ var ScratchStorage = /*#__PURE__*/function () {
6430
6423
  * @return {Asset} - the `Asset` class constructor.
6431
6424
  * @constructor
6432
6425
  */
6433
- _createClass(ScratchStorage, [{
6426
+ return _createClass(ScratchStorage, [{
6434
6427
  key: "Asset",
6435
6428
  get: function get() {
6436
6429
  return _Asset;
@@ -6675,7 +6668,6 @@ var ScratchStorage = /*#__PURE__*/function () {
6675
6668
  return _AssetType;
6676
6669
  }
6677
6670
  }]);
6678
- return ScratchStorage;
6679
6671
  }();
6680
6672
  module.exports = ScratchStorage;
6681
6673
 
@@ -6717,7 +6709,6 @@ var ensureRequestConfig = function ensureRequestConfig(reqConfig) {
6717
6709
  var WebHelper = /*#__PURE__*/function (_Helper) {
6718
6710
  "use strict";
6719
6711
 
6720
- _inherits(WebHelper, _Helper);
6721
6712
  function WebHelper(parent) {
6722
6713
  var _this;
6723
6714
  _classCallCheck(this, WebHelper);
@@ -6756,7 +6747,8 @@ var WebHelper = /*#__PURE__*/function (_Helper) {
6756
6747
  * @param {Array.<AssetType>} types - The types of asset provided by this source.
6757
6748
  * @param {UrlFunction} urlFunction - A function which computes a URL from an Asset.
6758
6749
  */
6759
- _createClass(WebHelper, [{
6750
+ _inherits(WebHelper, _Helper);
6751
+ return _createClass(WebHelper, [{
6760
6752
  key: "addSource",
6761
6753
  value: function addSource(types, urlFunction) {
6762
6754
  log.warn('Deprecation: WebHelper.addSource has been replaced with WebHelper.addStore.');
@@ -6891,7 +6883,6 @@ var WebHelper = /*#__PURE__*/function (_Helper) {
6891
6883
  });
6892
6884
  }
6893
6885
  }]);
6894
- return WebHelper;
6895
6886
  }(Helper);
6896
6887
  module.exports = WebHelper;
6897
6888