@aeriajs/compiler 0.0.33 → 0.0.34

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.
package/dist/semantic.js CHANGED
@@ -41,10 +41,10 @@ const AST = __importStar(require("./ast.js"));
41
41
  const collectionHasProperty = async (collection, propName, options) => {
42
42
  let hasProperty = propName in collection.properties;
43
43
  if (!hasProperty) {
44
- if (options.languageServer) {
45
- return true;
46
- }
47
44
  if (collection.extends) {
45
+ if (options.languageServer) {
46
+ return true;
47
+ }
48
48
  const { packageName, symbolName } = collection.extends;
49
49
  const { [symbolName]: importedCollection } = await Promise.resolve(`${packageName}`).then(s => __importStar(require(s)));
50
50
  if (!(0, common_1.isValidCollection)(importedCollection)) {
package/dist/semantic.mjs CHANGED
@@ -6,10 +6,10 @@ import * as AST from "./ast.mjs";
6
6
  const collectionHasProperty = async (collection, propName, options) => {
7
7
  let hasProperty = propName in collection.properties;
8
8
  if (!hasProperty) {
9
- if (options.languageServer) {
10
- return true;
11
- }
12
9
  if (collection.extends) {
10
+ if (options.languageServer) {
11
+ return true;
12
+ }
13
13
  const { packageName, symbolName } = collection.extends;
14
14
  const { [symbolName]: importedCollection } = await import(packageName);
15
15
  if (!isValidCollection(importedCollection)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aeriajs/compiler",
3
- "version": "0.0.33",
3
+ "version": "0.0.34",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",