@hugsmidjan/stylutils
Advanced tools
+1
-1
@@ -7,3 +7,3 @@ # Change Log | ||
| ## 2.4.0 | ||
| ## 2.4.0 – 2.4.1 | ||
@@ -10,0 +10,0 @@ _2020-02-21_ |
+5
-2
| { | ||
| "name": "@hugsmidjan/stylutils", | ||
| "version": "2.4.0", | ||
| "version": "2.4.1", | ||
| "description": "Hugsmiðjan's favourite Stylus utils", | ||
@@ -17,3 +17,6 @@ "author": "Hugsmiðjan ehf. (www.hugsmidjan.is)", | ||
| }, | ||
| "license": "MIT" | ||
| "license": "MIT", | ||
| "dependencies": { | ||
| "md5-file": "^4.0.0" | ||
| } | ||
| } |
@@ -24,7 +24,5 @@ /* globals process */ | ||
| try { | ||
| const path = stylus.evaluator.paths.slice(-1)[0]; | ||
| const meta = require('fs').statSync(path +'/'+ filePath.string); | ||
| // Currently assumes that filesize is sufficient as a checksum | ||
| // This is quick, but may be changed later | ||
| return meta.size; | ||
| const callerPath = stylus.evaluator.paths.slice(-1)[0]; | ||
| const filePathFull = callerPath + '/' + filePath.string; | ||
| return require('md5-file').sync(filePathFull); | ||
| } catch (error) { | ||
@@ -31,0 +29,0 @@ console.error('Can\'t do `_fileChecksum` for "' + filePath.string + '"\n - - - -'); |
AI-detected potential malware
Supply chain riskAI has identified this package as malware. This is a strong signal that the package may be malicious.
Found 1 instance in 1 package
AI-detected potential malware
Supply chain riskAI has identified this package as malware. This is a strong signal that the package may be malicious.
Found 1 instance in 1 package
6
-14.29%48019
-0.08%1
Infinity%105
-1.87%+ Added
+ Added