New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

broccoli-sri-hash

Package Overview
Dependencies
Maintainers
3
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

broccoli-sri-hash - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

6

index.js

@@ -111,3 +111,3 @@ var CachingWriter = require('broccoli-caching-writer');

try {
assetSource = fs.readFileSync(dirname + '/' + file).toString();
assetSource = fs.readFileSync(dirname + '/' + file, 'utf8');
} catch(e) {

@@ -205,3 +205,3 @@ return null;

md5sum.update(assetSource);
md5sum.update(assetSource, 'utf8');
if (md5Matches[2] === md5sum.digest('hex')) {

@@ -229,3 +229,3 @@ return this.generateIntegrity(output, filePath, dirname, true);

var srcDir = path.dirname(entry.fullPath);
var fileContent = this.addSRI(fs.readFileSync(entry.fullPath,'UTF-8'), srcDir);
var fileContent = this.addSRI(fs.readFileSync(entry.fullPath, 'utf8'), srcDir);
var fullPath = this.outputPath + '/' + entry.relativePath;

@@ -232,0 +232,0 @@

{
"name": "broccoli-sri-hash",
"version": "2.0.0",
"version": "2.0.1",
"description": "Generates SRI hashes for html files",

@@ -5,0 +5,0 @@ "main": "index.js",

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