@3-/srv 0.1.36 → 0.1.38

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @3-/srv
2
2
 
3
+ ## 0.1.38
4
+
5
+ ### Patch Changes
6
+
7
+ - auto update
8
+
9
+ ## 0.1.37
10
+
11
+ ### Patch Changes
12
+
13
+ - auto update
14
+
3
15
  ## 0.1.36
4
16
 
5
17
  ### Patch Changes
package/install.js CHANGED
@@ -5,6 +5,6 @@ export default async (name, scriptPath) => {
5
5
  const { execPath: ep, platform } = process,
6
6
  exec = ep.match(/(node|bun)(\.exe)?$/) ? ep : await which("node", { nothrow: true }) || await which("bun"),
7
7
  { default: install } = await import(`@3-/srv-${platform}/install.js`);
8
- await uninstall(name);
8
+ await uninstall(name, () => {});
9
9
  await install(name, exec, scriptPath);
10
10
  };
package/package.json CHANGED
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "name": "@3-/srv",
3
- "version": "0.1.36",
3
+ "version": "0.1.38",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  "./install.js": "./install.js",
7
7
  "./uninstall.js": "./uninstall.js"
8
8
  },
9
9
  "optionalDependencies": {
10
- "@3-/srv-darwin": "0.1.35",
11
- "@3-/srv-linux": "0.1.35",
12
- "@3-/srv-win32": "0.1.35"
10
+ "@3-/srv-darwin": "0.1.38",
11
+ "@3-/srv-linux": "0.1.38",
12
+ "@3-/srv-win32": "0.1.38"
13
13
  },
14
14
  "dependencies": {
15
15
  "zx": "^8.8.5"
package/uninstall.js CHANGED
@@ -1,5 +1,5 @@
1
- export default async (name) => {
1
+ export default async (name, onErr = console.error) => {
2
2
  const { platform } = process,
3
3
  { default: uninstall } = await import(`@3-/srv-${platform}/uninstall.js`);
4
- await uninstall(name);
4
+ await uninstall(name, onErr);
5
5
  };