Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

lambdaorm-base

Package Overview
Dependencies
Maintainers
1
Versions
96
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lambdaorm-base - npm Package Compare versions

Comparing version 1.2.1 to 1.2.2

2

package.json
{
"name": "lambdaorm-base",
"version": "1.2.1",
"version": "1.2.2",
"description": "ORM",

@@ -5,0 +5,0 @@ "author": "Flavio Lionel Rita <flaviolrita@proton.me>",

@@ -23,3 +23,3 @@ import { Schema, SchemaData, Dialect, Mapping, MatchOptions, InitializeSchemaArgs, SchemaInfo } from '../domain';

initialize(schema: Schema, args: InitializeSchemaArgs): Schema;
updateFromData(schema: Schema, data: any | any[], name: string): SchemaData;
introspect(schema: Schema, data: any | any[], name: string): SchemaData;
updateFromMapping(schema: Schema, mappings: Mapping[], options?: MatchOptions): void;

@@ -26,0 +26,0 @@ schemaData(source: any, name: string, type: Type): SchemaData;

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

}
updateFromData(schema, data, name) {
introspect(schema, data, name) {
const type = this.updateSchema.update(schema, data, name);

@@ -34,0 +34,0 @@ const schemaData = this.schemaData(data, name, type);

@@ -27,3 +27,3 @@ import { Schema, SchemaData, ClauseInfo, SourceRule, Mapping, MatchOptions, InitializeSchemaArgs, DomainSchema, Entity, Enum, EntityMapping, Stage } from '../domain';

load(source: string | Schema): Promise<Schema>;
updateFromData(data: any | any[], name: string): Promise<SchemaData>;
introspect(data: any | any[], name: string): Promise<SchemaData>;
updateFromMapping(mappings: Mapping[], options?: MatchOptions): Promise<void>;

@@ -30,0 +30,0 @@ evalSourceRule(rule: SourceRule, clauseInfo: ClauseInfo): boolean;

@@ -75,5 +75,5 @@ "use strict";

}
updateFromData(data, name) {
introspect(data, name) {
return __awaiter(this, void 0, void 0, function* () {
const schemaData = this.facade.updateFromData(this.originalSchema, data, name);
const schemaData = this.facade.introspect(this.originalSchema, data, name);
if (this.schemaPath) {

@@ -80,0 +80,0 @@ yield this.facade.write(this.originalSchema, this.schemaPath);

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