Socket
Socket
Sign inDemoInstall

detective-less

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

detective-less - npm Package Compare versions

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"
}
}
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