@warp-drive-mirror/experiments 0.0.1-alpha.128 → 0.0.1-alpha.130
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/data-worker.js +3 -3
- package/dist/image-fetch.js +2 -2
- package/dist/index-Cn3o840t.js +2 -2
- package/dist/worker-fetch.js +2 -2
- package/package.json +12 -12
package/dist/data-worker.js
CHANGED
|
@@ -217,7 +217,7 @@ const CacheHandler = {
|
|
|
217
217
|
}
|
|
218
218
|
return completeRequest(identifier, store, context, next);
|
|
219
219
|
}).catch(e => {
|
|
220
|
-
if (macroCondition(getGlobalConfig().
|
|
220
|
+
if (macroCondition(getGlobalConfig().WarpDriveMirror.env.DEBUG)) {
|
|
221
221
|
// eslint-disable-next-line no-console
|
|
222
222
|
console.log('Unable to retrieve document from persisted storage', e);
|
|
223
223
|
}
|
|
@@ -235,7 +235,7 @@ function completeRequest(identifier, store, context, next) {
|
|
|
235
235
|
if (calcShouldFetch(store, context.request, !!peeked, identifier)) {
|
|
236
236
|
return fetchContentAndHydrate(next, context, identifier);
|
|
237
237
|
}
|
|
238
|
-
macroCondition(getGlobalConfig().
|
|
238
|
+
macroCondition(getGlobalConfig().WarpDriveMirror.env.DEBUG) ? (test => {
|
|
239
239
|
if (!test) {
|
|
240
240
|
throw new Error(`Expected a peeked request to be present`);
|
|
241
241
|
}
|
|
@@ -357,7 +357,7 @@ function fetchContentAndHydrate(next, context, identifier) {
|
|
|
357
357
|
if (isMutation(request)) {
|
|
358
358
|
// TODO should we handle multiple records in request.records by iteratively calling willCommit for each
|
|
359
359
|
const record = request.data?.record || request.records?.[0];
|
|
360
|
-
macroCondition(getGlobalConfig().
|
|
360
|
+
macroCondition(getGlobalConfig().WarpDriveMirror.env.DEBUG) ? (test => {
|
|
361
361
|
if (!test) {
|
|
362
362
|
throw new Error(`Expected to receive a list of records included in the ${request.op} request`);
|
|
363
363
|
}
|
package/dist/image-fetch.js
CHANGED
|
@@ -6,8 +6,8 @@ class ImageFetch {
|
|
|
6
6
|
this.threadId = isServerEnv ? '' : crypto.randomUUID();
|
|
7
7
|
this.pending = new Map();
|
|
8
8
|
this.cache = new Map();
|
|
9
|
-
const isTesting = macroCondition(getGlobalConfig().
|
|
10
|
-
macroCondition(getGlobalConfig().
|
|
9
|
+
const isTesting = macroCondition(getGlobalConfig().WarpDriveMirror.env.TESTING) ? true : false;
|
|
10
|
+
macroCondition(getGlobalConfig().WarpDriveMirror.env.DEBUG) ? (test => {
|
|
11
11
|
if (!test) {
|
|
12
12
|
throw new Error(`Expected a SharedWorker instance`);
|
|
13
13
|
}
|
package/dist/index-Cn3o840t.js
CHANGED
|
@@ -215,7 +215,7 @@ class InternalDocumentStorage {
|
|
|
215
215
|
}
|
|
216
216
|
}
|
|
217
217
|
function safeDocumentSerialize(document) {
|
|
218
|
-
macroCondition(getGlobalConfig().
|
|
218
|
+
macroCondition(getGlobalConfig().WarpDriveMirror.env.DEBUG) ? (test => {
|
|
219
219
|
if (!test) {
|
|
220
220
|
throw new Error(`Expected to receive a document`);
|
|
221
221
|
}
|
|
@@ -263,7 +263,7 @@ function prepareResponse(response) {
|
|
|
263
263
|
return clone;
|
|
264
264
|
}
|
|
265
265
|
function safeDocumentHydrate(document) {
|
|
266
|
-
macroCondition(getGlobalConfig().
|
|
266
|
+
macroCondition(getGlobalConfig().WarpDriveMirror.env.DEBUG) ? (test => {
|
|
267
267
|
if (!test) {
|
|
268
268
|
throw new Error(`Expected to receive a document`);
|
|
269
269
|
}
|
package/dist/worker-fetch.js
CHANGED
|
@@ -24,8 +24,8 @@ class WorkerFetch {
|
|
|
24
24
|
constructor(worker) {
|
|
25
25
|
this.threadId = isServerEnv ? '' : crypto.randomUUID();
|
|
26
26
|
this.pending = new Map();
|
|
27
|
-
const isTesting = macroCondition(getGlobalConfig().
|
|
28
|
-
macroCondition(getGlobalConfig().
|
|
27
|
+
const isTesting = macroCondition(getGlobalConfig().WarpDriveMirror.env.TESTING) ? true : false;
|
|
28
|
+
macroCondition(getGlobalConfig().WarpDriveMirror.env.DEBUG) ? (test => {
|
|
29
29
|
if (!test) {
|
|
30
30
|
throw new Error(`Expected a SharedWorker instance`);
|
|
31
31
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@warp-drive-mirror/experiments",
|
|
3
3
|
"description": "Experimental features for EmberData/WarpDrive",
|
|
4
|
-
"version": "0.0.1-alpha.
|
|
4
|
+
"version": "0.0.1-alpha.130",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Chris Thoburn <runspired@users.noreply.github.com>",
|
|
7
7
|
"repository": {
|
|
@@ -42,10 +42,10 @@
|
|
|
42
42
|
],
|
|
43
43
|
"peerDependencies": {
|
|
44
44
|
"@sqlite.org/sqlite-wasm": "3.46.0-build2",
|
|
45
|
-
"@ember-data-mirror/request": "5.4.0-alpha.
|
|
46
|
-
"@ember-data-mirror/request-utils": "5.4.0-alpha.
|
|
47
|
-
"@ember-data-mirror/store": "5.4.0-alpha.
|
|
48
|
-
"@warp-drive-mirror/core-types": "5.4.0-alpha.
|
|
45
|
+
"@ember-data-mirror/request": "5.4.0-alpha.130",
|
|
46
|
+
"@ember-data-mirror/request-utils": "5.4.0-alpha.130",
|
|
47
|
+
"@ember-data-mirror/store": "5.4.0-alpha.130",
|
|
48
|
+
"@warp-drive-mirror/core-types": "5.4.0-alpha.130"
|
|
49
49
|
},
|
|
50
50
|
"peerDependenciesMeta": {
|
|
51
51
|
"@sqlite.org/sqlite-wasm": {
|
|
@@ -54,20 +54,20 @@
|
|
|
54
54
|
},
|
|
55
55
|
"dependencies": {
|
|
56
56
|
"@embroider/macros": "^1.16.6",
|
|
57
|
-
"@warp-drive-mirror/build-config": "5.4.0-alpha.
|
|
57
|
+
"@warp-drive-mirror/build-config": "5.4.0-alpha.130"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
60
|
"@babel/core": "^7.24.5",
|
|
61
61
|
"@babel/plugin-transform-typescript": "^7.24.5",
|
|
62
62
|
"@babel/preset-env": "^7.24.5",
|
|
63
63
|
"@babel/preset-typescript": "^7.24.1",
|
|
64
|
-
"@ember-data-mirror/request": "5.4.0-alpha.
|
|
65
|
-
"@ember-data-mirror/request-utils": "5.4.0-alpha.
|
|
66
|
-
"@ember-data-mirror/store": "5.4.0-alpha.
|
|
67
|
-
"@ember-data-mirror/tracking": "5.4.0-alpha.
|
|
64
|
+
"@ember-data-mirror/request": "5.4.0-alpha.130",
|
|
65
|
+
"@ember-data-mirror/request-utils": "5.4.0-alpha.130",
|
|
66
|
+
"@ember-data-mirror/store": "5.4.0-alpha.130",
|
|
67
|
+
"@ember-data-mirror/tracking": "5.4.0-alpha.130",
|
|
68
68
|
"@glimmer/component": "^1.1.2",
|
|
69
|
-
"@warp-drive-mirror/core-types": "5.4.0-alpha.
|
|
70
|
-
"@warp-drive/internal-config": "5.4.0-alpha.
|
|
69
|
+
"@warp-drive-mirror/core-types": "5.4.0-alpha.130",
|
|
70
|
+
"@warp-drive/internal-config": "5.4.0-alpha.130",
|
|
71
71
|
"ember-source": "~5.12.0",
|
|
72
72
|
"pnpm-sync-dependencies-meta-injected": "0.0.14",
|
|
73
73
|
"@sqlite.org/sqlite-wasm": "3.46.0-build2",
|