@coderich/autograph 0.13.105 → 0.13.106
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/package.json +1 -1
- package/src/data/Emitter.js +4 -4
package/package.json
CHANGED
package/src/data/Emitter.js
CHANGED
|
@@ -18,14 +18,14 @@ class Emitter extends EventEmitter {
|
|
|
18
18
|
return prev[isBasic ? 0 : 1].push(wrapper) && prev;
|
|
19
19
|
}, [[], []]);
|
|
20
20
|
|
|
21
|
-
// Basic functions are not designed to be bound to the query execution so we need an isolated resolver from any transactions
|
|
22
|
-
const resolver = data?.resolver?.clone();
|
|
23
|
-
const basicData = { ...data, resolver };
|
|
21
|
+
// // Basic functions are not designed to be bound to the query execution so we need an isolated resolver from any transactions
|
|
22
|
+
// const resolver = data?.resolver?.clone();
|
|
23
|
+
// const basicData = { ...data, resolver };
|
|
24
24
|
|
|
25
25
|
return new Promise((resolve, reject) => {
|
|
26
26
|
// Basic functions run first; if they return a value they abort the flow of execution
|
|
27
27
|
basicFuncs.sort(Emitter.sort).forEach((fn) => {
|
|
28
|
-
const value = fn(
|
|
28
|
+
const value = fn(data);
|
|
29
29
|
if (value !== undefined && !(value instanceof Promise)) throw new AbortEarlyError(value);
|
|
30
30
|
});
|
|
31
31
|
|