Comparing version 1.3.0 to 1.3.1
@@ -7,3 +7,3 @@ var path = require('path'), | ||
// if url starts with . or / then assume it's a local/relative path | ||
if (url.match(/^\.\\/)) { | ||
if (['.', '/'].indexOf(url.substr(0, 1)) > -1) { | ||
return done(null, true); | ||
@@ -10,0 +10,0 @@ } |
{ | ||
"name": "npm-sass", | ||
"version": "1.3.0", | ||
"version": "1.3.1", | ||
"description": "sass compilation with npm aware include paths", | ||
@@ -8,3 +8,3 @@ "main": "index.js", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
"test": "mocha test/index.js" | ||
}, | ||
@@ -28,3 +28,8 @@ "repository": { | ||
"node-sass": "^3.2.0" | ||
}, | ||
"devDependencies": { | ||
"chai": "^3.5.0", | ||
"css": "^2.2.1", | ||
"mocha": "^3.0.2" | ||
} | ||
} |
@@ -75,1 +75,7 @@ # npm sass | ||
## Testing | ||
A number of (very basic) test cases are defined in [./test/test-cases](./test/test-cases). Any help that can be provided in buidling up test coverage would be much appreciated. | ||
Within each test case, a simple test is applied that the `index.scss` file in each case will successfully compile to valid css. Then any additional tests can be run for that test case, as defined in a test.js file in the test case directory. | ||
Sorry, the diff of this file is not supported yet
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
No tests
QualityPackage does not have any tests. This is a strong signal of a poorly maintained or low quality package.
Found 1 instance in 1 package
12696
29
165
0
81
3
4
2