New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

nextjs-node-loader

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nextjs-node-loader - npm Package Compare versions

Comparing version 1.1.4 to 1.1.5-alpha.0

9

dist/index.js

@@ -22,4 +22,6 @@ "use strict";

flags,
outputPath
outputPath,
includeWebpackPublicPath
} = options;
const isWebpackPathIncluded = includeWebpackPublicPath || false;
const name = interpolateName(this, "[name].[ext]", {

@@ -32,3 +34,3 @@ context: rootContext,

try {
process.dlopen(module, ${JSON.stringify(outputPath || _compiler.options.output.path)} + require("path").sep + __webpack_public_path__ + ${JSON.stringify(name)}${typeof flags !== "undefined" ? `, ${JSON.stringify(options.flags)}` : ""});
process.dlopen(module, ${JSON.stringify(outputPath || _compiler.options.output.path)} + require("path").sep + ${isWebpackPathIncluded ? '__webpack_public_path__' : '""'} + ${JSON.stringify(name)}${typeof flags !== "undefined" ? `, ${JSON.stringify(options.flags)}` : ""});
} catch (error) {

@@ -39,3 +41,2 @@ throw new Error('nextjs-node-loader:\\n' + error);

}
const raw = true;
exports.raw = raw;
const raw = exports.raw = true;

@@ -12,2 +12,6 @@ {

"description": "The root path of shared node libraries"
},
"includeWebpackPublicPath": {
"type": "boolean",
"description": "If __webpack_public_path__ should be included."
}

@@ -14,0 +18,0 @@ },

{
"name": "nextjs-node-loader",
"version": "1.1.4",
"version": "1.1.5-alpha.0",
"description": "Allows you to include native Node.js `.node` modules in your Next.js project",

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

"peerDependencies": {
"webpack": "^5.0.0"
"webpack": "^5.76.0"
},

@@ -49,5 +49,5 @@ "dependencies": {

"@babel/core": "^7.20.12",
"@babel/preset-env": "^7.20.2",
"@commitlint/cli": "^12.1.4",
"@commitlint/config-conventional": "^12.1.4",
"@babel/preset-env": "^7.22.20",
"@commitlint/cli": "^17.7.2",
"@commitlint/config-conventional": "^17.7.0",
"@webpack-contrib/eslint-config-webpack": "^3.0.0",

@@ -58,11 +58,11 @@ "babel-jest": "^27.5.1",

"del-cli": "^3.0.1",
"eslint": "^7.32.0",
"eslint-config-prettier": "^8.6.0",
"eslint-plugin-import": "^2.27.5",
"husky": "^6.0.0",
"eslint": "^8.50.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-import": "^2.28.1",
"husky": "^8.0.0",
"jest": "^27.5.1",
"lint-staged": "^10.5.4",
"lint-staged": "^14.0.1",
"memfs": "^3.4.13",
"npm-run-all": "^4.1.5",
"prettier": "^2.8.3",
"prettier": "^3.0.3",
"standard-version": "^9.5.0",

@@ -69,0 +69,0 @@ "webpack": "^5.75.0"

@@ -55,2 +55,3 @@ # nextjs-node-loader

| outputPath | `{String}` | webpack's outputPath | The root path of shared node libraries |
| includeWebpackPublicPath | `{String}`| false | If __webpack_public_path__ should be included in a path for loading node module. For nextjs >13.2.5 should be false. |

@@ -57,0 +58,0 @@ ## License

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