Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

assemblyscript-prettier

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

assemblyscript-prettier - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

14

CHANGELOG.md

@@ -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 @@

3

package.json
{
"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 @@ },

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc