@balena/abstract-sql-compiler
Advanced tools
Comparing version 7.0.6 to 7.0.7-js-tests-28e18b6989e4b0b025e2df23ef83c600b731465f
@@ -7,2 +7,6 @@ # Change Log | ||
## 7.0.7 - 2020-12-09 | ||
* Convert tests from coffeescript to type-checked javascript [Pagan Gazzard] | ||
## 7.0.6 - 2020-11-30 | ||
@@ -9,0 +13,0 @@ |
{ | ||
"name": "@balena/abstract-sql-compiler", | ||
"version": "7.0.6", | ||
"version": "7.0.7-js-tests-28e18b6989e4b0b025e2df23ef83c600b731465f", | ||
"description": "A translator for abstract sql into sql.", | ||
@@ -8,9 +8,8 @@ "main": "out/AbstractSQLCompiler.js", | ||
"scripts": { | ||
"pretest": "npm run lint && npm run prepare", | ||
"pretest": "npm run prepare", | ||
"test": "mocha", | ||
"posttest": "npm run lint", | ||
"prepublish": "require-npm4-to-publish", | ||
"prepare": "tsc --project ./tsconfig.build.json", | ||
"lint:coffee": "balena-lint test/", | ||
"lint:typescript": "balena-lint --typescript --fix src/ test/ && tsc --noEmit", | ||
"lint": "npm run lint:coffee && npm run lint:typescript" | ||
"lint": "balena-lint --typescript --fix -e js -e ts src/ test/ && tsc --noEmit && tsc --noEmit --project tsconfig.js.json" | ||
}, | ||
@@ -22,3 +21,3 @@ "repository": "https://github.com/balena-io-modules/abstract-sql-compiler.git", | ||
"@types/lodash": "^4.14.165", | ||
"@types/node": "^10.17.47", | ||
"@types/node": "^10.17.48", | ||
"lodash": "^4.17.20" | ||
@@ -34,11 +33,10 @@ }, | ||
"@types/common-tags": "^1.8.0", | ||
"@types/mocha": "^8.0.4", | ||
"@types/mocha": "^8.2.0", | ||
"chai": "^4.2.0", | ||
"coffeescript": "^1.12.7", | ||
"common-tags": "^1.8.0", | ||
"husky": "^4.3.0", | ||
"lint-staged": "^10.5.2", | ||
"husky": "^4.3.5", | ||
"lint-staged": "^10.5.3", | ||
"mocha": "^8.2.1", | ||
"require-npm4-to-publish": "^1.0.0", | ||
"ts-node": "^9.0.0", | ||
"ts-node": "^9.1.1", | ||
"typescript": "^4.1.2" | ||
@@ -51,15 +49,20 @@ }, | ||
}, | ||
"lint-staged": { | ||
"*.js": [ | ||
"balena-lint --typescript --fix" | ||
], | ||
"*.ts": [ | ||
"balena-lint --typescript --fix" | ||
] | ||
}, | ||
"mocha": { | ||
"reporter": "spec", | ||
"recursive": true, | ||
"require": [ | ||
"coffeescript/register", | ||
"ts-node/register/transpile-only" | ||
], | ||
"require": "ts-node/register/transpile-only", | ||
"bail": true, | ||
"_": [ | ||
"test/**/*.coffee", | ||
"test/**/*.ts" | ||
"test/**/*.ts", | ||
"test/**/*.js" | ||
] | ||
} | ||
} |
@@ -586,5 +586,5 @@ export const enum Engines { | ||
} | ||
const foreignKeys = []; | ||
const depends = []; | ||
const createSqlElements = []; | ||
const foreignKeys: string[] = []; | ||
const depends: string[] = []; | ||
const createSqlElements: string[] = []; | ||
@@ -651,4 +651,4 @@ for (const field of table.fields) { | ||
const createTriggers = []; | ||
const dropTriggers = []; | ||
const createTriggers: string[] = []; | ||
const dropTriggers: string[] = []; | ||
if (table.triggers) { | ||
@@ -655,0 +655,0 @@ for (const trigger of table.triggers) { |
@@ -945,3 +945,3 @@ import * as _ from 'lodash'; | ||
InsertQuery: (args) => { | ||
const tables = []; | ||
const tables: AbstractSqlQuery[] = []; | ||
let fields: AbstractSqlQuery[] = []; | ||
@@ -1026,3 +1026,3 @@ let values: AbstractSqlQuery[] = []; | ||
UpdateQuery: (args) => { | ||
const tables = []; | ||
const tables: AbstractSqlQuery[] = []; | ||
let fields: AbstractSqlQuery[] = []; | ||
@@ -1091,3 +1091,3 @@ let values: AbstractSqlQuery[] = []; | ||
DeleteQuery: (args) => { | ||
const tables = []; | ||
const tables: AbstractSqlQuery[] = []; | ||
let where: AbstractSqlQuery[] = []; | ||
@@ -1094,0 +1094,0 @@ for (const arg of args) { |
@@ -224,3 +224,3 @@ import * as _ from 'lodash'; | ||
} | ||
const isNotNullChecks = []; | ||
const isNotNullChecks: string[] = []; | ||
if (!aIsBind) { | ||
@@ -521,4 +521,4 @@ isNotNullChecks.push(`(${aSql}) IS NOT NULL`); | ||
SelectQuery: (args, indent) => { | ||
const tables = []; | ||
const joins = []; | ||
const tables: string[] = []; | ||
const joins: string[] = []; | ||
let select: string = ''; | ||
@@ -1108,3 +1108,3 @@ const groups = { | ||
InsertQuery: (args, indent) => { | ||
const tables = []; | ||
const tables: string[] = []; | ||
let fields: string[] = []; | ||
@@ -1177,3 +1177,3 @@ let values: string | string[] = []; | ||
UpdateQuery: (args, indent) => { | ||
const tables = []; | ||
const tables: string[] = []; | ||
let fields: string[] = []; | ||
@@ -1238,3 +1238,3 @@ let values: string[] = []; | ||
DeleteQuery: (args, indent) => { | ||
const tables = []; | ||
const tables: string[] = []; | ||
let where: string = ''; | ||
@@ -1241,0 +1241,0 @@ for (const arg of args) { |
@@ -14,8 +14,12 @@ { | ||
"target": "es2018", | ||
"outDir": "out" | ||
"outDir": "out", | ||
"allowJs": true | ||
}, | ||
"include": [ | ||
"src/**/*.ts", | ||
"test/**/*.ts" | ||
"src/**/*", | ||
"test/**/*" | ||
], | ||
"exclude": [ | ||
"node_modules" | ||
] | ||
} |
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
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
531957
16
11619
2
3
Updated@types/node@^10.17.48