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

eslint-plugin-svelte3

Package Overview
Dependencies
Maintainers
1
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-svelte3 - npm Package Compare versions

Comparing version 0.4.4 to 0.4.5

6

CHANGELOG.md

@@ -0,4 +1,8 @@

# v0.4.5
- Proper fix for not wiping tag names that begin with `<style`
# v0.4.4
- With `svelte3/ignore-warnings`, don't wipe elements whose tag names merely begin with `<svelte`
- With `svelte3/ignore-warnings`, don't wipe elements whose tag names merely begin with `<style`
- The plugin is now published to npm

@@ -5,0 +9,0 @@

2

index.js

@@ -263,3 +263,3 @@ 'use strict';

// wipe the appropriate <style> tags in the file
code = code.replace(/<style\b([^]*?)>[^]*?<\/style>/gi, (match, attributes) => {
code = code.replace(/<style(\s[^]*?)?>[^]*?<\/style>/gi, (match, attributes = '') => {
const attrs = {};

@@ -266,0 +266,0 @@ attributes.split(/\s+/).filter(Boolean).forEach(attr => {

{
"name": "eslint-plugin-svelte3",
"version": "0.4.4",
"version": "0.4.5",
"description": "An ESLint plugin for Svelte v3 components.",

@@ -5,0 +5,0 @@ "keywords": [

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