@magnusopera/fscript 0.92.3 → 0.92.4

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.
@@ -5839,14 +5839,18 @@ export function inferProgramWithRegistration(registration, program) {
5839
5839
  return inferProgramWithExternsRawAndLocals(false, registration, program)[0];
5840
5840
  }
5841
5841
 
5842
- export function inferProgramWithRegistrationAndLocalVariableTypes(registration, program) {
5842
+ export function inferProgramWithRegistrationAndTypes(registration, program) {
5843
5843
  if (exists((ext) => contains(ext.Name, builtinReservedNames), registration.Functions)) {
5844
5844
  throw new TypeException(new TypeError$("Host extern collides with reserved stdlib symbol", unknownSpan));
5845
5845
  }
5846
5846
  if (exists((name) => contains(name, builtinReservedNames), topLevelBindingNames(program))) {
5847
5847
  throw new TypeException(new TypeError$("Top-level binding collides with reserved stdlib symbol", unknownSpan));
5848
5848
  }
5849
- const patternInput = inferProgramWithExternsRawAndLocals(true, registration, program);
5849
+ return inferProgramWithExternsRawAndLocals(true, registration, program);
5850
+ }
5851
+
5852
+ export function inferProgramWithRegistrationAndLocalVariableTypes(registration, program) {
5853
+ const patternInput = inferProgramWithRegistrationAndTypes(registration, program);
5850
5854
  return [patternInput[0], patternInput[1]];
5851
5855
  }
5852
5856
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@magnusopera/fscript",
3
- "version": "0.92.3",
3
+ "version": "0.92.4",
4
4
  "description": "Embeddable FScript language engine: parser, type inference, and evaluator.",
5
5
  "type": "module",
6
6
  "main": "./dist/Library.js",