🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

prettier-plugin-templ-script

Package Overview
Dependencies
Maintainers
0
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

prettier-plugin-templ-script - npm Package Compare versions

Comparing version

to
0.0.4

2

index.js

@@ -22,3 +22,3 @@ import prettier from 'prettier';

const { text } = path.getValue();
const scriptRegex = /^(\s*)<script([^>]*?)>([\s\S]+?)<\/script>$/gm;
const scriptRegex = /^(\s*)<script([^>]*)>([\s\S]+?)<\/script>$/gm;
const matches = text.matchAll(scriptRegex);

@@ -25,0 +25,0 @@ let transformedText = text;

{
"name": "prettier-plugin-templ-script",
"version": "0.0.3",
"version": "0.0.4",
"description": "Prettier plugin for `<script>` elements in templ.",
"repository": "github:therealparmesh/prettier-plugin-templ-script",
"repository": {
"type": "git",
"url": "git+https://github.com/therealparmesh/prettier-plugin-templ-script.git"
},
"license": "MIT",

@@ -7,0 +10,0 @@ "author": "Parmesh Krishen",

@@ -5,2 +5,4 @@ # prettier-plugin-templ-script

**Note:** This cannot work with nested `<script>` elements.
## Install

@@ -7,0 +9,0 @@