massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-go / lib / utils / checktag.js
index c68a580d6adff64433cc2338042539be31e98b4d..bab9f1e683d5f0bcca6cf572b56cb3095b11e664 100644 (file)
@@ -1,10 +1,10 @@
 "use strict";
 Object.defineProperty(exports, "__esModule", { value: true });
 const tslib_1 = require("tslib");
-const node_fetch_1 = tslib_1.__importDefault(require("node-fetch"));
+const node_fetch_1 = (0, tslib_1.__importDefault)(require("node-fetch"));
 const releaseFilter = /^v\d+\.\d+\.\d+$/;
 async function checkLatestTag(repo, prefixFilter) {
-    const resp = await node_fetch_1.default(`https://api.github.com/repos/${repo}/tags`);
+    const resp = await (0, node_fetch_1.default)(`https://api.github.com/repos/${repo}/tags`);
     const data = await resp.json();
     let tags = data.map(t => t.name);
     if (prefixFilter) {