Socket
Socket
Sign inDemoInstall

copy-webpack-plugin

Package Overview
Dependencies
Maintainers
3
Versions
80
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

copy-webpack-plugin - npm Package Compare versions

Comparing version 9.1.0 to 10.0.0

20

dist/index.js

@@ -12,4 +12,2 @@ "use strict";

var _globby = _interopRequireDefault(require("globby"));
var _serializeJavascript = _interopRequireDefault(require("serialize-javascript"));

@@ -94,3 +92,3 @@

static async runPattern(compiler, compilation, logger, cache, inputPattern, index) {
static async runPattern(globby, compiler, compilation, logger, cache, inputPattern, index) {
const {

@@ -201,3 +199,3 @@ RawSource

try {
paths = await (0, _globby.default)(pattern.glob, pattern.globOptions);
paths = await globby(pattern.glob, pattern.globOptions);
} catch (error) {

@@ -479,2 +477,3 @@ compilation.errors.push(error);

const cache = compilation.getCache("CopyWebpackPlugin");
let globby;
compilation.hooks.processAssets.tapAsync({

@@ -484,2 +483,13 @@ name: "copy-webpack-plugin",

}, async (unusedAssets, callback) => {
if (typeof globby === "undefined") {
try {
({
globby
} = await import("globby"));
} catch (error) {
callback(error);
return;
}
}
logger.log("starting to add additional assets...");

@@ -492,3 +502,3 @@ const assetMap = new Map();

try {
assets = await CopyPlugin.runPattern(compiler, compilation, logger, cache, item, index);
assets = await CopyPlugin.runPattern(globby, compiler, compilation, logger, cache, item, index);
} catch (error) {

@@ -495,0 +505,0 @@ compilation.errors.push(error);

{
"name": "copy-webpack-plugin",
"version": "9.1.0",
"version": "10.0.0",
"description": "Copy files && directories with webpack",

@@ -16,3 +16,3 @@ "license": "MIT",

"engines": {
"node": ">= 12.13.0"
"node": ">= 12.20.0"
},

@@ -46,5 +46,5 @@ "scripts": {

"glob-parent": "^6.0.1",
"globby": "^11.0.3",
"globby": "^12.0.2",
"normalize-path": "^3.0.0",
"schema-utils": "^3.1.1",
"schema-utils": "^4.0.0",
"serialize-javascript": "^6.0.0"

@@ -55,5 +55,6 @@ },

"@babel/core": "^7.15.0",
"@babel/eslint-parser": "^7.16.3",
"@babel/preset-env": "^7.15.0",
"@commitlint/cli": "^14.1.0",
"@commitlint/config-conventional": "^14.1.0",
"@commitlint/cli": "^15.0.0",
"@commitlint/config-conventional": "^15.0.0",
"@webpack-contrib/eslint-config-webpack": "^3.0.0",

@@ -71,3 +72,3 @@ "babel-jest": "^27.0.6",

"jest": "^27.0.6",
"lint-staged": "^11.1.2",
"lint-staged": "^12.0.2",
"memfs": "^3.2.2",

@@ -78,3 +79,3 @@ "mkdirp": "^1.0.4",

"standard-version": "^9.3.1",
"webpack": "^5.50.0"
"webpack": "^5.64.1"
},

@@ -81,0 +82,0 @@ "keywords": [

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