@appland/scanner
Advanced tools
Comparing version 1.76.8 to 1.77.0
@@ -8,3 +8,2 @@ "use strict"; | ||
const lru_cache_1 = __importDefault(require("lru-cache")); | ||
const sqlWarning_1 = __importDefault(require("./sqlWarning")); | ||
const NormalizedSQLBySQLString = new lru_cache_1.default({ max: 10000 }); | ||
@@ -22,3 +21,3 @@ const ASTBySQLString = new lru_cache_1.default({ max: 1000 }); | ||
if (!ast) { | ||
ast = (0, models_1.parseSQL)(sql, sqlWarning_1.default); | ||
ast = (0, models_1.parseSQL)(sql); | ||
ast ? ASTBySQLString.set(sql, ast) : ASTBySQLString.set(sql, null); | ||
@@ -25,0 +24,0 @@ } |
@@ -16,2 +16,4 @@ #!/usr/bin/env node | ||
const telemetry_1 = __importDefault(require("./telemetry")); | ||
const models_1 = require("@appland/models"); | ||
const sqlWarning_1 = __importDefault(require("./sqlWarning")); | ||
function errorInfo(err) { | ||
@@ -36,2 +38,3 @@ if (err instanceof errors_1.ValidationError) | ||
} | ||
(0, models_1.setSQLErrorHandler)(sqlWarning_1.default); | ||
(0, yargs_1.default)(process.argv.slice(2)) | ||
@@ -38,0 +41,0 @@ .option('verbose', { |
{ | ||
"name": "@appland/scanner", | ||
"version": "1.76.8", | ||
"version": "1.77.0", | ||
"description": "Analyze AppMaps for code flaws", | ||
@@ -35,3 +35,3 @@ "bin": "built/cli.js", | ||
"@types/glob": "^7.2.0", | ||
"@types/jest": "^27.4.1", | ||
"@types/jest": "^29.4.1", | ||
"@types/js-yaml": "^4.0.3", | ||
@@ -50,3 +50,3 @@ "@types/lru-cache": "^5.1.1", | ||
"fs-extra": "^10.1.0", | ||
"jest": "^27.4.7", | ||
"jest": "^29.5.0", | ||
"nock": "^13.2.2", | ||
@@ -59,3 +59,3 @@ "openapi-types": "^9.3.0", | ||
"tmp-promise": "^3.0.3", | ||
"ts-jest": "^27.1.4", | ||
"ts-jest": "^29.0.5", | ||
"ts-json-schema-generator": "^0.97.0", | ||
@@ -62,0 +62,0 @@ "ts-node": "^10.2.1", |
Sorry, the diff of this file is too big to display
438899
7503