detective-less
Advanced tools
Comparing version 1.0.1 to 1.0.2
18
index.js
@@ -1,5 +0,7 @@ | ||
var Walker = require('node-source-walk'); | ||
var gonzales = require('gonzales-pe'); | ||
var debug = require('debug')('detective-less'); | ||
'use strict'; | ||
const Walker = require('node-source-walk'); | ||
const gonzales = require('gonzales-pe'); | ||
const debug = require('debug')('detective-less'); | ||
/** | ||
@@ -15,4 +17,4 @@ * Extract the @import statements from a given less file's content | ||
var dependencies = []; | ||
var ast; | ||
let dependencies = []; | ||
let ast; | ||
@@ -29,3 +31,3 @@ try { | ||
var walker = new Walker(); | ||
const walker = new Walker(); | ||
@@ -45,7 +47,7 @@ walker.walk(ast, function(node) { | ||
var atKeyword = node.content[0]; | ||
const atKeyword = node.content[0]; | ||
if (!atKeyword.content.length) { return false; } | ||
var importKeyword = atKeyword.content[0]; | ||
const importKeyword = atKeyword.content[0]; | ||
@@ -52,0 +54,0 @@ if (importKeyword.type !== 'ident' || importKeyword.content !== 'import') { return false; } |
{ | ||
"name": "detective-less", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Find the dependencies of a less file", | ||
@@ -34,10 +34,13 @@ "main": "index.js", | ||
"homepage": "https://github.com/Mike-Dax/node-detective-less", | ||
"engines": { | ||
"node": ">= 6.0" | ||
}, | ||
"devDependencies": { | ||
"mocha": "~2.0.1" | ||
"mocha": "^5.2.0" | ||
}, | ||
"dependencies": { | ||
"debug": "^3.1.0", | ||
"gonzales-pe": "^3.4.4", | ||
"node-source-walk": "^3.2.0" | ||
"debug": "^4.0.0", | ||
"gonzales-pe": "^4.2.3", | ||
"node-source-walk": "^4.0.0" | ||
} | ||
} |
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
48
3718
3
+ Added@babel/helper-string-parser@7.24.8(transitive)
+ Added@babel/helper-validator-identifier@7.24.7(transitive)
+ Added@babel/parser@7.25.6(transitive)
+ Added@babel/types@7.25.6(transitive)
+ Addeddebug@4.3.7(transitive)
+ Addedgonzales-pe@4.3.0(transitive)
+ Addedminimist@1.2.8(transitive)
+ Addednode-source-walk@4.3.0(transitive)
+ Addedto-fast-properties@2.0.0(transitive)
- Removedbabylon@6.18.0(transitive)
- Removeddebug@3.2.7(transitive)
- Removedgonzales-pe@3.4.7(transitive)
- Removedminimist@1.1.3(transitive)
- Removednode-source-walk@3.3.0(transitive)
Updateddebug@^4.0.0
Updatedgonzales-pe@^4.2.3
Updatednode-source-walk@^4.0.0