@yaegassy/coc-marksman 0.0.5 → 0.1.2
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/lib/index.js +26 -17
- package/package.json +9 -9
package/lib/index.js
CHANGED
|
@@ -20,7 +20,10 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
20
20
|
}
|
|
21
21
|
return to;
|
|
22
22
|
};
|
|
23
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
23
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
24
27
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
25
28
|
|
|
26
29
|
// node_modules/isexe/windows.js
|
|
@@ -2208,11 +2211,14 @@ Body.prototype = {
|
|
|
2208
2211
|
blob() {
|
|
2209
2212
|
let ct = this.headers && this.headers.get("content-type") || "";
|
|
2210
2213
|
return consumeBody.call(this).then(function(buf) {
|
|
2211
|
-
return Object.assign(
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
|
|
2214
|
+
return Object.assign(
|
|
2215
|
+
new Blob([], {
|
|
2216
|
+
type: ct.toLowerCase()
|
|
2217
|
+
}),
|
|
2218
|
+
{
|
|
2219
|
+
[BUFFER]: buf
|
|
2220
|
+
}
|
|
2221
|
+
);
|
|
2216
2222
|
});
|
|
2217
2223
|
},
|
|
2218
2224
|
json() {
|
|
@@ -3093,7 +3099,7 @@ var import_stream2 = __toESM(require("stream"));
|
|
|
3093
3099
|
var import_util = require("util");
|
|
3094
3100
|
|
|
3095
3101
|
// package.json
|
|
3096
|
-
var marksmanBinVersion = "2022-
|
|
3102
|
+
var marksmanBinVersion = "2022-09-03";
|
|
3097
3103
|
|
|
3098
3104
|
// src/constant.ts
|
|
3099
3105
|
var MARKSMAN_BIN_VERSION = marksmanBinVersion;
|
|
@@ -3265,16 +3271,19 @@ async function downloadServerFromGH(context) {
|
|
|
3265
3271
|
import_fs.default.statSync(targetFile);
|
|
3266
3272
|
console.log("marksman binary is already downloaded");
|
|
3267
3273
|
} catch {
|
|
3268
|
-
await import_coc.window.withProgress(
|
|
3269
|
-
|
|
3270
|
-
|
|
3271
|
-
|
|
3272
|
-
|
|
3273
|
-
|
|
3274
|
-
|
|
3275
|
-
|
|
3276
|
-
|
|
3277
|
-
|
|
3274
|
+
await import_coc.window.withProgress(
|
|
3275
|
+
{
|
|
3276
|
+
cancellable: false,
|
|
3277
|
+
title: `Downloading marksman ${compatibleServerRelease} from GH`
|
|
3278
|
+
},
|
|
3279
|
+
async (progress, _cancellationToken) => {
|
|
3280
|
+
let lastPercent = 0;
|
|
3281
|
+
await downloadRelease(targetDir, (percent) => {
|
|
3282
|
+
progress.report({ message: `${percent}%`, increment: percent - lastPercent });
|
|
3283
|
+
lastPercent = percent;
|
|
3284
|
+
});
|
|
3285
|
+
}
|
|
3286
|
+
);
|
|
3278
3287
|
}
|
|
3279
3288
|
const serverPath = targetFile;
|
|
3280
3289
|
try {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yaegassy/coc-marksman",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"marksmanBinVersion": "2022-
|
|
3
|
+
"version": "0.1.2",
|
|
4
|
+
"marksmanBinVersion": "2022-09-03",
|
|
5
5
|
"description": "Marksman (Markdown LSP server) extension for coc.nvim",
|
|
6
6
|
"author": "yaegassy <yosstools@gmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -44,19 +44,19 @@
|
|
|
44
44
|
"semi": true
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@types/node": "^16.11.
|
|
47
|
+
"@types/node": "^16.11.56",
|
|
48
48
|
"@types/node-fetch": "^2.5.8",
|
|
49
49
|
"@types/which": "^2.0.1",
|
|
50
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
51
|
-
"@typescript-eslint/parser": "^5.
|
|
50
|
+
"@typescript-eslint/eslint-plugin": "^5.35.1",
|
|
51
|
+
"@typescript-eslint/parser": "^5.35.1",
|
|
52
52
|
"coc.nvim": "^0.0.81",
|
|
53
|
-
"esbuild": "^0.
|
|
54
|
-
"eslint": "^8.
|
|
53
|
+
"esbuild": "^0.15.5",
|
|
54
|
+
"eslint": "^8.23.0",
|
|
55
55
|
"eslint-config-prettier": "^8.5.0",
|
|
56
|
-
"eslint-plugin-prettier": "^4.
|
|
56
|
+
"eslint-plugin-prettier": "^4.2.1",
|
|
57
57
|
"prettier": "^2.7.1",
|
|
58
58
|
"rimraf": "^3.0.2",
|
|
59
|
-
"typescript": "
|
|
59
|
+
"typescript": "~4.7.4"
|
|
60
60
|
},
|
|
61
61
|
"activationEvents": [
|
|
62
62
|
"workspaceContains:.marksman.toml",
|