@furystack/repository
Advanced tools
Comparing version 7.0.9 to 7.0.10
@@ -7,2 +7,3 @@ import { AuthorizationError } from '@furystack/core'; | ||
export class DataSet { | ||
settings; | ||
dispose() { | ||
@@ -14,2 +15,6 @@ this.onEntityAdded.dispose(); | ||
/** | ||
* Primary key of the contained entity | ||
*/ | ||
primaryKey; | ||
/** | ||
* Adds an entity to the DataSet | ||
@@ -37,2 +42,6 @@ * @param injector The injector from the context | ||
/** | ||
* Observable that will be updated after the entity has been persisted | ||
*/ | ||
onEntityAdded = new ObservableValue(); | ||
/** | ||
* Updates an entity in the store | ||
@@ -66,2 +75,6 @@ * @param injector The injector from the context | ||
/** | ||
* Observable that will be updated right after an entity update | ||
*/ | ||
onEntityUpdated = new ObservableValue(); | ||
/** | ||
* Returns a Promise with the entity count | ||
@@ -145,22 +158,11 @@ * @param injector The Injector from the context | ||
} | ||
/** | ||
* Callback that fires right after entity update | ||
*/ | ||
onEntityRemoved = new ObservableValue(); | ||
constructor(settings) { | ||
this.settings = settings; | ||
/** | ||
* Primary key of the contained entity | ||
*/ | ||
this.primaryKey = this.settings.physicalStore.primaryKey; | ||
/** | ||
* Observable that will be updated after the entity has been persisted | ||
*/ | ||
this.onEntityAdded = new ObservableValue(); | ||
/** | ||
* Observable that will be updated right after an entity update | ||
*/ | ||
this.onEntityUpdated = new ObservableValue(); | ||
/** | ||
* Callback that fires right after entity update | ||
*/ | ||
this.onEntityRemoved = new ObservableValue(); | ||
} | ||
} | ||
//# sourceMappingURL=data-set.js.map |
@@ -16,6 +16,3 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { | ||
*/ | ||
export let Repository = class Repository { | ||
constructor() { | ||
this.dataSets = new Map(); | ||
} | ||
let Repository = class Repository { | ||
dispose() { | ||
@@ -25,2 +22,3 @@ this.dataSets.forEach((ds) => ds.dispose()); | ||
} | ||
dataSets = new Map(); | ||
getDataSetFor(model, primaryKey) { | ||
@@ -45,2 +43,3 @@ const instance = this.dataSets.get(model); | ||
} | ||
storeManager; | ||
}; | ||
@@ -54,2 +53,3 @@ __decorate([ | ||
], Repository); | ||
export { Repository }; | ||
//# sourceMappingURL=repository.js.map |
{ | ||
"name": "@furystack/repository", | ||
"version": "7.0.9", | ||
"version": "7.0.10", | ||
"description": "Repository implementation for FuryStack", | ||
@@ -40,11 +40,11 @@ "type": "module", | ||
"dependencies": { | ||
"@furystack/core": "^12.0.9", | ||
"@furystack/inject": "^8.0.8", | ||
"@furystack/utils": "^4.0.8" | ||
"@furystack/core": "^12.0.10", | ||
"@furystack/inject": "^8.1.0", | ||
"@furystack/utils": "^4.0.9" | ||
}, | ||
"devDependencies": { | ||
"typescript": "^5.1.6", | ||
"vitest": "^0.34.2" | ||
"typescript": "^5.2.2", | ||
"vitest": "^0.34.3" | ||
}, | ||
"gitHead": "1045d854bfd8c475b7035471d130d401417a2321" | ||
} |
@@ -23,3 +23,3 @@ import type { Injector } from '@furystack/inject' | ||
*/ | ||
public primaryKey: TPrimaryKey = this.settings.physicalStore.primaryKey | ||
public primaryKey: TPrimaryKey | ||
@@ -188,3 +188,5 @@ /** | ||
constructor(public readonly settings: DataSetSettings<T, TPrimaryKey, TWritableData>) {} | ||
constructor(public readonly settings: DataSetSettings<T, TPrimaryKey, TWritableData>) { | ||
this.primaryKey = this.settings.physicalStore.primaryKey | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
90404
1255
Updated@furystack/core@^12.0.10
Updated@furystack/inject@^8.1.0
Updated@furystack/utils@^4.0.9