@bldrs-ai/conway 0.17.885 → 0.18.886

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/README.md CHANGED
@@ -116,8 +116,10 @@ Conway has a test application for parsing IFC step files to see the performance
116
116
  Use an incremental or full build to compile this file from typescript and then it can be run with:
117
117
 
118
118
  ```
119
- node --experimental-specifier-resolution=node ./compiled/src/ifc/ifc_command_line_main.js [ifc file path]
120
- node --experimental-specifier-resolution=node ./compiled/src/ifc/ifc_command_line_main.js -g [ifc file path]
119
+ yarn cli [ifc file path]
120
+ # To output geometry
121
+ yarn cli -g [ifc file path]
122
+ # Use -m 1024 for larger files and see CLI help for full options
121
123
  ```
122
124
 
123
125
  The included index.ifc in the repo is recommended for testing.
@@ -1,33 +1,10 @@
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
- ));
25
2
 
26
3
  // compiled/examples/browser.js
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);
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";
31
8
 
32
9
  // compiled/src/parsing/token_parsing.js
33
10
  var encoder = new TextEncoder();
@@ -9298,7 +9275,7 @@ var StepEntityBase = class {
9298
9275
  * @param optional
9299
9276
  * @return {boolean} True if this extracts, false (usually because this is optional)
9300
9277
  */
9301
- extractParseBuffer(offset, result, module2, optional) {
9278
+ extractParseBuffer(offset, result, module, optional) {
9302
9279
  this.guaranteeVTable();
9303
9280
  const internalReference = this.internalReference_;
9304
9281
  if (offset >= internalReference.vtableCount) {
@@ -9313,7 +9290,7 @@ var StepEntityBase = class {
9313
9290
  return false;
9314
9291
  }
9315
9292
  const dataPtr = result.resize(endCursor - cursor);
9316
- module2.HEAPU8.set(buffer.subarray(cursor, endCursor), dataPtr);
9293
+ module.HEAPU8.set(buffer.subarray(cursor, endCursor), dataPtr);
9317
9294
  return true;
9318
9295
  }
9319
9296
  /**
@@ -68492,7 +68469,7 @@ var IfcStepParser = class extends StepParser {
68492
68469
  IfcStepParser.Instance = new IfcStepParser();
68493
68470
 
68494
68471
  // compiled/src/version/version.js
68495
- var versionString = "Conway Web-Ifc Shim v0.17.883";
68472
+ var versionString = "Conway Web-Ifc Shim v0.17.886";
68496
68473
 
68497
68474
  // compiled/src/statistics/statistics.js
68498
68475
  var Statistics = class {
@@ -68886,14 +68863,14 @@ if (!modelPath) {
68886
68863
  }
68887
68864
  var indexIfcBuffer;
68888
68865
  try {
68889
- indexIfcBuffer = import_fs.default.readFileSync(modelPath);
68866
+ indexIfcBuffer = fs.readFileSync(modelPath);
68890
68867
  } catch (ex) {
68891
68868
  Logger.error("Couldn't read file, check that it is accessible at the specified path.");
68892
- (0, import_process.exit)();
68869
+ exit();
68893
68870
  }
68894
68871
  if (indexIfcBuffer === void 0) {
68895
68872
  Logger.error("Couldn't read file, check that it is accessible at the specified path.");
68896
- (0, import_process.exit)();
68873
+ exit();
68897
68874
  }
68898
68875
  Logger.createStatistics(0);
68899
68876
  var parser210 = IfcStepParser.Instance;
@@ -69082,8 +69059,8 @@ function completer(line) {
69082
69059
  }
69083
69060
  }
69084
69061
  var rl = readline.createInterface({
69085
- input: import_node_process.stdin,
69086
- output: import_node_process.stdout,
69062
+ input,
69063
+ output,
69087
69064
  prompt: "> ",
69088
69065
  completer,
69089
69066
  terminal: true
@@ -1,2 +1,3 @@
1
+ #!/usr/bin/env node
1
2
  export {};
2
3
  //# sourceMappingURL=browser.d.ts.map
@@ -1,3 +1,4 @@
1
+ #!/usr/bin/env node
1
2
  import fs from "fs";
2
3
  import { exit } from "process";
3
4
  import { stdin as input, stdout as output } from "node:process";