Socket
Socket
Sign inDemoInstall

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.5.3 to 1.6.0

2

package.json
{
"name": "lambdaorm-base",
"version": "1.5.3",
"version": "1.6.0",
"description": "ORM",

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

@@ -25,3 +25,3 @@ /// <reference types="node" />

getSentenceCategory(action: SentenceAction): SentenceCategory;
getInfo(action: SentenceAction, entity: string): SentenceInfo;
getInfo(action: SentenceAction, entity: string, type?: SentenceType): SentenceInfo;
}

@@ -28,0 +28,0 @@ export declare class UUIDWrapper {

@@ -155,2 +155,4 @@ "use strict";

return domain_1.SentenceCategory.drop;
case domain_1.SentenceAction.undefined:
return domain_1.SentenceCategory.undefined;
default:

@@ -160,5 +162,5 @@ throw new Error(`Invalid action ${action}`);

}
getInfo(action, entity) {
getInfo(action, entity, type) {
const category = this.getSentenceCategory(action);
const type = this.getSentenceType(action);
const _type = type || this.getSentenceType(action);
return {

@@ -168,8 +170,8 @@ entity,

category,
type,
type: _type,
// for retro-compatibility
read: category === domain_1.SentenceCategory.select,
write: category !== domain_1.SentenceCategory.select,
ddl: type === domain_1.SentenceType.ddl,
dml: type === domain_1.SentenceType.dml || type === domain_1.SentenceType.dql
ddl: _type === domain_1.SentenceType.ddl,
dml: _type === domain_1.SentenceType.dml || _type === domain_1.SentenceType.dql
};

@@ -176,0 +178,0 @@ }

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