Skip to content

Commit

Permalink
harden logic
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanthemanuel committed Dec 10, 2022
1 parent b71ec81 commit 4a9bcc0
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
16 changes: 16 additions & 0 deletions patches/bytenode+1.3.7.patch
@@ -0,0 +1,16 @@
diff --git a/node_modules/bytenode/lib/index.js b/node_modules/bytenode/lib/index.js
index cdd98cc..cc6b8fa 100644
--- a/node_modules/bytenode/lib/index.js
+++ b/node_modules/bytenode/lib/index.js
@@ -327,10 +327,7 @@ const addLoaderFile = function (fileToLoad, loaderFilename) {
};

const loaderCode = function (targetPath) {
- return `
- require('bytenode');
- require('${targetPath}');
- `;
+ return `require('bytenode');require('${targetPath}');`;
};

global.bytenode = {
4 changes: 2 additions & 2 deletions scripts/binary/binary-integrity-check-source.js
Expand Up @@ -189,8 +189,8 @@ function integrityCheck (options) {
{
// eslint-disable-next-line no-undef
fileName: [appPath, 'index.js'].join(PATH_SEP),
line: 4,
column: 385,
line: 1,
column: 5049,
},
],
})
Expand Down

0 comments on commit 4a9bcc0

Please sign in to comment.