@rs-x/expression-parser 0.4.9 → 0.4.10
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/dist/index.d.ts +5 -5
- package/dist/index.js +13 -13
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IDisposable, IDisposableOwner, AnyFunction, ConstructorType, IIndexValueAccessor, ISingletonFactory, SingletonFactory,
|
|
1
|
+
import { IDisposable, IDisposableOwner, AnyFunction, ConstructorType, IIndexValueAccessor, ISingletonFactory, SingletonFactory, IDeepCloneExcept, ContainerModule } from '@rs-x/core';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
import { MustProxify as MustProxify$1, IStateManager as IStateManager$1, IStateChange as IStateChange$1, IContextChanged as IContextChanged$1, IMustProxifyItemHandlerFactory, IObjectObserverProxyPairFactory, IObserverProxyPair, IObserver, IProxyTarget } from '@rs-x/state-manager';
|
|
4
4
|
|
|
@@ -542,10 +542,10 @@ declare class ExpressionManager extends SingletonFactory<object, object, IExpres
|
|
|
542
542
|
protected createInstance(context: object, id: object): IExpressionForContextManager;
|
|
543
543
|
}
|
|
544
544
|
|
|
545
|
-
declare class
|
|
545
|
+
declare class DeepCloneExceptWithExpressionSupport implements IDeepCloneExcept {
|
|
546
546
|
private readonly _defaultDeepCloneValueGetter;
|
|
547
|
-
constructor(_defaultDeepCloneValueGetter:
|
|
548
|
-
|
|
547
|
+
constructor(_defaultDeepCloneValueGetter: IDeepCloneExcept);
|
|
548
|
+
except(source: unknown): unknown;
|
|
549
549
|
}
|
|
550
550
|
|
|
551
551
|
type IExpressionIndexAccessor = IIndexValueAccessor<unknown, string>;
|
|
@@ -698,4 +698,4 @@ declare const RsXExpressionParserInjectionTokens: {
|
|
|
698
698
|
declare const RsXExpressionParserModule: ContainerModule;
|
|
699
699
|
declare function unloadRsXExpressionParserModule(): Promise<void>;
|
|
700
700
|
|
|
701
|
-
export { AbstractExpression, AdditionExpression, ArrayExpression, ArrayIndexOwnerResolver, BinaryExpression, BitwiseAndExpression, BitwiseLeftShiftExpression, BitwiseNotExpression, BitwiseOrExpression, BitwiseRightShiftExpression, BitwiseUnsignedRightShiftExpression, BitwiseXorExpression, CollectionExpression, ConditionalExpression, ConstantBigIntExpression, ConstantBooleanExpression, ConstantExpression, ConstantNullExpression, ConstantNumberExpression, ConstantRegExpExpression, ConstantStringExpression,
|
|
701
|
+
export { AbstractExpression, AdditionExpression, ArrayExpression, ArrayIndexOwnerResolver, BinaryExpression, BitwiseAndExpression, BitwiseLeftShiftExpression, BitwiseNotExpression, BitwiseOrExpression, BitwiseRightShiftExpression, BitwiseUnsignedRightShiftExpression, BitwiseXorExpression, CollectionExpression, ConditionalExpression, ConstantBigIntExpression, ConstantBooleanExpression, ConstantExpression, ConstantNullExpression, ConstantNumberExpression, ConstantRegExpExpression, ConstantStringExpression, DeepCloneExceptWithExpressionSupport, DefaultIdentifierOwnerResolver, DivisionExpression, EqualityExpression, ExponentiationExpression, ExpressionChangeTransactionManager, ExpressionFactory, ExpressionIndexAccessor, ExpressionManager, ExpressionObserverFactory, ExpressionObserverProxyPairFactory, ExpressionType, FunctionExpression, GreaterThanExpression, GreaterThanOrEqualExpression, type IChangePathValue, type IExpression, type IExpressionChangeCommitHandler, type IExpressionChangeTransactionManager, type IExpressionFactory, type IExpressionForContextManager, type IExpressionIndexAccessor, type IExpressionInfo, type IExpressionInitializeConfig, type IExpressionManager, type IExpressionObserverData, type IExpressionObserverFactory, type IExpressionObserverProxyPair, type IExpressionParser, type IIdentifierInitializeConfig, type IIdentifierOwnerResolver, type IMustProxifyHandler, type IPropertyPath, IdentifierExpression, InExpression, IndexExpression, IndexValueObserver, InequalityExpression, InstanceofExpression, JsEspreeExpressionParser, LessThanExpression, LessThanOrEqualExpression, LogicalAndExpression, LogicalNotExpression, LogicalOrExpression, MapKeyOwnerResolver, MemberExpression, MultiplicationExpression, NewExpression, NullishCoalescingExpression, ObjectExpression, ParameterizedExpression, PropertyExpression, PropertyOwnerResolver, RemainderExpression, RsXExpressionParserInjectionTokens, RsXExpressionParserModule, SequenceExpression, SpreadExpression, StrictEqualityExpression, StrictInequalityExpression, SubtractionExpression, TemplateStringExpression, TypeofExpression, UnaryNegationExpression, UnaryPlusExpression, unloadRsXExpressionParserModule };
|
package/dist/index.js
CHANGED
|
@@ -8451,7 +8451,7 @@ ExpressionManager = _ts_decorate3([
|
|
|
8451
8451
|
])
|
|
8452
8452
|
], ExpressionManager);
|
|
8453
8453
|
|
|
8454
|
-
// lib/expression-observer/deep-clone-
|
|
8454
|
+
// lib/expression-observer/deep-clone-except-with-expression-support.ts
|
|
8455
8455
|
import { Inject as Inject4, Injectable as Injectable4, RsXCoreInjectionTokens } from "@rs-x/core";
|
|
8456
8456
|
|
|
8457
8457
|
// lib/expressions/abstract-expression.ts
|
|
@@ -9724,7 +9724,7 @@ var UnaryNegationExpression = class extends ParameterizedExpression {
|
|
|
9724
9724
|
}
|
|
9725
9725
|
};
|
|
9726
9726
|
|
|
9727
|
-
// lib/expression-observer/deep-clone-
|
|
9727
|
+
// lib/expression-observer/deep-clone-except-with-expression-support.ts
|
|
9728
9728
|
function _ts_decorate4(decorators, target, key, desc) {
|
|
9729
9729
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
9730
9730
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -9742,29 +9742,29 @@ function _ts_param4(paramIndex, decorator) {
|
|
|
9742
9742
|
};
|
|
9743
9743
|
}
|
|
9744
9744
|
__name(_ts_param4, "_ts_param");
|
|
9745
|
-
var
|
|
9745
|
+
var DeepCloneExceptWithExpressionSupport = class {
|
|
9746
9746
|
static {
|
|
9747
|
-
__name(this, "
|
|
9747
|
+
__name(this, "DeepCloneExceptWithExpressionSupport");
|
|
9748
9748
|
}
|
|
9749
9749
|
_defaultDeepCloneValueGetter;
|
|
9750
9750
|
constructor(_defaultDeepCloneValueGetter) {
|
|
9751
9751
|
this._defaultDeepCloneValueGetter = _defaultDeepCloneValueGetter;
|
|
9752
9752
|
}
|
|
9753
|
-
|
|
9753
|
+
except(source) {
|
|
9754
9754
|
if (source instanceof AbstractExpression) {
|
|
9755
9755
|
return source.value;
|
|
9756
9756
|
}
|
|
9757
|
-
return this._defaultDeepCloneValueGetter.
|
|
9757
|
+
return this._defaultDeepCloneValueGetter.except(source);
|
|
9758
9758
|
}
|
|
9759
9759
|
};
|
|
9760
|
-
|
|
9760
|
+
DeepCloneExceptWithExpressionSupport = _ts_decorate4([
|
|
9761
9761
|
Injectable4(),
|
|
9762
|
-
_ts_param4(0, Inject4(RsXCoreInjectionTokens.
|
|
9762
|
+
_ts_param4(0, Inject4(RsXCoreInjectionTokens.IDeepCloneExcept)),
|
|
9763
9763
|
_ts_metadata4("design:type", Function),
|
|
9764
9764
|
_ts_metadata4("design:paramtypes", [
|
|
9765
|
-
typeof
|
|
9765
|
+
typeof IDeepCloneExcept === "undefined" ? Object : IDeepCloneExcept
|
|
9766
9766
|
])
|
|
9767
|
-
],
|
|
9767
|
+
], DeepCloneExceptWithExpressionSupport);
|
|
9768
9768
|
|
|
9769
9769
|
// lib/expression-observer/expression-index-accessor.ts
|
|
9770
9770
|
import { Injectable as Injectable5, Type as Type3, UnsupportedException } from "@rs-x/core";
|
|
@@ -16959,8 +16959,8 @@ import { ContainerModule, defaultIndexValueAccessorList, InjectionContainer, ove
|
|
|
16959
16959
|
import { defaultObjectObserverProxyPairFactoryList, RsXStateManagerInjectionTokens as RsXStateManagerInjectionTokens3, RsXStateManagerModule } from "@rs-x/state-manager";
|
|
16960
16960
|
InjectionContainer.load(RsXStateManagerModule);
|
|
16961
16961
|
var RsXExpressionParserModule = new ContainerModule((options) => {
|
|
16962
|
-
options.unbind(RsXCoreInjectionTokens3.
|
|
16963
|
-
options.bind(RsXCoreInjectionTokens3.
|
|
16962
|
+
options.unbind(RsXCoreInjectionTokens3.DefaultDeepCloneExcept);
|
|
16963
|
+
options.bind(RsXCoreInjectionTokens3.DefaultDeepCloneExcept).to(DeepCloneExceptWithExpressionSupport).inSingletonScope();
|
|
16964
16964
|
options.bind(RsXExpressionParserInjectionTokens.IExpressionChangeTransactionManager).to(ExpressionChangeTransactionManager).inSingletonScope();
|
|
16965
16965
|
options.bind(RsXExpressionParserInjectionTokens.IExpressionParser).to(JsEspreeExpressionParser).inSingletonScope();
|
|
16966
16966
|
options.bind(RsXExpressionParserInjectionTokens.IExpressionManager).to(ExpressionManager).inSingletonScope();
|
|
@@ -17023,7 +17023,7 @@ export {
|
|
|
17023
17023
|
ConstantNumberExpression,
|
|
17024
17024
|
ConstantRegExpExpression,
|
|
17025
17025
|
ConstantStringExpression,
|
|
17026
|
-
|
|
17026
|
+
DeepCloneExceptWithExpressionSupport,
|
|
17027
17027
|
DefaultIdentifierOwnerResolver,
|
|
17028
17028
|
DivisionExpression,
|
|
17029
17029
|
EqualityExpression,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rs-x/expression-parser",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.10",
|
|
4
4
|
"description": "Reactive JavaScript expression parser with observable AST integration for RS-X",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -38,8 +38,8 @@
|
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"astring": "^1.9.0",
|
|
41
|
-
"@rs-x/core": "0.4.
|
|
42
|
-
"@rs-x/state-manager": "0.4.
|
|
41
|
+
"@rs-x/core": "0.4.10",
|
|
42
|
+
"@rs-x/state-manager": "0.4.10"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"tsup": "^8.5.1",
|