Socket
Socket
Sign inDemoInstall

node-preload

Package Overview
Dependencies
0
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.1.2 to 0.1.3

7

CHANGELOG.md

@@ -5,2 +5,9 @@ # Changelog

### [0.1.3](https://github.com/cfware/node-preload/compare/v0.1.2...v0.1.3) (2019-10-07)
### Bug Fixes
* Properly handle backslashes in paths on Node.js 12 ([#2](https://github.com/cfware/node-preload/issues/2)) ([2ad4448](https://github.com/cfware/node-preload/commit/2ad4448))
### [0.1.2](https://github.com/cfware/node-preload/compare/v0.1.1...v0.1.2) (2019-09-24)

@@ -7,0 +14,0 @@

2

node-preload-modern-require.js
'use strict';
function generateRequire(filename) {
return `--require "${filename.replace(/"/g, '\\"')}"`;
return `--require "${filename.replace(/\\/g, '\\\\').replace(/"/g, '\\"')}"`;
}

@@ -6,0 +6,0 @@

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

}, {});
} catch (error) {
} catch (_) {
return {};

@@ -33,0 +33,0 @@ }

{
"name": "node-preload",
"version": "0.1.2",
"version": "0.1.3",
"description": "Request that Node.js child processes preload modules",

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

"standard-version": "^7.0.0",
"tap": "^14.6.1",
"xo": "^0.24.0"
"tap": "^14.6.5",
"xo": "^0.25.3"
}
}
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