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

asset-module-webpack-plugin

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

asset-module-webpack-plugin - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

20

lib/AssetModulePlugin.js

@@ -1,4 +0,1 @@

/**
* @flow
*/
'use strict';

@@ -49,5 +46,6 @@

})).then(function (result) {
return callback(null, result);
callback(null, result);
}, function (error) {
return callback(error);
console.warn(error.stack);
callback(error);
});

@@ -97,5 +95,3 @@ });

_getAssetModuleSource(compilation, module) {
var _options2 = this.options;
var sourceBase = _options2.sourceBase;
var destinationBase = _options2.destinationBase;
var sourceBase = this.options.sourceBase;
var resource = module.resource;

@@ -154,6 +150,6 @@ var assets = module.assets;

_shouldEmit(module) {
var _options3 = this.options;
var test = _options3.test;
var include = _options3.include;
var exclude = _options3.exclude;
var _options2 = this.options;
var test = _options2.test;
var include = _options2.include;
var exclude = _options2.exclude;
var resource = module.resource;

@@ -160,0 +156,0 @@

8

package.json
{
"name": "asset-module-webpack-plugin",
"version": "0.0.1",
"version": "0.0.2",
"description": "A webpack plugin that emits JS modules for your assets such as images. This allows Node to load the modules that webpack generated for your assets without having to run webpack's bundle on the server.",

@@ -29,5 +29,5 @@ "main": "lib/AssetModulePlugin.js",

"devDependencies": {
"babel": "^5.5.6",
"babel-eslint": "^3.1.14",
"eslint": "^0.22.1"
"babel": "^5.8.21",
"babel-eslint": "^4.0.10",
"eslint": "^1.2.1"
},

@@ -34,0 +34,0 @@ "dependencies": {

@@ -136,3 +136,3 @@ /**

_getAssetModuleSource(compilation: any, module: any) {
var { sourceBase, destinationBase } = this.options;
var { sourceBase } = this.options;
var { resource, assets } = module;

@@ -139,0 +139,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