New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More

ifc-expressions

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ifc-expressions - npm Package Compare versions

Comparing version 2.2.0-beta.0 to 2.3.0-beta.0

@@ -6,3 +6,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.IfcExpression = exports.IfcExpressionParseResult = exports.ExprFacade = exports.ExprToTextInputLinker = exports.isExprEvalSuccess = exports.isExprEvalError = exports.isNullish = exports.isPresent = exports.IfcExpressionVisitor = exports.IfcExpressionErrorListener = exports.IfcExpressionEvaluationException = exports.ExprKind = exports.ExprCompiler = exports.NamedObjectAccessor = exports.IfcTypeObjectAccessor = exports.IfcRootObjectAccessor = exports.IfcPropertyAccessor = exports.IfcPropertySetAccessor = exports.ReferenceValue = exports.NumericValue = exports.LogicalValue = exports.BooleanValue = exports.StringValue = exports.IfcElementAccessor = void 0;
exports.IfcExpression = exports.IfcExpressionParseResult = exports.ExprFacade = exports.ExprToTextInputLinker = exports.isExprEvalSuccess = exports.isExprEvalError = exports.isNullish = exports.isPresent = exports.IfcExpressionVisitor = exports.IfcExpressionErrorListener = exports.IfcExpressionEvaluationException = exports.ExprKind = exports.ExprCompiler = exports.NamedObjectAccessor = exports.IfcTypeObjectAccessor = exports.IfcRootObjectAccessor = exports.IfcPropertyAccessor = exports.IfcPropertySetAccessor = exports.IfcTimeStampValue = exports.IfcDurationValue = exports.IfcTimeValue = exports.IfcDateTimeValue = exports.IfcDateValue = exports.ReferenceValue = exports.NumericValue = exports.LogicalValue = exports.BooleanValue = exports.StringValue = exports.IfcElementAccessor = void 0;
const antlr4_1 = require("antlr4");

@@ -57,2 +57,12 @@ const ExprCompiler_js_1 = require("./compiler/ExprCompiler.js");

Object.defineProperty(exports, "ExprFacade", { enumerable: true, get: function () { return ExprFacade_js_1.ExprFacade; } });
const IfcDurationValue_js_1 = require("./value/IfcDurationValue.js");
Object.defineProperty(exports, "IfcDurationValue", { enumerable: true, get: function () { return IfcDurationValue_js_1.IfcDurationValue; } });
const IfcDateValue_js_1 = require("./value/IfcDateValue.js");
Object.defineProperty(exports, "IfcDateValue", { enumerable: true, get: function () { return IfcDateValue_js_1.IfcDateValue; } });
const IfcDateTimeValue_js_1 = require("./value/IfcDateTimeValue.js");
Object.defineProperty(exports, "IfcDateTimeValue", { enumerable: true, get: function () { return IfcDateTimeValue_js_1.IfcDateTimeValue; } });
const IfcTimeValue_js_1 = require("./value/IfcTimeValue.js");
Object.defineProperty(exports, "IfcTimeValue", { enumerable: true, get: function () { return IfcTimeValue_js_1.IfcTimeValue; } });
const IfcTimeStampValue_js_1 = require("./value/IfcTimeStampValue.js");
Object.defineProperty(exports, "IfcTimeStampValue", { enumerable: true, get: function () { return IfcTimeStampValue_js_1.IfcTimeStampValue; } });
class IfcExpressionParseResult {

@@ -59,0 +69,0 @@ constructor(input, typeManager, exprContext) {

@@ -124,3 +124,3 @@ "use strict";

static isValidStringRepresentation(str) {
return !(0, IfcExpressionUtils_js_1.isNullish)(str.match(this.regex));
return this.regex.test(str);
}

@@ -127,0 +127,0 @@ equals(other) {

@@ -53,3 +53,3 @@ "use strict";

static isValidStringRepresentation(str) {
return !(0, IfcExpressionUtils_js_1.isNullish)(str.match(this.regex));
return this.regex.test(str);
}

@@ -56,0 +56,0 @@ equals(other) {

@@ -100,3 +100,3 @@ "use strict";

static isValidStringRepresentation(str) {
return !(0, IfcExpressionUtils_js_1.isNullish)(str.match(this.regex));
return this.regex.test(str);
}

@@ -103,0 +103,0 @@ equals(other) {

@@ -66,3 +66,3 @@ "use strict";

static isValidStringRepresentation(str) {
return !(0, IfcExpressionUtils_js_1.isNullish)(str.match(this.regex));
return this.regex.test(str);
}

@@ -69,0 +69,0 @@ equals(other) {

@@ -29,3 +29,8 @@ import { ErrorListener, ParserRuleContext, Token } from "antlr4";

import { ExprFacade } from "./expression/ExprFacade.js";
export { IfcElementAccessor, IfcExpressionContext, Value, StringValue, BooleanValue, LogicalValue, NumericValue, ExpressionValue, ReferenceValue, IfcPropertySetAccessor, IfcPropertyAccessor, IfcRootObjectAccessor, IfcTypeObjectAccessor, NamedObjectAccessor, ObjectAccessor, Expr, ExprCompiler, ExprKind, IfcExpressionEvaluationException, IfcExpressionErrorListener, IfcExpressionVisitor, isPresent, isNullish, ExprEvalResult, ExprEvalError, isExprEvalError, isExprEvalSuccess, ExprToTextInputLinker, ExprFacade, };
import { IfcDurationValue } from "./value/IfcDurationValue.js";
import { IfcDateValue } from "./value/IfcDateValue.js";
import { IfcDateTimeValue } from "./value/IfcDateTimeValue.js";
import { IfcTimeValue } from "./value/IfcTimeValue.js";
import { IfcTimeStampValue } from "./value/IfcTimeStampValue.js";
export { IfcElementAccessor, IfcExpressionContext, Value, StringValue, BooleanValue, LogicalValue, NumericValue, ExpressionValue, ReferenceValue, IfcDateValue, IfcDateTimeValue, IfcTimeValue, IfcDurationValue, IfcTimeStampValue, IfcPropertySetAccessor, IfcPropertyAccessor, IfcRootObjectAccessor, IfcTypeObjectAccessor, NamedObjectAccessor, ObjectAccessor, Expr, ExprCompiler, ExprKind, IfcExpressionEvaluationException, IfcExpressionErrorListener, IfcExpressionVisitor, isPresent, isNullish, ExprEvalResult, ExprEvalError, isExprEvalError, isExprEvalSuccess, ExprToTextInputLinker, ExprFacade, };
export type { BoxedValueTypes };

@@ -32,0 +37,0 @@ export declare class IfcExpressionParseResult {

@@ -28,3 +28,8 @@ import { CharStream, CommonTokenStream, ParseTreeWalker, } from "antlr4";

import { ExprFacade } from "./expression/ExprFacade.js";
export { IfcElementAccessor, StringValue, BooleanValue, LogicalValue, NumericValue, ReferenceValue, IfcPropertySetAccessor, IfcPropertyAccessor, IfcRootObjectAccessor, IfcTypeObjectAccessor, NamedObjectAccessor, ExprCompiler, ExprKind, IfcExpressionEvaluationException, IfcExpressionErrorListener, IfcExpressionVisitor, isPresent, isNullish, isExprEvalError, isExprEvalSuccess, ExprToTextInputLinker, ExprFacade, };
import { IfcDurationValue } from "./value/IfcDurationValue.js";
import { IfcDateValue } from "./value/IfcDateValue.js";
import { IfcDateTimeValue } from "./value/IfcDateTimeValue.js";
import { IfcTimeValue } from "./value/IfcTimeValue.js";
import { IfcTimeStampValue } from "./value/IfcTimeStampValue.js";
export { IfcElementAccessor, StringValue, BooleanValue, LogicalValue, NumericValue, ReferenceValue, IfcDateValue, IfcDateTimeValue, IfcTimeValue, IfcDurationValue, IfcTimeStampValue, IfcPropertySetAccessor, IfcPropertyAccessor, IfcRootObjectAccessor, IfcTypeObjectAccessor, NamedObjectAccessor, ExprCompiler, ExprKind, IfcExpressionEvaluationException, IfcExpressionErrorListener, IfcExpressionVisitor, isPresent, isNullish, isExprEvalError, isExprEvalSuccess, ExprToTextInputLinker, ExprFacade, };
export class IfcExpressionParseResult {

@@ -31,0 +36,0 @@ constructor(input, typeManager, exprContext) {

@@ -118,3 +118,3 @@ import { Type } from "../type/Types.js";

static isValidStringRepresentation(str) {
return !isNullish(str.match(this.regex));
return this.regex.test(str);
}

@@ -121,0 +121,0 @@ equals(other) {

@@ -50,3 +50,3 @@ import { Type } from "../type/Types.js";

static isValidStringRepresentation(str) {
return !isNullish(str.match(this.regex));
return this.regex.test(str);
}

@@ -53,0 +53,0 @@ equals(other) {

@@ -94,3 +94,3 @@ import { Type } from "../type/Types.js";

static isValidStringRepresentation(str) {
return !isNullish(str.match(this.regex));
return this.regex.test(str);
}

@@ -97,0 +97,0 @@ equals(other) {

@@ -60,3 +60,3 @@ import { Type } from "../type/Types.js";

static isValidStringRepresentation(str) {
return !isNullish(str.match(this.regex));
return this.regex.test(str);
}

@@ -63,0 +63,0 @@ equals(other) {

import { BoxedValueTypes } from "./BoxedValueTypes.js";
import { ExprType } from "../type/ExprType.js";
import { NonBoxedValueTypes } from "./NonBoxedValueTypes.js";
export interface Value<T extends NonBoxedValueTypes | BoxedValueTypes | Array<Value<BoxedValueTypes | Array<Value<BoxedValueTypes>>>>> {
import { ValueType } from "./ValueType.js";
export interface Value<T extends ValueType | BoxedValueTypes | Array<Value<BoxedValueTypes | Array<Value<BoxedValueTypes>>>>> {
getValue(): T;

@@ -6,0 +6,0 @@ equals(other: Value<any>): boolean;

{
"name": "ifc-expressions",
"version": "2.2.0-beta.0",
"version": "2.3.0-beta.0",
"description": "Parsing and evaluation of IFC expressions",

@@ -5,0 +5,0 @@ "main": "dist/cjs/IfcExpression.js",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet