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

parcelify

Package Overview
Dependencies
Maintainers
4
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

parcelify - npm Package Compare versions

Comparing version 2.1.0 to 2.2.0

7

lib/asset.js

@@ -17,4 +17,7 @@ var fs = require( 'fs' );

Asset.prototype.addTransform = function( transform ) {
this.transforms.push( transform );
Asset.prototype.addTransform = function( transform, prepend ) {
if( _.isUndefined( prepend ) ) prepend = false;
if( prepend ) this.transforms.unshift( transform );
else this.transforms.push( transform );
};

@@ -21,0 +24,0 @@

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

Package.prototype.addTransform = function( transform, transformOptions, toAssetTypes ) {
Package.prototype.addTransform = function( transform, transformOptions, toAssetTypes, prepend ) {
if( _.isUndefined( prepend ) ) prepend = false;
var t = transformOptions ? function( file ) { return transform( file, transformOptions ); } : transform;

@@ -77,3 +79,3 @@

this.getAssets( toAssetTypes ).forEach( function( thisAsset ) {
thisAsset.addTransform( t );
thisAsset.addTransform( t, prepend );
} );

@@ -83,3 +85,4 @@

_.each( _.pick( this.assetTransformsByType, toAssetTypes ), function( transformsForThisAssetType ) {
transformsForThisAssetType.push( t );
if( prepend ) transformsForThisAssetType.unshift( t );
else transformsForThisAssetType.push( t );
} );

@@ -86,0 +89,0 @@ };

{
"name": "parcelify",
"version": "2.1.0",
"version": "2.2.0",
"description": "Create css bundles from npm packages using the browserify dependency graph.",

@@ -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