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

@balena/abstract-sql-compiler

Package Overview
Dependencies
Maintainers
4
Versions
461
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@balena/abstract-sql-compiler - npm Package Compare versions

Comparing version 7.0.0-7-x-c8951190c532090757d0b99350529d7eaefb4a1f to 7.0.0-7-x-cf970a0cd028dd32efc1938ccbbb03f53faa72d9

3

CHANGELOG.md

@@ -7,4 +7,5 @@ # Change Log

## 7.0.0 - 2020-05-19
## 7.0.0 - 2020-05-21
* Allow adding to the FromTypeNode set [Pagan Gazzard]
* Rename to @balena/abstract-sql-compiler [Pagan Gazzard]

@@ -11,0 +12,0 @@ * Improve typings [Pagan Gazzard]

@@ -49,3 +49,8 @@ export declare const enum Engines {

export declare type UnionQueryNode = ['UnionQuery', ...Array<UnionQueryNode | SelectQueryNode>];
declare type FromTypeNodes = SelectQueryNode | UnionQueryNode | TableNode | AliasNode<SelectQueryNode | UnionQueryNode | TableNode>;
export interface FromTypeNode {
SelectQueryNode: SelectQueryNode;
UnionQueryNode: UnionQueryNode;
TableNode: TableNode;
}
declare type FromTypeNodes = FromTypeNode[keyof FromTypeNode] | AliasNode<FromTypeNode[keyof FromTypeNode]>;
export declare type SelectNode = ['Select', AbstractSqlType[]];

@@ -52,0 +57,0 @@ export declare type FromNode = ['From', FromTypeNodes];

{
"name": "@balena/abstract-sql-compiler",
"version": "7.0.0-7-x-c8951190c532090757d0b99350529d7eaefb4a1f",
"version": "7.0.0-7-x-cf970a0cd028dd32efc1938ccbbb03f53faa72d9",
"description": "A translator for abstract sql into sql.",

@@ -20,4 +20,4 @@ "main": "out/AbstractSQLCompiler.js",

"@balena/sbvr-types": "^3.0.0",
"@types/lodash": "^4.14.151",
"@types/node": "^10.17.21",
"@types/lodash": "^4.14.152",
"@types/node": "^10.17.24",
"lodash": "^4.17.15"

@@ -42,3 +42,3 @@ },

"ts-node": "^7.0.1",
"typescript": "^3.9.2"
"typescript": "^3.9.3"
},

@@ -45,0 +45,0 @@ "husky": {

@@ -49,3 +49,3 @@ export const enum Engines {

AbstractSqlType,
...AbstractSqlType[],
...AbstractSqlType[]
];

@@ -90,3 +90,3 @@ export type ExistsNode = ['Exists', AbstractSqlType];

UnknownTypeNodes,
...UnknownTypeNodes[],
...UnknownTypeNodes[]
];

@@ -135,10 +135,22 @@ export type UnknownTypeNodes =

'UnionQuery',
...Array<UnionQueryNode | SelectQueryNode>,
...Array<UnionQueryNode | SelectQueryNode>
];
/**
* This interface allows adding to the valid set of FromTypeNodes using interface merging, eg
* declare module '@balena/abstract-sql-compiler' {
* interface FromTypeNode {
* MyNode: MyNode;
* }
* }
*/
export interface FromTypeNode {
SelectQueryNode: SelectQueryNode;
UnionQueryNode: UnionQueryNode;
TableNode: TableNode;
}
type FromTypeNodes =
| SelectQueryNode
| UnionQueryNode
| TableNode
| AliasNode<SelectQueryNode | UnionQueryNode | TableNode>;
| FromTypeNode[keyof FromTypeNode]
| AliasNode<FromTypeNode[keyof FromTypeNode]>;

@@ -145,0 +157,0 @@ export type SelectNode = ['Select', AbstractSqlType[]];

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