@malloydata/malloy
Advanced tools
Comparing version 0.0.22-dev230117204627 to 0.0.22-dev230117223957
@@ -24,9 +24,6 @@ "use strict"; | ||
*/ | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.makeSQLBlock = void 0; | ||
const malloy_types_1 = require("./malloy_types"); | ||
const md5_1 = __importDefault(require("md5")); | ||
const utils_1 = require("./utils"); | ||
/** | ||
@@ -58,4 +55,4 @@ * The factory for SQLBlocks. Exists because the name is computed | ||
const phrases = select.map((el) => (0, malloy_types_1.isSQLFragment)(el) ? el.sql : JSON.stringify(el)); | ||
return (0, md5_1.default)(phrases.join(";")); | ||
return (0, utils_1.generateHash)(phrases.join(";")); | ||
} | ||
//# sourceMappingURL=sql_block.js.map |
@@ -22,1 +22,2 @@ /** simple indent function */ | ||
} | ||
export declare function generateHash(input: string): string; |
@@ -24,4 +24,8 @@ "use strict"; | ||
*/ | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.AndChain = exports.generateSQLStringLiteral = exports.indent = void 0; | ||
exports.generateHash = exports.AndChain = exports.generateSQLStringLiteral = exports.indent = void 0; | ||
const md5_1 = __importDefault(require("md5")); | ||
/** simple indent function */ | ||
@@ -95,2 +99,6 @@ function indent(s) { | ||
exports.AndChain = AndChain; | ||
function generateHash(input) { | ||
return (0, md5_1.default)(input); | ||
} | ||
exports.generateHash = generateHash; | ||
//# sourceMappingURL=utils.js.map |
{ | ||
"name": "@malloydata/malloy", | ||
"version": "0.0.22-dev230117204627", | ||
"version": "0.0.22-dev230117223957", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is too big to display
1621444
41842