@dataform/core 2.6.1 → 2.6.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundle.js +7 -3
- package/package.json +1 -1
package/bundle.js
CHANGED
|
@@ -18352,6 +18352,9 @@ class SyntaxTreeNode {
|
|
|
18352
18352
|
const nodeStack = [currentNode];
|
|
18353
18353
|
lexer.reset(code);
|
|
18354
18354
|
for (const token of lexer) {
|
|
18355
|
+
if (!token.type) {
|
|
18356
|
+
continue;
|
|
18357
|
+
}
|
|
18355
18358
|
if (START_TOKEN_NODE_MAPPINGS.has(token.type)) {
|
|
18356
18359
|
const childType = START_TOKEN_NODE_MAPPINGS.get(token.type);
|
|
18357
18360
|
if (childType === SyntaxTreeNodeType.SQL && currentNode.type !== SyntaxTreeNodeType.SQL) {
|
|
@@ -18387,7 +18390,7 @@ class SyntaxTreeNode {
|
|
|
18387
18390
|
return this.allChildren
|
|
18388
18391
|
.map(child => {
|
|
18389
18392
|
if (typeof child === "string") {
|
|
18390
|
-
return mutator(child);
|
|
18393
|
+
return (mutator === null || mutator === void 0 ? void 0 : mutator(child)) || "";
|
|
18391
18394
|
}
|
|
18392
18395
|
return child.concatenate();
|
|
18393
18396
|
})
|
|
@@ -18399,7 +18402,7 @@ class SyntaxTreeNode {
|
|
|
18399
18402
|
typeof this.allChildren[this.allChildren.length - 1] === "string") {
|
|
18400
18403
|
this.allChildren[this.allChildren.length - 1] =
|
|
18401
18404
|
this.allChildren[this.allChildren.length - 1] + child;
|
|
18402
|
-
return;
|
|
18405
|
+
return this;
|
|
18403
18406
|
}
|
|
18404
18407
|
this.allChildren.push(child);
|
|
18405
18408
|
return this;
|
|
@@ -18782,6 +18785,7 @@ function extractSqlxParts(rootNode) {
|
|
|
18782
18785
|
SyntaxTreeNodeType.JAVASCRIPT_TEMPLATE_STRING_PLACEHOLDER,
|
|
18783
18786
|
SyntaxTreeNodeType.SQL_COMMENT,
|
|
18784
18787
|
SyntaxTreeNodeType.SQL_LITERAL_STRING,
|
|
18788
|
+
SyntaxTreeNodeType.SQL_LITERAL_MULTILINE_STRING,
|
|
18785
18789
|
SyntaxTreeNodeType.SQL_STATEMENT_SEPARATOR
|
|
18786
18790
|
].includes(node.type)));
|
|
18787
18791
|
let incremental = "";
|
|
@@ -19317,7 +19321,7 @@ class RefReplacingContext {
|
|
|
19317
19321
|
}
|
|
19318
19322
|
}
|
|
19319
19323
|
|
|
19320
|
-
const version = "2.6.
|
|
19324
|
+
const version = "2.6.3";
|
|
19321
19325
|
|
|
19322
19326
|
const SQL_DATA_WAREHOUSE_DIST_HASH_REGEXP = new RegExp("HASH\\s*\\(\\s*\\w*\\s*\\)\\s*");
|
|
19323
19327
|
const DEFAULT_CONFIG = {
|