@marko/language-server 0.10.0 → 0.10.1

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.
@@ -20,13 +20,14 @@ function getTagLibLookup(document) {
20
20
  }
21
21
  exports.getTagLibLookup = getTagLibLookup;
22
22
  function loadCompiler(dir) {
23
- return require(isCompatibleCompilerInstalled(dir)
24
- ? (0, resolve_from_1.default)(dir, "@marko/compiler")
25
- : "@marko/compiler");
26
- }
27
- function isCompatibleCompilerInstalled(dir) {
28
23
  const rootDir = lasso_package_root_1.default.getRootDir(dir);
29
24
  const packagePath = rootDir && resolve_from_1.default.silent(rootDir, "@marko/compiler/package.json");
30
- return Boolean(packagePath && /^5\./.test(require(packagePath).version));
25
+ if (packagePath && /^5\./.test(require(packagePath).version)) {
26
+ try {
27
+ return require((0, resolve_from_1.default)(dir, "@marko/compiler"));
28
+ }
29
+ catch (_a) { }
30
+ }
31
+ return require("@marko/compiler");
31
32
  }
32
33
  //# sourceMappingURL=compiler.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"compiler.js","sourceRoot":"","sources":["../../src/utils/compiler.ts"],"names":[],"mappings":";;;;AAAA,6DAAwB;AACxB,2CAAiC;AACjC,6EAAuC;AACvC,yFAAkD;AAkElD,MAAM,cAAc,GAAG,IAAI,OAAO,EAA0B,CAAC;AAE7D,SAAgB,iBAAiB,CAAC,GAAiB;IACjD,IAAI,QAAQ,GAAG,cAAc,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IACvC,IAAI,CAAC,QAAQ,EAAE;QACb,cAAc,CAAC,GAAG,CAChB,GAAG,EACH,CAAC,QAAQ,GAAG,YAAY,CAAC,cAAI,CAAC,OAAO,CAAC,gBAAG,CAAC,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CACnE,CAAC;KACH;IAED,OAAO,QAAQ,CAAC;AAClB,CAAC;AAVD,8CAUC;AAED,SAAgB,eAAe,CAC7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AAClB,CAAC;AAVD,8CAUC;AAED,SAAgB,eAAe,CAC7B,QAAsB;IAEtB,OAAO,iBAAiB,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,WAAW,CACnD,gBAAG,CAAC,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,MAAM,CAC/B,CAAC;AACJ,CAAC;AAND,0CAMC;AAED,SAAS,YAAY,CAAC,GAAW;IAC/B,MAAM,OAAO,GAAG,4BAAgB,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;IACjD,MAAM,WAAW,GACf,OAAO,IAAI,sBAAW,CAAC,MAAM,CAAC,OAAO,EAAE,8BAA8B,CAAC,CAAC;IAEzE,IAAI,WAAW,IAAI,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC,OAAO,CAAC,EAAE;QAC5D,IAAI;YACF,OAAO,OAAO,CAAC,IAAA,sBAAW,EAAC,GAAG,EAAE,iBAAiB,CAAC,CAAC,CAAC;SACrD;QAAC,WAAM,GAAE;KACX;IAED,OAAO,OAAO,CAAC,iBAAiB,CAAC,CAAC;AACpC,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@marko/language-server",
3
3
  "description": "Marko Language Server",
4
- "version": "0.10.0",
4
+ "version": "0.10.1",
5
5
  "author": "Diego Berrocal",
6
6
  "bugs": "https://github.com/marko-js/language-server/issues/new?template=Bug_report.md",
7
7
  "bin": {
@@ -38,5 +38,5 @@
38
38
  "type": "git",
39
39
  "url": "https://github.com/marko-js/language-server/tree/master/server"
40
40
  },
41
- "gitHead": "caf2b5f6382ddd230e44fb3e566055e1129a7320"
41
+ "gitHead": "4b4e26447387e02d154d5a718b5a57714722ecea"
42
42
  }