@devvit/multiplatform
Advanced tools
Comparing version 0.0.1-20240515-d1d86b7a to 0.0.1-20240516-46197509
type Nullable<T> = T | null | undefined | ||
export declare namespace net.devvit { | ||
class SubscribeCallbackParams<Req, Rsp> { | ||
constructor(request: Req, response: Rsp); | ||
get request(): Req; | ||
get response(): Rsp; | ||
copy(request?: Req, response?: Rsp): net.devvit.SubscribeCallbackParams<Req, Rsp>; | ||
toString(): string; | ||
hashCode(): number; | ||
equals(other: Nullable<any>): boolean; | ||
} | ||
} | ||
export declare namespace net.devvit { | ||
class EmptyOptions implements net.devvit.DispatcherOptions { | ||
@@ -18,4 +29,2 @@ constructor(); | ||
get timerSnapshot(): TimerSnapshot; | ||
getTypedSyncQueue(): any/* kotlin.collections.List<Event> */; | ||
getTypedAsyncQueue(): any/* kotlin.collections.List<Event> */; | ||
copy(state?: State, syncQueue?: Array<any>, asyncQueue?: Array<any>, localSnapshot?: RuntimeSnapshot, remoteSnapshot?: RuntimeSnapshot, timerSnapshot?: TimerSnapshot): net.devvit.DispatcherSnapshot<State, Event, RuntimeSnapshot, TimerSnapshot>; | ||
@@ -44,3 +53,3 @@ toString(): string; | ||
init(local: net.devvit.Runtime<Json, Ev, Json>, remote: net.devvit.Runtime<Json, Ev, Json>, timers: net.devvit.timer.TimerDelegate): void; | ||
subscribe<Req extends net.devvit.Request<Json, Ev>, Rsp extends net.devvit.Response<Json, Ev>>(callback: (p0: any/* net.devvit.SubscribeCallbackParams<Req, Rsp> */) => void): net.devvit.Unsubscriber; | ||
subscribe<Req extends net.devvit.Request<Json, Ev>, Rsp extends net.devvit.Response<Json, Ev>>(callback: (p0: net.devvit.SubscribeCallbackParams<Req, Rsp>) => void): net.devvit.Unsubscriber; | ||
submit(events: Array<Ev>): void; | ||
@@ -73,3 +82,3 @@ reset(): void; | ||
submit(events: Array<Ev>): void; | ||
subscribe<Req extends net.devvit.Request<State, Ev>, Rsp extends net.devvit.Response<State, Ev>>(callback: (p0: any/* net.devvit.SubscribeCallbackParams<Req, Rsp> */) => void): net.devvit.Unsubscriber; | ||
subscribe<Req extends net.devvit.Request<State, Ev>, Rsp extends net.devvit.Response<State, Ev>>(callback: (p0: net.devvit.SubscribeCallbackParams<Req, Rsp>) => void): net.devvit.Unsubscriber; | ||
} | ||
@@ -76,0 +85,0 @@ } |
@@ -78,11 +78,31 @@ (function (root, factory) { | ||
function SubscribeCallbackParams(request, response) { | ||
this.u5_1 = request; | ||
this.v5_1 = response; | ||
this.request = request; | ||
this.response = response; | ||
} | ||
protoOf(SubscribeCallbackParams).u5 = function () { | ||
return this.request; | ||
}; | ||
protoOf(SubscribeCallbackParams).v5 = function () { | ||
return this.response; | ||
}; | ||
protoOf(SubscribeCallbackParams).w5 = function () { | ||
return this.request; | ||
}; | ||
protoOf(SubscribeCallbackParams).x5 = function () { | ||
return this.response; | ||
}; | ||
protoOf(SubscribeCallbackParams).y5 = function (request, response) { | ||
return new SubscribeCallbackParams(request, response); | ||
}; | ||
protoOf(SubscribeCallbackParams).copy = function (request, response, $super) { | ||
request = request === VOID ? this.request : request; | ||
response = response === VOID ? this.response : response; | ||
return this.y5(request, response); | ||
}; | ||
protoOf(SubscribeCallbackParams).toString = function () { | ||
return 'SubscribeCallbackParams(request=' + this.u5_1 + ', response=' + this.v5_1 + ')'; | ||
return 'SubscribeCallbackParams(request=' + this.request + ', response=' + this.response + ')'; | ||
}; | ||
protoOf(SubscribeCallbackParams).hashCode = function () { | ||
var result = this.u5_1 == null ? 0 : hashCode(this.u5_1); | ||
result = imul(result, 31) + (this.v5_1 == null ? 0 : hashCode(this.v5_1)) | 0; | ||
var result = this.request == null ? 0 : hashCode(this.request); | ||
result = imul(result, 31) + (this.response == null ? 0 : hashCode(this.response)) | 0; | ||
return result; | ||
@@ -96,5 +116,5 @@ }; | ||
var tmp0_other_with_cast = other instanceof SubscribeCallbackParams ? other : THROW_CCE(); | ||
if (!equals(this.u5_1, tmp0_other_with_cast.u5_1)) | ||
if (!equals(this.request, tmp0_other_with_cast.request)) | ||
return false; | ||
if (!equals(this.v5_1, tmp0_other_with_cast.v5_1)) | ||
if (!equals(this.response, tmp0_other_with_cast.response)) | ||
return false; | ||
@@ -104,11 +124,11 @@ return true; | ||
function Callback(success, failure) { | ||
this.w5_1 = success; | ||
this.x5_1 = failure; | ||
this.z5_1 = success; | ||
this.a6_1 = failure; | ||
} | ||
protoOf(Callback).toString = function () { | ||
return 'Callback(success=' + this.w5_1 + ', failure=' + this.x5_1 + ')'; | ||
return 'Callback(success=' + this.z5_1 + ', failure=' + this.a6_1 + ')'; | ||
}; | ||
protoOf(Callback).hashCode = function () { | ||
var result = hashCode(this.w5_1); | ||
result = imul(result, 31) + hashCode(this.x5_1) | 0; | ||
var result = hashCode(this.z5_1); | ||
result = imul(result, 31) + hashCode(this.a6_1) | 0; | ||
return result; | ||
@@ -122,5 +142,5 @@ }; | ||
var tmp0_other_with_cast = other instanceof Callback ? other : THROW_CCE(); | ||
if (!equals(this.w5_1, tmp0_other_with_cast.w5_1)) | ||
if (!equals(this.z5_1, tmp0_other_with_cast.z5_1)) | ||
return false; | ||
if (!equals(this.x5_1, tmp0_other_with_cast.x5_1)) | ||
if (!equals(this.a6_1, tmp0_other_with_cast.a6_1)) | ||
return false; | ||
@@ -133,3 +153,3 @@ return true; | ||
} | ||
$this.d6_1.s5(['replaying events', events]); | ||
$this.g6_1.s5(['replaying events', events]); | ||
// Inline function 'kotlin.collections.groupBy' call | ||
@@ -159,10 +179,10 @@ // Inline function 'kotlin.collections.groupByTo' call | ||
var tmp0_elvis_lhs = grouped.p1(new Pair(true, true)); | ||
$this.i6_1.d5(0, tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs); | ||
$this.l6_1.d5(0, tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs); | ||
var tmp1_elvis_lhs = grouped.p1(new Pair(true, false)); | ||
$this.i6_1.n(tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs); | ||
$this.l6_1.n(tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs); | ||
var tmp2_elvis_lhs = grouped.p1(new Pair(false, true)); | ||
$this.h6_1.d5(0, tmp2_elvis_lhs == null ? emptyList() : tmp2_elvis_lhs); | ||
$this.k6_1.d5(0, tmp2_elvis_lhs == null ? emptyList() : tmp2_elvis_lhs); | ||
var tmp3_elvis_lhs = grouped.p1(new Pair(false, false)); | ||
$this.h6_1.n(tmp3_elvis_lhs == null ? emptyList() : tmp3_elvis_lhs); | ||
$this.q6(); | ||
$this.k6_1.n(tmp3_elvis_lhs == null ? emptyList() : tmp3_elvis_lhs); | ||
$this.t6(); | ||
} | ||
@@ -174,3 +194,3 @@ function processBatch($this, batch) { | ||
var isBatchSync = !(first(batch).async === true); | ||
var request = $this.z5_1.r6($this.state, batch); | ||
var request = $this.c6_1.u6($this.state, batch); | ||
var tmp; | ||
@@ -181,8 +201,8 @@ var tmp0_elvis_lhs = first(batch).remoteOnly; | ||
} else { | ||
tmp = !$this.s6().isReady(); | ||
tmp = !$this.v6().isReady(); | ||
} | ||
var isRemote = tmp; | ||
var runtime = isRemote ? $this.t6() : $this.s6(); | ||
var tmp2 = $this.e6_1; | ||
$this.e6_1 = tmp2 + 1 | 0; | ||
var runtime = isRemote ? $this.w6() : $this.v6(); | ||
var tmp2 = $this.h6_1; | ||
$this.h6_1 = tmp2 + 1 | 0; | ||
var requestId = tmp2; | ||
@@ -192,27 +212,27 @@ var tmp_0 = DispatcherImpl$processBatch$lambda($this, isRemote, request, requestId, isBatchSync); | ||
// Inline function 'kotlin.collections.set' call | ||
$this.k6_1.g1(requestId, cbs); | ||
runtime.handle($this.b6_1, request, cbs.w5_1, cbs.x5_1); | ||
$this.n6_1.g1(requestId, cbs); | ||
runtime.handle($this.e6_1, request, cbs.z5_1, cbs.a6_1); | ||
} | ||
function reset($this, isResettingTimers) { | ||
$this.state = $this.p6_1; | ||
$this.i6_1.e5(); | ||
$this.h6_1.e5(); | ||
$this.s6().reset(); | ||
$this.t6().reset(); | ||
$this.state = $this.s6_1; | ||
$this.l6_1.e5(); | ||
$this.k6_1.e5(); | ||
$this.v6().reset(); | ||
$this.w6().reset(); | ||
if (isResettingTimers) { | ||
$this.u6().clear(); | ||
$this.x6().clear(); | ||
} | ||
} | ||
function DispatcherImpl$subscribe$1(this$0, $typedCallback) { | ||
this.v6_1 = this$0; | ||
this.w6_1 = $typedCallback; | ||
this.y6_1 = this$0; | ||
this.z6_1 = $typedCallback; | ||
} | ||
protoOf(DispatcherImpl$subscribe$1).unsubscribe = function () { | ||
this.v6_1.l6_1.h(this.w6_1); | ||
this.y6_1.o6_1.h(this.z6_1); | ||
}; | ||
function DispatcherImpl$processBatch$lambda(this$0, $isRemote, $request, $requestId, $isBatchSync) { | ||
return function (rsp) { | ||
this$0.d6_1.s5([$isRemote ? 'remote' : 'local', 'runtime success', $request, rsp]); | ||
this$0.k6_1.h1($requestId); | ||
var tmp0_iterator = this$0.l6_1.j(); | ||
this$0.g6_1.s5([$isRemote ? 'remote' : 'local', 'runtime success', $request, rsp]); | ||
this$0.n6_1.h1($requestId); | ||
var tmp0_iterator = this$0.o6_1.j(); | ||
while (tmp0_iterator.k()) { | ||
@@ -225,5 +245,5 @@ var element = tmp0_iterator.m(); | ||
if ($isBatchSync) { | ||
this$0.state = this$0.a6_1.merge(this$0.state, rsp.state); | ||
this$0.j6_1 = false; | ||
this$0.q6(); | ||
this$0.state = this$0.d6_1.merge(this$0.state, rsp.state); | ||
this$0.m6_1 = false; | ||
this$0.t6(); | ||
tmp = Unit_instance; | ||
@@ -237,4 +257,4 @@ } | ||
return function (err) { | ||
this$0.d6_1.x6(['failed with error', err]); | ||
this$0.k6_1.h1($requestId); | ||
this$0.g6_1.a7(['failed with error', err]); | ||
this$0.n6_1.h1($requestId); | ||
// Inline function 'kotlin.collections.groupBy' call | ||
@@ -269,3 +289,3 @@ // Inline function 'kotlin.collections.groupByTo' call | ||
if (!(this_1 == null ? true : this_1.r())) { | ||
this$0.d6_1.y6(['rethrowing', err]); | ||
this$0.g6_1.b7(['rethrowing', err]); | ||
throw err; | ||
@@ -301,34 +321,34 @@ } | ||
options = options === VOID ? new EmptyOptions() : options; | ||
this.y5_1 = state; | ||
this.z5_1 = requestBuilder; | ||
this.a6_1 = stateOperations; | ||
this.b6_1 = method; | ||
this.c6_1 = options; | ||
this.d6_1 = new NiceLogger(this.c6_1.logger); | ||
this.e6_1 = 0; | ||
this.f6_1 = new NoOpDeduper(); | ||
this.g6_1 = new OneAtATimeAssembler(this.d6_1); | ||
this.h6_1 = ArrayDeque_init_$Create$(); | ||
this.i6_1 = ArrayDeque_init_$Create$(); | ||
this.j6_1 = false; | ||
this.b6_1 = state; | ||
this.c6_1 = requestBuilder; | ||
this.d6_1 = stateOperations; | ||
this.e6_1 = method; | ||
this.f6_1 = options; | ||
this.g6_1 = new NiceLogger(this.f6_1.logger); | ||
this.h6_1 = 0; | ||
this.i6_1 = new NoOpDeduper(); | ||
this.j6_1 = new OneAtATimeAssembler(this.g6_1); | ||
this.k6_1 = ArrayDeque_init_$Create$(); | ||
this.l6_1 = ArrayDeque_init_$Create$(); | ||
this.m6_1 = false; | ||
var tmp = this; | ||
// Inline function 'kotlin.collections.mutableMapOf' call | ||
tmp.k6_1 = LinkedHashMap_init_$Create$(); | ||
tmp.n6_1 = LinkedHashMap_init_$Create$(); | ||
var tmp_0 = this; | ||
// Inline function 'kotlin.collections.mutableListOf' call | ||
tmp_0.l6_1 = ArrayList_init_$Create$(); | ||
this.p6_1 = this.state; | ||
this.d6_1.s5(['constructed Dispatcher v2']); | ||
tmp_0.o6_1 = ArrayList_init_$Create$(); | ||
this.s6_1 = this.state; | ||
this.g6_1.s5(['constructed Dispatcher v2']); | ||
} | ||
protoOf(DispatcherImpl).z6 = function (_set____db54di) { | ||
this.y5_1 = _set____db54di; | ||
protoOf(DispatcherImpl).c7 = function (_set____db54di) { | ||
this.b6_1 = _set____db54di; | ||
}; | ||
protoOf(DispatcherImpl).a7 = function () { | ||
return this.y5_1; | ||
protoOf(DispatcherImpl).d7 = function () { | ||
return this.b6_1; | ||
}; | ||
protoOf(DispatcherImpl).b7 = function (_set____db54di) { | ||
this.m6_1 = _set____db54di; | ||
protoOf(DispatcherImpl).e7 = function (_set____db54di) { | ||
this.p6_1 = _set____db54di; | ||
}; | ||
protoOf(DispatcherImpl).s6 = function () { | ||
var tmp = this.m6_1; | ||
protoOf(DispatcherImpl).v6 = function () { | ||
var tmp = this.p6_1; | ||
if (!(tmp == null)) | ||
@@ -340,7 +360,7 @@ return tmp; | ||
}; | ||
protoOf(DispatcherImpl).c7 = function (_set____db54di) { | ||
this.n6_1 = _set____db54di; | ||
protoOf(DispatcherImpl).f7 = function (_set____db54di) { | ||
this.q6_1 = _set____db54di; | ||
}; | ||
protoOf(DispatcherImpl).t6 = function () { | ||
var tmp = this.n6_1; | ||
protoOf(DispatcherImpl).w6 = function () { | ||
var tmp = this.q6_1; | ||
if (!(tmp == null)) | ||
@@ -352,7 +372,7 @@ return tmp; | ||
}; | ||
protoOf(DispatcherImpl).d7 = function (_set____db54di) { | ||
this.o6_1 = _set____db54di; | ||
protoOf(DispatcherImpl).g7 = function (_set____db54di) { | ||
this.r6_1 = _set____db54di; | ||
}; | ||
protoOf(DispatcherImpl).u6 = function () { | ||
var tmp = this.o6_1; | ||
protoOf(DispatcherImpl).x6 = function () { | ||
var tmp = this.r6_1; | ||
if (!(tmp == null)) | ||
@@ -364,33 +384,38 @@ return tmp; | ||
}; | ||
protoOf(DispatcherImpl).e7 = function () { | ||
return this.p6_1; | ||
protoOf(DispatcherImpl).h7 = function () { | ||
return this.s6_1; | ||
}; | ||
protoOf(DispatcherImpl).init = function (local, remote, timers) { | ||
this.d6_1.s5(['Initializing Dispatcher', local, remote]); | ||
this.m6_1 = local; | ||
this.n6_1 = remote; | ||
this.o6_1 = timers; | ||
this.g6_1.s5(['Initializing Dispatcher', local, remote]); | ||
this.p6_1 = local; | ||
this.q6_1 = remote; | ||
this.r6_1 = timers; | ||
this.t6(); | ||
}; | ||
protoOf(DispatcherImpl).subscribe = function (callback) { | ||
var typedCallback = typeof callback === 'function' ? callback : THROW_CCE(); | ||
this.l6_1.g(typedCallback); | ||
this.o6_1.g(typedCallback); | ||
return new DispatcherImpl$subscribe$1(this, typedCallback); | ||
}; | ||
protoOf(DispatcherImpl).q6 = function () { | ||
this.d6_1.s5(['ticking']); | ||
if (!this.j6_1) { | ||
var batch = this.g6_1.q5(this.h6_1); | ||
protoOf(DispatcherImpl).t6 = function () { | ||
this.g6_1.s5(['ticking']); | ||
if ((!this.v6().isReady() ? !this.w6().isReady() : false) ? !(this.k6_1.r() ? this.l6_1.r() : false) : false) { | ||
this.g6_1.a7(['ticking with events and no runtime, deferring...']); | ||
return Unit_instance; | ||
} | ||
if (!this.m6_1) { | ||
var batch = this.j6_1.q5(this.k6_1); | ||
processBatch(this, batch); | ||
} | ||
if (!this.i6_1.r()) { | ||
while (!this.i6_1.r()) { | ||
var batch_0 = this.g6_1.q5(this.i6_1); | ||
if (!this.l6_1.r()) { | ||
while (!this.l6_1.r()) { | ||
var batch_0 = this.j6_1.q5(this.l6_1); | ||
processBatch(this, batch_0); | ||
} | ||
this.q6(); | ||
this.t6(); | ||
} | ||
}; | ||
protoOf(DispatcherImpl).submit = function (events) { | ||
this.d6_1.s5(['submitted', events]); | ||
var deduped = this.f6_1.t5(toList(events)); | ||
this.g6_1.s5(['submitted', events]); | ||
var deduped = this.i6_1.t5(toList(events)); | ||
// Inline function 'kotlin.collections.forEach' call | ||
@@ -402,8 +427,8 @@ var tmp0_iterator = deduped.j(); | ||
if (element.async === true) { | ||
this.i6_1.g(element); | ||
this.l6_1.g(element); | ||
} else { | ||
this.h6_1.g(element); | ||
this.k6_1.g(element); | ||
} | ||
} | ||
this.q6(); | ||
this.t6(); | ||
}; | ||
@@ -414,14 +439,14 @@ protoOf(DispatcherImpl).reset = function () { | ||
protoOf(DispatcherImpl).snapshot = function () { | ||
var tmp = this.a6_1.clone(this.state); | ||
var tmp = this.d6_1.clone(this.state); | ||
// Inline function 'kotlin.collections.toTypedArray' call | ||
var this_0 = this.h6_1; | ||
var this_0 = this.k6_1; | ||
var tmp_0 = copyToArray(this_0); | ||
// Inline function 'kotlin.collections.toTypedArray' call | ||
var this_1 = this.i6_1; | ||
var this_1 = this.l6_1; | ||
var tmp$ret$1 = copyToArray(this_1); | ||
return new DispatcherSnapshot(tmp, tmp_0, tmp$ret$1, this.s6().snapshot(), this.t6().snapshot(), this.u6().list()); | ||
return new DispatcherSnapshot(tmp, tmp_0, tmp$ret$1, this.v6().snapshot(), this.w6().snapshot(), this.x6().list()); | ||
}; | ||
protoOf(DispatcherImpl).pause = function () { | ||
var snap = this.snapshot(); | ||
this.u6().pauseAll(); | ||
this.x6().pauseAll(); | ||
reset(this, false); | ||
@@ -432,20 +457,20 @@ return snap; | ||
this.state = snap.state; | ||
this.i6_1.e5(); | ||
this.l6_1.e5(); | ||
var tmp = snap.asyncQueue; | ||
addAll(this.i6_1, isArray(tmp) ? tmp : THROW_CCE()); | ||
this.h6_1.e5(); | ||
addAll(this.l6_1, isArray(tmp) ? tmp : THROW_CCE()); | ||
this.k6_1.e5(); | ||
var tmp_0 = snap.syncQueue; | ||
addAll(this.h6_1, isArray(tmp_0) ? tmp_0 : THROW_CCE()); | ||
this.s6().resume(snap.localSnapshot); | ||
this.t6().resume(snap.remoteSnapshot); | ||
this.u6().resumeAll(snap.timerSnapshot); | ||
addAll(this.k6_1, isArray(tmp_0) ? tmp_0 : THROW_CCE()); | ||
this.v6().resume(snap.localSnapshot); | ||
this.w6().resume(snap.remoteSnapshot); | ||
this.x6().resumeAll(snap.timerSnapshot); | ||
}; | ||
function EmptyOptions() { | ||
this.f7_1 = new NoOpLogger(); | ||
this.i7_1 = new NoOpLogger(); | ||
} | ||
protoOf(EmptyOptions).g7 = function (_set____db54di) { | ||
this.f7_1 = _set____db54di; | ||
protoOf(EmptyOptions).j7 = function (_set____db54di) { | ||
this.i7_1 = _set____db54di; | ||
}; | ||
protoOf(EmptyOptions).h7 = function () { | ||
return this.f7_1; | ||
protoOf(EmptyOptions).k7 = function () { | ||
return this.i7_1; | ||
}; | ||
@@ -460,51 +485,39 @@ function DispatcherSnapshot(state, syncQueue, asyncQueue, localSnapshot, remoteSnapshot, timerSnapshot) { | ||
} | ||
protoOf(DispatcherSnapshot).a7 = function () { | ||
protoOf(DispatcherSnapshot).d7 = function () { | ||
return this.state; | ||
}; | ||
protoOf(DispatcherSnapshot).i7 = function () { | ||
protoOf(DispatcherSnapshot).l7 = function () { | ||
return this.syncQueue; | ||
}; | ||
protoOf(DispatcherSnapshot).j7 = function () { | ||
protoOf(DispatcherSnapshot).m7 = function () { | ||
return this.asyncQueue; | ||
}; | ||
protoOf(DispatcherSnapshot).k7 = function () { | ||
protoOf(DispatcherSnapshot).n7 = function () { | ||
return this.localSnapshot; | ||
}; | ||
protoOf(DispatcherSnapshot).l7 = function () { | ||
protoOf(DispatcherSnapshot).o7 = function () { | ||
return this.remoteSnapshot; | ||
}; | ||
protoOf(DispatcherSnapshot).m7 = function () { | ||
protoOf(DispatcherSnapshot).p7 = function () { | ||
return this.timerSnapshot; | ||
}; | ||
protoOf(DispatcherSnapshot).getTypedSyncQueue = function () { | ||
var tmp = this.syncQueue; | ||
var tmp0_safe_receiver = isArray(tmp) ? tmp : null; | ||
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toList(tmp0_safe_receiver); | ||
return tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs; | ||
}; | ||
protoOf(DispatcherSnapshot).getTypedAsyncQueue = function () { | ||
var tmp = this.asyncQueue; | ||
var tmp0_safe_receiver = isArray(tmp) ? tmp : null; | ||
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toList(tmp0_safe_receiver); | ||
return tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs; | ||
}; | ||
protoOf(DispatcherSnapshot).n7 = function () { | ||
protoOf(DispatcherSnapshot).w5 = function () { | ||
return this.state; | ||
}; | ||
protoOf(DispatcherSnapshot).o7 = function () { | ||
protoOf(DispatcherSnapshot).x5 = function () { | ||
return this.syncQueue; | ||
}; | ||
protoOf(DispatcherSnapshot).p7 = function () { | ||
protoOf(DispatcherSnapshot).q7 = function () { | ||
return this.asyncQueue; | ||
}; | ||
protoOf(DispatcherSnapshot).q7 = function () { | ||
protoOf(DispatcherSnapshot).r7 = function () { | ||
return this.localSnapshot; | ||
}; | ||
protoOf(DispatcherSnapshot).r7 = function () { | ||
protoOf(DispatcherSnapshot).s7 = function () { | ||
return this.remoteSnapshot; | ||
}; | ||
protoOf(DispatcherSnapshot).s7 = function () { | ||
protoOf(DispatcherSnapshot).t7 = function () { | ||
return this.timerSnapshot; | ||
}; | ||
protoOf(DispatcherSnapshot).t7 = function (state, syncQueue, asyncQueue, localSnapshot, remoteSnapshot, timerSnapshot) { | ||
protoOf(DispatcherSnapshot).u7 = function (state, syncQueue, asyncQueue, localSnapshot, remoteSnapshot, timerSnapshot) { | ||
return new DispatcherSnapshot(state, syncQueue, asyncQueue, localSnapshot, remoteSnapshot, timerSnapshot); | ||
@@ -519,3 +532,3 @@ }; | ||
timerSnapshot = timerSnapshot === VOID ? this.timerSnapshot : timerSnapshot; | ||
return this.t7(state, syncQueue, asyncQueue, localSnapshot, remoteSnapshot, timerSnapshot); | ||
return this.u7(state, syncQueue, asyncQueue, localSnapshot, remoteSnapshot, timerSnapshot); | ||
}; | ||
@@ -557,6 +570,6 @@ protoOf(DispatcherSnapshot).toString = function () { | ||
} | ||
protoOf(NiceLogger).y6 = function (messages) { | ||
protoOf(NiceLogger).b7 = function (messages) { | ||
this.r5_1.error(messages); | ||
}; | ||
protoOf(NiceLogger).x6 = function (messages) { | ||
protoOf(NiceLogger).a7 = function (messages) { | ||
this.r5_1.warn(messages); | ||
@@ -581,15 +594,15 @@ }; | ||
} | ||
protoOf(TimerDefinition).u7 = function () { | ||
protoOf(TimerDefinition).v7 = function () { | ||
return this.id; | ||
}; | ||
protoOf(TimerDefinition).v7 = function () { | ||
protoOf(TimerDefinition).w7 = function () { | ||
return this.duration; | ||
}; | ||
protoOf(TimerDefinition).n7 = function () { | ||
protoOf(TimerDefinition).w5 = function () { | ||
return this.id; | ||
}; | ||
protoOf(TimerDefinition).o7 = function () { | ||
protoOf(TimerDefinition).x5 = function () { | ||
return this.duration; | ||
}; | ||
protoOf(TimerDefinition).w7 = function (id, duration) { | ||
protoOf(TimerDefinition).x7 = function (id, duration) { | ||
return new TimerDefinition(id, duration); | ||
@@ -600,3 +613,3 @@ }; | ||
duration = duration === VOID ? this.duration : duration; | ||
return this.w7(id, duration); | ||
return this.x7(id, duration); | ||
}; | ||
@@ -627,15 +640,15 @@ protoOf(TimerDefinition).toString = function () { | ||
DispatcherImpl.call(this, state, new JsRequestBuilderAdapter(requestBuilder), new JsonStateOperations(), method, options); | ||
this.p8_1 = method; | ||
this.q8_1 = options; | ||
this.q8_1 = method; | ||
this.r8_1 = options; | ||
} | ||
function JsRequestBuilderAdapter(jsRequestBuilder) { | ||
this.r8_1 = jsRequestBuilder; | ||
this.s8_1 = jsRequestBuilder; | ||
} | ||
protoOf(JsRequestBuilderAdapter).s8 = function (state, events) { | ||
protoOf(JsRequestBuilderAdapter).t8 = function (state, events) { | ||
// Inline function 'kotlin.collections.toTypedArray' call | ||
var tmp$ret$0 = copyToArray(events); | ||
return this.r8_1.build(state, tmp$ret$0); | ||
return this.s8_1.build(state, tmp$ret$0); | ||
}; | ||
protoOf(JsRequestBuilderAdapter).r6 = function (state, events) { | ||
return this.s8((!(state == null) ? !(state == null) : false) ? state : THROW_CCE(), events); | ||
protoOf(JsRequestBuilderAdapter).u6 = function (state, events) { | ||
return this.t8((!(state == null) ? !(state == null) : false) ? state : THROW_CCE(), events); | ||
}; | ||
@@ -686,15 +699,15 @@ function entriesOf(jsObject) { | ||
defineProp(protoOf(DispatcherImpl), 'state', function () { | ||
return this.a7(); | ||
return this.d7(); | ||
}, function (value) { | ||
this.z6(value); | ||
this.c7(value); | ||
}); | ||
defineProp(protoOf(EmptyOptions), 'logger', function () { | ||
return this.h7(); | ||
return this.k7(); | ||
}, function (value) { | ||
this.g7(value); | ||
this.j7(value); | ||
}); | ||
defineProp(protoOf(JsDispatcherImpl), 'state', function () { | ||
return this.a7(); | ||
return this.d7(); | ||
}, function (value) { | ||
this.z6(value); | ||
this.c7(value); | ||
}); | ||
@@ -706,2 +719,5 @@ //endregion | ||
var $net$devvit = $net.devvit || ($net.devvit = {}); | ||
$net$devvit.SubscribeCallbackParams = SubscribeCallbackParams; | ||
var $net = _.net || (_.net = {}); | ||
var $net$devvit = $net.devvit || ($net.devvit = {}); | ||
$net$devvit.EmptyOptions = EmptyOptions; | ||
@@ -708,0 +724,0 @@ var $net = _.net || (_.net = {}); |
{ | ||
"name": "@devvit/multiplatform", | ||
"version": "0.0.1-20240515-d1d86b7a", | ||
"version": "0.0.1-20240516-46197509", | ||
"main": "kotlin/ui-shared-shared.js", | ||
@@ -5,0 +5,0 @@ "devDependencies": { |
Sorry, the diff of this file is not supported yet
253763
4573