From aaee3acb929089472ca82215cda0ebb39bb00780 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Wed, 2 Aug 2023 17:22:27 -0400 Subject: [PATCH] fix: add a patch for bns to export TCPSocket --- npm-shrinkwrap.json | 19 +++++-------------- package.json | 2 +- patches/bns+0.15.0.patch | 9 +++++++++ 3 files changed, 15 insertions(+), 15 deletions(-) create mode 100644 patches/bns+0.15.0.patch diff --git a/npm-shrinkwrap.json b/npm-shrinkwrap.json index 1b7f388..bd6d98e 100644 --- a/npm-shrinkwrap.json +++ b/npm-shrinkwrap.json @@ -23,7 +23,7 @@ "devDependencies": { "@lumeweb/presetter-kernel-module-preset": "^0.1.0-develop.44", "@types/streamx": "^2.9.1", - "patch-package": "^7.0.0", + "patch-package": "^7.0.2", "presetter": "*", "timers-browserify": "^2.0.12", "vite": "^4.4.0" @@ -15298,9 +15298,9 @@ } }, "node_modules/patch-package": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/patch-package/-/patch-package-7.0.0.tgz", - "integrity": "sha512-eYunHbnnB2ghjTNc5iL1Uo7TsGMuXk0vibX3RFcE/CdVdXzmdbMsG/4K4IgoSuIkLTI5oHrMQk4+NkFqSed0BQ==", + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/patch-package/-/patch-package-7.0.2.tgz", + "integrity": "sha512-PMYfL8LXxGIRmxXLqlEaBxzKPu7/SdP13ld6GSfAUJUZRmBDPp8chZs0dpzaAFn9TSPnFiMwkC6PJt6pBiAl8Q==", "dev": true, "dependencies": { "@yarnpkg/lockfile": "^1.1.0", @@ -15313,7 +15313,7 @@ "minimist": "^1.2.6", "open": "^7.4.2", "rimraf": "^2.6.3", - "semver": "^5.6.0", + "semver": "^7.5.3", "slash": "^2.0.0", "tmp": "^0.0.33", "yaml": "^2.2.2" @@ -15389,15 +15389,6 @@ "rimraf": "bin.js" } }, - "node_modules/patch-package/node_modules/semver": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", - "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", - "dev": true, - "bin": { - "semver": "bin/semver" - } - }, "node_modules/patch-package/node_modules/slash": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/slash/-/slash-2.0.0.tgz", diff --git a/package.json b/package.json index 94e54bb..8259cb8 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,7 @@ "devDependencies": { "@lumeweb/presetter-kernel-module-preset": "^0.1.0-develop.44", "@types/streamx": "^2.9.1", - "patch-package": "^7.0.0", + "patch-package": "^7.0.2", "presetter": "*", "timers-browserify": "^2.0.12", "vite": "^4.4.0" diff --git a/patches/bns+0.15.0.patch b/patches/bns+0.15.0.patch new file mode 100644 index 0000000..3c4f60a --- /dev/null +++ b/patches/bns+0.15.0.patch @@ -0,0 +1,9 @@ +diff --git a/node_modules/bns/lib/internal/net.js b/node_modules/bns/lib/internal/net.js +index 4ad5ee0..beaf186 100644 +--- a/node_modules/bns/lib/internal/net.js ++++ b/node_modules/bns/lib/internal/net.js +@@ -646,3 +646,4 @@ function normalize(options) { + + exports.Client = Client; + exports.Server = Server; ++exports.TCPSocket = TCPSocket;