@almadar/core 4.8.1 → 4.9.0
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/domain-language/index.js +2 -3
- package/dist/domain-language/index.js.map +1 -1
- package/dist/index.d.ts +1 -2
- package/dist/index.js +3 -6
- package/dist/index.js.map +1 -1
- package/dist/types/index.d.ts +1 -32
- package/dist/types/index.js +1 -4
- package/dist/types/index.js.map +1 -1
- package/package.json +2 -3
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { getPatternDefinition } from '@almadar/patterns';
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
-
import '@almadar/operators';
|
|
4
3
|
|
|
5
4
|
// src/domain-language/tokens.ts
|
|
6
5
|
var TokenType = /* @__PURE__ */ ((TokenType2) => {
|
|
@@ -4232,7 +4231,7 @@ function formatSExprToDomain(expr, context) {
|
|
|
4232
4231
|
if (isControlOperator(op)) {
|
|
4233
4232
|
return formatControl(op, args);
|
|
4234
4233
|
}
|
|
4235
|
-
if (
|
|
4234
|
+
if (isEffectOperator(op)) {
|
|
4236
4235
|
return formatEffect(op, args);
|
|
4237
4236
|
}
|
|
4238
4237
|
if (op.includes("/")) {
|
|
@@ -4264,7 +4263,7 @@ function isLogicalOperator(op) {
|
|
|
4264
4263
|
function isControlOperator(op) {
|
|
4265
4264
|
return CONTROL_OPERATORS.includes(op);
|
|
4266
4265
|
}
|
|
4267
|
-
function
|
|
4266
|
+
function isEffectOperator(op) {
|
|
4268
4267
|
return EFFECT_OPERATORS.includes(op);
|
|
4269
4268
|
}
|
|
4270
4269
|
function formatPrimitive(value) {
|