volar-service-css 0.0.15 → 0.0.17

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.
Files changed (2) hide show
  1. package/out/index.js +3 -2
  2. package/package.json +4 -3
package/out/index.js CHANGED
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.create = void 0;
4
- const path_1 = require("path");
5
4
  const css = require("vscode-css-languageservice");
6
5
  const vscode_uri_1 = require("vscode-uri");
7
6
  // https://github.com/microsoft/vscode/blob/09850876e652688fb142e2e19fd00fd38c0bc4ba/extensions/css-language-features/server/src/cssServer.ts#L97
@@ -183,7 +182,9 @@ function create() {
183
182
  const newData = [];
184
183
  for (const customDataPath of customData) {
185
184
  try {
186
- const jsonPath = path_1.posix.resolve(customDataPath);
185
+ const pathModuleName = 'path'; // avoid bundle
186
+ const { posix: path } = require(pathModuleName);
187
+ const jsonPath = path.resolve(customDataPath);
187
188
  newData.push(css.newCSSDataProvider(require(jsonPath)));
188
189
  }
189
190
  catch (error) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "volar-service-css",
3
- "version": "0.0.15",
3
+ "version": "0.0.17",
4
4
  "description": "Integrate vscode-css-languageservice into Volar",
5
5
  "homepage": "https://github.com/volarjs/services/tree/master/packages/css",
6
6
  "bugs": "https://github.com/volarjs/services/issues",
@@ -29,15 +29,16 @@
29
29
  "vscode-uri": "^3.0.8"
30
30
  },
31
31
  "devDependencies": {
32
+ "@types/node": "latest",
32
33
  "vscode-languageserver-textdocument": "^1.0.11"
33
34
  },
34
35
  "peerDependencies": {
35
- "@volar/language-service": "~1.10.0"
36
+ "@volar/language-service": "~1.11.0"
36
37
  },
37
38
  "peerDependenciesMeta": {
38
39
  "@volar/language-service": {
39
40
  "optional": true
40
41
  }
41
42
  },
42
- "gitHead": "3a59378715a959b433ca65700d2515d708469388"
43
+ "gitHead": "bf42bae9b399b69125fd28c7a9bf95882c96068a"
43
44
  }