@katana-project/laser 0.2.0 → 0.2.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.
Files changed (2) hide show
  1. package/dist/resolver.js +5 -1
  2. package/package.json +1 -1
package/dist/resolver.js CHANGED
@@ -118,7 +118,11 @@ const resolveImported = (typeRef, unit, externalRefs) => {
118
118
  }
119
119
  }
120
120
  }
121
- const matchingExternal = externalRefs.find((ext) => ext.packageName === (unit.packageName ?? "") && ext.name === firstPart);
121
+ let matchingExternal = externalRefs.find((ext) => ext.packageName === (unit.packageName ?? "") && ext.name === firstPart);
122
+ if (!matchingExternal) {
123
+ // implicit import of java.lang.*
124
+ matchingExternal = externalRefs.find((ext) => ext.packageName === "java.lang" && ext.name === firstPart);
125
+ }
122
126
  if (matchingExternal) {
123
127
  return {
124
128
  kind: "imported",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@katana-project/laser",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "type": "module",
5
5
  "author": "katana-project",
6
6
  "license": "MIT",