@clerc/plugin-completions 0.12.2 → 0.12.4

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/dist/index.js CHANGED
@@ -114,7 +114,7 @@ const completionsPlugin = (options = {}) => definePlugin({
114
114
  throw new Error("Missing shell name");
115
115
  }
116
116
  if (shell in completionMap) {
117
- console.log(completionMap[shell](ctx));
117
+ process.stdout.write(completionMap[shell](ctx));
118
118
  } else {
119
119
  throw new Error(`No such shell: ${shell}`);
120
120
  }
package/dist/index.mjs CHANGED
@@ -114,7 +114,7 @@ const completionsPlugin = (options = {}) => definePlugin({
114
114
  throw new Error("Missing shell name");
115
115
  }
116
116
  if (shell in completionMap) {
117
- console.log(completionMap[shell](ctx));
117
+ process.stdout.write(completionMap[shell](ctx));
118
118
  } else {
119
119
  throw new Error(`No such shell: ${shell}`);
120
120
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clerc/plugin-completions",
3
- "version": "0.12.2",
3
+ "version": "0.12.4",
4
4
  "author": "Ray <nn_201312@163.com> (https://github.com/so1ve)",
5
5
  "description": "Clerc plugin completions",
6
6
  "keywords": [
@@ -51,10 +51,10 @@
51
51
  "@clerc/core": "*"
52
52
  },
53
53
  "dependencies": {
54
- "@clerc/utils": "0.12.2"
54
+ "@clerc/utils": "0.12.4"
55
55
  },
56
56
  "devDependencies": {
57
- "@clerc/core": "0.12.2"
57
+ "@clerc/core": "0.12.4"
58
58
  },
59
59
  "scripts": {
60
60
  "build": "puild",