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 1.1.1 to 2.0.0

2

index.js

@@ -11,3 +11,3 @@ var path = require('path');

exclude: [],
extensions: ['js', 'css', 'png', 'jpg', 'gif'],
extensions: ['js', 'css', 'png', 'jpg', 'gif', 'map'],
prepend: '',

@@ -14,0 +14,0 @@ replaceExtensions: ['html', 'css', 'js']

@@ -14,4 +14,4 @@ var Fingerprint = require('./fingerprint');

this.customHash = options.customHash;
this.extensions = options.extensions || ['js', 'css', 'png'];
this.replaceExtensions = options.replaceExtensions || ['html', 'css'];
this.extensions = options.extensions || ['js', 'css', 'png', 'jpg', 'gif', 'map'];
this.replaceExtensions = options.replaceExtensions || ['html', 'css', 'js'];
this.exclude = options.exclude || [];

@@ -18,0 +18,0 @@ this.generateAssetMap = options.generateAssetMap;

{
"name": "broccoli-asset-rev",
"version": "1.1.1",
"version": "2.0.0",
"description": "broccoli asset revisions (fingerprint)",

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

"dependencies": {
"broccoli-asset-rewrite": "^1.0.1",
"broccoli-asset-rewrite": "^1.0.2",
"broccoli-filter": "~0.1.6",

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

@@ -40,5 +40,5 @@ #broccoli-asset-rev

- `extensions` - Default: `['js', 'css', 'png']` - The file types to add md5 checksums.
- `extensions` - Default: `['js', 'css', 'png', 'jpg', 'gif', 'map']` - The file types to add md5 checksums.
- `exclude` - Default: `[]` - An array of strings. If a filename contains any item in the exclude array, it will not be fingerprinted.
- `replaceExtensions` - Default: `['html', 'css']` - The file types to replace source code with new checksum file names.
- `replaceExtensions` - Default: `['html', 'css', 'js']` - The file types to replace source code with new checksum file names.
- `prepend` - Default: `''` - A string to prepend to all of the assets. Useful for CDN urls like `https://subdomain.cloudfront.net/`

@@ -63,4 +63,4 @@ - `generateRailsManifest` - Default: none - If true, will generate a `manifest.json` to be used by Sprockets for the Rails Asset Pipeline

- `exclude` - Default: `[]` - An array of strings. If a filename contains any item in the exclude array, it will not be fingerprinted.
- `extensions` - Default: `['js', 'css', 'png', 'jpg', 'gif']` - The file types to add md5 checksums.
- `extensions` - Default: `['js', 'css', 'png', 'jpg', 'gif', 'map']` - The file types to add md5 checksums.
- `prepend` - Default: `''` - A string to prepend to all of the assets. Useful for CDN urls like `https://subdomain.cloudfront.net/`
- `replaceExtensions` - Default: `['html', 'css', 'js']` - The file types to replace source code with new checksum file names.
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