atom-selector-linter
Advanced tools
Comparing version 0.2.6 to 0.2.7
@@ -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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
12502
0