@bamboocss/parser 1.45.1 → 1.45.2
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/index.cjs +2 -1
- package/dist/index.mjs +2 -1
- package/package.json +10 -10
package/dist/index.cjs
CHANGED
|
@@ -1531,6 +1531,7 @@ var Project = class {
|
|
|
1531
1531
|
const sourceFile = this.project.getSourceFile(filePath);
|
|
1532
1532
|
if (sourceFile) {
|
|
1533
1533
|
this.invalidate();
|
|
1534
|
+
this.options.parserOptions.encoder.releaseFile(sourceFile.getFilePath());
|
|
1534
1535
|
return this.project.removeSourceFile(sourceFile);
|
|
1535
1536
|
}
|
|
1536
1537
|
return false;
|
|
@@ -1575,7 +1576,7 @@ var Project = class {
|
|
|
1575
1576
|
}
|
|
1576
1577
|
}) ?? this.transformFile(filePath, original);
|
|
1577
1578
|
if (original !== transformed) sourceFile.replaceWithText(transformed);
|
|
1578
|
-
const result = this.parser(sourceFile, encoder, options, this.resolveModule)?.setFilePath(filePath);
|
|
1579
|
+
const result = (encoder ?? this.options.parserOptions.encoder).withOwner("parse", sourceFile.getFilePath(), () => this.parser(sourceFile, encoder, options, this.resolveModule))?.setFilePath(filePath);
|
|
1579
1580
|
hooks["parser:after"]?.({
|
|
1580
1581
|
filePath,
|
|
1581
1582
|
result
|
package/dist/index.mjs
CHANGED
|
@@ -1530,6 +1530,7 @@ var Project = class {
|
|
|
1530
1530
|
const sourceFile = this.project.getSourceFile(filePath);
|
|
1531
1531
|
if (sourceFile) {
|
|
1532
1532
|
this.invalidate();
|
|
1533
|
+
this.options.parserOptions.encoder.releaseFile(sourceFile.getFilePath());
|
|
1533
1534
|
return this.project.removeSourceFile(sourceFile);
|
|
1534
1535
|
}
|
|
1535
1536
|
return false;
|
|
@@ -1574,7 +1575,7 @@ var Project = class {
|
|
|
1574
1575
|
}
|
|
1575
1576
|
}) ?? this.transformFile(filePath, original);
|
|
1576
1577
|
if (original !== transformed) sourceFile.replaceWithText(transformed);
|
|
1577
|
-
const result = this.parser(sourceFile, encoder, options, this.resolveModule)?.setFilePath(filePath);
|
|
1578
|
+
const result = (encoder ?? this.options.parserOptions.encoder).withOwner("parse", sourceFile.getFilePath(), () => this.parser(sourceFile, encoder, options, this.resolveModule))?.setFilePath(filePath);
|
|
1578
1579
|
hooks["parser:after"]?.({
|
|
1579
1580
|
filePath,
|
|
1580
1581
|
result
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bamboocss/parser",
|
|
3
|
-
"version": "1.45.
|
|
3
|
+
"version": "1.45.2",
|
|
4
4
|
"description": "The static parser for bamboo css",
|
|
5
5
|
"homepage": "https://bamboocss.com",
|
|
6
6
|
"license": "MIT",
|
|
@@ -34,17 +34,17 @@
|
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"ts-morph": "28.0.0",
|
|
36
36
|
"ts-pattern": "5.9.0",
|
|
37
|
-
"@bamboocss/config": "^1.45.
|
|
38
|
-
"@bamboocss/
|
|
39
|
-
"@bamboocss/
|
|
40
|
-
"@bamboocss/
|
|
41
|
-
"@bamboocss/
|
|
42
|
-
"@bamboocss/types": "1.45.
|
|
37
|
+
"@bamboocss/config": "^1.45.2",
|
|
38
|
+
"@bamboocss/extractor": "1.45.2",
|
|
39
|
+
"@bamboocss/logger": "1.45.2",
|
|
40
|
+
"@bamboocss/shared": "1.45.2",
|
|
41
|
+
"@bamboocss/core": "^1.45.2",
|
|
42
|
+
"@bamboocss/types": "1.45.2"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@bamboocss/
|
|
46
|
-
"@bamboocss/
|
|
47
|
-
"@bamboocss/plugin-vue": "1.45.
|
|
45
|
+
"@bamboocss/plugin-svelte": "1.45.2",
|
|
46
|
+
"@bamboocss/generator": "1.45.2",
|
|
47
|
+
"@bamboocss/plugin-vue": "1.45.2"
|
|
48
48
|
},
|
|
49
49
|
"scripts": {
|
|
50
50
|
"build": "tsdown src/index.ts --format=esm,cjs --dts",
|