Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

broccoli-asset-rev

Package Overview
Dependencies
Maintainers
1
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

broccoli-asset-rev - npm Package Compare versions

Comparing version 0.2.0 to 0.3.0

1

lib/asset-rev.js

@@ -17,2 +17,3 @@ var Fingerprint = require('./fingerprint');

this.exclude = options.exclude || [];
this.generateAssetMap = options.generateAssetMap;
this.generateRailsManifest = options.generateRailsManifest;

@@ -19,0 +20,0 @@ this.prepend = options.prepend || '';

@@ -20,2 +20,3 @@ var fs = require('fs');

this.description = options.description;
this.generateAssetMap = options.generateAssetMap;
this.generateRailsManifest = options.generateRailsManifest;

@@ -71,2 +72,11 @@ }

Fingerprint.prototype.writeAssetMap = function (destDir) {
var toWrite = {
assets: this.assetMap,
prepend: this.prepend
};
fs.writeFileSync(destDir + '/assets/assetMap.json', JSON.stringify(toWrite));
};
Fingerprint.prototype.writeRailsManifest = function(destDir) {

@@ -107,2 +117,6 @@ var assetRegex = /^assets\//,

return Filter.prototype.write.apply(this, arguments).then(function() {
if (!!self.generateAssetMap) {
self.writeAssetMap(destDir);
}
if (!!self.generateRailsManifest) {

@@ -109,0 +123,0 @@ self.writeRailsManifest(destDir);

2

package.json
{
"name": "broccoli-asset-rev",
"version": "0.2.0",
"version": "0.3.0",
"description": "broccoli asset revisions (fingerprint)",

@@ -5,0 +5,0 @@ "main": "lib/asset-rev.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