@jetstreamapp/soql-parser-js 6.3.0 → 6.3.1

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 6.3.1
4
+
5
+ Dec 15, 2025
6
+
7
+ - Fix indent for query format
8
+
3
9
  ## 6.3.0
4
10
 
5
11
  Nov 27, 2025
package/dist/cjs/index.js CHANGED
@@ -119,7 +119,7 @@ ${this.repeatChar(r," ")}`,o=`
119
119
  ${this.repeatChar(r-1," ")})`):e=e.replace(/\n/g,`
120
120
  `)),`${i}${e}${o}`}formatClause(e){return this.enabled?this.options.newLineAfterKeywords?`
121
121
  ${e}
122
- `:`
122
+ ${this.getIndent()}`:`
123
123
  ${e}`:` ${e}`}formatText(e){return this.enabled&&(this.options.newLineAfterKeywords||e.startsWith(`
124
124
  `))?e:` ${e}`}formatWithIndent(e){return this.enabled?`${this.getIndent()}${e}`:e}formatOrderByArray(e){if(this.enabled){let r=0,n="";return e.forEach((i,o)=>{let a=e[o+1];r+=i.length,a&&(r+a.length>(this.options.fieldMaxLineLength||0)||this.options.newLineAfterKeywords)?(n+=`${i},
125
125
  `,r=0):n+=`${i}${a?", ":""}`}),n}else return e.join(", ")}formatParens(e,r,n=!1){let i="";if(xt(e)&&e>0)if(this.enabled)if(r==="("){for(let o=0;o<e;o++)n&&o===e-1?i+="(":o===0?i+=`(
package/dist/cli/index.js CHANGED
@@ -124,7 +124,7 @@ ${this.repeatChar(r," ")}`,o=`
124
124
  ${this.repeatChar(r-1," ")})`):e=e.replace(/\n/g,`
125
125
  `)),`${i}${e}${o}`}formatClause(e){return this.enabled?this.options.newLineAfterKeywords?`
126
126
  ${e}
127
- `:`
127
+ ${this.getIndent()}`:`
128
128
  ${e}`:` ${e}`}formatText(e){return this.enabled&&(this.options.newLineAfterKeywords||e.startsWith(`
129
129
  `))?e:` ${e}`}formatWithIndent(e){return this.enabled?`${this.getIndent()}${e}`:e}formatOrderByArray(e){if(this.enabled){let r=0,n="";return e.forEach((i,o)=>{let a=e[o+1];r+=i.length,a&&(r+a.length>(this.options.fieldMaxLineLength||0)||this.options.newLineAfterKeywords)?(n+=`${i},
130
130
  `,r=0):n+=`${i}${a?", ":""}`}),n}else return e.join(", ")}formatParens(e,r,n=!1){let i="";if(At(e)&&e>0)if(this.enabled)if(r==="("){for(let o=0;o<e;o++)n&&o===e-1?i+="(":o===0?i+=`(
@@ -119,7 +119,7 @@ ${this.repeatChar(r," ")}`,o=`
119
119
  ${this.repeatChar(r-1," ")})`):e=e.replace(/\n/g,`
120
120
  `)),`${i}${e}${o}`}formatClause(e){return this.enabled?this.options.newLineAfterKeywords?`
121
121
  ${e}
122
- `:`
122
+ ${this.getIndent()}`:`
123
123
  ${e}`:` ${e}`}formatText(e){return this.enabled&&(this.options.newLineAfterKeywords||e.startsWith(`
124
124
  `))?e:` ${e}`}formatWithIndent(e){return this.enabled?`${this.getIndent()}${e}`:e}formatOrderByArray(e){if(this.enabled){let r=0,n="";return e.forEach((i,o)=>{let a=e[o+1];r+=i.length,a&&(r+a.length>(this.options.fieldMaxLineLength||0)||this.options.newLineAfterKeywords)?(n+=`${i},
125
125
  `,r=0):n+=`${i}${a?", ":""}`}),n}else return e.join(", ")}formatParens(e,r,n=!1){let i="";if(xt(e)&&e>0)if(this.enabled)if(r==="("){for(let o=0;o<e;o++)n&&o===e-1?i+="(":o===0?i+=`(
package/dist/lwc/index.js CHANGED
@@ -12179,7 +12179,7 @@ ${this.repeatChar(numTabs - 1, " ")})`;
12179
12179
  if (this.enabled) {
12180
12180
  return this.options.newLineAfterKeywords ? `
12181
12181
  ${clause}
12182
- ` : `
12182
+ ${this.getIndent()}` : `
12183
12183
  ${clause}`;
12184
12184
  }
12185
12185
  return ` ${clause}`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jetstreamapp/soql-parser-js",
3
- "version": "6.3.0",
3
+ "version": "6.3.1",
4
4
  "description": "Salesforce.com SOQL parser and composer",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.mjs",