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

atom-selector-linter

Package Overview
Dependencies
Maintainers
4
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

atom-selector-linter - npm Package Compare versions

Comparing version 0.2.6 to 0.2.7

22

lib/selector-linter.js

@@ -40,18 +40,18 @@ (function() {

SelectorLinter.prototype.checkPackage = function(pkg) {
var keymap, menu, sourcePath, stylesheet, _i, _j, _k, _len, _len1, _len2, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _results;
_ref1 = pkg.menus;
for (_i = 0, _len = _ref1.length; _i < _len; _i++) {
_ref2 = _ref1[_i], sourcePath = _ref2[0], menu = _ref2[1];
var keymap, menu, sourcePath, stylesheet, _i, _j, _k, _len, _len1, _len2, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9, _results;
_ref2 = (_ref1 = pkg.menus) != null ? _ref1 : [];
for (_i = 0, _len = _ref2.length; _i < _len; _i++) {
_ref3 = _ref2[_i], sourcePath = _ref3[0], menu = _ref3[1];
this.checkMenu(menu, this.packageMetadata(pkg, sourcePath));
}
_ref3 = pkg.keymaps;
for (_j = 0, _len1 = _ref3.length; _j < _len1; _j++) {
_ref4 = _ref3[_j], sourcePath = _ref4[0], keymap = _ref4[1];
_ref5 = (_ref4 = pkg.keymaps) != null ? _ref4 : [];
for (_j = 0, _len1 = _ref5.length; _j < _len1; _j++) {
_ref6 = _ref5[_j], sourcePath = _ref6[0], keymap = _ref6[1];
this.checkKeymap(keymap, this.packageMetadata(pkg, sourcePath));
}
_ref5 = pkg.stylesheets;
_ref8 = (_ref7 = pkg.stylesheets) != null ? _ref7 : [];
_results = [];
for (_k = 0, _len2 = _ref5.length; _k < _len2; _k++) {
_ref6 = _ref5[_k], sourcePath = _ref6[0], stylesheet = _ref6[1];
if (pkg.metadata["theme"] === "syntax" || /atom-text-editor\.(less|css)/.test(sourcePath)) {
for (_k = 0, _len2 = _ref8.length; _k < _len2; _k++) {
_ref9 = _ref8[_k], sourcePath = _ref9[0], stylesheet = _ref9[1];
if (pkg.metadata.theme === "syntax" || /atom-text-editor\.(less|css)/.test(sourcePath)) {
_results.push(this.checkSyntaxStylesheet(stylesheet, this.packageMetadata(pkg, sourcePath)));

@@ -58,0 +58,0 @@ } else {

{
"name": "atom-selector-linter",
"version": "0.2.6",
"version": "0.2.7",
"description": "A tool for finding deprecated selectors in atom packages",

@@ -5,0 +5,0 @@ "main": "./lib/selector-linter",

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