@intend-it/core 2.0.5 → 2.0.7

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/index.js +7 -1
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -169546,7 +169546,13 @@ class TypeScriptValidator {
169546
169546
  const program = ts.createProgram([fileName], compilerOptions, host);
169547
169547
  const diagnostics = ts.getPreEmitDiagnostics(program);
169548
169548
  return diagnostics.filter((d) => {
169549
- return d.code !== 2307 && d.code !== 2306 && d.code !== 2792;
169549
+ if (d.code === 2307 || d.code === 2306 || d.code === 2792 || d.code === 2318)
169550
+ return false;
169551
+ const msg = ts.flattenDiagnosticMessageText(d.messageText, `
169552
+ `);
169553
+ if (msg.includes("Cannot find global type"))
169554
+ return false;
169555
+ return true;
169550
169556
  }).map((d) => {
169551
169557
  const line = d.file ? d.file.getLineAndCharacterOfPosition(d.start).line + 1 : 0;
169552
169558
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@intend-it/core",
3
- "version": "2.0.5",
3
+ "version": "2.0.7",
4
4
  "description": "Core compiler and AI integration for the Intend programming language",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -35,7 +35,7 @@
35
35
  ],
36
36
  "license": "MIT",
37
37
  "dependencies": {
38
- "@intend-it/parser": "^1.1.5",
38
+ "@intend-it/parser": "^1.1.6",
39
39
  "@google/generative-ai": "^0.21.0"
40
40
  },
41
41
  "devDependencies": {
@@ -43,6 +43,6 @@
43
43
  "typescript": "^5.0.0"
44
44
  },
45
45
  "peerDependencies": {
46
- "@intend-it/parser": ">=1.1.5"
46
+ "@intend-it/parser": ">=1.1.6"
47
47
  }
48
48
  }