node-preload
Advanced tools
Comparing version 0.1.2 to 0.1.3
@@ -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 @@ |
'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" | ||
} | ||
} |
11150