vscode-json-languageservice 5.7.1 → 5.7.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.
@@ -482,7 +482,7 @@ const descriptions = {
482
482
  maxProperties: l10n.t("The maximum number of properties an object can have. Inclusive."),
483
483
  minProperties: l10n.t("The minimum number of properties an object can have. Inclusive."),
484
484
  required: l10n.t("An array of strings that lists the names of all properties required on this object."),
485
- additionalProperties: l10n.t("Either a schema or a boolean. If a schema, used to validate all properties not matched by 'properties', 'propertyNames', or 'patternProperties'. If false, any properties not defined by the adajacent keywords will cause this schema to fail."),
485
+ additionalProperties: l10n.t("Either a schema or a boolean. If a schema, used to validate all properties not matched by 'properties', 'propertyNames', or 'patternProperties'. If false, any properties not defined by the adjacent keywords will cause this schema to fail."),
486
486
  definitions: l10n.t("Not used for validation. Place subschemas here that you wish to reference inline with $ref."),
487
487
  properties: l10n.t("A map of property names to schemas for each property."),
488
488
  patternProperties: l10n.t("A map of regular expressions on property names to schemas for matching properties."),
@@ -95,7 +95,9 @@ function toMarkdown(plain) {
95
95
  return plain
96
96
  .trim()
97
97
  .replace(/[\\`*_{}[\]()<>#+\-.!]/g, '\\$&') // escape markdown syntax tokens: http://daringfireball.net/projects/markdown/syntax#backslash
98
- .replace(/([ \t]+)/g, (_match, g1) => '&nbsp;'.repeat(g1.length)) // escape spaces tabs
98
+ .replace(/(^ +)/mg, (_match, g1) => '&nbsp;'.repeat(g1.length)) // escape leading spaces on each line
99
+ .replace(/( {2,})/g, (_match, g1) => ' ' + '&nbsp;'.repeat(g1.length - 1)) // escape consecutive spaces
100
+ .replace(/(\t+)/g, (_match, g1) => '&nbsp;'.repeat(g1.length * 4)) // escape tabs
99
101
  .replace(/\n/g, '\\\n'); // escape new lines
100
102
  }
101
103
  return undefined;
@@ -494,7 +494,7 @@
494
494
  maxProperties: l10n.t("The maximum number of properties an object can have. Inclusive."),
495
495
  minProperties: l10n.t("The minimum number of properties an object can have. Inclusive."),
496
496
  required: l10n.t("An array of strings that lists the names of all properties required on this object."),
497
- additionalProperties: l10n.t("Either a schema or a boolean. If a schema, used to validate all properties not matched by 'properties', 'propertyNames', or 'patternProperties'. If false, any properties not defined by the adajacent keywords will cause this schema to fail."),
497
+ additionalProperties: l10n.t("Either a schema or a boolean. If a schema, used to validate all properties not matched by 'properties', 'propertyNames', or 'patternProperties'. If false, any properties not defined by the adjacent keywords will cause this schema to fail."),
498
498
  definitions: l10n.t("Not used for validation. Place subschemas here that you wish to reference inline with $ref."),
499
499
  properties: l10n.t("A map of property names to schemas for each property."),
500
500
  patternProperties: l10n.t("A map of regular expressions on property names to schemas for matching properties."),
@@ -108,7 +108,9 @@
108
108
  return plain
109
109
  .trim()
110
110
  .replace(/[\\`*_{}[\]()<>#+\-.!]/g, '\\$&') // escape markdown syntax tokens: http://daringfireball.net/projects/markdown/syntax#backslash
111
- .replace(/([ \t]+)/g, (_match, g1) => '&nbsp;'.repeat(g1.length)) // escape spaces tabs
111
+ .replace(/(^ +)/mg, (_match, g1) => '&nbsp;'.repeat(g1.length)) // escape leading spaces on each line
112
+ .replace(/( {2,})/g, (_match, g1) => ' ' + '&nbsp;'.repeat(g1.length - 1)) // escape consecutive spaces
113
+ .replace(/(\t+)/g, (_match, g1) => '&nbsp;'.repeat(g1.length * 4)) // escape tabs
112
114
  .replace(/\n/g, '\\\n'); // escape new lines
113
115
  }
114
116
  return undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vscode-json-languageservice",
3
- "version": "5.7.1",
3
+ "version": "5.7.2",
4
4
  "description": "Language service for JSON",
5
5
  "main": "./lib/umd/jsonLanguageService.js",
6
6
  "typings": "./lib/umd/jsonLanguageService",
@@ -17,12 +17,12 @@
17
17
  "devDependencies": {
18
18
  "@types/mocha": "^10.0.10",
19
19
  "@types/node": "22.x",
20
- "@typescript-eslint/eslint-plugin": "^8.53.0",
21
- "@typescript-eslint/parser": "^8.53.0",
22
- "eslint": "^9.39.2",
20
+ "@typescript-eslint/eslint-plugin": "^8.56.0",
21
+ "@typescript-eslint/parser": "^8.56.0",
22
+ "eslint": "^9.39.3",
23
23
  "json-schema-test-suite": "https://github.com/json-schema-org/JSON-Schema-Test-Suite.git#69acf52990b004240839ae19b4bec8fb01d50876",
24
24
  "mocha": "^11.7.5",
25
- "rimraf": "^6.1.2",
25
+ "rimraf": "^6.1.3",
26
26
  "typescript": "^5.9.3"
27
27
  },
28
28
  "dependencies": {