isomorphic-loader
Advanced tools
@@ -14,7 +14,9 @@ "use strict"; | ||
| const posixify = require("./posixify"); | ||
| const EventEmitter = require("events"); | ||
| const LOG_PREFIX = "isomorphic-loader"; | ||
| class ExtendRequire { | ||
| class ExtendRequire extends EventEmitter { | ||
| constructor(options) { | ||
| super(); | ||
| this.assetsCount = 0; | ||
@@ -49,2 +51,3 @@ this.assets = {}; | ||
| } | ||
| this.emit("reset"); | ||
| } | ||
@@ -114,2 +117,3 @@ | ||
| this.assetsCount = 0; | ||
| this.emit("deactivate"); | ||
| } | ||
@@ -148,2 +152,3 @@ | ||
| this.assetsCount = Object.keys(this.assets.marked).length; | ||
| this.emit("activate"); | ||
| } | ||
@@ -150,0 +155,0 @@ |
+1
-1
| { | ||
| "name": "isomorphic-loader", | ||
| "version": "4.0.3", | ||
| "version": "4.0.4", | ||
| "description": "Webpack isomorphic loader tools to make Node require handle files like images for Server Side Rendering (SSR)", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
Debug access
Supply chain riskUses debug, reflection and dynamic code execution features.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Debug access
Supply chain riskUses debug, reflection and dynamic code execution features.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
25131
0.62%454
1.11%