monacopilot 0.11.1 → 0.11.3

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.
Files changed (2) hide show
  1. package/README.md +3 -2
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -80,9 +80,10 @@ app.post('/complete', async (req, res) => {
80
80
  body: req.body,
81
81
  });
82
82
 
83
- // Handle error if you want
84
83
  if (error) {
85
- res.status(500).json({error});
84
+ // handle error if you want
85
+ // ...
86
+ res.status(500).json({completion: null, error});
86
87
  }
87
88
 
88
89
  res.status(200).json({completion});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "monacopilot",
3
- "version": "0.11.1",
3
+ "version": "0.11.3",
4
4
  "description": "AI auto-completion plugin for Monaco Editor",
5
5
  "main": "./build/index.js",
6
6
  "module": "./build/index.mjs",