Socket
Socket
Sign inDemoInstall

assets-webpack-plugin

Package Overview
Dependencies
3
Maintainers
2
Versions
75
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 6.1.1 to 6.1.2

5

changelog.md

@@ -8,5 +8,8 @@ # Change Log

## 6.1.2 - 2020-12-08
* Closes [#319](https://github.com/ztoben/assets-webpack-plugin/issues/319)
## 6.1.1 - 2020-12-03
* Adds the `includeDynamicImportedAssets` option
* Closes [#313](https://github.com/ztoben/assets-webpack-plugin/issues/312)
* Closes [#313](https://github.com/ztoben/assets-webpack-plugin/issues/313)

@@ -13,0 +16,0 @@ ## 6.1.0 - 2020-12-03

10

dist/index.js

@@ -126,3 +126,3 @@ 'use strict';

var integrity = compilationAsset && compilationAsset.integrity;
var loadingBehaviour = obj.loadingBehaviour;
var loadingBehavior = obj.loadingBehavior;

@@ -140,7 +140,7 @@ if (type === 'undefined') {

if (self.options.includeDynamicImportedAssets && loadingBehaviour) {
var typeNameWithLoadingBehaviour = typeName + ':' + loadingBehaviour;
if (self.options.includeDynamicImportedAssets && loadingBehavior) {
var typeNameWithLoadingBehavior = typeName + ':' + loadingBehavior;
typeMap[typeNameWithLoadingBehaviour] = typeMap[typeNameWithLoadingBehaviour] || [];
typeMap[typeNameWithLoadingBehaviour].push(combinedPath);
typeMap[typeNameWithLoadingBehavior] = typeMap[typeNameWithLoadingBehavior] || [];
typeMap[typeNameWithLoadingBehavior].push(combinedPath);
} else {

@@ -147,0 +147,0 @@ typeMap[typeName].push(combinedPath);

@@ -124,3 +124,3 @@ const fs = require('fs')

const integrity = compilationAsset && compilationAsset.integrity
const loadingBehaviour = obj.loadingBehaviour
const loadingBehavior = obj.loadingBehavior

@@ -138,7 +138,7 @@ if (type === 'undefined') {

if (self.options.includeDynamicImportedAssets && loadingBehaviour) {
const typeNameWithLoadingBehaviour = typeName + ':' + loadingBehaviour
if (self.options.includeDynamicImportedAssets && loadingBehavior) {
const typeNameWithLoadingBehavior = typeName + ':' + loadingBehavior
typeMap[typeNameWithLoadingBehaviour] = typeMap[typeNameWithLoadingBehaviour] || []
typeMap[typeNameWithLoadingBehaviour].push(combinedPath)
typeMap[typeNameWithLoadingBehavior] = typeMap[typeNameWithLoadingBehavior] || []
typeMap[typeNameWithLoadingBehavior].push(combinedPath)
} else {

@@ -145,0 +145,0 @@ typeMap[typeName].push(combinedPath)

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

@@ -48,3 +48,3 @@ "main": "dist/index.js",

"style-loader": "2.0.0",
"webpack": "5.9.0"
"webpack": "5.10.0"
},

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc