scratch-storage 2.3.122 → 2.3.123
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 +7 -0
- package/dist/node/scratch-storage.js +69 -96
- package/dist/node/scratch-storage.js.map +1 -1
- package/dist/web/scratch-storage.js +71 -98
- package/dist/web/scratch-storage.js.map +1 -1
- package/dist/web/scratch-storage.min.js +71 -98
- package/dist/web/scratch-storage.min.js.map +1 -1
- package/pack/scratch-storage-2.3.123.tgz +0 -0
- package/package.json +2 -2
- package/pack/scratch-storage-2.3.122.tgz +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,13 @@
|
|
|
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.123](https://github.com/scratchfoundation/scratch-storage/compare/v2.3.122...v2.3.123) (2024-05-25)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **deps:** lock file maintenance ([27364df](https://github.com/scratchfoundation/scratch-storage/commit/27364dfe2e12578729cfa89c32369b1e4106d42b))
|
|
12
|
+
|
|
6
13
|
## [2.3.122](https://github.com/scratchfoundation/scratch-storage/compare/v2.3.121...v2.3.122) (2024-05-24)
|
|
7
14
|
|
|
8
15
|
|
|
@@ -94,10 +94,10 @@ module.exports =
|
|
|
94
94
|
/*! no static exports found */
|
|
95
95
|
/***/ (function(module, exports) {
|
|
96
96
|
|
|
97
|
-
function _arrayLikeToArray(
|
|
98
|
-
|
|
99
|
-
for (var
|
|
100
|
-
return
|
|
97
|
+
function _arrayLikeToArray(r, a) {
|
|
98
|
+
(null == a || a > r.length) && (a = r.length);
|
|
99
|
+
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
100
|
+
return n;
|
|
101
101
|
}
|
|
102
102
|
module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
103
103
|
|
|
@@ -110,8 +110,8 @@ module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exp
|
|
|
110
110
|
/*! no static exports found */
|
|
111
111
|
/***/ (function(module, exports) {
|
|
112
112
|
|
|
113
|
-
function _arrayWithHoles(
|
|
114
|
-
if (Array.isArray(
|
|
113
|
+
function _arrayWithHoles(r) {
|
|
114
|
+
if (Array.isArray(r)) return r;
|
|
115
115
|
}
|
|
116
116
|
module.exports = _arrayWithHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
117
117
|
|
|
@@ -124,11 +124,9 @@ module.exports = _arrayWithHoles, module.exports.__esModule = true, module.expor
|
|
|
124
124
|
/*! no static exports found */
|
|
125
125
|
/***/ (function(module, exports) {
|
|
126
126
|
|
|
127
|
-
function _assertThisInitialized(
|
|
128
|
-
if (
|
|
129
|
-
|
|
130
|
-
}
|
|
131
|
-
return self;
|
|
127
|
+
function _assertThisInitialized(e) {
|
|
128
|
+
if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
129
|
+
return e;
|
|
132
130
|
}
|
|
133
131
|
module.exports = _assertThisInitialized, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
134
132
|
|
|
@@ -141,10 +139,8 @@ module.exports = _assertThisInitialized, module.exports.__esModule = true, modul
|
|
|
141
139
|
/*! no static exports found */
|
|
142
140
|
/***/ (function(module, exports) {
|
|
143
141
|
|
|
144
|
-
function _classCallCheck(
|
|
145
|
-
if (!(
|
|
146
|
-
throw new TypeError("Cannot call a class as a function");
|
|
147
|
-
}
|
|
142
|
+
function _classCallCheck(a, n) {
|
|
143
|
+
if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
|
|
148
144
|
}
|
|
149
145
|
module.exports = _classCallCheck, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
150
146
|
|
|
@@ -158,22 +154,16 @@ module.exports = _classCallCheck, module.exports.__esModule = true, module.expor
|
|
|
158
154
|
/***/ (function(module, exports, __webpack_require__) {
|
|
159
155
|
|
|
160
156
|
var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ "./node_modules/@babel/runtime/helpers/toPropertyKey.js");
|
|
161
|
-
function _defineProperties(
|
|
162
|
-
for (var
|
|
163
|
-
var
|
|
164
|
-
|
|
165
|
-
descriptor.configurable = true;
|
|
166
|
-
if ("value" in descriptor) descriptor.writable = true;
|
|
167
|
-
Object.defineProperty(target, toPropertyKey(descriptor.key), descriptor);
|
|
157
|
+
function _defineProperties(e, r) {
|
|
158
|
+
for (var t = 0; t < r.length; t++) {
|
|
159
|
+
var o = r[t];
|
|
160
|
+
o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, toPropertyKey(o.key), o);
|
|
168
161
|
}
|
|
169
162
|
}
|
|
170
|
-
function _createClass(
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
writable: false
|
|
175
|
-
});
|
|
176
|
-
return Constructor;
|
|
163
|
+
function _createClass(e, r, t) {
|
|
164
|
+
return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", {
|
|
165
|
+
writable: !1
|
|
166
|
+
}), e;
|
|
177
167
|
}
|
|
178
168
|
module.exports = _createClass, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
179
169
|
|
|
@@ -186,11 +176,10 @@ module.exports = _createClass, module.exports.__esModule = true, module.exports[
|
|
|
186
176
|
/*! no static exports found */
|
|
187
177
|
/***/ (function(module, exports) {
|
|
188
178
|
|
|
189
|
-
function _getPrototypeOf(
|
|
190
|
-
module.exports = _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function
|
|
191
|
-
return
|
|
192
|
-
}, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
193
|
-
return _getPrototypeOf(o);
|
|
179
|
+
function _getPrototypeOf(t) {
|
|
180
|
+
return (module.exports = _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) {
|
|
181
|
+
return t.__proto__ || Object.getPrototypeOf(t);
|
|
182
|
+
}, module.exports.__esModule = true, module.exports["default"] = module.exports), _getPrototypeOf(t);
|
|
194
183
|
}
|
|
195
184
|
module.exports = _getPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
196
185
|
|
|
@@ -204,21 +193,17 @@ module.exports = _getPrototypeOf, module.exports.__esModule = true, module.expor
|
|
|
204
193
|
/***/ (function(module, exports, __webpack_require__) {
|
|
205
194
|
|
|
206
195
|
var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ "./node_modules/@babel/runtime/helpers/setPrototypeOf.js");
|
|
207
|
-
function _inherits(
|
|
208
|
-
if (typeof
|
|
209
|
-
|
|
210
|
-
}
|
|
211
|
-
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
196
|
+
function _inherits(t, e) {
|
|
197
|
+
if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function");
|
|
198
|
+
t.prototype = Object.create(e && e.prototype, {
|
|
212
199
|
constructor: {
|
|
213
|
-
value:
|
|
214
|
-
writable:
|
|
215
|
-
configurable:
|
|
200
|
+
value: t,
|
|
201
|
+
writable: !0,
|
|
202
|
+
configurable: !0
|
|
216
203
|
}
|
|
217
|
-
})
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
});
|
|
221
|
-
if (superClass) setPrototypeOf(subClass, superClass);
|
|
204
|
+
}), Object.defineProperty(t, "prototype", {
|
|
205
|
+
writable: !1
|
|
206
|
+
}), e && setPrototypeOf(t, e);
|
|
222
207
|
}
|
|
223
208
|
module.exports = _inherits, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
224
209
|
|
|
@@ -284,20 +269,16 @@ module.exports = _nonIterableRest, module.exports.__esModule = true, module.expo
|
|
|
284
269
|
/***/ (function(module, exports, __webpack_require__) {
|
|
285
270
|
|
|
286
271
|
var objectWithoutPropertiesLoose = __webpack_require__(/*! ./objectWithoutPropertiesLoose.js */ "./node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js");
|
|
287
|
-
function _objectWithoutProperties(
|
|
288
|
-
if (
|
|
289
|
-
var
|
|
290
|
-
|
|
272
|
+
function _objectWithoutProperties(e, t) {
|
|
273
|
+
if (null == e) return {};
|
|
274
|
+
var o,
|
|
275
|
+
r,
|
|
276
|
+
i = objectWithoutPropertiesLoose(e, t);
|
|
291
277
|
if (Object.getOwnPropertySymbols) {
|
|
292
|
-
var
|
|
293
|
-
for (
|
|
294
|
-
key = sourceSymbolKeys[i];
|
|
295
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
296
|
-
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
297
|
-
target[key] = source[key];
|
|
298
|
-
}
|
|
278
|
+
var n = Object.getOwnPropertySymbols(e);
|
|
279
|
+
for (r = 0; r < n.length; r++) o = n[r], t.indexOf(o) >= 0 || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
|
|
299
280
|
}
|
|
300
|
-
return
|
|
281
|
+
return i;
|
|
301
282
|
}
|
|
302
283
|
module.exports = _objectWithoutProperties, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
303
284
|
|
|
@@ -310,16 +291,14 @@ module.exports = _objectWithoutProperties, module.exports.__esModule = true, mod
|
|
|
310
291
|
/*! no static exports found */
|
|
311
292
|
/***/ (function(module, exports) {
|
|
312
293
|
|
|
313
|
-
function _objectWithoutPropertiesLoose(
|
|
314
|
-
if (
|
|
315
|
-
var
|
|
316
|
-
for (var
|
|
317
|
-
if (
|
|
318
|
-
|
|
319
|
-
target[key] = source[key];
|
|
320
|
-
}
|
|
294
|
+
function _objectWithoutPropertiesLoose(r, e) {
|
|
295
|
+
if (null == r) return {};
|
|
296
|
+
var t = {};
|
|
297
|
+
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
298
|
+
if (e.indexOf(n) >= 0) continue;
|
|
299
|
+
t[n] = r[n];
|
|
321
300
|
}
|
|
322
|
-
return
|
|
301
|
+
return t;
|
|
323
302
|
}
|
|
324
303
|
module.exports = _objectWithoutPropertiesLoose, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
325
304
|
|
|
@@ -334,13 +313,10 @@ module.exports = _objectWithoutPropertiesLoose, module.exports.__esModule = true
|
|
|
334
313
|
|
|
335
314
|
var _typeof = __webpack_require__(/*! ./typeof.js */ "./node_modules/@babel/runtime/helpers/typeof.js")["default"];
|
|
336
315
|
var assertThisInitialized = __webpack_require__(/*! ./assertThisInitialized.js */ "./node_modules/@babel/runtime/helpers/assertThisInitialized.js");
|
|
337
|
-
function _possibleConstructorReturn(
|
|
338
|
-
if (
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
throw new TypeError("Derived constructors may only return object or undefined");
|
|
342
|
-
}
|
|
343
|
-
return assertThisInitialized(self);
|
|
316
|
+
function _possibleConstructorReturn(t, e) {
|
|
317
|
+
if (e && ("object" == _typeof(e) || "function" == typeof e)) return e;
|
|
318
|
+
if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
|
|
319
|
+
return assertThisInitialized(t);
|
|
344
320
|
}
|
|
345
321
|
module.exports = _possibleConstructorReturn, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
346
322
|
|
|
@@ -353,12 +329,10 @@ module.exports = _possibleConstructorReturn, module.exports.__esModule = true, m
|
|
|
353
329
|
/*! no static exports found */
|
|
354
330
|
/***/ (function(module, exports) {
|
|
355
331
|
|
|
356
|
-
function _setPrototypeOf(
|
|
357
|
-
module.exports = _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
}, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
361
|
-
return _setPrototypeOf(o, p);
|
|
332
|
+
function _setPrototypeOf(t, e) {
|
|
333
|
+
return (module.exports = _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
|
|
334
|
+
return t.__proto__ = e, t;
|
|
335
|
+
}, module.exports.__esModule = true, module.exports["default"] = module.exports), _setPrototypeOf(t, e);
|
|
362
336
|
}
|
|
363
337
|
module.exports = _setPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
364
338
|
|
|
@@ -375,8 +349,8 @@ var arrayWithHoles = __webpack_require__(/*! ./arrayWithHoles.js */ "./node_modu
|
|
|
375
349
|
var iterableToArrayLimit = __webpack_require__(/*! ./iterableToArrayLimit.js */ "./node_modules/@babel/runtime/helpers/iterableToArrayLimit.js");
|
|
376
350
|
var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ "./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js");
|
|
377
351
|
var nonIterableRest = __webpack_require__(/*! ./nonIterableRest.js */ "./node_modules/@babel/runtime/helpers/nonIterableRest.js");
|
|
378
|
-
function _slicedToArray(
|
|
379
|
-
return arrayWithHoles(
|
|
352
|
+
function _slicedToArray(r, e) {
|
|
353
|
+
return arrayWithHoles(r) || iterableToArrayLimit(r, e) || unsupportedIterableToArray(r, e) || nonIterableRest();
|
|
380
354
|
}
|
|
381
355
|
module.exports = _slicedToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
382
356
|
|
|
@@ -449,13 +423,12 @@ module.exports = _typeof, module.exports.__esModule = true, module.exports["defa
|
|
|
449
423
|
/***/ (function(module, exports, __webpack_require__) {
|
|
450
424
|
|
|
451
425
|
var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ "./node_modules/@babel/runtime/helpers/arrayLikeToArray.js");
|
|
452
|
-
function _unsupportedIterableToArray(
|
|
453
|
-
if (
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);
|
|
426
|
+
function _unsupportedIterableToArray(r, a) {
|
|
427
|
+
if (r) {
|
|
428
|
+
if ("string" == typeof r) return arrayLikeToArray(r, a);
|
|
429
|
+
var t = {}.toString.call(r).slice(8, -1);
|
|
430
|
+
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? arrayLikeToArray(r, a) : void 0;
|
|
431
|
+
}
|
|
459
432
|
}
|
|
460
433
|
module.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
461
434
|
|
|
@@ -5982,9 +5955,9 @@ var _objectWithoutProperties = __webpack_require__(/*! @babel/runtime/helpers/ob
|
|
|
5982
5955
|
var _classCallCheck = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "./node_modules/@babel/runtime/helpers/classCallCheck.js");
|
|
5983
5956
|
var _createClass = __webpack_require__(/*! @babel/runtime/helpers/createClass */ "./node_modules/@babel/runtime/helpers/createClass.js");
|
|
5984
5957
|
var _excluded = ["url"];
|
|
5985
|
-
function _createForOfIteratorHelper(
|
|
5986
|
-
function _unsupportedIterableToArray(
|
|
5987
|
-
function _arrayLikeToArray(
|
|
5958
|
+
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }
|
|
5959
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
5960
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
5988
5961
|
var _require = __webpack_require__(/*! ./scratchFetch */ "./src/scratchFetch.js"),
|
|
5989
5962
|
Headers = _require.Headers,
|
|
5990
5963
|
applyMetadata = _require.applyMetadata;
|
|
@@ -6958,9 +6931,9 @@ module.exports = minilog('storage');
|
|
|
6958
6931
|
/***/ (function(module, exports, __webpack_require__) {
|
|
6959
6932
|
|
|
6960
6933
|
var _slicedToArray = __webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ "./node_modules/@babel/runtime/helpers/slicedToArray.js");
|
|
6961
|
-
function _createForOfIteratorHelper(
|
|
6962
|
-
function _unsupportedIterableToArray(
|
|
6963
|
-
function _arrayLikeToArray(
|
|
6934
|
+
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }
|
|
6935
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
6936
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
6964
6937
|
var crossFetch = __webpack_require__(/*! cross-fetch */ "./node_modules/cross-fetch/dist/node-ponyfill.js");
|
|
6965
6938
|
|
|
6966
6939
|
/**
|