@dataform/core 2.6.2 → 2.6.4
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 +8 -5
- 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;
|
|
@@ -19318,7 +19321,7 @@ class RefReplacingContext {
|
|
|
19318
19321
|
}
|
|
19319
19322
|
}
|
|
19320
19323
|
|
|
19321
|
-
const version = "2.6.
|
|
19324
|
+
const version = "2.6.4";
|
|
19322
19325
|
|
|
19323
19326
|
const SQL_DATA_WAREHOUSE_DIST_HASH_REGEXP = new RegExp("HASH\\s*\\(\\s*\\w*\\s*\\)\\s*");
|
|
19324
19327
|
const DEFAULT_CONFIG = {
|
|
@@ -19909,7 +19912,7 @@ function main(encodedCoreExecutionRequest) {
|
|
|
19909
19912
|
session.init(compileRequest.compileConfig.projectDir, projectConfig, originalProjectConfig);
|
|
19910
19913
|
globalAny.dataform = session;
|
|
19911
19914
|
compileRequest.compileConfig.filePaths
|
|
19912
|
-
.filter(path => path.startsWith(
|
|
19915
|
+
.filter(path => path.startsWith(`includes${pathSeperator}`))
|
|
19913
19916
|
.filter(path => path.endsWith(".js"))
|
|
19914
19917
|
.forEach(includePath => {
|
|
19915
19918
|
try {
|
|
@@ -19925,7 +19928,7 @@ function main(encodedCoreExecutionRequest) {
|
|
|
19925
19928
|
globalAny.declare = session.declare.bind(session);
|
|
19926
19929
|
globalAny.test = session.test.bind(session);
|
|
19927
19930
|
compileRequest.compileConfig.filePaths
|
|
19928
|
-
.filter(path => path.startsWith(
|
|
19931
|
+
.filter(path => path.startsWith(`definitions${pathSeperator}`))
|
|
19929
19932
|
.filter(path => path.endsWith(".js") || path.endsWith(".sqlx"))
|
|
19930
19933
|
.forEach(definitionPath => {
|
|
19931
19934
|
try {
|