scratch-storage 2.3.122 → 2.3.124
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 +14 -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.124.tgz +0 -0
- package/package.json +2 -2
- package/pack/scratch-storage-2.3.122.tgz +0 -0
|
@@ -103,10 +103,10 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
103
103
|
/*! no static exports found */
|
|
104
104
|
/***/ (function(module, exports) {
|
|
105
105
|
|
|
106
|
-
function _arrayLikeToArray(
|
|
107
|
-
|
|
108
|
-
for (var
|
|
109
|
-
return
|
|
106
|
+
function _arrayLikeToArray(r, a) {
|
|
107
|
+
(null == a || a > r.length) && (a = r.length);
|
|
108
|
+
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
109
|
+
return n;
|
|
110
110
|
}
|
|
111
111
|
module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
112
112
|
|
|
@@ -119,8 +119,8 @@ module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exp
|
|
|
119
119
|
/*! no static exports found */
|
|
120
120
|
/***/ (function(module, exports) {
|
|
121
121
|
|
|
122
|
-
function _arrayWithHoles(
|
|
123
|
-
if (Array.isArray(
|
|
122
|
+
function _arrayWithHoles(r) {
|
|
123
|
+
if (Array.isArray(r)) return r;
|
|
124
124
|
}
|
|
125
125
|
module.exports = _arrayWithHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
126
126
|
|
|
@@ -133,11 +133,9 @@ module.exports = _arrayWithHoles, module.exports.__esModule = true, module.expor
|
|
|
133
133
|
/*! no static exports found */
|
|
134
134
|
/***/ (function(module, exports) {
|
|
135
135
|
|
|
136
|
-
function _assertThisInitialized(
|
|
137
|
-
if (
|
|
138
|
-
|
|
139
|
-
}
|
|
140
|
-
return self;
|
|
136
|
+
function _assertThisInitialized(e) {
|
|
137
|
+
if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
138
|
+
return e;
|
|
141
139
|
}
|
|
142
140
|
module.exports = _assertThisInitialized, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
143
141
|
|
|
@@ -150,10 +148,8 @@ module.exports = _assertThisInitialized, module.exports.__esModule = true, modul
|
|
|
150
148
|
/*! no static exports found */
|
|
151
149
|
/***/ (function(module, exports) {
|
|
152
150
|
|
|
153
|
-
function _classCallCheck(
|
|
154
|
-
if (!(
|
|
155
|
-
throw new TypeError("Cannot call a class as a function");
|
|
156
|
-
}
|
|
151
|
+
function _classCallCheck(a, n) {
|
|
152
|
+
if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
|
|
157
153
|
}
|
|
158
154
|
module.exports = _classCallCheck, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
159
155
|
|
|
@@ -167,22 +163,16 @@ module.exports = _classCallCheck, module.exports.__esModule = true, module.expor
|
|
|
167
163
|
/***/ (function(module, exports, __webpack_require__) {
|
|
168
164
|
|
|
169
165
|
var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ "./node_modules/@babel/runtime/helpers/toPropertyKey.js");
|
|
170
|
-
function _defineProperties(
|
|
171
|
-
for (var
|
|
172
|
-
var
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
181
|
-
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
182
|
-
Object.defineProperty(Constructor, "prototype", {
|
|
183
|
-
writable: false
|
|
184
|
-
});
|
|
185
|
-
return Constructor;
|
|
166
|
+
function _defineProperties(e, r) {
|
|
167
|
+
for (var t = 0; t < r.length; t++) {
|
|
168
|
+
var o = r[t];
|
|
169
|
+
o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, toPropertyKey(o.key), o);
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
function _createClass(e, r, t) {
|
|
173
|
+
return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", {
|
|
174
|
+
writable: !1
|
|
175
|
+
}), e;
|
|
186
176
|
}
|
|
187
177
|
module.exports = _createClass, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
188
178
|
|
|
@@ -195,11 +185,10 @@ module.exports = _createClass, module.exports.__esModule = true, module.exports[
|
|
|
195
185
|
/*! no static exports found */
|
|
196
186
|
/***/ (function(module, exports) {
|
|
197
187
|
|
|
198
|
-
function _getPrototypeOf(
|
|
199
|
-
module.exports = _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function
|
|
200
|
-
return
|
|
201
|
-
}, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
202
|
-
return _getPrototypeOf(o);
|
|
188
|
+
function _getPrototypeOf(t) {
|
|
189
|
+
return (module.exports = _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) {
|
|
190
|
+
return t.__proto__ || Object.getPrototypeOf(t);
|
|
191
|
+
}, module.exports.__esModule = true, module.exports["default"] = module.exports), _getPrototypeOf(t);
|
|
203
192
|
}
|
|
204
193
|
module.exports = _getPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
205
194
|
|
|
@@ -213,21 +202,17 @@ module.exports = _getPrototypeOf, module.exports.__esModule = true, module.expor
|
|
|
213
202
|
/***/ (function(module, exports, __webpack_require__) {
|
|
214
203
|
|
|
215
204
|
var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ "./node_modules/@babel/runtime/helpers/setPrototypeOf.js");
|
|
216
|
-
function _inherits(
|
|
217
|
-
if (typeof
|
|
218
|
-
|
|
219
|
-
}
|
|
220
|
-
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
205
|
+
function _inherits(t, e) {
|
|
206
|
+
if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function");
|
|
207
|
+
t.prototype = Object.create(e && e.prototype, {
|
|
221
208
|
constructor: {
|
|
222
|
-
value:
|
|
223
|
-
writable:
|
|
224
|
-
configurable:
|
|
209
|
+
value: t,
|
|
210
|
+
writable: !0,
|
|
211
|
+
configurable: !0
|
|
225
212
|
}
|
|
226
|
-
})
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
});
|
|
230
|
-
if (superClass) setPrototypeOf(subClass, superClass);
|
|
213
|
+
}), Object.defineProperty(t, "prototype", {
|
|
214
|
+
writable: !1
|
|
215
|
+
}), e && setPrototypeOf(t, e);
|
|
231
216
|
}
|
|
232
217
|
module.exports = _inherits, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
233
218
|
|
|
@@ -293,20 +278,16 @@ module.exports = _nonIterableRest, module.exports.__esModule = true, module.expo
|
|
|
293
278
|
/***/ (function(module, exports, __webpack_require__) {
|
|
294
279
|
|
|
295
280
|
var objectWithoutPropertiesLoose = __webpack_require__(/*! ./objectWithoutPropertiesLoose.js */ "./node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js");
|
|
296
|
-
function _objectWithoutProperties(
|
|
297
|
-
if (
|
|
298
|
-
var
|
|
299
|
-
|
|
281
|
+
function _objectWithoutProperties(e, t) {
|
|
282
|
+
if (null == e) return {};
|
|
283
|
+
var o,
|
|
284
|
+
r,
|
|
285
|
+
i = objectWithoutPropertiesLoose(e, t);
|
|
300
286
|
if (Object.getOwnPropertySymbols) {
|
|
301
|
-
var
|
|
302
|
-
for (
|
|
303
|
-
key = sourceSymbolKeys[i];
|
|
304
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
305
|
-
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
306
|
-
target[key] = source[key];
|
|
307
|
-
}
|
|
287
|
+
var n = Object.getOwnPropertySymbols(e);
|
|
288
|
+
for (r = 0; r < n.length; r++) o = n[r], t.indexOf(o) >= 0 || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
|
|
308
289
|
}
|
|
309
|
-
return
|
|
290
|
+
return i;
|
|
310
291
|
}
|
|
311
292
|
module.exports = _objectWithoutProperties, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
312
293
|
|
|
@@ -319,16 +300,14 @@ module.exports = _objectWithoutProperties, module.exports.__esModule = true, mod
|
|
|
319
300
|
/*! no static exports found */
|
|
320
301
|
/***/ (function(module, exports) {
|
|
321
302
|
|
|
322
|
-
function _objectWithoutPropertiesLoose(
|
|
323
|
-
if (
|
|
324
|
-
var
|
|
325
|
-
for (var
|
|
326
|
-
if (
|
|
327
|
-
|
|
328
|
-
target[key] = source[key];
|
|
329
|
-
}
|
|
303
|
+
function _objectWithoutPropertiesLoose(r, e) {
|
|
304
|
+
if (null == r) return {};
|
|
305
|
+
var t = {};
|
|
306
|
+
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
307
|
+
if (e.indexOf(n) >= 0) continue;
|
|
308
|
+
t[n] = r[n];
|
|
330
309
|
}
|
|
331
|
-
return
|
|
310
|
+
return t;
|
|
332
311
|
}
|
|
333
312
|
module.exports = _objectWithoutPropertiesLoose, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
334
313
|
|
|
@@ -343,13 +322,10 @@ module.exports = _objectWithoutPropertiesLoose, module.exports.__esModule = true
|
|
|
343
322
|
|
|
344
323
|
var _typeof = __webpack_require__(/*! ./typeof.js */ "./node_modules/@babel/runtime/helpers/typeof.js")["default"];
|
|
345
324
|
var assertThisInitialized = __webpack_require__(/*! ./assertThisInitialized.js */ "./node_modules/@babel/runtime/helpers/assertThisInitialized.js");
|
|
346
|
-
function _possibleConstructorReturn(
|
|
347
|
-
if (
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
throw new TypeError("Derived constructors may only return object or undefined");
|
|
351
|
-
}
|
|
352
|
-
return assertThisInitialized(self);
|
|
325
|
+
function _possibleConstructorReturn(t, e) {
|
|
326
|
+
if (e && ("object" == _typeof(e) || "function" == typeof e)) return e;
|
|
327
|
+
if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
|
|
328
|
+
return assertThisInitialized(t);
|
|
353
329
|
}
|
|
354
330
|
module.exports = _possibleConstructorReturn, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
355
331
|
|
|
@@ -362,12 +338,10 @@ module.exports = _possibleConstructorReturn, module.exports.__esModule = true, m
|
|
|
362
338
|
/*! no static exports found */
|
|
363
339
|
/***/ (function(module, exports) {
|
|
364
340
|
|
|
365
|
-
function _setPrototypeOf(
|
|
366
|
-
module.exports = _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
}, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
370
|
-
return _setPrototypeOf(o, p);
|
|
341
|
+
function _setPrototypeOf(t, e) {
|
|
342
|
+
return (module.exports = _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
|
|
343
|
+
return t.__proto__ = e, t;
|
|
344
|
+
}, module.exports.__esModule = true, module.exports["default"] = module.exports), _setPrototypeOf(t, e);
|
|
371
345
|
}
|
|
372
346
|
module.exports = _setPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
373
347
|
|
|
@@ -384,8 +358,8 @@ var arrayWithHoles = __webpack_require__(/*! ./arrayWithHoles.js */ "./node_modu
|
|
|
384
358
|
var iterableToArrayLimit = __webpack_require__(/*! ./iterableToArrayLimit.js */ "./node_modules/@babel/runtime/helpers/iterableToArrayLimit.js");
|
|
385
359
|
var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ "./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js");
|
|
386
360
|
var nonIterableRest = __webpack_require__(/*! ./nonIterableRest.js */ "./node_modules/@babel/runtime/helpers/nonIterableRest.js");
|
|
387
|
-
function _slicedToArray(
|
|
388
|
-
return arrayWithHoles(
|
|
361
|
+
function _slicedToArray(r, e) {
|
|
362
|
+
return arrayWithHoles(r) || iterableToArrayLimit(r, e) || unsupportedIterableToArray(r, e) || nonIterableRest();
|
|
389
363
|
}
|
|
390
364
|
module.exports = _slicedToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
391
365
|
|
|
@@ -458,13 +432,12 @@ module.exports = _typeof, module.exports.__esModule = true, module.exports["defa
|
|
|
458
432
|
/***/ (function(module, exports, __webpack_require__) {
|
|
459
433
|
|
|
460
434
|
var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ "./node_modules/@babel/runtime/helpers/arrayLikeToArray.js");
|
|
461
|
-
function _unsupportedIterableToArray(
|
|
462
|
-
if (
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);
|
|
435
|
+
function _unsupportedIterableToArray(r, a) {
|
|
436
|
+
if (r) {
|
|
437
|
+
if ("string" == typeof r) return arrayLikeToArray(r, a);
|
|
438
|
+
var t = {}.toString.call(r).slice(8, -1);
|
|
439
|
+
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;
|
|
440
|
+
}
|
|
468
441
|
}
|
|
469
442
|
module.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
470
443
|
|
|
@@ -5287,9 +5260,9 @@ var _objectWithoutProperties = __webpack_require__(/*! @babel/runtime/helpers/ob
|
|
|
5287
5260
|
var _classCallCheck = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "./node_modules/@babel/runtime/helpers/classCallCheck.js");
|
|
5288
5261
|
var _createClass = __webpack_require__(/*! @babel/runtime/helpers/createClass */ "./node_modules/@babel/runtime/helpers/createClass.js");
|
|
5289
5262
|
var _excluded = ["url"];
|
|
5290
|
-
function _createForOfIteratorHelper(
|
|
5291
|
-
function _unsupportedIterableToArray(
|
|
5292
|
-
function _arrayLikeToArray(
|
|
5263
|
+
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; } } }; }
|
|
5264
|
+
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; } }
|
|
5265
|
+
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; }
|
|
5293
5266
|
var _require = __webpack_require__(/*! ./scratchFetch */ "./src/scratchFetch.js"),
|
|
5294
5267
|
Headers = _require.Headers,
|
|
5295
5268
|
applyMetadata = _require.applyMetadata;
|
|
@@ -6263,9 +6236,9 @@ module.exports = minilog('storage');
|
|
|
6263
6236
|
/***/ (function(module, exports, __webpack_require__) {
|
|
6264
6237
|
|
|
6265
6238
|
var _slicedToArray = __webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ "./node_modules/@babel/runtime/helpers/slicedToArray.js");
|
|
6266
|
-
function _createForOfIteratorHelper(
|
|
6267
|
-
function _unsupportedIterableToArray(
|
|
6268
|
-
function _arrayLikeToArray(
|
|
6239
|
+
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; } } }; }
|
|
6240
|
+
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; } }
|
|
6241
|
+
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; }
|
|
6269
6242
|
var crossFetch = __webpack_require__(/*! cross-fetch */ "./node_modules/cross-fetch/dist/browser-ponyfill.js");
|
|
6270
6243
|
|
|
6271
6244
|
/**
|