mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-31 04:23:40 +00:00
Bugfix/sdk misc (#2847)
* misc sdk fixes * version bump * formatting * add missing dependency to root * alpha.16 and beta.17 * beta.18
This commit is contained in:
@@ -9,7 +9,9 @@ export class GetSystemSmtp {
|
||||
*/
|
||||
const() {
|
||||
return this.effects.getSystemSmtp({
|
||||
callback: () => this.effects.constRetry(),
|
||||
callback:
|
||||
this.effects.constRetry &&
|
||||
(() => this.effects.constRetry && this.effects.constRetry()),
|
||||
})
|
||||
}
|
||||
/**
|
||||
|
||||
@@ -24,10 +24,7 @@ export function partialDiff<T>(
|
||||
return
|
||||
}
|
||||
} else if (typeof prev === "object" && typeof next === "object") {
|
||||
if (prev === null) {
|
||||
return { diff: next }
|
||||
}
|
||||
if (next === null) return
|
||||
if (prev === null || next === null) return { diff: next }
|
||||
const res = { diff: {} as Record<keyof T, any> }
|
||||
for (let key in next) {
|
||||
const diff = partialDiff(prev[key], next[key])
|
||||
|
||||
@@ -217,7 +217,9 @@ export class GetServiceInterface {
|
||||
*/
|
||||
async const() {
|
||||
const { id, packageId } = this.opts
|
||||
const callback = () => this.effects.constRetry()
|
||||
const callback =
|
||||
this.effects.constRetry &&
|
||||
(() => this.effects.constRetry && this.effects.constRetry())
|
||||
const interfaceFilled = await makeInterfaceFilled({
|
||||
effects: this.effects,
|
||||
id,
|
||||
|
||||
@@ -51,7 +51,9 @@ export class GetServiceInterfaces {
|
||||
*/
|
||||
async const() {
|
||||
const { packageId } = this.opts
|
||||
const callback = () => this.effects.constRetry()
|
||||
const callback =
|
||||
this.effects.constRetry &&
|
||||
(() => this.effects.constRetry && this.effects.constRetry())
|
||||
const interfaceFilled: ServiceInterfaceFilled[] =
|
||||
await makeManyInterfaceFilled({
|
||||
effects: this.effects,
|
||||
|
||||
Reference in New Issue
Block a user