pickier 0.1.30 → 0.1.32
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/dist/bin/cli.js +22 -1
- package/dist/src/index.js +21 -0
- package/package.json +1 -1
- package/LICENSE.md +0 -21
package/dist/bin/cli.js
CHANGED
|
@@ -21246,6 +21246,27 @@ var init_no_unused_vars = __esm(() => {
|
|
|
21246
21246
|
continue;
|
|
21247
21247
|
}
|
|
21248
21248
|
if (inTmplExpr) {
|
|
21249
|
+
if (ch === "/") {
|
|
21250
|
+
const before = lineToProcess.slice(0, k).trimEnd();
|
|
21251
|
+
const regexPrecedeRe = /[=([{,:;!&|?]$/;
|
|
21252
|
+
if (!before || regexPrecedeRe.test(before) || before.endsWith("return")) {
|
|
21253
|
+
k++;
|
|
21254
|
+
while (k < lineToProcess.length) {
|
|
21255
|
+
if (lineToProcess[k] === "\\") {
|
|
21256
|
+
k += 2;
|
|
21257
|
+
continue;
|
|
21258
|
+
}
|
|
21259
|
+
if (lineToProcess[k] === "/") {
|
|
21260
|
+
while (k + 1 < lineToProcess.length && /[gimsuvy]/.test(lineToProcess[k + 1])) {
|
|
21261
|
+
k++;
|
|
21262
|
+
}
|
|
21263
|
+
break;
|
|
21264
|
+
}
|
|
21265
|
+
k++;
|
|
21266
|
+
}
|
|
21267
|
+
continue;
|
|
21268
|
+
}
|
|
21269
|
+
}
|
|
21249
21270
|
if (ch === "`") {
|
|
21250
21271
|
depthTmplStack.push(-1);
|
|
21251
21272
|
continue;
|
|
@@ -43499,7 +43520,7 @@ var require_package = __commonJS((exports, module) => {
|
|
|
43499
43520
|
module.exports = {
|
|
43500
43521
|
name: "pickier",
|
|
43501
43522
|
type: "module",
|
|
43502
|
-
version: "0.1.
|
|
43523
|
+
version: "0.1.32",
|
|
43503
43524
|
description: "Format, lint and more in a fraction of seconds.",
|
|
43504
43525
|
author: "Chris Breuer <chris@stacksjs.org>",
|
|
43505
43526
|
license: "MIT",
|
package/dist/src/index.js
CHANGED
|
@@ -20844,6 +20844,27 @@ var init_no_unused_vars = __esm(() => {
|
|
|
20844
20844
|
continue;
|
|
20845
20845
|
}
|
|
20846
20846
|
if (inTmplExpr) {
|
|
20847
|
+
if (ch === "/") {
|
|
20848
|
+
const before = lineToProcess.slice(0, k).trimEnd();
|
|
20849
|
+
const regexPrecedeRe = /[=([{,:;!&|?]$/;
|
|
20850
|
+
if (!before || regexPrecedeRe.test(before) || before.endsWith("return")) {
|
|
20851
|
+
k++;
|
|
20852
|
+
while (k < lineToProcess.length) {
|
|
20853
|
+
if (lineToProcess[k] === "\\") {
|
|
20854
|
+
k += 2;
|
|
20855
|
+
continue;
|
|
20856
|
+
}
|
|
20857
|
+
if (lineToProcess[k] === "/") {
|
|
20858
|
+
while (k + 1 < lineToProcess.length && /[gimsuvy]/.test(lineToProcess[k + 1])) {
|
|
20859
|
+
k++;
|
|
20860
|
+
}
|
|
20861
|
+
break;
|
|
20862
|
+
}
|
|
20863
|
+
k++;
|
|
20864
|
+
}
|
|
20865
|
+
continue;
|
|
20866
|
+
}
|
|
20867
|
+
}
|
|
20847
20868
|
if (ch === "`") {
|
|
20848
20869
|
depthTmplStack.push(-1);
|
|
20849
20870
|
continue;
|
package/package.json
CHANGED
package/LICENSE.md
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
# MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2024 Open Web Foundation
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|