lambdaorm-client-node
Advanced tools
Comparing version 0.7.32 to 0.7.33
@@ -6,4 +6,4 @@ import { QueryOptions, QueryPlan, Metadata, MetadataModel, MetadataConstraint, MetadataParameter } from 'lambdaorm-base'; | ||
export interface IOrm { | ||
host: string; | ||
init(host?: string): Promise<void>; | ||
url: string; | ||
init(url?: string): Promise<void>; | ||
end(): Promise<void>; | ||
@@ -10,0 +10,0 @@ get general(): GeneralService; |
@@ -9,3 +9,3 @@ import { IOrm } from '../../application'; | ||
private static _instance; | ||
host: string; | ||
url: string; | ||
private configuration?; | ||
@@ -16,3 +16,3 @@ private expressionService?; | ||
private stageService?; | ||
constructor(host?: string); | ||
constructor(url?: string); | ||
/** | ||
@@ -22,3 +22,3 @@ * Singleton | ||
static get instance(): IOrm; | ||
init(workspace: string, host?: string): Promise<void>; | ||
init(url?: string): Promise<void>; | ||
end(): Promise<void>; | ||
@@ -25,0 +25,0 @@ get general(): GeneralService; |
@@ -26,4 +26,4 @@ "use strict"; | ||
class Orm { | ||
constructor(host = 'http://localhost:9289') { | ||
this.host = host; | ||
constructor(url = 'http://localhost:9289') { | ||
this.url = url; | ||
} | ||
@@ -39,9 +39,9 @@ /** | ||
} | ||
init(workspace, host) { | ||
init(url) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
if (host) { | ||
this.host = host; | ||
if (url) { | ||
this.url = url; | ||
} | ||
new __1.SentenceLibrary(_3xpr_1.expressions).load(); | ||
this.configuration = new domain_1.Configuration({ basePath: this.host }); | ||
this.configuration = new domain_1.Configuration({ basePath: this.url }); | ||
this.expressionService = new ExpressionApiService_1.ExpressionApiService(new api_1.ExpressionApi(this.configuration)); | ||
@@ -48,0 +48,0 @@ this.generalService = new GeneralApiService_1.GeneralApiService(new api_1.GeneralApi(this.configuration)); |
{ | ||
"name": "lambdaorm-client-node", | ||
"version": "0.7.32", | ||
"version": "0.7.33", | ||
"description": "Client form lambda ORM service", | ||
@@ -5,0 +5,0 @@ "author": "Flavio Lionel Rita <flaviolrita@gmail.com>", |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
260535