scratch-storage 3.0.0 → 3.0.2
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/chunks/{fetch-worker.eefe62e3c8ee125d3436.js → fetch-worker.3bf90a691c26a60b5752.js} +158 -52
- package/dist/node/chunks/fetch-worker.3bf90a691c26a60b5752.js.map +1 -0
- package/dist/node/scratch-storage.js +169 -92
- package/dist/node/scratch-storage.js.map +1 -1
- package/dist/web/chunks/fetch-worker.0fa0968cc994fb298693.js +2 -0
- package/dist/web/chunks/{fetch-worker.85da71862ab8ee15f1cd.js.map → fetch-worker.0fa0968cc994fb298693.js.map} +1 -1
- package/dist/web/chunks/{fetch-worker.ba5eddd48c8ae259073b.js → fetch-worker.cd3a909d7b876aabf94a.js} +158 -52
- package/dist/web/chunks/fetch-worker.cd3a909d7b876aabf94a.js.map +1 -0
- package/dist/web/scratch-storage.js +166 -65
- package/dist/web/scratch-storage.js.map +1 -1
- package/dist/web/scratch-storage.min.js +1 -1
- package/package.json +9 -9
- package/src/scratchFetch.js +10 -13
- package/webpack.config.js +8 -5
- package/dist/node/chunks/fetch-worker.eefe62e3c8ee125d3436.js.map +0 -1
- package/dist/web/chunks/fetch-worker.85da71862ab8ee15f1cd.js +0 -2
- package/dist/web/chunks/fetch-worker.ba5eddd48c8ae259073b.js.map +0 -1
|
@@ -153,15 +153,23 @@ const setMetadata = (name, value) => {
|
|
|
153
153
|
const unsetMetadata = name => {
|
|
154
154
|
metadata.delete(name);
|
|
155
155
|
};
|
|
156
|
+
|
|
157
|
+
/**
|
|
158
|
+
* Retrieve a named request metadata item.
|
|
159
|
+
* Only for use in tests. At the time of writing, used in scratch-vm tests.
|
|
160
|
+
* @param {RequestMetadata} name The name of the metadata item to retrieve.
|
|
161
|
+
* @returns {any} value The value of the metadata item, or `undefined` if it was not found.
|
|
162
|
+
*/
|
|
163
|
+
const getMetadata = name => metadata.get(name);
|
|
156
164
|
module.exports = {
|
|
157
165
|
Headers: crossFetch.Headers,
|
|
158
166
|
RequestMetadata,
|
|
159
167
|
applyMetadata,
|
|
160
168
|
scratchFetch,
|
|
161
169
|
setMetadata,
|
|
162
|
-
unsetMetadata
|
|
170
|
+
unsetMetadata,
|
|
171
|
+
getMetadata
|
|
163
172
|
};
|
|
164
|
-
if (false) {}
|
|
165
173
|
|
|
166
174
|
/***/ }),
|
|
167
175
|
|
|
@@ -2439,27 +2447,39 @@ function BufferBigIntNotDefined () {
|
|
|
2439
2447
|
/***/ }),
|
|
2440
2448
|
|
|
2441
2449
|
/***/ 945:
|
|
2442
|
-
/***/ (
|
|
2450
|
+
/***/ ((module, exports, __webpack_require__) => {
|
|
2443
2451
|
|
|
2444
|
-
|
|
2445
|
-
var
|
|
2452
|
+
// Save global object in a variable
|
|
2453
|
+
var __global__ =
|
|
2454
|
+
(typeof globalThis !== 'undefined' && globalThis) ||
|
|
2455
|
+
(typeof self !== 'undefined' && self) ||
|
|
2456
|
+
(typeof __webpack_require__.g !== 'undefined' && __webpack_require__.g);
|
|
2457
|
+
// Create an object that extends from __global__ without the fetch function
|
|
2458
|
+
var __globalThis__ = (function () {
|
|
2446
2459
|
function F() {
|
|
2447
2460
|
this.fetch = false;
|
|
2448
|
-
this.DOMException =
|
|
2461
|
+
this.DOMException = __global__.DOMException
|
|
2449
2462
|
}
|
|
2450
|
-
F.prototype =
|
|
2463
|
+
F.prototype = __global__; // Needed for feature detection on whatwg-fetch's code
|
|
2451
2464
|
return new F();
|
|
2452
2465
|
})();
|
|
2453
|
-
|
|
2466
|
+
// Wraps whatwg-fetch with a function scope to hijack the global object
|
|
2467
|
+
// "globalThis" that's going to be patched
|
|
2468
|
+
(function(globalThis) {
|
|
2454
2469
|
|
|
2455
2470
|
var irrelevant = (function (exports) {
|
|
2456
2471
|
|
|
2472
|
+
var global =
|
|
2473
|
+
(typeof globalThis !== 'undefined' && globalThis) ||
|
|
2474
|
+
(typeof self !== 'undefined' && self) ||
|
|
2475
|
+
(typeof global !== 'undefined' && global);
|
|
2476
|
+
|
|
2457
2477
|
var support = {
|
|
2458
|
-
searchParams: 'URLSearchParams' in
|
|
2459
|
-
iterable: 'Symbol' in
|
|
2478
|
+
searchParams: 'URLSearchParams' in global,
|
|
2479
|
+
iterable: 'Symbol' in global && 'iterator' in Symbol,
|
|
2460
2480
|
blob:
|
|
2461
|
-
'FileReader' in
|
|
2462
|
-
'Blob' in
|
|
2481
|
+
'FileReader' in global &&
|
|
2482
|
+
'Blob' in global &&
|
|
2463
2483
|
(function() {
|
|
2464
2484
|
try {
|
|
2465
2485
|
new Blob();
|
|
@@ -2468,8 +2488,8 @@ var irrelevant = (function (exports) {
|
|
|
2468
2488
|
return false
|
|
2469
2489
|
}
|
|
2470
2490
|
})(),
|
|
2471
|
-
formData: 'FormData' in
|
|
2472
|
-
arrayBuffer: 'ArrayBuffer' in
|
|
2491
|
+
formData: 'FormData' in global,
|
|
2492
|
+
arrayBuffer: 'ArrayBuffer' in global
|
|
2473
2493
|
};
|
|
2474
2494
|
|
|
2475
2495
|
function isDataView(obj) {
|
|
@@ -2500,8 +2520,8 @@ var irrelevant = (function (exports) {
|
|
|
2500
2520
|
if (typeof name !== 'string') {
|
|
2501
2521
|
name = String(name);
|
|
2502
2522
|
}
|
|
2503
|
-
if (/[^a-z0-9\-#$%&'*+.^_
|
|
2504
|
-
throw new TypeError('Invalid character in header field name')
|
|
2523
|
+
if (/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(name) || name === '') {
|
|
2524
|
+
throw new TypeError('Invalid character in header field name: "' + name + '"')
|
|
2505
2525
|
}
|
|
2506
2526
|
return name.toLowerCase()
|
|
2507
2527
|
}
|
|
@@ -2665,6 +2685,17 @@ var irrelevant = (function (exports) {
|
|
|
2665
2685
|
this.bodyUsed = false;
|
|
2666
2686
|
|
|
2667
2687
|
this._initBody = function(body) {
|
|
2688
|
+
/*
|
|
2689
|
+
fetch-mock wraps the Response object in an ES6 Proxy to
|
|
2690
|
+
provide useful test harness features such as flush. However, on
|
|
2691
|
+
ES5 browsers without fetch or Proxy support pollyfills must be used;
|
|
2692
|
+
the proxy-pollyfill is unable to proxy an attribute unless it exists
|
|
2693
|
+
on the object before the Proxy is created. This change ensures
|
|
2694
|
+
Response.bodyUsed exists on the instance, while maintaining the
|
|
2695
|
+
semantic of setting Request.bodyUsed in the constructor before
|
|
2696
|
+
_initBody is called.
|
|
2697
|
+
*/
|
|
2698
|
+
this.bodyUsed = this.bodyUsed;
|
|
2668
2699
|
this._bodyInit = body;
|
|
2669
2700
|
if (!body) {
|
|
2670
2701
|
this._bodyText = '';
|
|
@@ -2717,7 +2748,20 @@ var irrelevant = (function (exports) {
|
|
|
2717
2748
|
|
|
2718
2749
|
this.arrayBuffer = function() {
|
|
2719
2750
|
if (this._bodyArrayBuffer) {
|
|
2720
|
-
|
|
2751
|
+
var isConsumed = consumed(this);
|
|
2752
|
+
if (isConsumed) {
|
|
2753
|
+
return isConsumed
|
|
2754
|
+
}
|
|
2755
|
+
if (ArrayBuffer.isView(this._bodyArrayBuffer)) {
|
|
2756
|
+
return Promise.resolve(
|
|
2757
|
+
this._bodyArrayBuffer.buffer.slice(
|
|
2758
|
+
this._bodyArrayBuffer.byteOffset,
|
|
2759
|
+
this._bodyArrayBuffer.byteOffset + this._bodyArrayBuffer.byteLength
|
|
2760
|
+
)
|
|
2761
|
+
)
|
|
2762
|
+
} else {
|
|
2763
|
+
return Promise.resolve(this._bodyArrayBuffer)
|
|
2764
|
+
}
|
|
2721
2765
|
} else {
|
|
2722
2766
|
return this.blob().then(readBlobAsArrayBuffer)
|
|
2723
2767
|
}
|
|
@@ -2763,6 +2807,10 @@ var irrelevant = (function (exports) {
|
|
|
2763
2807
|
}
|
|
2764
2808
|
|
|
2765
2809
|
function Request(input, options) {
|
|
2810
|
+
if (!(this instanceof Request)) {
|
|
2811
|
+
throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.')
|
|
2812
|
+
}
|
|
2813
|
+
|
|
2766
2814
|
options = options || {};
|
|
2767
2815
|
var body = options.body;
|
|
2768
2816
|
|
|
@@ -2799,6 +2847,21 @@ var irrelevant = (function (exports) {
|
|
|
2799
2847
|
throw new TypeError('Body not allowed for GET or HEAD requests')
|
|
2800
2848
|
}
|
|
2801
2849
|
this._initBody(body);
|
|
2850
|
+
|
|
2851
|
+
if (this.method === 'GET' || this.method === 'HEAD') {
|
|
2852
|
+
if (options.cache === 'no-store' || options.cache === 'no-cache') {
|
|
2853
|
+
// Search for a '_' parameter in the query string
|
|
2854
|
+
var reParamSearch = /([?&])_=[^&]*/;
|
|
2855
|
+
if (reParamSearch.test(this.url)) {
|
|
2856
|
+
// If it already exists then set the value with the current time
|
|
2857
|
+
this.url = this.url.replace(reParamSearch, '$1_=' + new Date().getTime());
|
|
2858
|
+
} else {
|
|
2859
|
+
// Otherwise add a new '_' parameter to the end with the current time
|
|
2860
|
+
var reQueryString = /\?/;
|
|
2861
|
+
this.url += (reQueryString.test(this.url) ? '&' : '?') + '_=' + new Date().getTime();
|
|
2862
|
+
}
|
|
2863
|
+
}
|
|
2864
|
+
}
|
|
2802
2865
|
}
|
|
2803
2866
|
|
|
2804
2867
|
Request.prototype.clone = function() {
|
|
@@ -2826,20 +2889,31 @@ var irrelevant = (function (exports) {
|
|
|
2826
2889
|
// Replace instances of \r\n and \n followed by at least one space or horizontal tab with a space
|
|
2827
2890
|
// https://tools.ietf.org/html/rfc7230#section-3.2
|
|
2828
2891
|
var preProcessedHeaders = rawHeaders.replace(/\r?\n[\t ]+/g, ' ');
|
|
2829
|
-
|
|
2830
|
-
|
|
2831
|
-
|
|
2832
|
-
|
|
2833
|
-
|
|
2834
|
-
|
|
2835
|
-
|
|
2836
|
-
|
|
2892
|
+
// Avoiding split via regex to work around a common IE11 bug with the core-js 3.6.0 regex polyfill
|
|
2893
|
+
// https://github.com/github/fetch/issues/748
|
|
2894
|
+
// https://github.com/zloirock/core-js/issues/751
|
|
2895
|
+
preProcessedHeaders
|
|
2896
|
+
.split('\r')
|
|
2897
|
+
.map(function(header) {
|
|
2898
|
+
return header.indexOf('\n') === 0 ? header.substr(1, header.length) : header
|
|
2899
|
+
})
|
|
2900
|
+
.forEach(function(line) {
|
|
2901
|
+
var parts = line.split(':');
|
|
2902
|
+
var key = parts.shift().trim();
|
|
2903
|
+
if (key) {
|
|
2904
|
+
var value = parts.join(':').trim();
|
|
2905
|
+
headers.append(key, value);
|
|
2906
|
+
}
|
|
2907
|
+
});
|
|
2837
2908
|
return headers
|
|
2838
2909
|
}
|
|
2839
2910
|
|
|
2840
2911
|
Body.call(Request.prototype);
|
|
2841
2912
|
|
|
2842
2913
|
function Response(bodyInit, options) {
|
|
2914
|
+
if (!(this instanceof Response)) {
|
|
2915
|
+
throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.')
|
|
2916
|
+
}
|
|
2843
2917
|
if (!options) {
|
|
2844
2918
|
options = {};
|
|
2845
2919
|
}
|
|
@@ -2847,7 +2921,7 @@ var irrelevant = (function (exports) {
|
|
|
2847
2921
|
this.type = 'default';
|
|
2848
2922
|
this.status = options.status === undefined ? 200 : options.status;
|
|
2849
2923
|
this.ok = this.status >= 200 && this.status < 300;
|
|
2850
|
-
this.statusText =
|
|
2924
|
+
this.statusText = options.statusText === undefined ? '' : '' + options.statusText;
|
|
2851
2925
|
this.headers = new Headers(options.headers);
|
|
2852
2926
|
this.url = options.url || '';
|
|
2853
2927
|
this._initBody(bodyInit);
|
|
@@ -2880,7 +2954,7 @@ var irrelevant = (function (exports) {
|
|
|
2880
2954
|
return new Response(null, {status: status, headers: {location: url}})
|
|
2881
2955
|
};
|
|
2882
2956
|
|
|
2883
|
-
exports.DOMException =
|
|
2957
|
+
exports.DOMException = global.DOMException;
|
|
2884
2958
|
try {
|
|
2885
2959
|
new exports.DOMException();
|
|
2886
2960
|
} catch (err) {
|
|
@@ -2916,22 +2990,38 @@ var irrelevant = (function (exports) {
|
|
|
2916
2990
|
};
|
|
2917
2991
|
options.url = 'responseURL' in xhr ? xhr.responseURL : options.headers.get('X-Request-URL');
|
|
2918
2992
|
var body = 'response' in xhr ? xhr.response : xhr.responseText;
|
|
2919
|
-
|
|
2993
|
+
setTimeout(function() {
|
|
2994
|
+
resolve(new Response(body, options));
|
|
2995
|
+
}, 0);
|
|
2920
2996
|
};
|
|
2921
2997
|
|
|
2922
2998
|
xhr.onerror = function() {
|
|
2923
|
-
|
|
2999
|
+
setTimeout(function() {
|
|
3000
|
+
reject(new TypeError('Network request failed'));
|
|
3001
|
+
}, 0);
|
|
2924
3002
|
};
|
|
2925
3003
|
|
|
2926
3004
|
xhr.ontimeout = function() {
|
|
2927
|
-
|
|
3005
|
+
setTimeout(function() {
|
|
3006
|
+
reject(new TypeError('Network request failed'));
|
|
3007
|
+
}, 0);
|
|
2928
3008
|
};
|
|
2929
3009
|
|
|
2930
3010
|
xhr.onabort = function() {
|
|
2931
|
-
|
|
3011
|
+
setTimeout(function() {
|
|
3012
|
+
reject(new exports.DOMException('Aborted', 'AbortError'));
|
|
3013
|
+
}, 0);
|
|
2932
3014
|
};
|
|
2933
3015
|
|
|
2934
|
-
|
|
3016
|
+
function fixUrl(url) {
|
|
3017
|
+
try {
|
|
3018
|
+
return url === '' && global.location.href ? global.location.href : url
|
|
3019
|
+
} catch (e) {
|
|
3020
|
+
return url
|
|
3021
|
+
}
|
|
3022
|
+
}
|
|
3023
|
+
|
|
3024
|
+
xhr.open(request.method, fixUrl(request.url), true);
|
|
2935
3025
|
|
|
2936
3026
|
if (request.credentials === 'include') {
|
|
2937
3027
|
xhr.withCredentials = true;
|
|
@@ -2939,13 +3029,27 @@ var irrelevant = (function (exports) {
|
|
|
2939
3029
|
xhr.withCredentials = false;
|
|
2940
3030
|
}
|
|
2941
3031
|
|
|
2942
|
-
if ('responseType' in xhr
|
|
2943
|
-
|
|
3032
|
+
if ('responseType' in xhr) {
|
|
3033
|
+
if (support.blob) {
|
|
3034
|
+
xhr.responseType = 'blob';
|
|
3035
|
+
} else if (
|
|
3036
|
+
support.arrayBuffer &&
|
|
3037
|
+
request.headers.get('Content-Type') &&
|
|
3038
|
+
request.headers.get('Content-Type').indexOf('application/octet-stream') !== -1
|
|
3039
|
+
) {
|
|
3040
|
+
xhr.responseType = 'arraybuffer';
|
|
3041
|
+
}
|
|
2944
3042
|
}
|
|
2945
3043
|
|
|
2946
|
-
|
|
2947
|
-
|
|
2948
|
-
|
|
3044
|
+
if (init && typeof init.headers === 'object' && !(init.headers instanceof Headers)) {
|
|
3045
|
+
Object.getOwnPropertyNames(init.headers).forEach(function(name) {
|
|
3046
|
+
xhr.setRequestHeader(name, normalizeValue(init.headers[name]));
|
|
3047
|
+
});
|
|
3048
|
+
} else {
|
|
3049
|
+
request.headers.forEach(function(value, name) {
|
|
3050
|
+
xhr.setRequestHeader(name, value);
|
|
3051
|
+
});
|
|
3052
|
+
}
|
|
2949
3053
|
|
|
2950
3054
|
if (request.signal) {
|
|
2951
3055
|
request.signal.addEventListener('abort', abortXhr);
|
|
@@ -2964,11 +3068,11 @@ var irrelevant = (function (exports) {
|
|
|
2964
3068
|
|
|
2965
3069
|
fetch.polyfill = true;
|
|
2966
3070
|
|
|
2967
|
-
if (!
|
|
2968
|
-
|
|
2969
|
-
|
|
2970
|
-
|
|
2971
|
-
|
|
3071
|
+
if (!global.fetch) {
|
|
3072
|
+
global.fetch = fetch;
|
|
3073
|
+
global.Headers = Headers;
|
|
3074
|
+
global.Request = Request;
|
|
3075
|
+
global.Response = Response;
|
|
2972
3076
|
}
|
|
2973
3077
|
|
|
2974
3078
|
exports.Headers = Headers;
|
|
@@ -2976,18 +3080,15 @@ var irrelevant = (function (exports) {
|
|
|
2976
3080
|
exports.Response = Response;
|
|
2977
3081
|
exports.fetch = fetch;
|
|
2978
3082
|
|
|
2979
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2980
|
-
|
|
2981
3083
|
return exports;
|
|
2982
3084
|
|
|
2983
3085
|
})({});
|
|
2984
|
-
})(
|
|
2985
|
-
|
|
2986
|
-
|
|
2987
|
-
delete
|
|
2988
|
-
// Choose between native implementation (
|
|
2989
|
-
|
|
2990
|
-
var ctx = __self__; // this line disable service worker support temporarily
|
|
3086
|
+
})(__globalThis__);
|
|
3087
|
+
// This is a ponyfill, so...
|
|
3088
|
+
__globalThis__.fetch.ponyfill = true;
|
|
3089
|
+
delete __globalThis__.fetch.polyfill;
|
|
3090
|
+
// Choose between native implementation (__global__) or custom implementation (__globalThis__)
|
|
3091
|
+
var ctx = __global__.fetch ? __global__ : __globalThis__;
|
|
2991
3092
|
exports = ctx.fetch // To enable: import fetch from 'cross-fetch'
|
|
2992
3093
|
exports["default"] = ctx.fetch // For TypeScript consumers without esModuleInterop.
|
|
2993
3094
|
exports.fetch = ctx.fetch // To enable: import {fetch} from 'cross-fetch'
|
|
@@ -4407,7 +4508,7 @@ module.exports = logger;
|
|
|
4407
4508
|
/******/ // This function allow to reference async chunks
|
|
4408
4509
|
/******/ __webpack_require__.u = (chunkId) => {
|
|
4409
4510
|
/******/ // return url for filenames based on template
|
|
4410
|
-
/******/ return "chunks/" + "fetch-worker" + "." + "
|
|
4511
|
+
/******/ return "chunks/" + "fetch-worker" + "." + "cd3a909d7b876aabf94a" + ".js";
|
|
4411
4512
|
/******/ };
|
|
4412
4513
|
/******/ })();
|
|
4413
4514
|
/******/
|
|
@@ -4490,14 +4591,14 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
4490
4591
|
// EXTERNAL MODULE: ./node_modules/minilog/lib/web/index.js
|
|
4491
4592
|
var web = __webpack_require__(557);
|
|
4492
4593
|
var web_default = /*#__PURE__*/__webpack_require__.n(web);
|
|
4493
|
-
;//
|
|
4594
|
+
;// ./src/log.ts
|
|
4494
4595
|
|
|
4495
4596
|
web_default().enable();
|
|
4496
4597
|
/* harmony default export */ const log = (web_default()('storage'));
|
|
4497
4598
|
// EXTERNAL MODULE: ./node_modules/js-md5/src/md5.js
|
|
4498
4599
|
var md5 = __webpack_require__(386);
|
|
4499
4600
|
var md5_default = /*#__PURE__*/__webpack_require__.n(md5);
|
|
4500
|
-
;//
|
|
4601
|
+
;// ./src/memoizedToString.ts
|
|
4501
4602
|
// Use JS implemented TextDecoder and TextEncoder if it is not provided by the
|
|
4502
4603
|
// browser.
|
|
4503
4604
|
let _TextDecoder;
|
|
@@ -4570,7 +4671,7 @@ const memoizedToString = function () {
|
|
|
4570
4671
|
};
|
|
4571
4672
|
}();
|
|
4572
4673
|
|
|
4573
|
-
;//
|
|
4674
|
+
;// ./src/Asset.ts
|
|
4574
4675
|
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
4575
4676
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
4576
4677
|
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
@@ -4643,7 +4744,7 @@ class Asset {
|
|
|
4643
4744
|
return "data:".concat(contentType, ";base64,").concat(memoizedToString(this.assetId, this.data));
|
|
4644
4745
|
}
|
|
4645
4746
|
}
|
|
4646
|
-
;//
|
|
4747
|
+
;// ./src/DataFormat.ts
|
|
4647
4748
|
/**
|
|
4648
4749
|
* Enumeration of the supported data formats.
|
|
4649
4750
|
* @enum {string}
|
|
@@ -4658,7 +4759,7 @@ const DataFormat = {
|
|
|
4658
4759
|
SVG: 'svg',
|
|
4659
4760
|
WAV: 'wav'
|
|
4660
4761
|
};
|
|
4661
|
-
;//
|
|
4762
|
+
;// ./src/AssetType.ts
|
|
4662
4763
|
|
|
4663
4764
|
/**
|
|
4664
4765
|
* Enumeration of the supported asset types.
|
|
@@ -4702,7 +4803,7 @@ const AssetType = {
|
|
|
4702
4803
|
immutable: true
|
|
4703
4804
|
}
|
|
4704
4805
|
};
|
|
4705
|
-
;//
|
|
4806
|
+
;// ./src/Helper.ts
|
|
4706
4807
|
function Helper_defineProperty(e, r, t) { return (r = Helper_toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
4707
4808
|
function Helper_toPropertyKey(t) { var i = Helper_toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
4708
4809
|
function Helper_toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
@@ -4737,7 +4838,7 @@ var defaultVectorarrayBuffer = __webpack_require__(914);
|
|
|
4737
4838
|
var defaultVectorarrayBuffer_default = /*#__PURE__*/__webpack_require__.n(defaultVectorarrayBuffer);
|
|
4738
4839
|
// EXTERNAL MODULE: ./node_modules/buffer/index.js
|
|
4739
4840
|
var buffer = __webpack_require__(287);
|
|
4740
|
-
;//
|
|
4841
|
+
;// ./src/BuiltinHelper.ts
|
|
4741
4842
|
function BuiltinHelper_defineProperty(e, r, t) { return (r = BuiltinHelper_toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
4742
4843
|
function BuiltinHelper_toPropertyKey(t) { var i = BuiltinHelper_toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
4743
4844
|
function BuiltinHelper_toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
@@ -4882,7 +4983,7 @@ class BuiltinHelper extends Helper {
|
|
|
4882
4983
|
// EXTERNAL MODULE: ./src/scratchFetch.js
|
|
4883
4984
|
var scratchFetch = __webpack_require__(953);
|
|
4884
4985
|
var scratchFetch_default = /*#__PURE__*/__webpack_require__.n(scratchFetch);
|
|
4885
|
-
;//
|
|
4986
|
+
;// ./src/FetchWorkerTool.ts
|
|
4886
4987
|
const _excluded = ["url"];
|
|
4887
4988
|
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var s = Object.getOwnPropertySymbols(e); for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
4888
4989
|
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
|
|
@@ -5076,7 +5177,7 @@ class PublicFetchWorkerTool {
|
|
|
5076
5177
|
throw new Error('Not implemented.');
|
|
5077
5178
|
}
|
|
5078
5179
|
}
|
|
5079
|
-
;//
|
|
5180
|
+
;// ./src/FetchTool.ts
|
|
5080
5181
|
const FetchTool_excluded = ["url"],
|
|
5081
5182
|
_excluded2 = ["url", "withCredentials"];
|
|
5082
5183
|
function FetchTool_objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = FetchTool_objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var s = Object.getOwnPropertySymbols(e); for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
@@ -5142,7 +5243,7 @@ class FetchTool {
|
|
|
5142
5243
|
});
|
|
5143
5244
|
}
|
|
5144
5245
|
}
|
|
5145
|
-
;//
|
|
5246
|
+
;// ./src/ProxyTool.ts
|
|
5146
5247
|
function ProxyTool_defineProperty(e, r, t) { return (r = ProxyTool_toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
5147
5248
|
function ProxyTool_toPropertyKey(t) { var i = ProxyTool_toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
5148
5249
|
function ProxyTool_toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
@@ -5234,7 +5335,7 @@ ProxyTool_defineProperty(ProxyTool, "TOOL_FILTER", {
|
|
|
5234
5335
|
*/
|
|
5235
5336
|
READY: 'ready'
|
|
5236
5337
|
});
|
|
5237
|
-
;//
|
|
5338
|
+
;// ./src/WebHelper.ts
|
|
5238
5339
|
function WebHelper_defineProperty(e, r, t) { return (r = WebHelper_toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
5239
5340
|
function WebHelper_toPropertyKey(t) { var i = WebHelper_toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
5240
5341
|
function WebHelper_toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
@@ -5402,7 +5503,7 @@ class WebHelper extends Helper {
|
|
|
5402
5503
|
});
|
|
5403
5504
|
}
|
|
5404
5505
|
}
|
|
5405
|
-
;//
|
|
5506
|
+
;// ./src/ScratchStorage.ts
|
|
5406
5507
|
function ScratchStorage_defineProperty(e, r, t) { return (r = ScratchStorage_toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
5407
5508
|
function ScratchStorage_toPropertyKey(t) { var i = ScratchStorage_toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
5408
5509
|
function ScratchStorage_toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
@@ -5627,7 +5728,7 @@ class ScratchStorage {
|
|
|
5627
5728
|
});
|
|
5628
5729
|
}
|
|
5629
5730
|
}
|
|
5630
|
-
;//
|
|
5731
|
+
;// ./src/index.ts
|
|
5631
5732
|
|
|
5632
5733
|
|
|
5633
5734
|
|