@magnetarjs/core
Advanced tools
Comparing version 0.9.3 to 0.9.4
import { GlobalConfig, MagnetarInstance, WriteLock } from '@magnetarjs/types'; | ||
export * from '@magnetarjs/types'; | ||
/** Any of the possible collection paths used so far */ | ||
declare type CollectionName = string; | ||
/** | ||
@@ -22,2 +20,2 @@ * Creates a magnetar instance. | ||
export { CollectionName, Magnetar, getCollectionPathDocIdEntry, getCollectionWriteLocks }; | ||
export { Magnetar, getCollectionPathDocIdEntry, getCollectionWriteLocks }; |
@@ -768,7 +768,11 @@ "use strict"; | ||
for (const collectionName of collectionNames) { | ||
if (options?.exclude?.includes(collectionName)) | ||
continue; | ||
collection(collectionName).data?.clear(); | ||
} | ||
} | ||
async function _closeAllStreams() { | ||
async function _closeAllStreams(options) { | ||
for (const collectionName of collectionNames) { | ||
if (options?.exclude?.includes(collectionName)) | ||
continue; | ||
collection(collectionName).closeAllStreams(); | ||
@@ -775,0 +779,0 @@ } |
{ | ||
"name": "@magnetarjs/core", | ||
"version": "0.9.3", | ||
"version": "0.9.4", | ||
"sideEffects": false, | ||
@@ -23,4 +23,4 @@ "description": "Magnetar core library.", | ||
"dependencies": { | ||
"@magnetarjs/types": "0.9.3", | ||
"@magnetarjs/utils": "0.9.3", | ||
"@magnetarjs/types": "0.9.4", | ||
"@magnetarjs/utils": "0.9.4", | ||
"getorset-anything": "^0.0.3", | ||
@@ -31,3 +31,3 @@ "is-what": "^4.1.7", | ||
"devDependencies": { | ||
"@magnetarjs/test-utils": "0.9.3" | ||
"@magnetarjs/test-utils": "0.9.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
67166
1686
+ Added@magnetarjs/types@0.9.4(transitive)
+ Added@magnetarjs/utils@0.9.4(transitive)
- Removed@magnetarjs/types@0.9.3(transitive)
- Removed@magnetarjs/utils@0.9.3(transitive)
Updated@magnetarjs/types@0.9.4
Updated@magnetarjs/utils@0.9.4