@magnetarjs/core
Advanced tools
Comparing version 0.9.1 to 0.9.2
@@ -317,3 +317,3 @@ "use strict"; | ||
const actionPromise = new Promise(async (resolve, reject) => { | ||
const force = (payload == null ? void 0 : payload.force) === true; | ||
const force = payload?.force === true; | ||
if (actionName === "fetch" && force) { | ||
@@ -421,3 +421,3 @@ await writeLock.promise; | ||
if ((0, import_is_what4.isBoolean)(reachedEnd)) | ||
setLastFetched == null ? void 0 : setLastFetched({ reachedEnd, cursor }); | ||
setLastFetched?.({ reachedEnd, cursor }); | ||
for (const docMetaData of docs) { | ||
@@ -769,5 +769,4 @@ executeOnFns(doOnFetchFns, docMetaData.data, [docMetaData]); | ||
async function clearAllData() { | ||
var _a; | ||
for (const collectionName of collectionNames) { | ||
(_a = collection(collectionName).data) == null ? void 0 : _a.clear(); | ||
collection(collectionName).data?.clear(); | ||
} | ||
@@ -785,3 +784,7 @@ } | ||
const pathFilterIdentifier = getPathFilterIdentifier(modulePath, moduleConfig); | ||
const fetchPromises = (0, import_getorset_anything2.mapGetOrSet)(fetchPromiseMap, pathFilterIdentifier, () => /* @__PURE__ */ new Map()); | ||
const fetchPromises = (0, import_getorset_anything2.mapGetOrSet)( | ||
fetchPromiseMap, | ||
pathFilterIdentifier, | ||
() => /* @__PURE__ */ new Map() | ||
); | ||
const pathWhereOrderByIdentifier = getPathWhereOrderByIdentifier(modulePath, moduleConfig); | ||
@@ -788,0 +791,0 @@ const fetchMeta = { |
{ | ||
"name": "@magnetarjs/core", | ||
"version": "0.9.1", | ||
"version": "0.9.2", | ||
"sideEffects": false, | ||
@@ -23,10 +23,10 @@ "description": "Magnetar core library.", | ||
"dependencies": { | ||
"@magnetarjs/types": "0.9.1", | ||
"@magnetarjs/utils": "0.9.1", | ||
"getorset-anything": "^0.0.2", | ||
"is-what": "^3.14.1", | ||
"merge-anything": "^4.0.5" | ||
"@magnetarjs/types": "0.9.2", | ||
"@magnetarjs/utils": "0.9.2", | ||
"getorset-anything": "^0.0.3", | ||
"is-what": "^4.1.7", | ||
"merge-anything": "^5.1.1" | ||
}, | ||
"devDependencies": { | ||
"@magnetarjs/test-utils": "0.9.1" | ||
"@magnetarjs/test-utils": "0.9.2" | ||
}, | ||
@@ -33,0 +33,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
1678
66850
+ Added@magnetarjs/types@0.9.2(transitive)
+ Added@magnetarjs/utils@0.9.2(transitive)
+ Addedgetorset-anything@0.0.3(transitive)
+ Addedis-what@4.1.16(transitive)
+ Addedmerge-anything@5.1.7(transitive)
- Removed@magnetarjs/types@0.9.1(transitive)
- Removed@magnetarjs/utils@0.9.1(transitive)
- Removedgetorset-anything@0.0.2(transitive)
- Removedis-what@3.14.1(transitive)
- Removedmerge-anything@4.0.5(transitive)
- Removedts-toolbelt@9.6.0(transitive)
- Removedtype-fest@3.13.1(transitive)
Updated@magnetarjs/types@0.9.2
Updated@magnetarjs/utils@0.9.2
Updatedgetorset-anything@^0.0.3
Updatedis-what@^4.1.7
Updatedmerge-anything@^5.1.1