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

assets-webpack-plugin

Package Overview
Dependencies
Maintainers
2
Versions
75
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

assets-webpack-plugin - npm Package Compare versions

Comparing version 3.7.0 to 3.7.1

6

CHANGELOG.md

@@ -13,2 +13,8 @@ # Change Log

## 3.7.1 - 2018-06-13
### Changed
- Fixes a parsing error with the asset path introduced by the fix for [#88](https://github.com/kossnocorp/assets-webpack-plugin/issues/88)
## 3.7.0 - 2018-06-13

@@ -15,0 +21,0 @@

6

index.js

@@ -57,3 +57,3 @@ var fs = require('fs')

var chunks = Object.keys(assetsByChunkName)
chunks.push('') // push "unamed" chunk
chunks.push('')// push "unamed" chunk
var output = chunks.reduce(function (chunkMap, chunkName) {

@@ -67,3 +67,3 @@ var assets = chunkName ? assetsByChunkName[chunkName] : stats.assets

var asset = obj.name || obj
if (isHMRUpdate(options, asset) || isSourceMap(options, asset) || !chunkName && seenAssets[asset]) {
if (isHMRUpdate(options, asset) || isSourceMap(options, asset) || (!chunkName && seenAssets[asset])) {
return typeMap

@@ -73,3 +73,3 @@ }

var typeName = getAssetKind(options, asset)
var combinedPath = assetPath ? `${assetPath}/${asset}`.replace(/\/\//, '/') : asset
var combinedPath = assetPath && assetPath.slice(-1) !== '/' ? `${assetPath}/${asset}` : assetPath + asset
var type = typeof typeMap[typeName]

@@ -76,0 +76,0 @@ if (type === 'undefined') {

{
"name": "assets-webpack-plugin",
"version": "3.7.0",
"version": "3.7.1",
"description": "Emits a json file with assets paths",

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