Comparing version 0.1.15 to 0.1.16
12
mql.js
@@ -110,7 +110,15 @@ import { | ||
var [strs3, tails3] = tail(); | ||
strs2.splice(k+1, 0, strs3.map(str => str.replace(/\n/g, '\n' + spaces))); | ||
var maped = strs3.map(str => str.replace(/\n/g, '\n' + spaces)); | ||
const splited = strs2[k].split('\n'); | ||
if (!last(splited).trim()) { | ||
splited[splited.length-1] = maped[0].substr(1); | ||
strs2[k] = splited.join('\n'); | ||
maped = maped.slice(1); | ||
} | ||
strs2.splice(k+1, 0, maped); | ||
return tails3; | ||
}); | ||
return [flatten(strs2), flatten(tails2)]; | ||
return [flatten(strs2).filter(str => str.trim()), flatten(tails2)]; | ||
} | ||
@@ -117,0 +125,0 @@ |
{ | ||
"name": "mql2", | ||
"version": "0.1.15", | ||
"version": "0.1.16", | ||
"description": "query builder", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
35765
654