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 2.1.2 to 2.1.3

9

lib/fingerprint.js

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

Filter.call(this, inputNode, {
extensions: options.extensions || []
extensions: options.extensions || [],
// We should drop support for `description` in the next major release
annotation: options.description || options.annotation
})

@@ -26,3 +28,2 @@

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

@@ -55,4 +56,2 @@ this.generateRailsManifest = options.generateRailsManifest;

Fingerprint.prototype.processFile = function (srcDir, destDir, relativePath) {
this._srcDir = srcDir;
var file = fs.readFileSync(srcDir + '/' + relativePath);

@@ -77,3 +76,3 @@ var self = this;

var tmpPath = path.join(this._srcDir, relativePath);
var tmpPath = path.join(this.inputPaths[0], relativePath);
var file = fs.readFileSync(tmpPath, { encoding: null });

@@ -80,0 +79,0 @@ var hash;

{
"name": "broccoli-asset-rev",
"version": "2.1.2",
"version": "2.1.3",
"description": "broccoli asset revisions (fingerprint)",

@@ -34,3 +34,3 @@ "main": "lib/asset-rev.js",

"broccoli-asset-rewrite": "^1.0.9",
"broccoli-filter": "~0.2.0",
"broccoli-filter": "^1.2.2",
"json-stable-stringify": "^1.0.0",

@@ -37,0 +37,0 @@ "rsvp": "~3.0.6"

@@ -56,3 +56,4 @@ #broccoli-asset-rev

```
- `ignore` - Default: `[]` - An array of strings. If a filename contains any item in the ignore array, the contents of the file will not be processed for fingerprinting.
- `ignore` - Default: `[]` - An array of strings. If a filename contains any item in the ignore array, the contents of the file will not be processed for fingerprinting.
- `annotation` - Default: null. A human-readable description for this plugin instance.

@@ -59,0 +60,0 @@ ## Ember CLI addon usage

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