@magnetarjs/plugin-vue3
Advanced tools
Comparing version 0.0.16 to 0.0.17
@@ -351,2 +351,4 @@ 'use strict'; | ||
if (!docId && isWhat.isArray(initialData)) { | ||
if (dataCollectionMap.size > 0) | ||
return; | ||
for (const [_docId, _docData] of initialData) { | ||
@@ -357,2 +359,4 @@ dataCollectionMap.set(_docId, _docData); | ||
else if (docId) { | ||
if (dataCollectionMap.has(docId)) | ||
return; | ||
dataCollectionMap.set(docId, initialData); | ||
@@ -359,0 +363,0 @@ } |
@@ -347,2 +347,4 @@ import { copy } from 'copy-anything'; | ||
if (!docId && isArray(initialData)) { | ||
if (dataCollectionMap.size > 0) | ||
return; | ||
for (const [_docId, _docData] of initialData) { | ||
@@ -353,2 +355,4 @@ dataCollectionMap.set(_docId, _docData); | ||
else if (docId) { | ||
if (dataCollectionMap.has(docId)) | ||
return; | ||
dataCollectionMap.set(docId, initialData); | ||
@@ -355,0 +359,0 @@ } |
{ | ||
"name": "@magnetarjs/plugin-vue3", | ||
"version": "0.0.16", | ||
"version": "0.0.17", | ||
"sideEffects": false, | ||
@@ -8,3 +8,3 @@ "description": "Magnetar plugin vue3", | ||
"module": "dist/index.esm.js", | ||
"types": "types/index.d.ts", | ||
"types": "dist/types/index.d.ts", | ||
"scripts": { | ||
@@ -15,3 +15,3 @@ "build": "npm run rollup", | ||
"test--only": "ava --match='*only:*'", | ||
"rollup": "rimraf dist && rimraf types && rollup -c build.js" | ||
"rollup": "rimraf dist && rollup -c build.js" | ||
}, | ||
@@ -25,5 +25,5 @@ "author": "Luca Ban - Mesqueeb", | ||
"dependencies": { | ||
"@magnetarjs/core": "^0.0.19", | ||
"@magnetarjs/core": "^0.0.20", | ||
"copy-anything": "^2.0.3", | ||
"fast-sort": "^3.0.1", | ||
"fast-sort": "^3.0.2", | ||
"filter-anything": "^2.2.1", | ||
@@ -36,3 +36,3 @@ "is-what": "^3.14.1", | ||
"devDependencies": { | ||
"@magnetarjs/test-utils": "^0.0.10", | ||
"@magnetarjs/test-utils": "^0.0.11", | ||
"ava": "^3.15.0", | ||
@@ -84,3 +84,3 @@ "vue": "3.0.11" | ||
}, | ||
"gitHead": "0894958dbdebbe4ec1adeb418d4d76050bd5c51d" | ||
"gitHead": "ad27bdb9bb5fba289ffdb3abe4c94e1b94072160" | ||
} |
@@ -114,2 +114,3 @@ import { copy } from 'copy-anything' | ||
if (!docId && isArray(initialData)) { | ||
if (dataCollectionMap.size > 0) return | ||
for (const [_docId, _docData] of initialData) { | ||
@@ -119,3 +120,4 @@ dataCollectionMap.set(_docId, _docData) | ||
} else if (docId) { | ||
dataCollectionMap.set(docId, initialData as Record<string, any>) | ||
if (dataCollectionMap.has(docId)) return | ||
dataCollectionMap.set(docId, initialData) | ||
} | ||
@@ -122,0 +124,0 @@ } |
@@ -5,3 +5,3 @@ { | ||
"declaration": true, | ||
"declarationDir": "./types/", | ||
"declarationDir": "./dist/types/", | ||
// This must be specified if "paths" is set | ||
@@ -8,0 +8,0 @@ "baseUrl": "." |
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
95357
34
2328
+ Added@magnetarjs/core@0.0.20(transitive)
- Removed@magnetarjs/core@0.0.19(transitive)
Updated@magnetarjs/core@^0.0.20
Updatedfast-sort@^3.0.2