vscode-json-languageservice 4.1.8 → 4.1.9
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.
|
@@ -233,7 +233,7 @@ var JSONSchemaService = /** @class */ (function () {
|
|
|
233
233
|
this.registeredSchemasIds[id] = true;
|
|
234
234
|
this.cachedSchemaForResource = undefined;
|
|
235
235
|
if (filePatterns) {
|
|
236
|
-
this.addFilePatternAssociation(filePatterns, [
|
|
236
|
+
this.addFilePatternAssociation(filePatterns, [id]);
|
|
237
237
|
}
|
|
238
238
|
return unresolvedSchemaContent ? this.addSchemaHandle(id, unresolvedSchemaContent) : this.getOrAddSchemaHandle(id);
|
|
239
239
|
};
|
package/lib/esm/utils/strings.js
CHANGED
|
@@ -44,9 +44,9 @@ export function repeat(value, count) {
|
|
|
44
44
|
}
|
|
45
45
|
export function extendedRegExp(pattern) {
|
|
46
46
|
if (startsWith(pattern, '(?i)')) {
|
|
47
|
-
return new RegExp(pattern.substring(4), '
|
|
47
|
+
return new RegExp(pattern.substring(4), 'iu');
|
|
48
48
|
}
|
|
49
49
|
else {
|
|
50
|
-
return new RegExp(pattern);
|
|
50
|
+
return new RegExp(pattern, 'u');
|
|
51
51
|
}
|
|
52
52
|
}
|
|
@@ -245,7 +245,7 @@
|
|
|
245
245
|
this.registeredSchemasIds[id] = true;
|
|
246
246
|
this.cachedSchemaForResource = undefined;
|
|
247
247
|
if (filePatterns) {
|
|
248
|
-
this.addFilePatternAssociation(filePatterns, [
|
|
248
|
+
this.addFilePatternAssociation(filePatterns, [id]);
|
|
249
249
|
}
|
|
250
250
|
return unresolvedSchemaContent ? this.addSchemaHandle(id, unresolvedSchemaContent) : this.getOrAddSchemaHandle(id);
|
|
251
251
|
};
|
package/lib/umd/utils/strings.js
CHANGED
|
@@ -60,10 +60,10 @@
|
|
|
60
60
|
exports.repeat = repeat;
|
|
61
61
|
function extendedRegExp(pattern) {
|
|
62
62
|
if (startsWith(pattern, '(?i)')) {
|
|
63
|
-
return new RegExp(pattern.substring(4), '
|
|
63
|
+
return new RegExp(pattern.substring(4), 'iu');
|
|
64
64
|
}
|
|
65
65
|
else {
|
|
66
|
-
return new RegExp(pattern);
|
|
66
|
+
return new RegExp(pattern, 'u');
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
69
|
exports.extendedRegExp = extendedRegExp;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vscode-json-languageservice",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.9",
|
|
4
4
|
"description": "Language service for JSON",
|
|
5
5
|
"main": "./lib/umd/jsonLanguageService.js",
|
|
6
6
|
"typings": "./lib/umd/jsonLanguageService",
|
|
@@ -18,12 +18,12 @@
|
|
|
18
18
|
"npm": ">=7.0.0"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
|
-
"@types/mocha": "^
|
|
21
|
+
"@types/mocha": "^9.0.0",
|
|
22
22
|
"@types/node": "^10.12.21",
|
|
23
|
-
"@typescript-eslint/eslint-plugin": "^4.
|
|
24
|
-
"@typescript-eslint/parser": "^4.
|
|
25
|
-
"eslint": "^7.
|
|
26
|
-
"mocha": "^
|
|
23
|
+
"@typescript-eslint/eslint-plugin": "^4.32.0",
|
|
24
|
+
"@typescript-eslint/parser": "^4.32.0",
|
|
25
|
+
"eslint": "^7.32.0",
|
|
26
|
+
"mocha": "^9.1.2",
|
|
27
27
|
"rimraf": "^3.0.2",
|
|
28
28
|
"typescript": "^4.1.3"
|
|
29
29
|
},
|