From 3a0772e97cd6a111a3105d6e564ac9123b9e8efc Mon Sep 17 00:00:00 2001 From: Donnie Adams Date: Thu, 16 May 2024 15:40:31 -0400 Subject: [PATCH] fix: indicate that browser should not use child_process --- package-lock.json | 12 ++++++++++++ package.json | 5 +++++ 2 files changed, 17 insertions(+) diff --git a/package-lock.json b/package-lock.json index f2083c0..af48374 100644 --- a/package-lock.json +++ b/package-lock.json @@ -13,6 +13,8 @@ "@babel/template": "^7.24.0", "@babel/types": "^7.24.5", "adm-zip": "^0.5.10", + "child_process": "^1.0.2", + "net": "^1.0.2", "node-downloader-helper": "^2.1.9", "tar": "^6.2.0" }, @@ -4357,6 +4359,11 @@ "node": ">=10" } }, + "node_modules/child_process": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/child_process/-/child_process-1.0.2.tgz", + "integrity": "sha512-Wmza/JzL0SiWz7kl6MhIKT5ceIlnFPJX+lwUGj7Clhy5MMldsSoJR0+uvRzOS5Kv45Mq7t1PoE8TsOA9bzvb6g==" + }, "node_modules/chownr": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/chownr/-/chownr-2.0.0.tgz", @@ -8395,6 +8402,11 @@ "dev": true, "peer": true }, + "node_modules/net": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/net/-/net-1.0.2.tgz", + "integrity": "sha512-kbhcj2SVVR4caaVnGLJKmlk2+f+oLkjqdKeQlmUtz6nGzOpbcobwVIeSURNgraV/v3tlmGIX82OcPCl0K6RbHQ==" + }, "node_modules/nice-napi": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/nice-napi/-/nice-napi-1.0.2.tgz", diff --git a/package.json b/package.json index e0c3eb6..8d25390 100644 --- a/package.json +++ b/package.json @@ -26,6 +26,9 @@ "gpt", "AI" ], + "browser": { + "child_process": false + }, "author": "Bill Maxwell ", "license": "Apache-2.0", "peerDependencies": { @@ -35,6 +38,8 @@ "@babel/template": "^7.24.0", "@babel/types": "^7.24.5", "adm-zip": "^0.5.10", + "child_process": "^1.0.2", + "net": "^1.0.2", "node-downloader-helper": "^2.1.9", "tar": "^6.2.0" },