@kairainy/ck 0.1.7 → 0.1.15

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kairainy/ck",
3
- "version": "0.1.7",
3
+ "version": "0.1.15",
4
4
  "description": "npm wrapper for the Code Knowledge Graph CLI (ck)",
5
5
  "license": "UNLICENSED",
6
6
  "bin": {
@@ -154,7 +154,17 @@ async function main() {
154
154
  copyLocal();
155
155
  return;
156
156
  }
157
- await downloadRelease();
157
+ try {
158
+ await downloadRelease();
159
+ } catch (err) {
160
+ if (fs.existsSync(dest)) {
161
+ console.warn(
162
+ `[ck] Release download failed; using bundled binary.\n${err.message}`
163
+ );
164
+ return;
165
+ }
166
+ throw err;
167
+ }
158
168
  }
159
169
 
160
170
  main().catch((err) => {