lambdaorm-client-node
Advanced tools
Comparing version 0.4.3 to 0.4.4
import { OrmClient } from './orm'; | ||
export * from './IOrm'; | ||
export * from './repository'; | ||
export * from './manager'; | ||
export * from './client'; | ||
export { OrmClient } from './orm'; | ||
export declare const ormClient: OrmClient; |
@@ -20,3 +20,3 @@ "use strict"; | ||
__exportStar(require("./IOrm"), exports); | ||
__exportStar(require("./repository"), exports); | ||
__exportStar(require("./manager"), exports); | ||
__exportStar(require("./client"), exports); | ||
@@ -23,0 +23,0 @@ var orm_2 = require("./orm"); |
import { MetadataSentence, QueryOptions, Metadata, MetadataModel, MetadataConstraint, MetadataParameter } from './client'; | ||
export interface IOrmClient { | ||
host: string; | ||
init(host?: string): void; | ||
end(): void; | ||
init(host?: string): Promise<void>; | ||
end(): Promise<void>; | ||
/** | ||
@@ -7,0 +7,0 @@ * Get model of expression |
@@ -16,4 +16,4 @@ import { IOrmClient } from './IOrm'; | ||
static get instance(): OrmClient; | ||
init(host?: string): void; | ||
end(): void; | ||
init(host?: string): Promise<void>; | ||
end(): Promise<void>; | ||
/** | ||
@@ -20,0 +20,0 @@ * Get model of expression |
18
orm.js
@@ -16,2 +16,3 @@ "use strict"; | ||
const _3xpr_1 = require("3xpr"); | ||
const manager_1 = require("./manager"); | ||
/** | ||
@@ -34,10 +35,15 @@ * Facade through which you can access all the functionalities of the library. | ||
init(host) { | ||
if (host) { | ||
this.host = host; | ||
} | ||
this.configuration = new client_1.Configuration({ basePath: this.host }); | ||
this.expressionApi = new client_1.ExpressionApi(this.configuration); | ||
return __awaiter(this, void 0, void 0, function* () { | ||
if (host) { | ||
this.host = host; | ||
} | ||
new manager_1.SentenceLibrary(_3xpr_1.expressions.model).load(); | ||
this.configuration = new client_1.Configuration({ basePath: this.host }); | ||
this.expressionApi = new client_1.ExpressionApi(this.configuration); | ||
}); | ||
} | ||
// eslint-disable-next-line @typescript-eslint/no-empty-function | ||
end() { } | ||
end() { | ||
return __awaiter(this, void 0, void 0, function* () { }); | ||
} | ||
model(expression) { | ||
@@ -44,0 +50,0 @@ return __awaiter(this, void 0, void 0, function* () { |
{ | ||
"name": "lambdaorm-client-node", | ||
"version": "0.4.3", | ||
"version": "0.4.4", | ||
"description": "ORM", | ||
@@ -20,3 +20,4 @@ "author": "Flavio Lionel Rita <flaviolrita@gmail.com>", | ||
"h3lp": "1.2.3", | ||
"3xpr": "1.6.12" | ||
"3xpr": "1.6.12", | ||
"crypto-js": "^4.1.1" | ||
}, | ||
@@ -23,0 +24,0 @@ "keywords": [ |
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
215477
43
4487
4
+ Addedcrypto-js@^4.1.1
+ Addedcrypto-js@4.2.0(transitive)