coc-markdownlint 1.12.6 → 1.12.7

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.
@@ -6,6 +6,15 @@ const fs = require('fs');
6
6
  const packageJsonPath = './package.json';
7
7
  const packageJson = require(packageJsonPath);
8
8
  const configurationSchema = require('./node_modules/markdownlint/schema/markdownlint-config-schema.json');
9
+ const properties = configurationSchema.properties;
10
+ for (const k of Object.keys(properties)) {
11
+ const v = properties[k];
12
+ if (v['$ref']) {
13
+ const kk = v['$ref'].split('/').pop();
14
+ properties[k] = properties[kk];
15
+ }
16
+ }
17
+ configurationSchema.properties = properties;
9
18
 
10
19
  // Update package.json
11
20
  const configurationRoot = packageJson.contributes.configuration.properties['markdownlint.config'];
package/lib/index.js CHANGED
@@ -8233,7 +8233,6 @@ var require_md053 = __commonJS({
8233
8233
  var require_rules = __commonJS({
8234
8234
  "node_modules/markdownlint/lib/rules.js"(exports, module2) {
8235
8235
  "use strict";
8236
- var URL2 = require("url").URL;
8237
8236
  var { homepage, version } = require_constants();
8238
8237
  var rules = [
8239
8238
  require_md001(),
@@ -8287,7 +8286,7 @@ var require_rules = __commonJS({
8287
8286
  ];
8288
8287
  for (const rule of rules) {
8289
8288
  const name = rule.names[0].toLowerCase();
8290
- rule["information"] = new URL2(`${homepage}/blob/v${version}/doc/Rules.md#${name}`);
8289
+ rule["information"] = new URL(`${homepage}/blob/v${version}/doc/Rules.md#${name}`);
8291
8290
  }
8292
8291
  module2.exports = rules;
8293
8292
  }