@absolutejs/absolute 0.19.0-beta.1106 → 0.19.0-beta.1108

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.
@@ -1,3 +1,5 @@
1
1
  import type { ToolAdapter } from '../../../types/tool';
2
2
  export declare const prettierAdapter: ToolAdapter;
3
+ export declare const buildTargetedPrettierCommand: (args: string[]) => string[];
4
+ export declare const hasPrettierTarget: (args: string[]) => boolean;
3
5
  export declare const prettier: (args: string[]) => Promise<void>;
@@ -3165,6 +3165,9 @@ var SENTINEL, RISKY_STRING_CONTENT, isIdentChar = (c) => /[A-Za-z0-9_$]/.test(c)
3165
3165
  const endOfInterp = (start) => {
3166
3166
  let j = start;
3167
3167
  let depth = 1;
3168
+ let ipChar = "";
3169
+ let ipWord = "";
3170
+ let ipSpace = false;
3168
3171
  while (j < n && depth > 0) {
3169
3172
  const c = src[j];
3170
3173
  if (c === "\\") {
@@ -3173,10 +3176,16 @@ var SENTINEL, RISKY_STRING_CONTENT, isIdentChar = (c) => /[A-Za-z0-9_$]/.test(c)
3173
3176
  }
3174
3177
  if (c === "`") {
3175
3178
  j = endOfTemplate(j);
3179
+ ipChar = ")";
3180
+ ipWord = "";
3181
+ ipSpace = false;
3176
3182
  continue;
3177
3183
  }
3178
3184
  if (c === '"' || c === "'") {
3179
3185
  j = endOfString(j);
3186
+ ipChar = '"';
3187
+ ipWord = "";
3188
+ ipSpace = false;
3180
3189
  continue;
3181
3190
  }
3182
3191
  if (c === "/" && src[j + 1] === "/") {
@@ -3190,11 +3199,33 @@ var SENTINEL, RISKY_STRING_CONTENT, isIdentChar = (c) => /[A-Za-z0-9_$]/.test(c)
3190
3199
  j = e < 0 ? n : e + 2;
3191
3200
  continue;
3192
3201
  }
3202
+ if (c === "/" && (ipChar === "" || REGEX_OK_AFTER_CHAR.has(ipChar) || REGEX_OK_AFTER_WORD.has(ipWord))) {
3203
+ const e = endOfRegex(j);
3204
+ if (e > 0) {
3205
+ j = e;
3206
+ ipChar = ")";
3207
+ ipWord = "";
3208
+ ipSpace = false;
3209
+ continue;
3210
+ }
3211
+ }
3193
3212
  if (c === "{")
3194
3213
  depth++;
3195
3214
  else if (c === "}")
3196
3215
  depth--;
3197
3216
  j++;
3217
+ if (c === " " || c === "\t" || c === "\r" || c === `
3218
+ `) {
3219
+ ipSpace = true;
3220
+ continue;
3221
+ }
3222
+ if (isIdentChar(c)) {
3223
+ ipWord = isIdentChar(ipChar) && !ipSpace ? ipWord + c : c;
3224
+ } else {
3225
+ ipWord = "";
3226
+ }
3227
+ ipChar = c;
3228
+ ipSpace = false;
3198
3229
  }
3199
3230
  return j;
3200
3231
  };
@@ -4698,5 +4729,5 @@ export {
4698
4729
  createTypedIsland
4699
4730
  };
4700
4731
 
4701
- //# debugId=5A09E6361E2C596964756E2164756E21
4732
+ //# debugId=5D94AABCDE111FBA64756E2164756E21
4702
4733
  //# sourceMappingURL=index.js.map