@spica-devkit/storage 0.9.14 → 0.9.15
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/dist/index.d.ts +0 -1
- package/dist/index.js +345 -150
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +344 -140
- package/dist/index.mjs.map +1 -1
- package/dist/src/index.d.ts +0 -1
- package/dist/src/interface.d.ts +0 -4
- package/dist/src/storage.d.ts +0 -4
- package/dist/src/utility.d.ts +0 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,21 +1,59 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
var axios = require('axios');
|
|
3
|
+
var axios_1 = require('axios');
|
|
6
4
|
var buffer = require('buffer');
|
|
7
5
|
|
|
8
6
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
9
7
|
|
|
10
|
-
var
|
|
8
|
+
var axios_1__default = /*#__PURE__*/_interopDefaultLegacy(axios_1);
|
|
11
9
|
var buffer__default = /*#__PURE__*/_interopDefaultLegacy(buffer);
|
|
12
10
|
|
|
11
|
+
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
12
|
+
|
|
13
|
+
function getDefaultExportFromCjs (x) {
|
|
14
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
function createCommonjsModule(fn, basedir, module) {
|
|
18
|
+
return module = {
|
|
19
|
+
path: basedir,
|
|
20
|
+
exports: {},
|
|
21
|
+
require: function (path, base) {
|
|
22
|
+
return commonjsRequire(path, (base === undefined || base === null) ? module.path : base);
|
|
23
|
+
}
|
|
24
|
+
}, fn(module, module.exports), module.exports;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
function getAugmentedNamespace(n) {
|
|
28
|
+
if (n.__esModule) return n;
|
|
29
|
+
var a = Object.defineProperty({}, '__esModule', {value: true});
|
|
30
|
+
Object.keys(n).forEach(function (k) {
|
|
31
|
+
var d = Object.getOwnPropertyDescriptor(n, k);
|
|
32
|
+
Object.defineProperty(a, k, d.get ? d : {
|
|
33
|
+
enumerable: true,
|
|
34
|
+
get: function () {
|
|
35
|
+
return n[k];
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
});
|
|
39
|
+
return a;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
function commonjsRequire () {
|
|
43
|
+
throw new Error('Dynamic requires are not currently supported by @rollup/plugin-commonjs');
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
var request = createCommonjsModule(function (module, exports) {
|
|
47
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
48
|
+
exports.Axios = exports.logWarning = void 0;
|
|
49
|
+
|
|
13
50
|
function logWarning(response) {
|
|
14
51
|
const warning = response.headers["warning"];
|
|
15
52
|
if (warning) {
|
|
16
53
|
console.warn(warning);
|
|
17
54
|
}
|
|
18
55
|
}
|
|
56
|
+
exports.logWarning = logWarning;
|
|
19
57
|
class Axios {
|
|
20
58
|
constructor(config) {
|
|
21
59
|
this.interceptors = {
|
|
@@ -40,7 +78,7 @@ class Axios {
|
|
|
40
78
|
}
|
|
41
79
|
}
|
|
42
80
|
};
|
|
43
|
-
this.instance =
|
|
81
|
+
this.instance = axios_1__default['default'].default.create(config);
|
|
44
82
|
this.instance.interceptors.request.use(this.interceptors.request.onFulfilled, this.interceptors.request.onRejected);
|
|
45
83
|
this.instance.interceptors.response.use(this.interceptors.response.onFulfilled, this.interceptors.response.onRejected);
|
|
46
84
|
this.baseUrl = this.instance.defaults.baseURL;
|
|
@@ -73,6 +111,13 @@ class Axios {
|
|
|
73
111
|
return this.instance.delete(url, config);
|
|
74
112
|
}
|
|
75
113
|
}
|
|
114
|
+
exports.Axios = Axios;
|
|
115
|
+
|
|
116
|
+
});
|
|
117
|
+
|
|
118
|
+
var initialize_1 = createCommonjsModule(function (module, exports) {
|
|
119
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
120
|
+
exports.isPlatformBrowser = exports.checkInitialized = exports.initialize = void 0;
|
|
76
121
|
|
|
77
122
|
let service;
|
|
78
123
|
function initialize(options) {
|
|
@@ -89,7 +134,7 @@ function initialize(options) {
|
|
|
89
134
|
throw new Error("Public url must be provided.");
|
|
90
135
|
}
|
|
91
136
|
if (!service) {
|
|
92
|
-
service = new Axios({ baseURL: publicUrl, headers: { Authorization: authorization } });
|
|
137
|
+
service = new request.Axios({ baseURL: publicUrl, headers: { Authorization: authorization } });
|
|
93
138
|
}
|
|
94
139
|
else {
|
|
95
140
|
service.setBaseUrl(publicUrl);
|
|
@@ -97,29 +142,91 @@ function initialize(options) {
|
|
|
97
142
|
}
|
|
98
143
|
return { authorization, publicUrl, service };
|
|
99
144
|
}
|
|
145
|
+
exports.initialize = initialize;
|
|
100
146
|
function checkInitialized(authorization) {
|
|
101
147
|
if (!authorization) {
|
|
102
148
|
throw new Error("You should call initialize method with a valid apikey or identity token.");
|
|
103
149
|
}
|
|
104
150
|
}
|
|
151
|
+
exports.checkInitialized = checkInitialized;
|
|
105
152
|
function getPublicUrl() {
|
|
106
153
|
return isPlatformBrowser() ? undefined : process.env.__INTERNAL__SPICA__PUBLIC_URL__;
|
|
107
154
|
}
|
|
108
155
|
function isPlatformBrowser() {
|
|
109
156
|
return typeof window !== "undefined";
|
|
110
157
|
}
|
|
158
|
+
exports.isPlatformBrowser = isPlatformBrowser;
|
|
111
159
|
|
|
112
|
-
|
|
160
|
+
});
|
|
161
|
+
|
|
162
|
+
var _interface = createCommonjsModule(function (module, exports) {
|
|
163
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
164
|
+
|
|
165
|
+
});
|
|
166
|
+
|
|
167
|
+
var url = createCommonjsModule(function (module, exports) {
|
|
168
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
169
|
+
exports.buildUrl = void 0;
|
|
170
|
+
function buildUrl(baseUrl, queryParams = {}) {
|
|
171
|
+
const url = new URL(baseUrl);
|
|
172
|
+
for (let [key, value] of Object.entries(queryParams)) {
|
|
173
|
+
if (typeof value != "string") {
|
|
174
|
+
value = JSON.stringify(value);
|
|
175
|
+
}
|
|
176
|
+
url.searchParams.set(key, value);
|
|
177
|
+
}
|
|
178
|
+
return url;
|
|
179
|
+
}
|
|
180
|
+
exports.buildUrl = buildUrl;
|
|
181
|
+
|
|
182
|
+
});
|
|
183
|
+
|
|
184
|
+
var src = createCommonjsModule(function (module, exports) {
|
|
185
|
+
var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
186
|
+
if (k2 === undefined) k2 = k;
|
|
187
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
188
|
+
}) : (function(o, m, k, k2) {
|
|
189
|
+
if (k2 === undefined) k2 = k;
|
|
190
|
+
o[k2] = m[k];
|
|
191
|
+
}));
|
|
192
|
+
var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
|
|
193
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
194
|
+
};
|
|
195
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
196
|
+
__exportStar(initialize_1, exports);
|
|
197
|
+
__exportStar(_interface, exports);
|
|
198
|
+
__exportStar(request, exports);
|
|
199
|
+
__exportStar(url, exports);
|
|
200
|
+
|
|
201
|
+
});
|
|
202
|
+
|
|
203
|
+
var internal_common = createCommonjsModule(function (module, exports) {
|
|
204
|
+
var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
205
|
+
if (k2 === undefined) k2 = k;
|
|
206
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
207
|
+
}) : (function(o, m, k, k2) {
|
|
208
|
+
if (k2 === undefined) k2 = k;
|
|
209
|
+
o[k2] = m[k];
|
|
210
|
+
}));
|
|
211
|
+
var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
|
|
212
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
213
|
+
};
|
|
214
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
215
|
+
__exportStar(src, exports);
|
|
216
|
+
|
|
217
|
+
});
|
|
218
|
+
|
|
219
|
+
var commonjsGlobal$1 = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
113
220
|
|
|
114
221
|
function unwrapExports (x) {
|
|
115
222
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
116
223
|
}
|
|
117
224
|
|
|
118
|
-
function createCommonjsModule(fn, module) {
|
|
225
|
+
function createCommonjsModule$1(fn, module) {
|
|
119
226
|
return module = { exports: {} }, fn(module, module.exports), module.exports;
|
|
120
227
|
}
|
|
121
228
|
|
|
122
|
-
var ensure_buffer = createCommonjsModule(function (module, exports) {
|
|
229
|
+
var ensure_buffer = createCommonjsModule$1(function (module, exports) {
|
|
123
230
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
124
231
|
exports.ensureBuffer = void 0;
|
|
125
232
|
|
|
@@ -150,7 +257,7 @@ exports.ensureBuffer = ensureBuffer;
|
|
|
150
257
|
unwrapExports(ensure_buffer);
|
|
151
258
|
var ensure_buffer_1 = ensure_buffer.ensureBuffer;
|
|
152
259
|
|
|
153
|
-
var uuid = createCommonjsModule(function (module, exports) {
|
|
260
|
+
var uuid = createCommonjsModule$1(function (module, exports) {
|
|
154
261
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
155
262
|
exports.parseUUID = void 0;
|
|
156
263
|
/**
|
|
@@ -203,7 +310,7 @@ exports.parseUUID = parseUUID;
|
|
|
203
310
|
unwrapExports(uuid);
|
|
204
311
|
var uuid_1 = uuid.parseUUID;
|
|
205
312
|
|
|
206
|
-
var binary = createCommonjsModule(function (module, exports) {
|
|
313
|
+
var binary = createCommonjsModule$1(function (module, exports) {
|
|
207
314
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
208
315
|
exports.Binary = void 0;
|
|
209
316
|
|
|
@@ -426,7 +533,7 @@ Object.defineProperty(Binary.prototype, '_bsontype', { value: 'Binary' });
|
|
|
426
533
|
unwrapExports(binary);
|
|
427
534
|
var binary_1 = binary.Binary;
|
|
428
535
|
|
|
429
|
-
var code = createCommonjsModule(function (module, exports) {
|
|
536
|
+
var code = createCommonjsModule$1(function (module, exports) {
|
|
430
537
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
431
538
|
exports.Code = void 0;
|
|
432
539
|
/**
|
|
@@ -1020,7 +1127,7 @@ var require$$1 = {
|
|
|
1020
1127
|
debuglog: debuglog
|
|
1021
1128
|
};
|
|
1022
1129
|
|
|
1023
|
-
var utils = createCommonjsModule(function (module, exports) {
|
|
1130
|
+
var utils = createCommonjsModule$1(function (module, exports) {
|
|
1024
1131
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1025
1132
|
exports.deprecate = exports.isObjectLike = exports.isDate = exports.isBuffer = exports.haveBuffer = exports.isBigUInt64Array = exports.isBigInt64Array = exports.isUint8Array = exports.randomBytes = exports.normalizedFunctionString = void 0;
|
|
1026
1133
|
|
|
@@ -1069,7 +1176,7 @@ function isBigUInt64Array(value) {
|
|
|
1069
1176
|
exports.isBigUInt64Array = isBigUInt64Array;
|
|
1070
1177
|
/** Call to check if your environment has `Buffer` */
|
|
1071
1178
|
function haveBuffer() {
|
|
1072
|
-
return typeof commonjsGlobal !== 'undefined' && typeof commonjsGlobal.Buffer !== 'undefined';
|
|
1179
|
+
return typeof commonjsGlobal$1 !== 'undefined' && typeof commonjsGlobal$1.Buffer !== 'undefined';
|
|
1073
1180
|
}
|
|
1074
1181
|
exports.haveBuffer = haveBuffer;
|
|
1075
1182
|
/** Callable in any environment to check if value is a Buffer */
|
|
@@ -1122,7 +1229,7 @@ var utils_8 = utils.isUint8Array;
|
|
|
1122
1229
|
var utils_9 = utils.randomBytes;
|
|
1123
1230
|
var utils_10 = utils.normalizedFunctionString;
|
|
1124
1231
|
|
|
1125
|
-
var db_ref = createCommonjsModule(function (module, exports) {
|
|
1232
|
+
var db_ref = createCommonjsModule$1(function (module, exports) {
|
|
1126
1233
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1127
1234
|
exports.DBRef = exports.isDBRefLike = void 0;
|
|
1128
1235
|
|
|
@@ -1206,7 +1313,7 @@ unwrapExports(db_ref);
|
|
|
1206
1313
|
var db_ref_1 = db_ref.DBRef;
|
|
1207
1314
|
var db_ref_2 = db_ref.isDBRefLike;
|
|
1208
1315
|
|
|
1209
|
-
var long_1 = createCommonjsModule(function (module, exports) {
|
|
1316
|
+
var long_1 = createCommonjsModule$1(function (module, exports) {
|
|
1210
1317
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1211
1318
|
exports.Long = void 0;
|
|
1212
1319
|
|
|
@@ -2042,7 +2149,7 @@ Object.defineProperty(Long.prototype, '_bsontype', { value: 'Long' });
|
|
|
2042
2149
|
unwrapExports(long_1);
|
|
2043
2150
|
var long_2 = long_1.Long;
|
|
2044
2151
|
|
|
2045
|
-
var decimal128 = createCommonjsModule(function (module, exports) {
|
|
2152
|
+
var decimal128 = createCommonjsModule$1(function (module, exports) {
|
|
2046
2153
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2047
2154
|
exports.Decimal128 = void 0;
|
|
2048
2155
|
|
|
@@ -2734,7 +2841,7 @@ Object.defineProperty(Decimal128.prototype, '_bsontype', { value: 'Decimal128' }
|
|
|
2734
2841
|
unwrapExports(decimal128);
|
|
2735
2842
|
var decimal128_1 = decimal128.Decimal128;
|
|
2736
2843
|
|
|
2737
|
-
var double_1 = createCommonjsModule(function (module, exports) {
|
|
2844
|
+
var double_1 = createCommonjsModule$1(function (module, exports) {
|
|
2738
2845
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2739
2846
|
exports.Double = void 0;
|
|
2740
2847
|
/**
|
|
@@ -2801,7 +2908,7 @@ Object.defineProperty(Double.prototype, '_bsontype', { value: 'Double' });
|
|
|
2801
2908
|
unwrapExports(double_1);
|
|
2802
2909
|
var double_2 = double_1.Double;
|
|
2803
2910
|
|
|
2804
|
-
var int_32 = createCommonjsModule(function (module, exports) {
|
|
2911
|
+
var int_32 = createCommonjsModule$1(function (module, exports) {
|
|
2805
2912
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2806
2913
|
exports.Int32 = void 0;
|
|
2807
2914
|
/**
|
|
@@ -2851,7 +2958,7 @@ Object.defineProperty(Int32.prototype, '_bsontype', { value: 'Int32' });
|
|
|
2851
2958
|
unwrapExports(int_32);
|
|
2852
2959
|
var int_32_1 = int_32.Int32;
|
|
2853
2960
|
|
|
2854
|
-
var map = createCommonjsModule(function (module, exports) {
|
|
2961
|
+
var map = createCommonjsModule$1(function (module, exports) {
|
|
2855
2962
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
2856
2963
|
// We have an ES6 Map available, return the native instance
|
|
2857
2964
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -2869,7 +2976,7 @@ function getGlobal() {
|
|
|
2869
2976
|
return (check(typeof globalThis === 'object' && globalThis) ||
|
|
2870
2977
|
check(typeof window === 'object' && window) ||
|
|
2871
2978
|
check(typeof self === 'object' && self) ||
|
|
2872
|
-
check(typeof commonjsGlobal === 'object' && commonjsGlobal) ||
|
|
2979
|
+
check(typeof commonjsGlobal$1 === 'object' && commonjsGlobal$1) ||
|
|
2873
2980
|
Function('return this')());
|
|
2874
2981
|
}
|
|
2875
2982
|
const bsonGlobal = getGlobal();
|
|
@@ -2982,7 +3089,7 @@ else {
|
|
|
2982
3089
|
unwrapExports(map);
|
|
2983
3090
|
var map_1 = map.Map;
|
|
2984
3091
|
|
|
2985
|
-
var max_key = createCommonjsModule(function (module, exports) {
|
|
3092
|
+
var max_key = createCommonjsModule$1(function (module, exports) {
|
|
2986
3093
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2987
3094
|
exports.MaxKey = void 0;
|
|
2988
3095
|
/**
|
|
@@ -3007,7 +3114,7 @@ Object.defineProperty(MaxKey.prototype, '_bsontype', { value: 'MaxKey' });
|
|
|
3007
3114
|
unwrapExports(max_key);
|
|
3008
3115
|
var max_key_1 = max_key.MaxKey;
|
|
3009
3116
|
|
|
3010
|
-
var min_key = createCommonjsModule(function (module, exports) {
|
|
3117
|
+
var min_key = createCommonjsModule$1(function (module, exports) {
|
|
3011
3118
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3012
3119
|
exports.MinKey = void 0;
|
|
3013
3120
|
/**
|
|
@@ -3032,7 +3139,7 @@ Object.defineProperty(MinKey.prototype, '_bsontype', { value: 'MinKey' });
|
|
|
3032
3139
|
unwrapExports(min_key);
|
|
3033
3140
|
var min_key_1 = min_key.MinKey;
|
|
3034
3141
|
|
|
3035
|
-
var objectid = createCommonjsModule(function (module, exports) {
|
|
3142
|
+
var objectid = createCommonjsModule$1(function (module, exports) {
|
|
3036
3143
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3037
3144
|
exports.ObjectId = void 0;
|
|
3038
3145
|
|
|
@@ -3335,7 +3442,7 @@ Object.defineProperty(ObjectId.prototype, '_bsontype', { value: 'ObjectID' });
|
|
|
3335
3442
|
unwrapExports(objectid);
|
|
3336
3443
|
var objectid_1 = objectid.ObjectId;
|
|
3337
3444
|
|
|
3338
|
-
var constants = createCommonjsModule(function (module, exports) {
|
|
3445
|
+
var constants = createCommonjsModule$1(function (module, exports) {
|
|
3339
3446
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3340
3447
|
exports.BSON_BINARY_SUBTYPE_USER_DEFINED = exports.BSON_BINARY_SUBTYPE_MD5 = exports.BSON_BINARY_SUBTYPE_UUID_NEW = exports.BSON_BINARY_SUBTYPE_UUID = exports.BSON_BINARY_SUBTYPE_BYTE_ARRAY = exports.BSON_BINARY_SUBTYPE_FUNCTION = exports.BSON_BINARY_SUBTYPE_DEFAULT = exports.BSON_DATA_MAX_KEY = exports.BSON_DATA_MIN_KEY = exports.BSON_DATA_DECIMAL128 = exports.BSON_DATA_LONG = exports.BSON_DATA_TIMESTAMP = exports.BSON_DATA_INT = exports.BSON_DATA_CODE_W_SCOPE = exports.BSON_DATA_SYMBOL = exports.BSON_DATA_CODE = exports.BSON_DATA_DBPOINTER = exports.BSON_DATA_REGEXP = exports.BSON_DATA_NULL = exports.BSON_DATA_DATE = exports.BSON_DATA_BOOLEAN = exports.BSON_DATA_OID = exports.BSON_DATA_UNDEFINED = exports.BSON_DATA_BINARY = exports.BSON_DATA_ARRAY = exports.BSON_DATA_OBJECT = exports.BSON_DATA_STRING = exports.BSON_DATA_NUMBER = exports.JS_INT_MIN = exports.JS_INT_MAX = exports.BSON_INT64_MIN = exports.BSON_INT64_MAX = exports.BSON_INT32_MIN = exports.BSON_INT32_MAX = void 0;
|
|
3341
3448
|
/** @internal */
|
|
@@ -3451,7 +3558,7 @@ var constants_32 = constants.BSON_INT64_MAX;
|
|
|
3451
3558
|
var constants_33 = constants.BSON_INT32_MIN;
|
|
3452
3559
|
var constants_34 = constants.BSON_INT32_MAX;
|
|
3453
3560
|
|
|
3454
|
-
var calculate_size = createCommonjsModule(function (module, exports) {
|
|
3561
|
+
var calculate_size = createCommonjsModule$1(function (module, exports) {
|
|
3455
3562
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3456
3563
|
exports.calculateObjectSize = void 0;
|
|
3457
3564
|
|
|
@@ -3647,7 +3754,7 @@ value, serializeFunctions = false, isArray = false, ignoreUndefined = false) {
|
|
|
3647
3754
|
unwrapExports(calculate_size);
|
|
3648
3755
|
var calculate_size_1 = calculate_size.calculateObjectSize;
|
|
3649
3756
|
|
|
3650
|
-
var regexp = createCommonjsModule(function (module, exports) {
|
|
3757
|
+
var regexp = createCommonjsModule$1(function (module, exports) {
|
|
3651
3758
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3652
3759
|
exports.BSONRegExp = void 0;
|
|
3653
3760
|
function alphabetize(str) {
|
|
@@ -3717,7 +3824,7 @@ Object.defineProperty(BSONRegExp.prototype, '_bsontype', { value: 'BSONRegExp' }
|
|
|
3717
3824
|
unwrapExports(regexp);
|
|
3718
3825
|
var regexp_1 = regexp.BSONRegExp;
|
|
3719
3826
|
|
|
3720
|
-
var symbol = createCommonjsModule(function (module, exports) {
|
|
3827
|
+
var symbol = createCommonjsModule$1(function (module, exports) {
|
|
3721
3828
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3722
3829
|
exports.BSONSymbol = void 0;
|
|
3723
3830
|
/**
|
|
@@ -3764,7 +3871,7 @@ Object.defineProperty(BSONSymbol.prototype, '_bsontype', { value: 'Symbol' });
|
|
|
3764
3871
|
unwrapExports(symbol);
|
|
3765
3872
|
var symbol_1 = symbol.BSONSymbol;
|
|
3766
3873
|
|
|
3767
|
-
var timestamp$1 = createCommonjsModule(function (module, exports) {
|
|
3874
|
+
var timestamp$1 = createCommonjsModule$1(function (module, exports) {
|
|
3768
3875
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3769
3876
|
exports.Timestamp = exports.LongWithoutOverridesClass = void 0;
|
|
3770
3877
|
|
|
@@ -3835,7 +3942,7 @@ unwrapExports(timestamp$1);
|
|
|
3835
3942
|
var timestamp_1 = timestamp$1.Timestamp;
|
|
3836
3943
|
var timestamp_2 = timestamp$1.LongWithoutOverridesClass;
|
|
3837
3944
|
|
|
3838
|
-
var validate_utf8 = createCommonjsModule(function (module, exports) {
|
|
3945
|
+
var validate_utf8 = createCommonjsModule$1(function (module, exports) {
|
|
3839
3946
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3840
3947
|
exports.validateUtf8 = void 0;
|
|
3841
3948
|
const FIRST_BIT = 0x80;
|
|
@@ -3887,7 +3994,7 @@ exports.validateUtf8 = validateUtf8;
|
|
|
3887
3994
|
unwrapExports(validate_utf8);
|
|
3888
3995
|
var validate_utf8_1 = validate_utf8.validateUtf8;
|
|
3889
3996
|
|
|
3890
|
-
var deserializer = createCommonjsModule(function (module, exports) {
|
|
3997
|
+
var deserializer = createCommonjsModule$1(function (module, exports) {
|
|
3891
3998
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3892
3999
|
exports.deserialize = void 0;
|
|
3893
4000
|
|
|
@@ -4455,7 +4562,7 @@ function isolateEval(functionString, functionCache, object) {
|
|
|
4455
4562
|
unwrapExports(deserializer);
|
|
4456
4563
|
var deserializer_1 = deserializer.deserialize;
|
|
4457
4564
|
|
|
4458
|
-
var extended_json = createCommonjsModule(function (module, exports) {
|
|
4565
|
+
var extended_json = createCommonjsModule$1(function (module, exports) {
|
|
4459
4566
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4460
4567
|
exports.EJSON = exports.isBSONType = void 0;
|
|
4461
4568
|
|
|
@@ -4768,7 +4875,7 @@ unwrapExports(extended_json);
|
|
|
4768
4875
|
var extended_json_1 = extended_json.EJSON;
|
|
4769
4876
|
var extended_json_2 = extended_json.isBSONType;
|
|
4770
4877
|
|
|
4771
|
-
var float_parser = createCommonjsModule(function (module, exports) {
|
|
4878
|
+
var float_parser = createCommonjsModule$1(function (module, exports) {
|
|
4772
4879
|
// Copyright (c) 2008, Fair Oaks Labs, Inc.
|
|
4773
4880
|
// All rights reserved.
|
|
4774
4881
|
//
|
|
@@ -4911,7 +5018,7 @@ unwrapExports(float_parser);
|
|
|
4911
5018
|
var float_parser_1 = float_parser.writeIEEE754;
|
|
4912
5019
|
var float_parser_2 = float_parser.readIEEE754;
|
|
4913
5020
|
|
|
4914
|
-
var serializer = createCommonjsModule(function (module, exports) {
|
|
5021
|
+
var serializer = createCommonjsModule$1(function (module, exports) {
|
|
4915
5022
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4916
5023
|
exports.serializeInto = void 0;
|
|
4917
5024
|
|
|
@@ -5765,7 +5872,7 @@ exports.serializeInto = serializeInto;
|
|
|
5765
5872
|
unwrapExports(serializer);
|
|
5766
5873
|
var serializer_1 = serializer.serializeInto;
|
|
5767
5874
|
|
|
5768
|
-
var bson = createCommonjsModule(function (module, exports) {
|
|
5875
|
+
var bson = createCommonjsModule$1(function (module, exports) {
|
|
5769
5876
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5770
5877
|
exports.deserializeStream = exports.calculateObjectSize = exports.deserialize = exports.serializeWithBufferAndIndex = exports.serialize = exports.setInternalBufferSize = exports.ObjectID = exports.Decimal128 = exports.BSONRegExp = exports.MaxKey = exports.MinKey = exports.Int32 = exports.Double = exports.Timestamp = exports.Long = exports.ObjectId = exports.Binary = exports.DBRef = exports.BSONSymbol = exports.Map = exports.Code = exports.LongWithoutOverridesClass = exports.EJSON = exports.JS_INT_MIN = exports.JS_INT_MAX = exports.BSON_INT64_MIN = exports.BSON_INT64_MAX = exports.BSON_INT32_MIN = exports.BSON_INT32_MAX = exports.BSON_DATA_UNDEFINED = exports.BSON_DATA_TIMESTAMP = exports.BSON_DATA_SYMBOL = exports.BSON_DATA_STRING = exports.BSON_DATA_REGEXP = exports.BSON_DATA_OID = exports.BSON_DATA_OBJECT = exports.BSON_DATA_NUMBER = exports.BSON_DATA_NULL = exports.BSON_DATA_MIN_KEY = exports.BSON_DATA_MAX_KEY = exports.BSON_DATA_LONG = exports.BSON_DATA_INT = exports.BSON_DATA_DECIMAL128 = exports.BSON_DATA_DBPOINTER = exports.BSON_DATA_DATE = exports.BSON_DATA_CODE_W_SCOPE = exports.BSON_DATA_CODE = exports.BSON_DATA_BOOLEAN = exports.BSON_DATA_BINARY = exports.BSON_DATA_ARRAY = exports.BSON_BINARY_SUBTYPE_UUID_NEW = exports.BSON_BINARY_SUBTYPE_UUID = exports.BSON_BINARY_SUBTYPE_USER_DEFINED = exports.BSON_BINARY_SUBTYPE_MD5 = exports.BSON_BINARY_SUBTYPE_FUNCTION = exports.BSON_BINARY_SUBTYPE_DEFAULT = exports.BSON_BINARY_SUBTYPE_BYTE_ARRAY = void 0;
|
|
5771
5878
|
|
|
@@ -6030,15 +6137,74 @@ var bson_55 = bson.BSON_BINARY_SUBTYPE_FUNCTION;
|
|
|
6030
6137
|
var bson_56 = bson.BSON_BINARY_SUBTYPE_DEFAULT;
|
|
6031
6138
|
var bson_57 = bson.BSON_BINARY_SUBTYPE_BYTE_ARRAY;
|
|
6032
6139
|
|
|
6033
|
-
var
|
|
6034
|
-
|
|
6035
|
-
|
|
6036
|
-
|
|
6037
|
-
|
|
6038
|
-
|
|
6039
|
-
|
|
6040
|
-
|
|
6041
|
-
|
|
6140
|
+
var bson_esm = /*#__PURE__*/Object.freeze({
|
|
6141
|
+
__proto__: null,
|
|
6142
|
+
'default': bson$1,
|
|
6143
|
+
BSONRegExp: bson_9,
|
|
6144
|
+
BSONSymbol: bson_19,
|
|
6145
|
+
BSON_BINARY_SUBTYPE_BYTE_ARRAY: bson_57,
|
|
6146
|
+
BSON_BINARY_SUBTYPE_DEFAULT: bson_56,
|
|
6147
|
+
BSON_BINARY_SUBTYPE_FUNCTION: bson_55,
|
|
6148
|
+
BSON_BINARY_SUBTYPE_MD5: bson_54,
|
|
6149
|
+
BSON_BINARY_SUBTYPE_USER_DEFINED: bson_53,
|
|
6150
|
+
BSON_BINARY_SUBTYPE_UUID: bson_52,
|
|
6151
|
+
BSON_BINARY_SUBTYPE_UUID_NEW: bson_51,
|
|
6152
|
+
BSON_DATA_ARRAY: bson_50,
|
|
6153
|
+
BSON_DATA_BINARY: bson_49,
|
|
6154
|
+
BSON_DATA_BOOLEAN: bson_48,
|
|
6155
|
+
BSON_DATA_CODE: bson_47,
|
|
6156
|
+
BSON_DATA_CODE_W_SCOPE: bson_46,
|
|
6157
|
+
BSON_DATA_DATE: bson_45,
|
|
6158
|
+
BSON_DATA_DBPOINTER: bson_44,
|
|
6159
|
+
BSON_DATA_DECIMAL128: bson_43,
|
|
6160
|
+
BSON_DATA_INT: bson_42,
|
|
6161
|
+
BSON_DATA_LONG: bson_41,
|
|
6162
|
+
BSON_DATA_MAX_KEY: bson_40,
|
|
6163
|
+
BSON_DATA_MIN_KEY: bson_39,
|
|
6164
|
+
BSON_DATA_NULL: bson_38,
|
|
6165
|
+
BSON_DATA_NUMBER: bson_37,
|
|
6166
|
+
BSON_DATA_OBJECT: bson_36,
|
|
6167
|
+
BSON_DATA_OID: bson_35,
|
|
6168
|
+
BSON_DATA_REGEXP: bson_34,
|
|
6169
|
+
BSON_DATA_STRING: bson_33,
|
|
6170
|
+
BSON_DATA_SYMBOL: bson_32,
|
|
6171
|
+
BSON_DATA_TIMESTAMP: bson_31,
|
|
6172
|
+
BSON_DATA_UNDEFINED: bson_30,
|
|
6173
|
+
BSON_INT32_MAX: bson_29,
|
|
6174
|
+
BSON_INT32_MIN: bson_28,
|
|
6175
|
+
BSON_INT64_MAX: bson_27,
|
|
6176
|
+
BSON_INT64_MIN: bson_26,
|
|
6177
|
+
Binary: bson_17,
|
|
6178
|
+
Code: bson_21,
|
|
6179
|
+
DBRef: bson_18,
|
|
6180
|
+
Decimal128: bson_8,
|
|
6181
|
+
Double: bson_13,
|
|
6182
|
+
EJSON: bson_23,
|
|
6183
|
+
Int32: bson_12,
|
|
6184
|
+
JS_INT_MAX: bson_25,
|
|
6185
|
+
JS_INT_MIN: bson_24,
|
|
6186
|
+
Long: bson_15,
|
|
6187
|
+
LongWithoutOverridesClass: bson_22,
|
|
6188
|
+
Map: bson_20,
|
|
6189
|
+
MaxKey: bson_10,
|
|
6190
|
+
MinKey: bson_11,
|
|
6191
|
+
ObjectID: bson_7,
|
|
6192
|
+
ObjectId: bson_16,
|
|
6193
|
+
Timestamp: bson_14,
|
|
6194
|
+
calculateObjectSize: bson_2,
|
|
6195
|
+
deserialize: bson_3,
|
|
6196
|
+
deserializeStream: bson_1,
|
|
6197
|
+
serialize: bson_5,
|
|
6198
|
+
serializeWithBufferAndIndex: bson_4,
|
|
6199
|
+
setInternalBufferSize: bson_6
|
|
6200
|
+
});
|
|
6201
|
+
|
|
6202
|
+
var BSON = /*@__PURE__*/getAugmentedNamespace(bson_esm);
|
|
6203
|
+
|
|
6204
|
+
var utility = createCommonjsModule(function (module, exports) {
|
|
6205
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6206
|
+
exports.jsonToArrayBuffer = exports.preparePutBody = exports.preparePostBody = exports.fileToBuffer = void 0;
|
|
6207
|
+
|
|
6042
6208
|
function fileToBuffer(file) {
|
|
6043
6209
|
return new Promise((resolve, reject) => {
|
|
6044
6210
|
const reader = new FileReader();
|
|
@@ -6047,146 +6213,175 @@ function fileToBuffer(file) {
|
|
|
6047
6213
|
reader.onerror = error => reject(error);
|
|
6048
6214
|
});
|
|
6049
6215
|
}
|
|
6050
|
-
|
|
6051
|
-
|
|
6052
|
-
|
|
6053
|
-
|
|
6054
|
-
|
|
6055
|
-
|
|
6056
|
-
|
|
6057
|
-
|
|
6058
|
-
|
|
6059
|
-
|
|
6060
|
-
|
|
6061
|
-
|
|
6062
|
-
|
|
6063
|
-
|
|
6064
|
-
|
|
6065
|
-
|
|
6066
|
-
|
|
6067
|
-
|
|
6068
|
-
|
|
6069
|
-
|
|
6070
|
-
|
|
6071
|
-
|
|
6072
|
-
return
|
|
6073
|
-
|
|
6074
|
-
|
|
6075
|
-
|
|
6076
|
-
|
|
6077
|
-
|
|
6078
|
-
|
|
6079
|
-
|
|
6080
|
-
|
|
6081
|
-
|
|
6082
|
-
|
|
6083
|
-
|
|
6084
|
-
|
|
6085
|
-
|
|
6086
|
-
|
|
6087
|
-
|
|
6088
|
-
|
|
6089
|
-
|
|
6090
|
-
|
|
6216
|
+
exports.fileToBuffer = fileToBuffer;
|
|
6217
|
+
async function preparePostBody(objects) {
|
|
6218
|
+
let files;
|
|
6219
|
+
const contents = [];
|
|
6220
|
+
if (!Array.isArray(objects)) {
|
|
6221
|
+
files = Array.from(objects);
|
|
6222
|
+
}
|
|
6223
|
+
else {
|
|
6224
|
+
files = objects;
|
|
6225
|
+
}
|
|
6226
|
+
for (const file of files) {
|
|
6227
|
+
const content = await getContent(file);
|
|
6228
|
+
contents.push(content);
|
|
6229
|
+
}
|
|
6230
|
+
const body = {
|
|
6231
|
+
content: contents
|
|
6232
|
+
};
|
|
6233
|
+
return jsonToArrayBuffer(body);
|
|
6234
|
+
}
|
|
6235
|
+
exports.preparePostBody = preparePostBody;
|
|
6236
|
+
async function preparePutBody(object) {
|
|
6237
|
+
const body = await getContent(object);
|
|
6238
|
+
return jsonToArrayBuffer(body);
|
|
6239
|
+
}
|
|
6240
|
+
exports.preparePutBody = preparePutBody;
|
|
6241
|
+
async function getContent(file) {
|
|
6242
|
+
let data;
|
|
6243
|
+
let name;
|
|
6244
|
+
let type;
|
|
6245
|
+
if (instanceOfBufferWithMeta(file)) {
|
|
6246
|
+
data = file.data;
|
|
6247
|
+
name = file.name;
|
|
6248
|
+
type = file.contentType;
|
|
6249
|
+
}
|
|
6250
|
+
else {
|
|
6251
|
+
data = await fileToBuffer(file);
|
|
6252
|
+
name = file.name;
|
|
6253
|
+
type = file.type;
|
|
6254
|
+
}
|
|
6255
|
+
return {
|
|
6256
|
+
name,
|
|
6257
|
+
content: {
|
|
6258
|
+
data: new BSON.Binary(data),
|
|
6259
|
+
type
|
|
6091
6260
|
}
|
|
6092
|
-
|
|
6093
|
-
name,
|
|
6094
|
-
content: {
|
|
6095
|
-
data: new bson_17(data),
|
|
6096
|
-
type
|
|
6097
|
-
}
|
|
6098
|
-
};
|
|
6099
|
-
});
|
|
6261
|
+
};
|
|
6100
6262
|
}
|
|
6101
6263
|
function jsonToArrayBuffer(body) {
|
|
6102
|
-
const size =
|
|
6103
|
-
const buffer =
|
|
6264
|
+
const size = BSON.calculateObjectSize(body);
|
|
6265
|
+
const buffer = BSON.serialize(body, { minInternalBufferSize: size });
|
|
6104
6266
|
return buffer.buffer;
|
|
6105
6267
|
}
|
|
6268
|
+
exports.jsonToArrayBuffer = jsonToArrayBuffer;
|
|
6106
6269
|
function instanceOfBufferWithMeta(value) {
|
|
6107
6270
|
return "data" in value && "name" in value && "contentType" in value;
|
|
6108
6271
|
}
|
|
6109
6272
|
|
|
6110
|
-
|
|
6111
|
-
|
|
6112
|
-
|
|
6113
|
-
|
|
6114
|
-
|
|
6115
|
-
|
|
6116
|
-
|
|
6117
|
-
});
|
|
6118
|
-
};
|
|
6273
|
+
});
|
|
6274
|
+
|
|
6275
|
+
var storage = createCommonjsModule(function (module, exports) {
|
|
6276
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6277
|
+
exports.remove = exports.update = exports.getAll = exports.download = exports.get = exports.insertMany = exports.insert = exports.initialize = void 0;
|
|
6278
|
+
|
|
6279
|
+
|
|
6119
6280
|
let authorization;
|
|
6120
|
-
let service
|
|
6121
|
-
function initialize
|
|
6122
|
-
const { authorization: _authorization, service: _service } = initialize(options);
|
|
6281
|
+
let service;
|
|
6282
|
+
function initialize(options) {
|
|
6283
|
+
const { authorization: _authorization, service: _service } = internal_common.initialize(options);
|
|
6123
6284
|
authorization = _authorization;
|
|
6124
|
-
service
|
|
6125
|
-
service
|
|
6285
|
+
service = _service;
|
|
6286
|
+
service.setWriteDefaults({
|
|
6126
6287
|
headers: {
|
|
6127
6288
|
"Content-Type": "application/bson"
|
|
6128
6289
|
}
|
|
6129
6290
|
});
|
|
6130
6291
|
}
|
|
6131
|
-
|
|
6132
|
-
|
|
6133
|
-
|
|
6134
|
-
|
|
6135
|
-
|
|
6136
|
-
|
|
6137
|
-
});
|
|
6292
|
+
exports.initialize = initialize;
|
|
6293
|
+
async function insert(object, onUploadProgress) {
|
|
6294
|
+
internal_common.checkInitialized(authorization);
|
|
6295
|
+
const body = await utility.preparePostBody([object]);
|
|
6296
|
+
return service.post("storage", body, {
|
|
6297
|
+
onUploadProgress
|
|
6138
6298
|
});
|
|
6139
6299
|
}
|
|
6140
|
-
|
|
6141
|
-
|
|
6142
|
-
|
|
6143
|
-
|
|
6144
|
-
|
|
6145
|
-
|
|
6146
|
-
});
|
|
6300
|
+
exports.insert = insert;
|
|
6301
|
+
async function insertMany(objects, onUploadProgress) {
|
|
6302
|
+
internal_common.checkInitialized(authorization);
|
|
6303
|
+
const body = await utility.preparePostBody(objects);
|
|
6304
|
+
return service.post("storage", body, {
|
|
6305
|
+
onUploadProgress
|
|
6147
6306
|
});
|
|
6148
6307
|
}
|
|
6308
|
+
exports.insertMany = insertMany;
|
|
6149
6309
|
function get(id) {
|
|
6150
|
-
checkInitialized(authorization);
|
|
6151
|
-
return service
|
|
6310
|
+
internal_common.checkInitialized(authorization);
|
|
6311
|
+
return service.get(`storage/${id}`);
|
|
6152
6312
|
}
|
|
6153
|
-
|
|
6154
|
-
* Returns Blob for browser environment, ReadableStream for Nodejs environment
|
|
6155
|
-
*/
|
|
6313
|
+
exports.get = get;
|
|
6156
6314
|
function download(id, options = {}) {
|
|
6157
|
-
checkInitialized(authorization);
|
|
6158
|
-
return service
|
|
6315
|
+
internal_common.checkInitialized(authorization);
|
|
6316
|
+
return service.get(`storage/${id}/view`, {
|
|
6159
6317
|
headers: options.headers,
|
|
6160
6318
|
onDownloadProgress: options.onDownloadProgress,
|
|
6161
|
-
responseType: isPlatformBrowser() ? "blob" : "stream"
|
|
6319
|
+
responseType: internal_common.isPlatformBrowser() ? "blob" : "stream"
|
|
6162
6320
|
});
|
|
6163
6321
|
}
|
|
6322
|
+
exports.download = download;
|
|
6164
6323
|
function getAll(queryParams) {
|
|
6165
|
-
checkInitialized(authorization);
|
|
6166
|
-
return service
|
|
6324
|
+
internal_common.checkInitialized(authorization);
|
|
6325
|
+
return service.get(`storage`, {
|
|
6167
6326
|
params: queryParams
|
|
6168
6327
|
});
|
|
6169
6328
|
}
|
|
6170
|
-
|
|
6171
|
-
|
|
6172
|
-
|
|
6173
|
-
|
|
6174
|
-
|
|
6175
|
-
|
|
6176
|
-
});
|
|
6329
|
+
exports.getAll = getAll;
|
|
6330
|
+
async function update(id, object, onUploadProgress) {
|
|
6331
|
+
internal_common.checkInitialized(authorization);
|
|
6332
|
+
const body = await utility.preparePutBody(object);
|
|
6333
|
+
return service.put(`storage/${id}`, body, {
|
|
6334
|
+
onUploadProgress
|
|
6177
6335
|
});
|
|
6178
6336
|
}
|
|
6337
|
+
exports.update = update;
|
|
6179
6338
|
function remove(id) {
|
|
6180
|
-
checkInitialized(authorization);
|
|
6181
|
-
return service
|
|
6339
|
+
internal_common.checkInitialized(authorization);
|
|
6340
|
+
return service.delete(`storage/${id}`);
|
|
6182
6341
|
}
|
|
6183
|
-
|
|
6184
|
-
exports.download = download;
|
|
6185
|
-
exports.get = get;
|
|
6186
|
-
exports.getAll = getAll;
|
|
6187
|
-
exports.initialize = initialize$1;
|
|
6188
|
-
exports.insert = insert;
|
|
6189
|
-
exports.insertMany = insertMany;
|
|
6190
6342
|
exports.remove = remove;
|
|
6191
|
-
|
|
6343
|
+
|
|
6344
|
+
});
|
|
6345
|
+
|
|
6346
|
+
var _interface$1 = createCommonjsModule(function (module, exports) {
|
|
6347
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6348
|
+
|
|
6349
|
+
});
|
|
6350
|
+
|
|
6351
|
+
var src$1 = createCommonjsModule(function (module, exports) {
|
|
6352
|
+
var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6353
|
+
if (k2 === undefined) k2 = k;
|
|
6354
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
6355
|
+
}) : (function(o, m, k, k2) {
|
|
6356
|
+
if (k2 === undefined) k2 = k;
|
|
6357
|
+
o[k2] = m[k];
|
|
6358
|
+
}));
|
|
6359
|
+
var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
|
|
6360
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
6361
|
+
};
|
|
6362
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6363
|
+
__exportStar(storage, exports);
|
|
6364
|
+
__exportStar(_interface$1, exports);
|
|
6365
|
+
|
|
6366
|
+
});
|
|
6367
|
+
|
|
6368
|
+
var storage$1 = createCommonjsModule(function (module, exports) {
|
|
6369
|
+
var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6370
|
+
if (k2 === undefined) k2 = k;
|
|
6371
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
6372
|
+
}) : (function(o, m, k, k2) {
|
|
6373
|
+
if (k2 === undefined) k2 = k;
|
|
6374
|
+
o[k2] = m[k];
|
|
6375
|
+
}));
|
|
6376
|
+
var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
|
|
6377
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
6378
|
+
};
|
|
6379
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6380
|
+
__exportStar(src$1, exports);
|
|
6381
|
+
|
|
6382
|
+
});
|
|
6383
|
+
|
|
6384
|
+
var index = /*@__PURE__*/getDefaultExportFromCjs(storage$1);
|
|
6385
|
+
|
|
6386
|
+
module.exports = index;
|
|
6192
6387
|
//# sourceMappingURL=index.js.map
|