From 3e1aa859b29b847b9888a0931851b8821bc8e5f3 Mon Sep 17 00:00:00 2001 From: Tobias Feijten Date: Fri, 15 Dec 2023 23:56:13 +0100 Subject: [PATCH] Switch to a somewhat newer webpack-inject-plugin fork to fix dependency vulnerability --- Resources/package.json | 4 ++-- Resources/webpack/FosRouting.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Resources/package.json b/Resources/package.json index 0d2e198..5d3ab5c 100755 --- a/Resources/package.json +++ b/Resources/package.json @@ -1,6 +1,6 @@ { "name": "fos-router", - "version": "2.4.6", + "version": "2.5.0", "description": "A pretty nice way to use the routes generated by the FOSJsRoutingBundle in your JavaScript.", "keywords": [ "router", @@ -49,6 +49,6 @@ "prepublish": "npm run build" }, "dependencies": { - "webpack-inject-plugin": "^1.5.5" + "@bpnetguy/webpack-inject-plugin": "^2.0.4" } } diff --git a/Resources/webpack/FosRouting.js b/Resources/webpack/FosRouting.js index e99ff1a..1fc02ed 100644 --- a/Resources/webpack/FosRouting.js +++ b/Resources/webpack/FosRouting.js @@ -5,7 +5,7 @@ const fs = require('fs'); const path = require('path'); const util = require('util'); -const InjectPlugin = require('webpack-inject-plugin').default; +const InjectPlugin = require('@bpnetguy/webpack-inject-plugin').default; const execFile = util.promisify(require('child_process').execFile); const readFile = util.promisify(fs.readFile);