@bldrs-ai/conway 0.18.902 → 0.19.902

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.
@@ -1,10 +1,33 @@
1
1
  #!/usr/bin/env node
2
+ "use strict";
3
+ var __create = Object.create;
4
+ var __defProp = Object.defineProperty;
5
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
+ var __getOwnPropNames = Object.getOwnPropertyNames;
7
+ var __getProtoOf = Object.getPrototypeOf;
8
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
18
+ // If the importer is in node compatibility mode or this is not an ESM
19
+ // file that has been converted to a CommonJS file using a Babel-
20
+ // compatible transform (i.e. "__esModule" has not been set), then set
21
+ // "default" to the CommonJS "module.exports" for node compatibility.
22
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
23
+ mod
24
+ ));
2
25
 
3
26
  // compiled/examples/browser.js
4
- import fs from "fs";
5
- import { exit } from "process";
6
- import { stdin as input, stdout as output } from "node:process";
7
- import * as readline from "node:readline";
27
+ var import_fs = __toESM(require("fs"), 1);
28
+ var import_process = require("process");
29
+ var import_node_process = require("node:process");
30
+ var readline = __toESM(require("node:readline"), 1);
8
31
 
9
32
  // compiled/src/parsing/token_parsing.js
10
33
  var encoder = new TextEncoder();
@@ -9275,7 +9298,7 @@ var StepEntityBase = class {
9275
9298
  * @param optional
9276
9299
  * @return {boolean} True if this extracts, false (usually because this is optional)
9277
9300
  */
9278
- extractParseBuffer(offset, result, module, optional) {
9301
+ extractParseBuffer(offset, result, module2, optional) {
9279
9302
  this.guaranteeVTable();
9280
9303
  const internalReference = this.internalReference_;
9281
9304
  if (offset >= internalReference.vtableCount) {
@@ -9290,7 +9313,7 @@ var StepEntityBase = class {
9290
9313
  return false;
9291
9314
  }
9292
9315
  const dataPtr = result.resize(endCursor - cursor);
9293
- module.HEAPU8.set(buffer.subarray(cursor, endCursor), dataPtr);
9316
+ module2.HEAPU8.set(buffer.subarray(cursor, endCursor), dataPtr);
9294
9317
  return true;
9295
9318
  }
9296
9319
  /**
@@ -68863,14 +68886,14 @@ if (!modelPath) {
68863
68886
  }
68864
68887
  var indexIfcBuffer;
68865
68888
  try {
68866
- indexIfcBuffer = fs.readFileSync(modelPath);
68889
+ indexIfcBuffer = import_fs.default.readFileSync(modelPath);
68867
68890
  } catch (ex) {
68868
68891
  Logger.error("Couldn't read file, check that it is accessible at the specified path.");
68869
- exit();
68892
+ (0, import_process.exit)();
68870
68893
  }
68871
68894
  if (indexIfcBuffer === void 0) {
68872
68895
  Logger.error("Couldn't read file, check that it is accessible at the specified path.");
68873
- exit();
68896
+ (0, import_process.exit)();
68874
68897
  }
68875
68898
  Logger.createStatistics(0);
68876
68899
  var parser210 = IfcStepParser.Instance;
@@ -69059,8 +69082,8 @@ function completer(line) {
69059
69082
  }
69060
69083
  }
69061
69084
  var rl = readline.createInterface({
69062
- input,
69063
- output,
69085
+ input: import_node_process.stdin,
69086
+ output: import_node_process.stdout,
69064
69087
  prompt: "> ",
69065
69088
  completer,
69066
69089
  terminal: true
@@ -1,3 +1,2 @@
1
- #!/usr/bin/env node
2
1
  export {};
3
2
  //# sourceMappingURL=browser.d.ts.map
@@ -1,4 +1,3 @@
1
- #!/usr/bin/env node
2
1
  import fs from "fs";
3
2
  import { exit } from "process";
4
3
  import { stdin as input, stdout as output } from "node:process";