@magnetarjs/plugin-vue3
Advanced tools
Comparing version 0.0.10 to 0.0.11
@@ -106,2 +106,5 @@ 'use strict'; | ||
const doOnFetchAction = (payload, meta) => { | ||
// abort updating local state if the payload is undefined | ||
if (payload === undefined) | ||
return; | ||
insertActionFactory(data, Vue3StoreOptions)({ | ||
@@ -123,2 +126,5 @@ payload, | ||
added: (payload, meta) => { | ||
// abort updating local state if the payload was set to undefined | ||
if (payload === undefined) | ||
return; | ||
const _docId = docId || `${meta.id}`; | ||
@@ -133,2 +139,5 @@ insertActionFactory(data, Vue3StoreOptions)({ | ||
modified: (payload, meta) => { | ||
// abort updating local state if the payload was set to undefined | ||
if (payload === undefined) | ||
return; | ||
const _docId = docId || `${meta.id}`; | ||
@@ -143,2 +152,5 @@ insertActionFactory(data, Vue3StoreOptions)({ | ||
removed: (payload, meta) => { | ||
// abort updating local state if the payload was set to undefined | ||
if (payload === undefined) | ||
return; | ||
const collectionPathDocIdToDelete = isWhat.isFullString(docId) | ||
@@ -145,0 +157,0 @@ ? [collectionPath, docId] |
@@ -98,2 +98,5 @@ import { copy } from 'copy-anything'; | ||
const doOnFetchAction = (payload, meta) => { | ||
// abort updating local state if the payload is undefined | ||
if (payload === undefined) | ||
return; | ||
insertActionFactory(data, Vue3StoreOptions)({ | ||
@@ -115,2 +118,5 @@ payload, | ||
added: (payload, meta) => { | ||
// abort updating local state if the payload was set to undefined | ||
if (payload === undefined) | ||
return; | ||
const _docId = docId || `${meta.id}`; | ||
@@ -125,2 +131,5 @@ insertActionFactory(data, Vue3StoreOptions)({ | ||
modified: (payload, meta) => { | ||
// abort updating local state if the payload was set to undefined | ||
if (payload === undefined) | ||
return; | ||
const _docId = docId || `${meta.id}`; | ||
@@ -135,2 +144,5 @@ insertActionFactory(data, Vue3StoreOptions)({ | ||
removed: (payload, meta) => { | ||
// abort updating local state if the payload was set to undefined | ||
if (payload === undefined) | ||
return; | ||
const collectionPathDocIdToDelete = isFullString(docId) | ||
@@ -137,0 +149,0 @@ ? [collectionPath, docId] |
{ | ||
"name": "@magnetarjs/plugin-vue3", | ||
"version": "0.0.10", | ||
"version": "0.0.11", | ||
"sideEffects": false, | ||
@@ -23,3 +23,3 @@ "description": "Magnetar plugin vue3", | ||
"dependencies": { | ||
"@magnetarjs/core": "^0.0.13", | ||
"@magnetarjs/core": "^0.0.14", | ||
"copy-anything": "^2.0.3", | ||
@@ -81,3 +81,3 @@ "fast-sort": "^2.2.0", | ||
}, | ||
"gitHead": "b1ed1387f9aa3c2fc3867d2df619d029503a193b" | ||
"gitHead": "070cf44ea57eb0581d5a90431cd354ec310ba4fa" | ||
} |
@@ -21,2 +21,5 @@ import { | ||
const doOnFetchAction: DoOnFetch = (payload, meta): void => { | ||
// abort updating local state if the payload is undefined | ||
if (payload === undefined) return | ||
insertActionFactory( | ||
@@ -23,0 +26,0 @@ data, |
@@ -29,2 +29,5 @@ import { isFullString, isString } from 'is-what' | ||
added: (payload, meta) => { | ||
// abort updating local state if the payload was set to undefined | ||
if (payload === undefined) return | ||
const _docId = docId || `${meta.id}` | ||
@@ -42,2 +45,5 @@ insertActionFactory( | ||
modified: (payload, meta) => { | ||
// abort updating local state if the payload was set to undefined | ||
if (payload === undefined) return | ||
const _docId = docId || `${meta.id}` | ||
@@ -55,2 +61,5 @@ insertActionFactory( | ||
removed: (payload, meta) => { | ||
// abort updating local state if the payload was set to undefined | ||
if (payload === undefined) return | ||
const collectionPathDocIdToDelete: [string, string] = isFullString(docId) | ||
@@ -57,0 +66,0 @@ ? [collectionPath, docId] |
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
93987
2265
+ Added@magnetarjs/core@0.0.14(transitive)
- Removed@magnetarjs/core@0.0.13(transitive)
Updated@magnetarjs/core@^0.0.14