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

posthtml-vscode-sorting-attrs-logic

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

posthtml-vscode-sorting-attrs-logic - npm Package Compare versions

Comparing version 1.0.5 to 1.0.7

31

index.js
module.exports = function(opts) {
/** Following :
* https://codeguide.co/#html-lang
* https://stackoverflow.com/a/51389977/11135174
* Added Angular after data. See https://github.com/mdo/code-guide/issues/106
*/
const orderList = options.order || [
'id', 'class', 'name',
'data-.+', 'ng-.+', '[.+', '(.+', '*ng+',
'src', 'for', 'type', 'href', 'value',
'title', 'alt',
'role', 'aria-.+',
'$unknown$'
];
// Added Angular after data. See https://github.com/mdo/code-guide/issues/106
var orderList = (opts && opts.order) || [
"class",
"id",
"name",
"data-.+",
"ng-.+",
"src",
"for",
"type",
"href",
"values",
"title",
"alt",
"role",
"aria-.+",
"$unknown$"
];

@@ -16,0 +21,0 @@ // A RegExp's for filtering and sorting

{
"name": "posthtml-vscode-sorting-attrs-logic",
"description": "It's sort HTML attribute based on the given order",
"version": "1.0.5",
"description": "Sort HTML attribute based on the given order",
"version": "1.0.7",
"author": "Raphaël Balet (ultrastark.ch)",
"repository": {
"type": "git",
"url": "git+https://github.com/rbalet/posthtml-vscode-sorting-attrs.git"
"url": "git+https://github.com/rbalet/posthtml-vscode-sorting-attrs-logic.git"
},

@@ -10,0 +10,0 @@ "license": "MIT",

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