@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.
- package/compiled/examples/{browser-bundled.js → browser-bundled.cjs} +34 -11
- package/compiled/examples/browser.d.ts +0 -1
- package/compiled/examples/browser.js +0 -1
- package/compiled/examples/cli-bundled.cjs +89676 -0
- package/compiled/examples/{validator-bundled.js → validator-bundled.cjs} +36 -17
- package/compiled/examples/validator.d.ts +0 -1
- package/compiled/examples/validator.js +0 -1
- package/compiled/src/version/version.js +1 -1
- package/compiled/tsconfig.tsbuildinfo +1 -1
- package/package.json +14 -11
|
@@ -1,8 +1,31 @@
|
|
|
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/validator.js
|
|
4
|
-
|
|
5
|
-
|
|
27
|
+
var import_fs = __toESM(require("fs"), 1);
|
|
28
|
+
var import_process = require("process");
|
|
6
29
|
|
|
7
30
|
// compiled/src/ifc/ifc4_gen/entity_types_ifc.gen.js
|
|
8
31
|
var EntityTypesIfc;
|
|
@@ -9273,7 +9296,7 @@ var StepEntityBase = class {
|
|
|
9273
9296
|
* @param optional
|
|
9274
9297
|
* @return {boolean} True if this extracts, false (usually because this is optional)
|
|
9275
9298
|
*/
|
|
9276
|
-
extractParseBuffer(offset, result,
|
|
9299
|
+
extractParseBuffer(offset, result, module2, optional) {
|
|
9277
9300
|
this.guaranteeVTable();
|
|
9278
9301
|
const internalReference = this.internalReference_;
|
|
9279
9302
|
if (offset >= internalReference.vtableCount) {
|
|
@@ -9288,7 +9311,7 @@ var StepEntityBase = class {
|
|
|
9288
9311
|
return false;
|
|
9289
9312
|
}
|
|
9290
9313
|
const dataPtr = result.resize(endCursor - cursor);
|
|
9291
|
-
|
|
9314
|
+
module2.HEAPU8.set(buffer.subarray(cursor, endCursor), dataPtr);
|
|
9292
9315
|
return true;
|
|
9293
9316
|
}
|
|
9294
9317
|
/**
|
|
@@ -68857,16 +68880,16 @@ Logger.initializeWasmCallbacks();
|
|
|
68857
68880
|
var maxCommandArgs = 4;
|
|
68858
68881
|
if (process.argv.length < maxCommandArgs) {
|
|
68859
68882
|
console.error(`Usage: validator <path_to_model>.ifc "IFCCLASS[#OptionalID].property <operator> value"`);
|
|
68860
|
-
exit(1);
|
|
68883
|
+
(0, import_process.exit)(1);
|
|
68861
68884
|
}
|
|
68862
68885
|
var modelPath = process.argv[2];
|
|
68863
68886
|
var query = process.argv[3];
|
|
68864
68887
|
var ifcBuffer;
|
|
68865
68888
|
try {
|
|
68866
|
-
ifcBuffer =
|
|
68889
|
+
ifcBuffer = import_fs.default.readFileSync(modelPath);
|
|
68867
68890
|
} catch (err) {
|
|
68868
68891
|
Logger.error(`Error reading "${modelPath}": ${err}`);
|
|
68869
|
-
exit(1);
|
|
68892
|
+
(0, import_process.exit)(1);
|
|
68870
68893
|
}
|
|
68871
68894
|
Logger.createStatistics(0);
|
|
68872
68895
|
var parser210 = IfcStepParser.Instance;
|
|
@@ -68881,21 +68904,21 @@ switch (parseResult) {
|
|
|
68881
68904
|
break;
|
|
68882
68905
|
case ParseResult.INVALID_STEP:
|
|
68883
68906
|
Logger.error("Invalid STEP detected.");
|
|
68884
|
-
exit(1);
|
|
68907
|
+
(0, import_process.exit)(1);
|
|
68885
68908
|
break;
|
|
68886
68909
|
case ParseResult.MISSING_TYPE:
|
|
68887
68910
|
Logger.error("Missing STEP type.");
|
|
68888
|
-
exit(1);
|
|
68911
|
+
(0, import_process.exit)(1);
|
|
68889
68912
|
break;
|
|
68890
68913
|
case ParseResult.SYNTAX_ERROR:
|
|
68891
68914
|
Logger.error(`Syntax error at line ${bufferInput.lineCount}.`);
|
|
68892
|
-
exit(1);
|
|
68915
|
+
(0, import_process.exit)(1);
|
|
68893
68916
|
break;
|
|
68894
68917
|
default:
|
|
68895
68918
|
}
|
|
68896
68919
|
if (!model) {
|
|
68897
68920
|
Logger.error("Failed to load model.");
|
|
68898
|
-
exit(1);
|
|
68921
|
+
(0, import_process.exit)(1);
|
|
68899
68922
|
}
|
|
68900
68923
|
var nonEmptyTypeIDNoSubtypes = model.nonEmptyTypeIDs();
|
|
68901
68924
|
var ifcClasses = Array.from(nonEmptyTypeIDNoSubtypes || []).map((item) => String(entity_types_ifc_gen_default[item]));
|
|
@@ -69066,11 +69089,7 @@ Validation Report for Query: ${className}${expressID !== void 0 ? `[#${expressID
|
|
|
69066
69089
|
passes.push({ id, propVal });
|
|
69067
69090
|
passCount++;
|
|
69068
69091
|
} else {
|
|
69069
|
-
fails.push({
|
|
69070
|
-
id,
|
|
69071
|
-
propVal,
|
|
69072
|
-
reason: `failed comparison (${property}: ${JSON.stringify(propVal)})`
|
|
69073
|
-
});
|
|
69092
|
+
fails.push({ id, propVal, reason: `failed comparison (${property}: ${JSON.stringify(propVal)})` });
|
|
69074
69093
|
failCount++;
|
|
69075
69094
|
}
|
|
69076
69095
|
}
|
|
@@ -69100,6 +69119,6 @@ try {
|
|
|
69100
69119
|
parsedQuery = parseQueryString(query);
|
|
69101
69120
|
} catch (err) {
|
|
69102
69121
|
console.error(`\u274C Error parsing query: ${err.message}`);
|
|
69103
|
-
exit(1);
|
|
69122
|
+
(0, import_process.exit)(1);
|
|
69104
69123
|
}
|
|
69105
69124
|
validateModel(model, parsedQuery);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const versionString = 'Conway Web-Ifc Shim v0.
|
|
1
|
+
const versionString = 'Conway Web-Ifc Shim v0.17.902';
|
|
2
2
|
export { versionString };
|