Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@hugsmidjan/stylutils

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hugsmidjan/stylutils - npm Package Compare versions

Comparing version
2.4.0
to
2.4.1
+1
-1
CHANGELOG.md

@@ -7,3 +7,3 @@ # Change Log

## 2.4.0
## 2.4.0 – 2.4.1

@@ -10,0 +10,0 @@ _2020-02-21_

{
"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 - - - -');