@flowgram.ai/variable-core 0.4.7 → 0.4.8
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/esm/index.js +15 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.mts +14 -2
- package/dist/index.d.ts +14 -2
- package/dist/index.js +15 -2
- package/dist/index.js.map +1 -1
- package/package.json +5 -5
package/dist/esm/index.js
CHANGED
|
@@ -673,7 +673,17 @@ var StringType = class extends BaseType {
|
|
|
673
673
|
super(...arguments);
|
|
674
674
|
this.flags = 8 /* BasicType */;
|
|
675
675
|
}
|
|
676
|
-
|
|
676
|
+
/**
|
|
677
|
+
* https://json-schema.org/understanding-json-schema/reference/type#format
|
|
678
|
+
*/
|
|
679
|
+
get format() {
|
|
680
|
+
return this._format;
|
|
681
|
+
}
|
|
682
|
+
fromJSON(json) {
|
|
683
|
+
if (json?.format !== this._format) {
|
|
684
|
+
this._format = json?.format;
|
|
685
|
+
this.fireChange();
|
|
686
|
+
}
|
|
677
687
|
}
|
|
678
688
|
};
|
|
679
689
|
StringType.kind = "String" /* String */;
|
|
@@ -1541,7 +1551,10 @@ ASTRegisters = __decorateClass([
|
|
|
1541
1551
|
// src/ast/factory.ts
|
|
1542
1552
|
var ASTFactory;
|
|
1543
1553
|
((ASTFactory2) => {
|
|
1544
|
-
ASTFactory2.createString = () => ({
|
|
1554
|
+
ASTFactory2.createString = (json) => ({
|
|
1555
|
+
kind: "String" /* String */,
|
|
1556
|
+
...json || {}
|
|
1557
|
+
});
|
|
1545
1558
|
ASTFactory2.createNumber = () => ({ kind: "Number" /* Number */ });
|
|
1546
1559
|
ASTFactory2.createBoolean = () => ({ kind: "Boolean" /* Boolean */ });
|
|
1547
1560
|
ASTFactory2.createInteger = () => ({ kind: "Integer" /* Integer */ });
|