@lace-cloud/canvas 0.11.0 → 0.13.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/index.cjs +108 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +9 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.mjs +108 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -6553,7 +6553,7 @@ var Local = {
|
|
|
6553
6553
|
}
|
|
6554
6554
|
};
|
|
6555
6555
|
function createBaseUse() {
|
|
6556
|
-
return { id: "", module: "", inputs: {}, depends_on: [], count: void 0, for_each: void 0 };
|
|
6556
|
+
return { id: "", module: "", inputs: {}, depends_on: [], count: void 0, for_each: void 0, providers: {} };
|
|
6557
6557
|
}
|
|
6558
6558
|
var Use = {
|
|
6559
6559
|
encode(message, writer = new import_wire3.BinaryWriter()) {
|
|
@@ -6575,6 +6575,9 @@ var Use = {
|
|
|
6575
6575
|
if (message.for_each !== void 0) {
|
|
6576
6576
|
Binding.encode(message.for_each, writer.uint32(50).fork()).join();
|
|
6577
6577
|
}
|
|
6578
|
+
globalThis.Object.entries(message.providers).forEach(([key, value]) => {
|
|
6579
|
+
Use_ProvidersEntry.encode({ key, value }, writer.uint32(58).fork()).join();
|
|
6580
|
+
});
|
|
6578
6581
|
return writer;
|
|
6579
6582
|
},
|
|
6580
6583
|
decode(input, length) {
|
|
@@ -6629,6 +6632,16 @@ var Use = {
|
|
|
6629
6632
|
message.for_each = Binding.decode(reader, reader.uint32());
|
|
6630
6633
|
continue;
|
|
6631
6634
|
}
|
|
6635
|
+
case 7: {
|
|
6636
|
+
if (tag !== 58) {
|
|
6637
|
+
break;
|
|
6638
|
+
}
|
|
6639
|
+
const entry7 = Use_ProvidersEntry.decode(reader, reader.uint32());
|
|
6640
|
+
if (entry7.value !== void 0) {
|
|
6641
|
+
message.providers[entry7.key] = entry7.value;
|
|
6642
|
+
}
|
|
6643
|
+
continue;
|
|
6644
|
+
}
|
|
6632
6645
|
}
|
|
6633
6646
|
if ((tag & 7) === 4 || tag === 0) {
|
|
6634
6647
|
break;
|
|
@@ -6650,7 +6663,14 @@ var Use = {
|
|
|
6650
6663
|
) : {},
|
|
6651
6664
|
depends_on: globalThis.Array.isArray(object?.dependsOn) ? object.dependsOn.map((e) => globalThis.String(e)) : globalThis.Array.isArray(object?.depends_on) ? object.depends_on.map((e) => globalThis.String(e)) : [],
|
|
6652
6665
|
count: isSet2(object.count) ? Binding.fromJSON(object.count) : void 0,
|
|
6653
|
-
for_each: isSet2(object.forEach) ? Binding.fromJSON(object.forEach) : isSet2(object.for_each) ? Binding.fromJSON(object.for_each) : void 0
|
|
6666
|
+
for_each: isSet2(object.forEach) ? Binding.fromJSON(object.forEach) : isSet2(object.for_each) ? Binding.fromJSON(object.for_each) : void 0,
|
|
6667
|
+
providers: isObject2(object.providers) ? globalThis.Object.entries(object.providers).reduce(
|
|
6668
|
+
(acc, [key, value]) => {
|
|
6669
|
+
acc[key] = globalThis.String(value);
|
|
6670
|
+
return acc;
|
|
6671
|
+
},
|
|
6672
|
+
{}
|
|
6673
|
+
) : {}
|
|
6654
6674
|
};
|
|
6655
6675
|
},
|
|
6656
6676
|
toJSON(message) {
|
|
@@ -6679,6 +6699,15 @@ var Use = {
|
|
|
6679
6699
|
if (message.for_each !== void 0) {
|
|
6680
6700
|
obj.forEach = Binding.toJSON(message.for_each);
|
|
6681
6701
|
}
|
|
6702
|
+
if (message.providers) {
|
|
6703
|
+
const entries = globalThis.Object.entries(message.providers);
|
|
6704
|
+
if (entries.length > 0) {
|
|
6705
|
+
obj.providers = {};
|
|
6706
|
+
entries.forEach(([k, v]) => {
|
|
6707
|
+
obj.providers[k] = v;
|
|
6708
|
+
});
|
|
6709
|
+
}
|
|
6710
|
+
}
|
|
6682
6711
|
return obj;
|
|
6683
6712
|
},
|
|
6684
6713
|
create(base) {
|
|
@@ -6700,6 +6729,15 @@ var Use = {
|
|
|
6700
6729
|
message.depends_on = object.depends_on?.map((e) => e) || [];
|
|
6701
6730
|
message.count = object.count !== void 0 && object.count !== null ? Binding.fromPartial(object.count) : void 0;
|
|
6702
6731
|
message.for_each = object.for_each !== void 0 && object.for_each !== null ? Binding.fromPartial(object.for_each) : void 0;
|
|
6732
|
+
message.providers = globalThis.Object.entries(object.providers ?? {}).reduce(
|
|
6733
|
+
(acc, [key, value]) => {
|
|
6734
|
+
if (value !== void 0) {
|
|
6735
|
+
acc[key] = globalThis.String(value);
|
|
6736
|
+
}
|
|
6737
|
+
return acc;
|
|
6738
|
+
},
|
|
6739
|
+
{}
|
|
6740
|
+
);
|
|
6703
6741
|
return message;
|
|
6704
6742
|
}
|
|
6705
6743
|
};
|
|
@@ -6771,6 +6809,74 @@ var Use_InputsEntry = {
|
|
|
6771
6809
|
return message;
|
|
6772
6810
|
}
|
|
6773
6811
|
};
|
|
6812
|
+
function createBaseUse_ProvidersEntry() {
|
|
6813
|
+
return { key: "", value: "" };
|
|
6814
|
+
}
|
|
6815
|
+
var Use_ProvidersEntry = {
|
|
6816
|
+
encode(message, writer = new import_wire3.BinaryWriter()) {
|
|
6817
|
+
if (message.key !== "") {
|
|
6818
|
+
writer.uint32(10).string(message.key);
|
|
6819
|
+
}
|
|
6820
|
+
if (message.value !== "") {
|
|
6821
|
+
writer.uint32(18).string(message.value);
|
|
6822
|
+
}
|
|
6823
|
+
return writer;
|
|
6824
|
+
},
|
|
6825
|
+
decode(input, length) {
|
|
6826
|
+
const reader = input instanceof import_wire3.BinaryReader ? input : new import_wire3.BinaryReader(input);
|
|
6827
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
6828
|
+
const message = createBaseUse_ProvidersEntry();
|
|
6829
|
+
while (reader.pos < end) {
|
|
6830
|
+
const tag = reader.uint32();
|
|
6831
|
+
switch (tag >>> 3) {
|
|
6832
|
+
case 1: {
|
|
6833
|
+
if (tag !== 10) {
|
|
6834
|
+
break;
|
|
6835
|
+
}
|
|
6836
|
+
message.key = reader.string();
|
|
6837
|
+
continue;
|
|
6838
|
+
}
|
|
6839
|
+
case 2: {
|
|
6840
|
+
if (tag !== 18) {
|
|
6841
|
+
break;
|
|
6842
|
+
}
|
|
6843
|
+
message.value = reader.string();
|
|
6844
|
+
continue;
|
|
6845
|
+
}
|
|
6846
|
+
}
|
|
6847
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
6848
|
+
break;
|
|
6849
|
+
}
|
|
6850
|
+
reader.skip(tag & 7);
|
|
6851
|
+
}
|
|
6852
|
+
return message;
|
|
6853
|
+
},
|
|
6854
|
+
fromJSON(object) {
|
|
6855
|
+
return {
|
|
6856
|
+
key: isSet2(object.key) ? globalThis.String(object.key) : "",
|
|
6857
|
+
value: isSet2(object.value) ? globalThis.String(object.value) : ""
|
|
6858
|
+
};
|
|
6859
|
+
},
|
|
6860
|
+
toJSON(message) {
|
|
6861
|
+
const obj = {};
|
|
6862
|
+
if (message.key !== "") {
|
|
6863
|
+
obj.key = message.key;
|
|
6864
|
+
}
|
|
6865
|
+
if (message.value !== "") {
|
|
6866
|
+
obj.value = message.value;
|
|
6867
|
+
}
|
|
6868
|
+
return obj;
|
|
6869
|
+
},
|
|
6870
|
+
create(base) {
|
|
6871
|
+
return Use_ProvidersEntry.fromPartial(base ?? {});
|
|
6872
|
+
},
|
|
6873
|
+
fromPartial(object) {
|
|
6874
|
+
const message = createBaseUse_ProvidersEntry();
|
|
6875
|
+
message.key = object.key ?? "";
|
|
6876
|
+
message.value = object.value ?? "";
|
|
6877
|
+
return message;
|
|
6878
|
+
}
|
|
6879
|
+
};
|
|
6774
6880
|
function createBaseResource() {
|
|
6775
6881
|
return {
|
|
6776
6882
|
id: "",
|