@berish/orm
Advanced tools
Comparing version 0.9.0 to 0.9.1
import { QueueAction } from '../../utils'; | ||
import { IPlainQueueActionData, IPlainRaw } from '../plain'; | ||
export declare function generateId(src: string, dst: string, parent: string, level: number): any; | ||
export declare function generateId(src: string, dst: string, parent: string, level: number): string; | ||
export declare function generateElement(src: string, dst: string, parent: string, level: number): IPlainRaw; | ||
export declare const saveAction: QueueAction<IPlainQueueActionData>; |
@@ -45,6 +45,6 @@ import { Entity } from '../entity'; | ||
static fromJSON<T extends Entity = Entity>(queryData: QueryData<QueryDataSchema>): Query<T>; | ||
static getHash(queryData: QueryData<QueryDataSchema>): any; | ||
static getHash(queryData: QueryData<QueryDataSchema>): string; | ||
constructor(ctor: string | (new () => T)); | ||
get json(): QueryData<QueryDataSchema>; | ||
get hash(): any; | ||
get hash(): string; | ||
get className(): string; | ||
@@ -51,0 +51,0 @@ append<TKey extends keyof QueryDataSchema>(key: TKey, value: QueryDataSchema[TKey]): this; |
export declare function getHash(obj: { | ||
[key: string]: any; | ||
}): any; | ||
}): string; |
@@ -7,3 +7,3 @@ "use strict"; | ||
const strJSON = JSON.stringify(obj || {}); | ||
const words = crypto.SHA256(strJSON, strJSON); | ||
const words = crypto.SHA256(strJSON); | ||
return words.toString(); | ||
@@ -10,0 +10,0 @@ } |
{ | ||
"name": "@berish/orm", | ||
"version": "0.9.0", | ||
"version": "0.9.1", | ||
"description": "ORM", | ||
@@ -46,2 +46,3 @@ "main": "build/index.js", | ||
"devDependencies": { | ||
"@types/crypto-js": "^4.0.1", | ||
"@types/faker": "^5.1.3", | ||
@@ -48,0 +49,0 @@ "@types/jest": "^26.0.15", |
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
228917
11