@magnetarjs/core
Advanced tools
Comparing version 0.11.3 to 0.11.4
@@ -145,2 +145,3 @@ "use strict"; | ||
delete: [], | ||
// delete has no payload | ||
stream: _onMaps.flatMap((on) => on.stream ?? []).concat(readFns), | ||
@@ -393,2 +394,3 @@ fetch: _onMaps.flatMap((on) => on.fetch ?? []).concat(readFns) | ||
payload, | ||
// should always use the payload as passed originally for clarity | ||
actionConfig, | ||
@@ -415,2 +417,3 @@ eventNameFnsMap, | ||
error: resultFromPlugin | ||
// in this case the result is the error | ||
}); | ||
@@ -424,2 +427,5 @@ for (const fn of eventNameFnsMap.revert) { | ||
} | ||
if (actionName !== "fetch" && actionName !== "fetchCount") { | ||
writeLock.resolve(); | ||
} | ||
throw resultFromPlugin; | ||
@@ -671,2 +677,3 @@ } | ||
payload, | ||
// should always use the payload as passed originally for clarity | ||
eventNameFnsMap, | ||
@@ -813,9 +820,17 @@ actionName: "stream", | ||
insert: handleActionPerStore(sharedParams, "insert", import_types2.actionNameTypeMap.insert), | ||
// prettier-ignore | ||
merge: handleActionPerStore(sharedParams, "merge", import_types2.actionNameTypeMap.merge), | ||
// prettier-ignore | ||
assign: handleActionPerStore(sharedParams, "assign", import_types2.actionNameTypeMap.assign), | ||
// prettier-ignore | ||
replace: handleActionPerStore(sharedParams, "replace", import_types2.actionNameTypeMap.replace), | ||
// prettier-ignore | ||
deleteProp: handleActionPerStore(sharedParams, "deleteProp", import_types2.actionNameTypeMap.deleteProp), | ||
// prettier-ignore | ||
delete: handleActionPerStore(sharedParams, "delete", import_types2.actionNameTypeMap.delete), | ||
// prettier-ignore | ||
fetch: handleActionPerStore(sharedParams, "fetch", import_types2.actionNameTypeMap.fetch), | ||
// prettier-ignore | ||
stream: handleStreamPerStore([collectionPath, docId], moduleConfig, globalConfig, import_types2.actionNameTypeMap.stream, streaming, cacheStream, writeLockMap) | ||
// prettier-ignore | ||
}; | ||
@@ -822,0 +837,0 @@ executeSetupModulePerStore(globalConfig.stores, [collectionPath, docId], moduleConfig); |
{ | ||
"name": "@magnetarjs/core", | ||
"version": "0.11.3", | ||
"version": "0.11.4", | ||
"sideEffects": false, | ||
@@ -23,4 +23,4 @@ "description": "Magnetar core library.", | ||
"dependencies": { | ||
"@magnetarjs/types": "0.11.3", | ||
"@magnetarjs/utils": "0.11.3", | ||
"@magnetarjs/types": "0.11.4", | ||
"@magnetarjs/utils": "0.11.4", | ||
"getorset-anything": "^0.0.3", | ||
@@ -31,3 +31,3 @@ "is-what": "^4.1.7", | ||
"devDependencies": { | ||
"@magnetarjs/test-utils": "0.11.3" | ||
"@magnetarjs/test-utils": "0.11.4" | ||
}, | ||
@@ -34,0 +34,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
74212
1870
+ Added@magnetarjs/types@0.11.4(transitive)
+ Added@magnetarjs/utils@0.11.4(transitive)
- Removed@magnetarjs/types@0.11.3(transitive)
- Removed@magnetarjs/utils@0.11.3(transitive)
Updated@magnetarjs/types@0.11.4
Updated@magnetarjs/utils@0.11.4