assemblyscript-prettier
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -0,1 +1,15 @@ | ||
## [2.0.1](https://github.com/HerrCai0907/assemblyscript-prettier/compare/v1.0.7...v2.0.1) (2023-03-07) | ||
### Bug Fixes | ||
* comment will cause decoretor dislocation ([#9](https://github.com/HerrCai0907/assemblyscript-prettier/issues/9)) ([a4961e6](https://github.com/HerrCai0907/assemblyscript-prettier/commit/a4961e654680914dd34056488c907afe55a4454b)) | ||
### Features | ||
* refactor as prettier plugin ([#8](https://github.com/HerrCai0907/assemblyscript-prettier/issues/8)) ([2d34e9b](https://github.com/HerrCai0907/assemblyscript-prettier/commit/2d34e9b373cabb8aec00aa7bd0c191614750bef5)) | ||
# [2.0.0](https://github.com/HerrCai0907/assemblyscript-prettier/compare/v1.0.7...v2.0.0) (2023-03-07) | ||
@@ -2,0 +16,0 @@ |
{ | ||
"name": "assemblyscript-prettier", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "prettier for assemblyscript", | ||
@@ -11,2 +11,3 @@ "main": "src/plugin.js", | ||
"test": "NODE_OPTIONS=--experimental-vm-modules jest", | ||
"test:create": "NODE_OPTIONS=--experimental-vm-modules jest --updateSnapshot", | ||
"version": "conventional-changelog -i CHANGELOG.md -s -p angular && git add CHANGELOG.md" | ||
@@ -13,0 +14,0 @@ }, |
@@ -28,14 +28,3 @@ import pluginTypescript from "prettier/plugins/typescript"; | ||
initPrinter(options.plugins.find((plugin) => plugin.printers && plugin.printers.estree)); | ||
let processedText = preProcess(text); | ||
let ast = pluginTypescript.parsers.typescript.parse(processedText, options); | ||
for (let comment of ast.comments) { | ||
let value = comment.value; | ||
if (value.startsWith(magic) && value.endsWith(magic)) { | ||
comment.range[0] += magic.length + 2; | ||
comment.range[1] -= magic.length + 2; | ||
} | ||
} | ||
let ast = pluginTypescript.parsers.typescript.parse(text, options); | ||
return ast; | ||
@@ -50,2 +39,3 @@ } | ||
astFormat: "as-estree", | ||
preprocess: preProcess, | ||
}, | ||
@@ -52,0 +42,0 @@ }, |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
7232
0
97