@techstuff-dev/foundation-api-utils 1.40.0 → 1.41.0
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-CBSn59-p.js +346 -0
- package/dist/index-CBSn59-p.js.map +1 -0
- package/dist/index-CfrYa4U_.js +9 -0
- package/dist/index-CfrYa4U_.js.map +1 -0
- package/dist/index-DAV--Egk.js +343 -0
- package/dist/index-DAV--Egk.js.map +1 -0
- package/dist/index-KjhWa1AL.js +6 -0
- package/dist/index-KjhWa1AL.js.map +1 -0
- package/dist/index.js +326 -410
- package/dist/index.js.map +1 -1
- package/package.json +19 -19
- package/dist/index.esm.js +0 -1563
- package/dist/index.esm.js.map +0 -1
|
@@ -0,0 +1,346 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
function getDefaultExportFromCjs (x) {
|
|
4
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
var isPlainObj;
|
|
8
|
+
var hasRequiredIsPlainObj;
|
|
9
|
+
|
|
10
|
+
function requireIsPlainObj () {
|
|
11
|
+
if (hasRequiredIsPlainObj) return isPlainObj;
|
|
12
|
+
hasRequiredIsPlainObj = 1;
|
|
13
|
+
|
|
14
|
+
isPlainObj = value => {
|
|
15
|
+
if (Object.prototype.toString.call(value) !== '[object Object]') {
|
|
16
|
+
return false;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
const prototype = Object.getPrototypeOf(value);
|
|
20
|
+
return prototype === null || prototype === Object.prototype;
|
|
21
|
+
};
|
|
22
|
+
return isPlainObj;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
var mergeOptions$1;
|
|
26
|
+
var hasRequiredMergeOptions;
|
|
27
|
+
|
|
28
|
+
function requireMergeOptions () {
|
|
29
|
+
if (hasRequiredMergeOptions) return mergeOptions$1;
|
|
30
|
+
hasRequiredMergeOptions = 1;
|
|
31
|
+
const isOptionObject = requireIsPlainObj();
|
|
32
|
+
|
|
33
|
+
const {hasOwnProperty} = Object.prototype;
|
|
34
|
+
const {propertyIsEnumerable} = Object;
|
|
35
|
+
const defineProperty = (object, name, value) => Object.defineProperty(object, name, {
|
|
36
|
+
value,
|
|
37
|
+
writable: true,
|
|
38
|
+
enumerable: true,
|
|
39
|
+
configurable: true
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
const globalThis = mergeOptions$1;
|
|
43
|
+
const defaultMergeOptions = {
|
|
44
|
+
concatArrays: false,
|
|
45
|
+
ignoreUndefined: false
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
const getEnumerableOwnPropertyKeys = value => {
|
|
49
|
+
const keys = [];
|
|
50
|
+
|
|
51
|
+
for (const key in value) {
|
|
52
|
+
if (hasOwnProperty.call(value, key)) {
|
|
53
|
+
keys.push(key);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/* istanbul ignore else */
|
|
58
|
+
if (Object.getOwnPropertySymbols) {
|
|
59
|
+
const symbols = Object.getOwnPropertySymbols(value);
|
|
60
|
+
|
|
61
|
+
for (const symbol of symbols) {
|
|
62
|
+
if (propertyIsEnumerable.call(value, symbol)) {
|
|
63
|
+
keys.push(symbol);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
return keys;
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
function clone(value) {
|
|
72
|
+
if (Array.isArray(value)) {
|
|
73
|
+
return cloneArray(value);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
if (isOptionObject(value)) {
|
|
77
|
+
return cloneOptionObject(value);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
return value;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
function cloneArray(array) {
|
|
84
|
+
const result = array.slice(0, 0);
|
|
85
|
+
|
|
86
|
+
getEnumerableOwnPropertyKeys(array).forEach(key => {
|
|
87
|
+
defineProperty(result, key, clone(array[key]));
|
|
88
|
+
});
|
|
89
|
+
|
|
90
|
+
return result;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
function cloneOptionObject(object) {
|
|
94
|
+
const result = Object.getPrototypeOf(object) === null ? Object.create(null) : {};
|
|
95
|
+
|
|
96
|
+
getEnumerableOwnPropertyKeys(object).forEach(key => {
|
|
97
|
+
defineProperty(result, key, clone(object[key]));
|
|
98
|
+
});
|
|
99
|
+
|
|
100
|
+
return result;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* @param {*} merged already cloned
|
|
105
|
+
* @param {*} source something to merge
|
|
106
|
+
* @param {string[]} keys keys to merge
|
|
107
|
+
* @param {Object} config Config Object
|
|
108
|
+
* @returns {*} cloned Object
|
|
109
|
+
*/
|
|
110
|
+
const mergeKeys = (merged, source, keys, config) => {
|
|
111
|
+
keys.forEach(key => {
|
|
112
|
+
if (typeof source[key] === 'undefined' && config.ignoreUndefined) {
|
|
113
|
+
return;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
// Do not recurse into prototype chain of merged
|
|
117
|
+
if (key in merged && merged[key] !== Object.getPrototypeOf(merged)) {
|
|
118
|
+
defineProperty(merged, key, merge(merged[key], source[key], config));
|
|
119
|
+
} else {
|
|
120
|
+
defineProperty(merged, key, clone(source[key]));
|
|
121
|
+
}
|
|
122
|
+
});
|
|
123
|
+
|
|
124
|
+
return merged;
|
|
125
|
+
};
|
|
126
|
+
|
|
127
|
+
/**
|
|
128
|
+
* @param {*} merged already cloned
|
|
129
|
+
* @param {*} source something to merge
|
|
130
|
+
* @param {Object} config Config Object
|
|
131
|
+
* @returns {*} cloned Object
|
|
132
|
+
*
|
|
133
|
+
* see [Array.prototype.concat ( ...arguments )](http://www.ecma-international.org/ecma-262/6.0/#sec-array.prototype.concat)
|
|
134
|
+
*/
|
|
135
|
+
const concatArrays = (merged, source, config) => {
|
|
136
|
+
let result = merged.slice(0, 0);
|
|
137
|
+
let resultIndex = 0;
|
|
138
|
+
|
|
139
|
+
[merged, source].forEach(array => {
|
|
140
|
+
const indices = [];
|
|
141
|
+
|
|
142
|
+
// `result.concat(array)` with cloning
|
|
143
|
+
for (let k = 0; k < array.length; k++) {
|
|
144
|
+
if (!hasOwnProperty.call(array, k)) {
|
|
145
|
+
continue;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
indices.push(String(k));
|
|
149
|
+
|
|
150
|
+
if (array === merged) {
|
|
151
|
+
// Already cloned
|
|
152
|
+
defineProperty(result, resultIndex++, array[k]);
|
|
153
|
+
} else {
|
|
154
|
+
defineProperty(result, resultIndex++, clone(array[k]));
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
// Merge non-index keys
|
|
159
|
+
result = mergeKeys(result, array, getEnumerableOwnPropertyKeys(array).filter(key => !indices.includes(key)), config);
|
|
160
|
+
});
|
|
161
|
+
|
|
162
|
+
return result;
|
|
163
|
+
};
|
|
164
|
+
|
|
165
|
+
/**
|
|
166
|
+
* @param {*} merged already cloned
|
|
167
|
+
* @param {*} source something to merge
|
|
168
|
+
* @param {Object} config Config Object
|
|
169
|
+
* @returns {*} cloned Object
|
|
170
|
+
*/
|
|
171
|
+
function merge(merged, source, config) {
|
|
172
|
+
if (config.concatArrays && Array.isArray(merged) && Array.isArray(source)) {
|
|
173
|
+
return concatArrays(merged, source, config);
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
if (!isOptionObject(source) || !isOptionObject(merged)) {
|
|
177
|
+
return clone(source);
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
return mergeKeys(merged, source, getEnumerableOwnPropertyKeys(source), config);
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
mergeOptions$1 = function (...options) {
|
|
184
|
+
const config = merge(clone(defaultMergeOptions), (this !== globalThis && this) || {}, defaultMergeOptions);
|
|
185
|
+
let merged = {_: {}};
|
|
186
|
+
|
|
187
|
+
for (const option of options) {
|
|
188
|
+
if (option === undefined) {
|
|
189
|
+
continue;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
if (!isOptionObject(option)) {
|
|
193
|
+
throw new TypeError('`' + option + '` is not an Option Object');
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
merged = merge(merged, {_: option}, config);
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
return merged._;
|
|
200
|
+
};
|
|
201
|
+
return mergeOptions$1;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
var mergeOptionsExports = requireMergeOptions();
|
|
205
|
+
var mergeOptions = /*@__PURE__*/getDefaultExportFromCjs(mergeOptionsExports);
|
|
206
|
+
|
|
207
|
+
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
208
|
+
|
|
209
|
+
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
210
|
+
|
|
211
|
+
const merge = mergeOptions.bind({
|
|
212
|
+
concatArrays: true,
|
|
213
|
+
ignoreUndefined: true
|
|
214
|
+
});
|
|
215
|
+
function mergeLocalStorageItem(key, value) {
|
|
216
|
+
const oldValue = window.localStorage.getItem(key);
|
|
217
|
+
if (oldValue) {
|
|
218
|
+
const oldObject = JSON.parse(oldValue);
|
|
219
|
+
const newObject = JSON.parse(value);
|
|
220
|
+
const nextValue = JSON.stringify(merge(oldObject, newObject));
|
|
221
|
+
window.localStorage.setItem(key, nextValue);
|
|
222
|
+
} else {
|
|
223
|
+
window.localStorage.setItem(key, value);
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
function createPromise(getValue, callback) {
|
|
227
|
+
return new Promise((resolve, reject) => {
|
|
228
|
+
try {
|
|
229
|
+
const value = getValue();
|
|
230
|
+
callback?.(null, value);
|
|
231
|
+
resolve(value);
|
|
232
|
+
} catch (err) {
|
|
233
|
+
callback?.(err);
|
|
234
|
+
reject(err);
|
|
235
|
+
}
|
|
236
|
+
});
|
|
237
|
+
}
|
|
238
|
+
function createPromiseAll(promises, callback, processResult) {
|
|
239
|
+
return Promise.all(promises).then(result => {
|
|
240
|
+
const value = processResult?.(result) ?? null;
|
|
241
|
+
callback?.(null, value);
|
|
242
|
+
return Promise.resolve(value);
|
|
243
|
+
}, errors => {
|
|
244
|
+
callback?.(errors);
|
|
245
|
+
return Promise.reject(errors);
|
|
246
|
+
});
|
|
247
|
+
}
|
|
248
|
+
const AsyncStorage = {
|
|
249
|
+
/**
|
|
250
|
+
* Fetches `key` value.
|
|
251
|
+
*/
|
|
252
|
+
getItem: (key, callback) => {
|
|
253
|
+
return createPromise(() => window.localStorage.getItem(key), callback);
|
|
254
|
+
},
|
|
255
|
+
/**
|
|
256
|
+
* Sets `value` for `key`.
|
|
257
|
+
*/
|
|
258
|
+
setItem: (key, value, callback) => {
|
|
259
|
+
return createPromise(() => window.localStorage.setItem(key, value), callback);
|
|
260
|
+
},
|
|
261
|
+
/**
|
|
262
|
+
* Removes a `key`
|
|
263
|
+
*/
|
|
264
|
+
removeItem: (key, callback) => {
|
|
265
|
+
return createPromise(() => window.localStorage.removeItem(key), callback);
|
|
266
|
+
},
|
|
267
|
+
/**
|
|
268
|
+
* Merges existing value with input value, assuming they are stringified JSON.
|
|
269
|
+
*/
|
|
270
|
+
mergeItem: (key, value, callback) => {
|
|
271
|
+
return createPromise(() => mergeLocalStorageItem(key, value), callback);
|
|
272
|
+
},
|
|
273
|
+
/**
|
|
274
|
+
* Erases *all* AsyncStorage for the domain.
|
|
275
|
+
*/
|
|
276
|
+
clear: callback => {
|
|
277
|
+
return createPromise(() => window.localStorage.clear(), callback);
|
|
278
|
+
},
|
|
279
|
+
/**
|
|
280
|
+
* Gets *all* keys known to the app, for all callers, libraries, etc.
|
|
281
|
+
*/
|
|
282
|
+
getAllKeys: callback => {
|
|
283
|
+
return createPromise(() => {
|
|
284
|
+
const numberOfKeys = window.localStorage.length;
|
|
285
|
+
const keys = [];
|
|
286
|
+
for (let i = 0; i < numberOfKeys; i += 1) {
|
|
287
|
+
const key = window.localStorage.key(i) || "";
|
|
288
|
+
keys.push(key);
|
|
289
|
+
}
|
|
290
|
+
return keys;
|
|
291
|
+
}, callback);
|
|
292
|
+
},
|
|
293
|
+
/**
|
|
294
|
+
* (stub) Flushes any pending requests using a single batch call to get the data.
|
|
295
|
+
*/
|
|
296
|
+
flushGetRequests: () => undefined,
|
|
297
|
+
/**
|
|
298
|
+
* multiGet resolves to an array of key-value pair arrays that matches the
|
|
299
|
+
* input format of multiSet.
|
|
300
|
+
*
|
|
301
|
+
* multiGet(['k1', 'k2']) -> [['k1', 'val1'], ['k2', 'val2']]
|
|
302
|
+
*/
|
|
303
|
+
multiGet: (keys, callback) => {
|
|
304
|
+
const promises = keys.map(key => AsyncStorage.getItem(key));
|
|
305
|
+
const processResult = result => result.map((value, i) => [keys[i], value]);
|
|
306
|
+
return createPromiseAll(promises, callback, processResult);
|
|
307
|
+
},
|
|
308
|
+
/**
|
|
309
|
+
* Takes an array of key-value array pairs.
|
|
310
|
+
* multiSet([['k1', 'val1'], ['k2', 'val2']])
|
|
311
|
+
*/
|
|
312
|
+
multiSet: (keyValuePairs, callback) => {
|
|
313
|
+
const promises = keyValuePairs.map(item => AsyncStorage.setItem(item[0], item[1]));
|
|
314
|
+
return createPromiseAll(promises, callback);
|
|
315
|
+
},
|
|
316
|
+
/**
|
|
317
|
+
* Delete all the keys in the `keys` array.
|
|
318
|
+
*/
|
|
319
|
+
multiRemove: (keys, callback) => {
|
|
320
|
+
const promises = keys.map(key => AsyncStorage.removeItem(key));
|
|
321
|
+
return createPromiseAll(promises, callback);
|
|
322
|
+
},
|
|
323
|
+
/**
|
|
324
|
+
* Takes an array of key-value array pairs and merges them with existing
|
|
325
|
+
* values, assuming they are stringified JSON.
|
|
326
|
+
*
|
|
327
|
+
* multiMerge([['k1', 'val1'], ['k2', 'val2']])
|
|
328
|
+
*/
|
|
329
|
+
multiMerge: (keyValuePairs, callback) => {
|
|
330
|
+
const promises = keyValuePairs.map(item => AsyncStorage.mergeItem(item[0], item[1]));
|
|
331
|
+
return createPromiseAll(promises, callback);
|
|
332
|
+
}
|
|
333
|
+
};
|
|
334
|
+
|
|
335
|
+
function useAsyncStorage(key) {
|
|
336
|
+
return {
|
|
337
|
+
getItem: (...args) => AsyncStorage.getItem(key, ...args),
|
|
338
|
+
setItem: (...args) => AsyncStorage.setItem(key, ...args),
|
|
339
|
+
mergeItem: (...args) => AsyncStorage.mergeItem(key, ...args),
|
|
340
|
+
removeItem: (...args) => AsyncStorage.removeItem(key, ...args)
|
|
341
|
+
};
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
exports.default = AsyncStorage;
|
|
345
|
+
exports.useAsyncStorage = useAsyncStorage;
|
|
346
|
+
//# sourceMappingURL=index-CBSn59-p.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-CBSn59-p.js","sources":["../node_modules/merge-options/node_modules/is-plain-obj/index.js","../node_modules/merge-options/index.js","../node_modules/@react-native-async-storage/async-storage/lib/module/AsyncStorage.js","../node_modules/@react-native-async-storage/async-storage/lib/module/hooks.js"],"sourcesContent":["'use strict';\n\nmodule.exports = value => {\n\tif (Object.prototype.toString.call(value) !== '[object Object]') {\n\t\treturn false;\n\t}\n\n\tconst prototype = Object.getPrototypeOf(value);\n\treturn prototype === null || prototype === Object.prototype;\n};\n","'use strict';\nconst isOptionObject = require('is-plain-obj');\n\nconst {hasOwnProperty} = Object.prototype;\nconst {propertyIsEnumerable} = Object;\nconst defineProperty = (object, name, value) => Object.defineProperty(object, name, {\n\tvalue,\n\twritable: true,\n\tenumerable: true,\n\tconfigurable: true\n});\n\nconst globalThis = this;\nconst defaultMergeOptions = {\n\tconcatArrays: false,\n\tignoreUndefined: false\n};\n\nconst getEnumerableOwnPropertyKeys = value => {\n\tconst keys = [];\n\n\tfor (const key in value) {\n\t\tif (hasOwnProperty.call(value, key)) {\n\t\t\tkeys.push(key);\n\t\t}\n\t}\n\n\t/* istanbul ignore else */\n\tif (Object.getOwnPropertySymbols) {\n\t\tconst symbols = Object.getOwnPropertySymbols(value);\n\n\t\tfor (const symbol of symbols) {\n\t\t\tif (propertyIsEnumerable.call(value, symbol)) {\n\t\t\t\tkeys.push(symbol);\n\t\t\t}\n\t\t}\n\t}\n\n\treturn keys;\n};\n\nfunction clone(value) {\n\tif (Array.isArray(value)) {\n\t\treturn cloneArray(value);\n\t}\n\n\tif (isOptionObject(value)) {\n\t\treturn cloneOptionObject(value);\n\t}\n\n\treturn value;\n}\n\nfunction cloneArray(array) {\n\tconst result = array.slice(0, 0);\n\n\tgetEnumerableOwnPropertyKeys(array).forEach(key => {\n\t\tdefineProperty(result, key, clone(array[key]));\n\t});\n\n\treturn result;\n}\n\nfunction cloneOptionObject(object) {\n\tconst result = Object.getPrototypeOf(object) === null ? Object.create(null) : {};\n\n\tgetEnumerableOwnPropertyKeys(object).forEach(key => {\n\t\tdefineProperty(result, key, clone(object[key]));\n\t});\n\n\treturn result;\n}\n\n/**\n * @param {*} merged already cloned\n * @param {*} source something to merge\n * @param {string[]} keys keys to merge\n * @param {Object} config Config Object\n * @returns {*} cloned Object\n */\nconst mergeKeys = (merged, source, keys, config) => {\n\tkeys.forEach(key => {\n\t\tif (typeof source[key] === 'undefined' && config.ignoreUndefined) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Do not recurse into prototype chain of merged\n\t\tif (key in merged && merged[key] !== Object.getPrototypeOf(merged)) {\n\t\t\tdefineProperty(merged, key, merge(merged[key], source[key], config));\n\t\t} else {\n\t\t\tdefineProperty(merged, key, clone(source[key]));\n\t\t}\n\t});\n\n\treturn merged;\n};\n\n/**\n * @param {*} merged already cloned\n * @param {*} source something to merge\n * @param {Object} config Config Object\n * @returns {*} cloned Object\n *\n * see [Array.prototype.concat ( ...arguments )](http://www.ecma-international.org/ecma-262/6.0/#sec-array.prototype.concat)\n */\nconst concatArrays = (merged, source, config) => {\n\tlet result = merged.slice(0, 0);\n\tlet resultIndex = 0;\n\n\t[merged, source].forEach(array => {\n\t\tconst indices = [];\n\n\t\t// `result.concat(array)` with cloning\n\t\tfor (let k = 0; k < array.length; k++) {\n\t\t\tif (!hasOwnProperty.call(array, k)) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tindices.push(String(k));\n\n\t\t\tif (array === merged) {\n\t\t\t\t// Already cloned\n\t\t\t\tdefineProperty(result, resultIndex++, array[k]);\n\t\t\t} else {\n\t\t\t\tdefineProperty(result, resultIndex++, clone(array[k]));\n\t\t\t}\n\t\t}\n\n\t\t// Merge non-index keys\n\t\tresult = mergeKeys(result, array, getEnumerableOwnPropertyKeys(array).filter(key => !indices.includes(key)), config);\n\t});\n\n\treturn result;\n};\n\n/**\n * @param {*} merged already cloned\n * @param {*} source something to merge\n * @param {Object} config Config Object\n * @returns {*} cloned Object\n */\nfunction merge(merged, source, config) {\n\tif (config.concatArrays && Array.isArray(merged) && Array.isArray(source)) {\n\t\treturn concatArrays(merged, source, config);\n\t}\n\n\tif (!isOptionObject(source) || !isOptionObject(merged)) {\n\t\treturn clone(source);\n\t}\n\n\treturn mergeKeys(merged, source, getEnumerableOwnPropertyKeys(source), config);\n}\n\nmodule.exports = function (...options) {\n\tconst config = merge(clone(defaultMergeOptions), (this !== globalThis && this) || {}, defaultMergeOptions);\n\tlet merged = {_: {}};\n\n\tfor (const option of options) {\n\t\tif (option === undefined) {\n\t\t\tcontinue;\n\t\t}\n\n\t\tif (!isOptionObject(option)) {\n\t\t\tthrow new TypeError('`' + option + '` is not an Option Object');\n\t\t}\n\n\t\tmerged = merge(merged, {_: option}, config);\n\t}\n\n\treturn merged._;\n};\n","\"use strict\";\n\n/**\n * Copyright (c) Nicolas Gallagher.\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport mergeOptions from \"merge-options\";\n\n// eslint-disable-next-line @typescript-eslint/ban-types\n\n// eslint-disable-next-line @typescript-eslint/ban-types\n\nconst merge = mergeOptions.bind({\n concatArrays: true,\n ignoreUndefined: true\n});\nfunction mergeLocalStorageItem(key, value) {\n const oldValue = window.localStorage.getItem(key);\n if (oldValue) {\n const oldObject = JSON.parse(oldValue);\n const newObject = JSON.parse(value);\n const nextValue = JSON.stringify(merge(oldObject, newObject));\n window.localStorage.setItem(key, nextValue);\n } else {\n window.localStorage.setItem(key, value);\n }\n}\nfunction createPromise(getValue, callback) {\n return new Promise((resolve, reject) => {\n try {\n const value = getValue();\n callback?.(null, value);\n resolve(value);\n } catch (err) {\n callback?.(err);\n reject(err);\n }\n });\n}\nfunction createPromiseAll(promises, callback, processResult) {\n return Promise.all(promises).then(result => {\n const value = processResult?.(result) ?? null;\n callback?.(null, value);\n return Promise.resolve(value);\n }, errors => {\n callback?.(errors);\n return Promise.reject(errors);\n });\n}\nconst AsyncStorage = {\n /**\n * Fetches `key` value.\n */\n getItem: (key, callback) => {\n return createPromise(() => window.localStorage.getItem(key), callback);\n },\n /**\n * Sets `value` for `key`.\n */\n setItem: (key, value, callback) => {\n return createPromise(() => window.localStorage.setItem(key, value), callback);\n },\n /**\n * Removes a `key`\n */\n removeItem: (key, callback) => {\n return createPromise(() => window.localStorage.removeItem(key), callback);\n },\n /**\n * Merges existing value with input value, assuming they are stringified JSON.\n */\n mergeItem: (key, value, callback) => {\n return createPromise(() => mergeLocalStorageItem(key, value), callback);\n },\n /**\n * Erases *all* AsyncStorage for the domain.\n */\n clear: callback => {\n return createPromise(() => window.localStorage.clear(), callback);\n },\n /**\n * Gets *all* keys known to the app, for all callers, libraries, etc.\n */\n getAllKeys: callback => {\n return createPromise(() => {\n const numberOfKeys = window.localStorage.length;\n const keys = [];\n for (let i = 0; i < numberOfKeys; i += 1) {\n const key = window.localStorage.key(i) || \"\";\n keys.push(key);\n }\n return keys;\n }, callback);\n },\n /**\n * (stub) Flushes any pending requests using a single batch call to get the data.\n */\n flushGetRequests: () => undefined,\n /**\n * multiGet resolves to an array of key-value pair arrays that matches the\n * input format of multiSet.\n *\n * multiGet(['k1', 'k2']) -> [['k1', 'val1'], ['k2', 'val2']]\n */\n multiGet: (keys, callback) => {\n const promises = keys.map(key => AsyncStorage.getItem(key));\n const processResult = result => result.map((value, i) => [keys[i], value]);\n return createPromiseAll(promises, callback, processResult);\n },\n /**\n * Takes an array of key-value array pairs.\n * multiSet([['k1', 'val1'], ['k2', 'val2']])\n */\n multiSet: (keyValuePairs, callback) => {\n const promises = keyValuePairs.map(item => AsyncStorage.setItem(item[0], item[1]));\n return createPromiseAll(promises, callback);\n },\n /**\n * Delete all the keys in the `keys` array.\n */\n multiRemove: (keys, callback) => {\n const promises = keys.map(key => AsyncStorage.removeItem(key));\n return createPromiseAll(promises, callback);\n },\n /**\n * Takes an array of key-value array pairs and merges them with existing\n * values, assuming they are stringified JSON.\n *\n * multiMerge([['k1', 'val1'], ['k2', 'val2']])\n */\n multiMerge: (keyValuePairs, callback) => {\n const promises = keyValuePairs.map(item => AsyncStorage.mergeItem(item[0], item[1]));\n return createPromiseAll(promises, callback);\n }\n};\nexport default AsyncStorage;\n//# sourceMappingURL=AsyncStorage.js.map","\"use strict\";\n\nimport AsyncStorage from \"./AsyncStorage\";\nexport function useAsyncStorage(key) {\n return {\n getItem: (...args) => AsyncStorage.getItem(key, ...args),\n setItem: (...args) => AsyncStorage.setItem(key, ...args),\n mergeItem: (...args) => AsyncStorage.mergeItem(key, ...args),\n removeItem: (...args) => AsyncStorage.removeItem(key, ...args)\n };\n}\n//# sourceMappingURL=hooks.js.map"],"names":["require$$0","this","mergeOptions"],"mappings":";;;;;;;;;;;;;AAEA,CAAc,UAAA,GAAG,KAAK,IAAI;AAC1B,EAAC,IAAI,MAAM,CAAC,SAAS,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,iBAAiB,EAAE;AAClE,GAAE,OAAO,KAAK;AACd;;EAEC,MAAM,SAAS,GAAG,MAAM,CAAC,cAAc,CAAC,KAAK,CAAC;EAC9C,OAAO,SAAS,KAAK,IAAI,IAAI,SAAS,KAAK,MA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]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-CfrYa4U_.js","sources":["../node_modules/react-native-config/index.js"],"sourcesContent":["'use strict';\n\n// Bridge to:\n// Android: buildConfigField vars set in build.gradle, and exported via ReactConfig\n// iOS: config vars set in xcconfig and exposed via RNCConfig.m\nimport { NativeModules } from 'react-native';\n\nexport const Config = NativeModules.RNCConfigModule || {}\nexport default Config;\n"],"names":["NativeModules"],"mappings":";;;;AAOY,MAAC,MAAM,GAAGA,yBAAa,CAAC,eAAe,IAAI;;;;;","x_google_ignoreList":[0]}
|