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.
@@ -425,7 +425,7 @@ var _typeof = __webpack_require__(/*! ./typeof.js */ "./node_modules/@babel/runt
425
425
  var toPrimitive = __webpack_require__(/*! ./toPrimitive.js */ "./node_modules/@babel/runtime/helpers/toPrimitive.js");
426
426
  function toPropertyKey(t) {
427
427
  var i = toPrimitive(t, "string");
428
- return "symbol" == _typeof(i) ? i : String(i);
428
+ return "symbol" == _typeof(i) ? i : i + "";
429
429
  }
430
430
  module.exports = toPropertyKey, module.exports.__esModule = true, module.exports["default"] = module.exports;
431
431
 
@@ -4852,7 +4852,7 @@ var Asset = /*#__PURE__*/function () {
4852
4852
  /** @type {Asset[]} */
4853
4853
  this.dependencies = [];
4854
4854
  }
4855
- _createClass(Asset, [{
4855
+ return _createClass(Asset, [{
4856
4856
  key: "setData",
4857
4857
  value: function setData(data, dataFormat, generateId) {
4858
4858
  if (data && !dataFormat) {
@@ -4905,7 +4905,6 @@ var Asset = /*#__PURE__*/function () {
4905
4905
  return "data:".concat(contentType, ";base64,").concat(memoizedToString(this.assetId, this.data));
4906
4906
  }
4907
4907
  }]);
4908
- return Asset;
4909
4908
  }();
4910
4909
  module.exports = Asset;
4911
4910
 
@@ -5025,7 +5024,6 @@ var BuiltinAssets = DefaultAssets.concat([]);
5025
5024
  var BuiltinHelper = /*#__PURE__*/function (_Helper) {
5026
5025
  "use strict";
5027
5026
 
5028
- _inherits(BuiltinHelper, _Helper);
5029
5027
  function BuiltinHelper(parent) {
5030
5028
  var _this;
5031
5029
  _classCallCheck(this, BuiltinHelper);
@@ -5046,7 +5044,8 @@ var BuiltinHelper = /*#__PURE__*/function (_Helper) {
5046
5044
  /**
5047
5045
  * Call `setDefaultAssetId` on the parent `ScratchStorage` instance to register all built-in default assets.
5048
5046
  */
5049
- _createClass(BuiltinHelper, [{
5047
+ _inherits(BuiltinHelper, _Helper);
5048
+ return _createClass(BuiltinHelper, [{
5050
5049
  key: "registerDefaultAssets",
5051
5050
  value: function registerDefaultAssets() {
5052
5051
  var numAssets = DefaultAssets.length;
@@ -5150,7 +5149,6 @@ var BuiltinHelper = /*#__PURE__*/function (_Helper) {
5150
5149
  return Promise.resolve(this.get(assetId));
5151
5150
  }
5152
5151
  }]);
5153
- return BuiltinHelper;
5154
5152
  }(Helper);
5155
5153
  module.exports = BuiltinHelper;
5156
5154
  /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../node_modules/buffer/index.js */ "./node_modules/buffer/index.js").Buffer))
@@ -5210,7 +5208,7 @@ var FetchTool = /*#__PURE__*/function () {
5210
5208
  function FetchTool() {
5211
5209
  _classCallCheck(this, FetchTool);
5212
5210
  }
5213
- _createClass(FetchTool, [{
5211
+ return _createClass(FetchTool, [{
5214
5212
  key: "isGetSupported",
5215
5213
  get:
5216
5214
  /**
@@ -5274,7 +5272,6 @@ var FetchTool = /*#__PURE__*/function () {
5274
5272
  });
5275
5273
  }
5276
5274
  }]);
5277
- return FetchTool;
5278
5275
  }();
5279
5276
  module.exports = FetchTool;
5280
5277
 
@@ -5378,7 +5375,7 @@ var PrivateFetchWorkerTool = /*#__PURE__*/function () {
5378
5375
  * guess that it does if the window does until the worker can inform us.
5379
5376
  * @returns {boolean} Is get supported?
5380
5377
  */
5381
- _createClass(PrivateFetchWorkerTool, [{
5378
+ return _createClass(PrivateFetchWorkerTool, [{
5382
5379
  key: "isGetSupported",
5383
5380
  get: function get() {
5384
5381
  return typeof Worker !== 'undefined' && this._workerSupport.fetch && !this._supportError;
@@ -5459,7 +5456,6 @@ var PrivateFetchWorkerTool = /*#__PURE__*/function () {
5459
5456
  return this._instance;
5460
5457
  }
5461
5458
  }]);
5462
- return PrivateFetchWorkerTool;
5463
5459
  }();
5464
5460
  /**
5465
5461
  * Get and send assets with a worker that uses fetch.
@@ -5481,7 +5477,7 @@ var PublicFetchWorkerTool = /*#__PURE__*/function () {
5481
5477
  * Is get supported?
5482
5478
  * @returns {boolean} Is get supported?
5483
5479
  */
5484
- _createClass(PublicFetchWorkerTool, [{
5480
+ return _createClass(PublicFetchWorkerTool, [{
5485
5481
  key: "isGetSupported",
5486
5482
  get: function get() {
5487
5483
  return this.inner.isGetSupported;
@@ -5518,7 +5514,6 @@ var PublicFetchWorkerTool = /*#__PURE__*/function () {
5518
5514
  throw new Error('Not implemented.');
5519
5515
  }
5520
5516
  }]);
5521
- return PublicFetchWorkerTool;
5522
5517
  }();
5523
5518
  module.exports = PublicFetchWorkerTool;
5524
5519
 
@@ -5552,13 +5547,12 @@ var Helper = /*#__PURE__*/function () {
5552
5547
  * @param {DataFormat} dataFormat - The file format / file extension of the asset to fetch: PNG, JPG, etc.
5553
5548
  * @return {Promise.<Asset>} A promise for the contents of the asset.
5554
5549
  */
5555
- _createClass(Helper, [{
5550
+ return _createClass(Helper, [{
5556
5551
  key: "load",
5557
5552
  value: function load(assetType, assetId, dataFormat) {
5558
5553
  return Promise.reject(new Error("No asset of type ".concat(assetType, " for ID ").concat(assetId, " with format ").concat(dataFormat)));
5559
5554
  }
5560
5555
  }]);
5561
- return Helper;
5562
5556
  }();
5563
5557
  module.exports = Helper;
5564
5558
 
@@ -5611,7 +5605,7 @@ var ProxyTool = /*#__PURE__*/function () {
5611
5605
  * Is get supported? false if all proxied tool return false.
5612
5606
  * @returns {boolean} Is get supported?
5613
5607
  */
5614
- _createClass(ProxyTool, [{
5608
+ return _createClass(ProxyTool, [{
5615
5609
  key: "isGetSupported",
5616
5610
  get: function get() {
5617
5611
  return this.tools.some(function (tool) {
@@ -5677,7 +5671,6 @@ var ProxyTool = /*#__PURE__*/function () {
5677
5671
  return nextTool();
5678
5672
  }
5679
5673
  }]);
5680
- return ProxyTool;
5681
5674
  }();
5682
5675
  /**
5683
5676
  * Constant values that filter the set of tools in a ProxyTool instance.
@@ -5735,7 +5728,7 @@ var ScratchStorage = /*#__PURE__*/function () {
5735
5728
  * @return {Asset} - the `Asset` class constructor.
5736
5729
  * @constructor
5737
5730
  */
5738
- _createClass(ScratchStorage, [{
5731
+ return _createClass(ScratchStorage, [{
5739
5732
  key: "Asset",
5740
5733
  get: function get() {
5741
5734
  return _Asset;
@@ -5980,7 +5973,6 @@ var ScratchStorage = /*#__PURE__*/function () {
5980
5973
  return _AssetType;
5981
5974
  }
5982
5975
  }]);
5983
- return ScratchStorage;
5984
5976
  }();
5985
5977
  module.exports = ScratchStorage;
5986
5978
 
@@ -6022,7 +6014,6 @@ var ensureRequestConfig = function ensureRequestConfig(reqConfig) {
6022
6014
  var WebHelper = /*#__PURE__*/function (_Helper) {
6023
6015
  "use strict";
6024
6016
 
6025
- _inherits(WebHelper, _Helper);
6026
6017
  function WebHelper(parent) {
6027
6018
  var _this;
6028
6019
  _classCallCheck(this, WebHelper);
@@ -6061,7 +6052,8 @@ var WebHelper = /*#__PURE__*/function (_Helper) {
6061
6052
  * @param {Array.<AssetType>} types - The types of asset provided by this source.
6062
6053
  * @param {UrlFunction} urlFunction - A function which computes a URL from an Asset.
6063
6054
  */
6064
- _createClass(WebHelper, [{
6055
+ _inherits(WebHelper, _Helper);
6056
+ return _createClass(WebHelper, [{
6065
6057
  key: "addSource",
6066
6058
  value: function addSource(types, urlFunction) {
6067
6059
  log.warn('Deprecation: WebHelper.addSource has been replaced with WebHelper.addStore.');
@@ -6196,7 +6188,6 @@ var WebHelper = /*#__PURE__*/function (_Helper) {
6196
6188
  });
6197
6189
  }
6198
6190
  }]);
6199
- return WebHelper;
6200
6191
  }(Helper);
6201
6192
  module.exports = WebHelper;
6202
6193