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

@dreipol/eslint-plugin-export-keys

Package Overview
Dependencies
Maintainers
4
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dreipol/eslint-plugin-export-keys - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

2

lib/config/order.js

@@ -6,3 +6,3 @@ "use strict";

});
exports.default = [1, {}];
exports.default = [1, []];
module.exports = exports["default"];

@@ -35,8 +35,9 @@ 'use strict';

if (~itemPosition) {
let prevItemIndex = keysPositions.length - 1;
let previousItem = keysPositions[keysPositions.length - 1];
// if it's the first key we can not compare to the previous key
if (i && keysPositions[prevItemIndex] > itemPosition) {
if (i && previousItem && previousItem[0] > itemPosition) {
// collect all the nodes that seem to have the wrong position
// compared to their direct previous sibling
arr.push([node.properties[prevItemIndex], node.properties[i]]);
arr.push([node.properties[previousItem[1]], node.properties[i]]);
}

@@ -46,5 +47,4 @@

// to compare it to the next one in the next loop
keysPositions.push(itemPosition);
keysPositions.push([itemPosition, i]);
}
return arr;

@@ -51,0 +51,0 @@ }, []);

{
"name": "@dreipol/eslint-plugin-export-keys",
"version": "1.1.0",
"version": "1.1.1",
"description": "Specify how the object kyes should be exported",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

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