@lace-cloud/host 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 +2 -2
package/dist/index.cjs
CHANGED
|
@@ -1890,7 +1890,7 @@ var Local = {
|
|
|
1890
1890
|
}
|
|
1891
1891
|
};
|
|
1892
1892
|
function createBaseUse() {
|
|
1893
|
-
return { id: "", module: "", inputs: {}, depends_on: [], count: void 0, for_each: void 0 };
|
|
1893
|
+
return { id: "", module: "", inputs: {}, depends_on: [], count: void 0, for_each: void 0, providers: {} };
|
|
1894
1894
|
}
|
|
1895
1895
|
var Use = {
|
|
1896
1896
|
encode(message, writer = new import_wire3.BinaryWriter()) {
|
|
@@ -1912,6 +1912,9 @@ var Use = {
|
|
|
1912
1912
|
if (message.for_each !== void 0) {
|
|
1913
1913
|
Binding.encode(message.for_each, writer.uint32(50).fork()).join();
|
|
1914
1914
|
}
|
|
1915
|
+
globalThis.Object.entries(message.providers).forEach(([key, value]) => {
|
|
1916
|
+
Use_ProvidersEntry.encode({ key, value }, writer.uint32(58).fork()).join();
|
|
1917
|
+
});
|
|
1915
1918
|
return writer;
|
|
1916
1919
|
},
|
|
1917
1920
|
decode(input, length) {
|
|
@@ -1966,6 +1969,16 @@ var Use = {
|
|
|
1966
1969
|
message.for_each = Binding.decode(reader, reader.uint32());
|
|
1967
1970
|
continue;
|
|
1968
1971
|
}
|
|
1972
|
+
case 7: {
|
|
1973
|
+
if (tag !== 58) {
|
|
1974
|
+
break;
|
|
1975
|
+
}
|
|
1976
|
+
const entry7 = Use_ProvidersEntry.decode(reader, reader.uint32());
|
|
1977
|
+
if (entry7.value !== void 0) {
|
|
1978
|
+
message.providers[entry7.key] = entry7.value;
|
|
1979
|
+
}
|
|
1980
|
+
continue;
|
|
1981
|
+
}
|
|
1969
1982
|
}
|
|
1970
1983
|
if ((tag & 7) === 4 || tag === 0) {
|
|
1971
1984
|
break;
|
|
@@ -1987,7 +2000,14 @@ var Use = {
|
|
|
1987
2000
|
) : {},
|
|
1988
2001
|
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)) : [],
|
|
1989
2002
|
count: isSet2(object.count) ? Binding.fromJSON(object.count) : void 0,
|
|
1990
|
-
for_each: isSet2(object.forEach) ? Binding.fromJSON(object.forEach) : isSet2(object.for_each) ? Binding.fromJSON(object.for_each) : void 0
|
|
2003
|
+
for_each: isSet2(object.forEach) ? Binding.fromJSON(object.forEach) : isSet2(object.for_each) ? Binding.fromJSON(object.for_each) : void 0,
|
|
2004
|
+
providers: isObject2(object.providers) ? globalThis.Object.entries(object.providers).reduce(
|
|
2005
|
+
(acc, [key, value]) => {
|
|
2006
|
+
acc[key] = globalThis.String(value);
|
|
2007
|
+
return acc;
|
|
2008
|
+
},
|
|
2009
|
+
{}
|
|
2010
|
+
) : {}
|
|
1991
2011
|
};
|
|
1992
2012
|
},
|
|
1993
2013
|
toJSON(message) {
|
|
@@ -2016,6 +2036,15 @@ var Use = {
|
|
|
2016
2036
|
if (message.for_each !== void 0) {
|
|
2017
2037
|
obj.forEach = Binding.toJSON(message.for_each);
|
|
2018
2038
|
}
|
|
2039
|
+
if (message.providers) {
|
|
2040
|
+
const entries = globalThis.Object.entries(message.providers);
|
|
2041
|
+
if (entries.length > 0) {
|
|
2042
|
+
obj.providers = {};
|
|
2043
|
+
entries.forEach(([k, v]) => {
|
|
2044
|
+
obj.providers[k] = v;
|
|
2045
|
+
});
|
|
2046
|
+
}
|
|
2047
|
+
}
|
|
2019
2048
|
return obj;
|
|
2020
2049
|
},
|
|
2021
2050
|
create(base) {
|
|
@@ -2037,6 +2066,15 @@ var Use = {
|
|
|
2037
2066
|
message.depends_on = object.depends_on?.map((e) => e) || [];
|
|
2038
2067
|
message.count = object.count !== void 0 && object.count !== null ? Binding.fromPartial(object.count) : void 0;
|
|
2039
2068
|
message.for_each = object.for_each !== void 0 && object.for_each !== null ? Binding.fromPartial(object.for_each) : void 0;
|
|
2069
|
+
message.providers = globalThis.Object.entries(object.providers ?? {}).reduce(
|
|
2070
|
+
(acc, [key, value]) => {
|
|
2071
|
+
if (value !== void 0) {
|
|
2072
|
+
acc[key] = globalThis.String(value);
|
|
2073
|
+
}
|
|
2074
|
+
return acc;
|
|
2075
|
+
},
|
|
2076
|
+
{}
|
|
2077
|
+
);
|
|
2040
2078
|
return message;
|
|
2041
2079
|
}
|
|
2042
2080
|
};
|
|
@@ -2108,6 +2146,74 @@ var Use_InputsEntry = {
|
|
|
2108
2146
|
return message;
|
|
2109
2147
|
}
|
|
2110
2148
|
};
|
|
2149
|
+
function createBaseUse_ProvidersEntry() {
|
|
2150
|
+
return { key: "", value: "" };
|
|
2151
|
+
}
|
|
2152
|
+
var Use_ProvidersEntry = {
|
|
2153
|
+
encode(message, writer = new import_wire3.BinaryWriter()) {
|
|
2154
|
+
if (message.key !== "") {
|
|
2155
|
+
writer.uint32(10).string(message.key);
|
|
2156
|
+
}
|
|
2157
|
+
if (message.value !== "") {
|
|
2158
|
+
writer.uint32(18).string(message.value);
|
|
2159
|
+
}
|
|
2160
|
+
return writer;
|
|
2161
|
+
},
|
|
2162
|
+
decode(input, length) {
|
|
2163
|
+
const reader = input instanceof import_wire3.BinaryReader ? input : new import_wire3.BinaryReader(input);
|
|
2164
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
2165
|
+
const message = createBaseUse_ProvidersEntry();
|
|
2166
|
+
while (reader.pos < end) {
|
|
2167
|
+
const tag = reader.uint32();
|
|
2168
|
+
switch (tag >>> 3) {
|
|
2169
|
+
case 1: {
|
|
2170
|
+
if (tag !== 10) {
|
|
2171
|
+
break;
|
|
2172
|
+
}
|
|
2173
|
+
message.key = reader.string();
|
|
2174
|
+
continue;
|
|
2175
|
+
}
|
|
2176
|
+
case 2: {
|
|
2177
|
+
if (tag !== 18) {
|
|
2178
|
+
break;
|
|
2179
|
+
}
|
|
2180
|
+
message.value = reader.string();
|
|
2181
|
+
continue;
|
|
2182
|
+
}
|
|
2183
|
+
}
|
|
2184
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2185
|
+
break;
|
|
2186
|
+
}
|
|
2187
|
+
reader.skip(tag & 7);
|
|
2188
|
+
}
|
|
2189
|
+
return message;
|
|
2190
|
+
},
|
|
2191
|
+
fromJSON(object) {
|
|
2192
|
+
return {
|
|
2193
|
+
key: isSet2(object.key) ? globalThis.String(object.key) : "",
|
|
2194
|
+
value: isSet2(object.value) ? globalThis.String(object.value) : ""
|
|
2195
|
+
};
|
|
2196
|
+
},
|
|
2197
|
+
toJSON(message) {
|
|
2198
|
+
const obj = {};
|
|
2199
|
+
if (message.key !== "") {
|
|
2200
|
+
obj.key = message.key;
|
|
2201
|
+
}
|
|
2202
|
+
if (message.value !== "") {
|
|
2203
|
+
obj.value = message.value;
|
|
2204
|
+
}
|
|
2205
|
+
return obj;
|
|
2206
|
+
},
|
|
2207
|
+
create(base) {
|
|
2208
|
+
return Use_ProvidersEntry.fromPartial(base ?? {});
|
|
2209
|
+
},
|
|
2210
|
+
fromPartial(object) {
|
|
2211
|
+
const message = createBaseUse_ProvidersEntry();
|
|
2212
|
+
message.key = object.key ?? "";
|
|
2213
|
+
message.value = object.value ?? "";
|
|
2214
|
+
return message;
|
|
2215
|
+
}
|
|
2216
|
+
};
|
|
2111
2217
|
function createBaseResource() {
|
|
2112
2218
|
return {
|
|
2113
2219
|
id: "",
|