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
1
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 1.0.2 to 1.0.3

4

CHANGELOG.md

@@ -0,1 +1,5 @@

# 1.0.3
- Fixing extra closing slash and whitespace in output
- Update to latest broccoli-filter
# 1.0.2

@@ -2,0 +6,0 @@ - Changing packages to be semver compatible

@@ -79,4 +79,6 @@ var Filter = require('broccoli-filter');

var assetSource = this.readFile(dirname, file);
var selfCloseCheck = /\s*\/>$/;
var integrity;
var append;
var outputWithIntegrity;

@@ -99,3 +101,8 @@ if (assetSource === null) {

return output.replace(/\/?[>]$/, append + '/>');
if (selfCloseCheck.test(output)) {
outputWithIntegrity = output.replace(selfCloseCheck, append + ' />');
} else {
outputWithIntegrity = output.replace(/\s*[>]$/, append + ' >');
}
return outputWithIntegrity;
};

@@ -102,0 +109,0 @@

3

package.json
{
"name": "broccoli-sri-hash",
"version": "1.0.2",
"version": "1.0.3",
"description": "Generates SRI hashes for html files",

@@ -22,2 +22,3 @@ "main": "index.js",

"devDependencies": {
"broccoli-filter": "^1.1.0",
"chai": "^3.0.0",

@@ -24,0 +25,0 @@ "eslint-config-nightmare-mode": "0.1.0",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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