Socket
Socket
Sign inDemoInstall

lambdaorm-client-node

Package Overview
Dependencies
Maintainers
1
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lambdaorm-client-node - npm Package Compare versions

Comparing version 0.7.20 to 0.7.21

2

application/ports/IOrm.d.ts
import { MetadataSentence, QueryOptions, Metadata, MetadataModel, MetadataConstraint, MetadataParameter } from '../../domain';
export interface IOrmClient {
export interface IOrm {
host: string;

@@ -4,0 +4,0 @@ init(host?: string): Promise<void>;

import { MetadataSentence, MetadataParameter, MetadataModel, MetadataConstraint, Metadata } from './model';
import { IOrmClient } from '../application/ports/IOrm';
import { IOrm } from '../application/ports/IOrm';
export declare class ExpressionActions {

@@ -7,3 +7,3 @@ private orm;

private stage;
constructor(name: string, orm: IOrmClient, stage?: string);
constructor(name: string, orm: IOrm, stage?: string);
model(expression: string): Promise<MetadataModel[]>;

@@ -10,0 +10,0 @@ parameters(expression: string): Promise<MetadataParameter[]>;

@@ -1,6 +0,5 @@

import { OrmClient } from './infrastructure/adapters/orm';
export * from './application';
export * from './infrastructure';
export * from './domain';
export { OrmClient } from './infrastructure/adapters/orm';
export declare const ormClient: OrmClient;
export { Orm } from './infrastructure/adapters/orm';
export declare const orm: import("./application").IOrm;

@@ -17,3 +17,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.ormClient = exports.OrmClient = void 0;
exports.orm = exports.Orm = void 0;
const orm_1 = require("./infrastructure/adapters/orm");

@@ -24,4 +24,4 @@ __exportStar(require("./application"), exports);

var orm_2 = require("./infrastructure/adapters/orm");
Object.defineProperty(exports, "OrmClient", { enumerable: true, get: function () { return orm_2.OrmClient; } });
exports.ormClient = orm_1.OrmClient.instance;
Object.defineProperty(exports, "Orm", { enumerable: true, get: function () { return orm_2.Orm; } });
exports.orm = orm_1.Orm.instance;
//# sourceMappingURL=index.js.map

@@ -1,2 +0,2 @@

import { IOrmClient } from '../../application';
import { IOrm } from '../../application';
import { MetadataSentence, QueryOptions, Metadata, MetadataModel, MetadataConstraint, MetadataParameter } from '../../domain';

@@ -6,3 +6,3 @@ /**

*/
export declare class OrmClient implements IOrmClient {
export declare class Orm implements IOrm {
private static _instance;

@@ -16,3 +16,3 @@ host: string;

*/
static get instance(): OrmClient;
static get instance(): IOrm;
init(host?: string): Promise<void>;

@@ -19,0 +19,0 @@ end(): Promise<void>;

@@ -13,3 +13,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.OrmClient = void 0;
exports.Orm = void 0;
const application_1 = require("../../application");

@@ -22,3 +22,3 @@ const domain_1 = require("../../domain");

*/
class OrmClient {
class Orm {
constructor(host = 'http://localhost:9289') {

@@ -32,3 +32,3 @@ this.host = host;

if (!this._instance) {
this._instance = new OrmClient();
this._instance = new Orm();
}

@@ -137,3 +137,3 @@ return this._instance;

}
exports.OrmClient = OrmClient;
exports.Orm = Orm;
//# sourceMappingURL=orm.js.map

@@ -1,2 +0,2 @@

import { IOrmClient } from '../application/ports/IOrm';
import { IOrm } from '../application/ports/IOrm';
import { Queryable } from '../domain/queryable';

@@ -7,3 +7,3 @@ export declare class Repository<TEntity, TQuery> {

private orm;
constructor(name: string, stage?: string, Orm?: IOrmClient);
constructor(name: string, stage?: string, orm?: IOrm);
protected _execute(head: string, filter?: (value: TQuery, index: number, array: TQuery[]) => unknown, include?: (value: TQuery, index: number, array: TQuery[]) => unknown, data?: any): Promise<any>;

@@ -10,0 +10,0 @@ execute(expression: string, data?: any): Promise<any>;

@@ -17,6 +17,6 @@ "use strict";

class Repository {
constructor(name, stage, Orm) {
constructor(name, stage, orm) {
this.name = name;
this.stage = stage;
this.orm = Orm || orm_1.OrmClient.instance;
this.orm = orm || orm_1.Orm.instance;
}

@@ -23,0 +23,0 @@ _execute(head, filter, include, data = {}) {

{
"name": "lambdaorm-client-node",
"version": "0.7.20",
"version": "0.7.21",
"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

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc