4 Commits
5 changed files with 21 additions and 7 deletions

No files matched your search

+14
View File
@@ -2,6 +2,20 @@
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
### [1.3.2](https://git.archive.systems/Dezzpil/ivanovna.orm/compare/v1.3.1...v1.3.2) (2021-10-05)
### Bug Fixes
* трансформер доступен для дочерних классов ([e282a88](https://git.archive.systems/Dezzpil/ivanovna.orm/commit/e282a887c3e8c5fc6d159da9881f13adb2f527b4))
### [1.3.1](https://git.archive.systems/Dezzpil/ivanovna.orm/compare/v1.3.0...v1.3.1) (2021-10-05)
### Bug Fixes
* обновил API типов ([ead279c](https://git.archive.systems/Dezzpil/ivanovna.orm/commit/ead279ca5dbcc391aa30b224195295a4d1f81684))
## [1.3.0](https://git.archive.systems/Dezzpil/ivanovna.orm/compare/v1.2.0...v1.3.0) (2021-10-05)
Vendored
+3 -3
View File
@@ -66,6 +66,7 @@ export declare abstract class Repo<T extends Entity<any>> {
protected _entity: T;
protected _limit: number;
protected _offset: number;
protected _transformer: (obj: any) => any;
/**
* Возвращает объект соотв. сущности, например new App()
*/
@@ -74,9 +75,8 @@ export declare abstract class Repo<T extends Entity<any>> {
* Возвращает название коллекции/таблицы/... хранящей записи соотв. сущностей
*/
abstract Name(): string;
_transformer: (object: any) => any;
constructor(storage: Storage_2);
resetTransformer(): void;
constructor(storage: Storage_2, transformer?: (obj: any) => any);
setTransformer(transformer?: (obj: any) => any): this;
get storage(): Storage_2;
save(entity: T): Promise<this>;
findById(id: string): Promise<T | null>;
+2 -2
View File
@@ -1,12 +1,12 @@
{
"name": "ivna-orm",
"version": "1.3.0",
"version": "1.3.2",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "ivna-orm",
"version": "1.3.0",
"version": "1.3.2",
"license": "ISC",
"devDependencies": {
"@jest/test-sequencer": "^27.2.3",
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "ivna-orm",
"version": "1.3.0",
"version": "1.3.2",
"description": "Mini ORM for convenience",
"main": "dist/index.js",
"files": [
+1 -1
View File
@@ -15,7 +15,7 @@ export abstract class Repo<T extends Entity<any>> {
protected _limit = 0
protected _offset = 0
private _transformer: (obj: any) => any
protected _transformer: (obj: any) => any
/**
* Возвращает объект соотв. сущности, например new App()