mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-06-16 22:38:14 +00:00
Update to @balena/lint 5.x
Change-type: patch
This commit is contained in:
@ -4,6 +4,6 @@
|
||||
// Also, JSONStream starts a pipe between stdin and stdout if module.parent is undefined.
|
||||
// This pipe can fail throwing an uncaught exception, so we fake a module.parent to prevent this.
|
||||
// See https://github.com/dominictarr/JSONStream/issues/129
|
||||
module.exports = function(source) {
|
||||
module.exports = function (source) {
|
||||
return 'module.parent = {};\n' + source.toString().replace(/^#! .*\n/, '');
|
||||
};
|
||||
|
Reference in New Issue
Block a user