@magnetarjs/plugin-vue3
Advanced tools
Comparing version 0.6.0 to 0.6.1
@@ -0,1 +1,2 @@ | ||
"use strict"; | ||
var __defProp = Object.defineProperty; | ||
@@ -30,2 +31,3 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor; | ||
var import_is_what6 = require("is-what"); | ||
var import_getorset_anything = require("getorset-anything"); | ||
var import_vue = require("vue"); | ||
@@ -194,3 +196,6 @@ var import_core2 = require("@magnetarjs/core"); | ||
return; | ||
insertActionFactory(data, Vue3StoreOptions2)({ | ||
insertActionFactory( | ||
data, | ||
Vue3StoreOptions2 | ||
)({ | ||
payload: _payload, | ||
@@ -223,3 +228,6 @@ collectionPath, | ||
const _docId = docId || `${meta.id}`; | ||
insertActionFactory(data, Vue3StoreOptions2)({ | ||
insertActionFactory( | ||
data, | ||
Vue3StoreOptions2 | ||
)({ | ||
payload: payload2, | ||
@@ -236,3 +244,6 @@ collectionPath, | ||
const _docId = docId || `${meta.id}`; | ||
insertActionFactory(data, Vue3StoreOptions2)({ | ||
insertActionFactory( | ||
data, | ||
Vue3StoreOptions2 | ||
)({ | ||
payload: payload2, | ||
@@ -250,3 +261,6 @@ collectionPath, | ||
const [_cPath, _dId] = collectionPathDocIdToDelete; | ||
deleteActionFactory(data, Vue3StoreOptions2)({ | ||
deleteActionFactory( | ||
data, | ||
Vue3StoreOptions2 | ||
)({ | ||
payload: void 0, | ||
@@ -295,8 +309,6 @@ collectionPath: _cPath, | ||
const backupCollectionMap = dataBackups[collectionPath]; | ||
if (!backupCollectionMap.has(docId)) | ||
backupCollectionMap.set(docId, []); | ||
const docBackup = (0, import_copy_anything.copy)(data[collectionPath].get(docId)); | ||
const arr = backupCollectionMap.get(docId); | ||
if (docBackup && arr) | ||
arr.push(docBackup); | ||
const arr = (0, import_getorset_anything.mapGetOrSet)(backupCollectionMap, docId, () => []); | ||
const foundDoc = data[collectionPath].get(docId); | ||
if (foundDoc) | ||
arr.push((0, import_copy_anything.copy)(foundDoc)); | ||
}; | ||
@@ -303,0 +315,0 @@ const restoreBackup = (collectionPath, docId) => { |
{ | ||
"name": "@magnetarjs/plugin-vue3", | ||
"version": "0.6.0", | ||
"version": "0.6.1", | ||
"sideEffects": false, | ||
@@ -26,13 +26,14 @@ "description": "Magnetar plugin vue3", | ||
"dependencies": { | ||
"@magnetarjs/core": "0.6.0", | ||
"@magnetarjs/utils": "0.6.0", | ||
"copy-anything": "^2.0.3", | ||
"filter-anything": "^2.2.1", | ||
"@magnetarjs/core": "0.6.1", | ||
"@magnetarjs/utils": "0.6.1", | ||
"copy-anything": "^2.0.6", | ||
"filter-anything": "^2.2.4", | ||
"getorset-anything": "^0.0.2", | ||
"is-what": "^3.14.1", | ||
"merge-anything": "^4.0.2", | ||
"path-to-prop": "1.0.0", | ||
"merge-anything": "^4.0.5", | ||
"path-to-prop": "1.0.2", | ||
"ts-toolbelt": "^9.6.0" | ||
}, | ||
"devDependencies": { | ||
"@magnetarjs/test-utils": "0.6.0", | ||
"@magnetarjs/test-utils": "0.6.1", | ||
"vue": "^3.2.26" | ||
@@ -39,0 +40,0 @@ }, |
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
69007
1641
10
+ Addedgetorset-anything@^0.0.2
+ Added@magnetarjs/core@0.6.1(transitive)
+ Added@magnetarjs/utils@0.6.1(transitive)
+ Addedgetorset-anything@0.0.2(transitive)
+ Addedpath-to-prop@1.0.2(transitive)
- Removed@magnetarjs/core@0.6.0(transitive)
- Removed@magnetarjs/utils@0.6.0(transitive)
- Removedpath-to-prop@1.0.0(transitive)
Updated@magnetarjs/core@0.6.1
Updated@magnetarjs/utils@0.6.1
Updatedcopy-anything@^2.0.6
Updatedfilter-anything@^2.2.4
Updatedmerge-anything@^4.0.5
Updatedpath-to-prop@1.0.2