New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@devvit/multiplatform

Package Overview
Dependencies
Maintainers
6
Versions
67
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@devvit/multiplatform - npm Package Compare versions

Comparing version 0.0.1-20240509-4743383a to 0.0.1-20240510-61430e8f

15

kotlin/ui-shared-shared.d.ts

@@ -40,3 +40,3 @@ type Nullable<T> = T | null | undefined

submit(events: Array<Ev>): void;
subscribe(callback: (p0: Rsp) => void): net.devvit.Unsubscriber;
subscribe(callback: (p0: net.devvit.JsSubscribeCallbackParams<Ev, Req, Rsp>) => void): net.devvit.Unsubscriber;
}

@@ -51,3 +51,3 @@ }

submit(events: Array<Ev>): void;
subscribe(callback: (p0: Rsp) => void): net.devvit.Unsubscriber;
subscribe(callback: (p0: net.devvit.JsSubscribeCallbackParams<Ev, Req, Rsp>) => void): net.devvit.Unsubscriber;
}

@@ -99,2 +99,13 @@ }

export declare namespace net.devvit {
class JsSubscribeCallbackParams<Ev extends net.devvit.JsEvent, Req extends net.devvit.JsRequest<Ev>, Rsp extends net.devvit.JsResponse<Ev>> {
constructor(request: Req, response: Rsp);
get request(): Req;
get response(): Rsp;
copy(request?: Req, response?: Rsp): net.devvit.JsSubscribeCallbackParams<Ev, Req, Rsp>;
toString(): string;
hashCode(): number;
equals(other: Nullable<any>): boolean;
}
}
export declare namespace net.devvit {
interface JsRuntime<Ev extends net.devvit.JsEvent, Req extends net.devvit.JsRequest<Ev>, Rsp extends net.devvit.JsResponse<Ev>> {

@@ -101,0 +112,0 @@ isReady(): boolean;

410

kotlin/ui-shared-shared.js

@@ -44,2 +44,3 @@ (function (root, factory) {

setMetadataFor(NoOpDeduper, 'NoOpDeduper', classMeta, VOID, VOID, NoOpDeduper);
setMetadataFor(SubscribeCallbackParams, 'SubscribeCallbackParams', classMeta);
setMetadataFor(Callback, 'Callback', classMeta);

@@ -59,2 +60,3 @@ setMetadataFor(Unsubscriber, 'Unsubscriber', interfaceMeta);

setMetadataFor(WrappedRequestBuilder, 'WrappedRequestBuilder', classMeta);
setMetadataFor(JsSubscribeCallbackParams, 'JsSubscribeCallbackParams', classMeta);
setMetadataFor(WrappedJsResponse, 'WrappedJsResponse', classMeta);

@@ -82,12 +84,36 @@ setMetadataFor(WrappedJsRuntime, 'WrappedJsRuntime', classMeta);

};
function SubscribeCallbackParams(request, response) {
this.o5_1 = request;
this.p5_1 = response;
}
protoOf(SubscribeCallbackParams).toString = function () {
return 'SubscribeCallbackParams(request=' + this.o5_1 + ', response=' + this.p5_1 + ')';
};
protoOf(SubscribeCallbackParams).hashCode = function () {
var result = this.o5_1 == null ? 0 : hashCode(this.o5_1);
result = imul(result, 31) + (this.p5_1 == null ? 0 : hashCode(this.p5_1)) | 0;
return result;
};
protoOf(SubscribeCallbackParams).equals = function (other) {
if (this === other)
return true;
if (!(other instanceof SubscribeCallbackParams))
return false;
var tmp0_other_with_cast = other instanceof SubscribeCallbackParams ? other : THROW_CCE();
if (!equals(this.o5_1, tmp0_other_with_cast.o5_1))
return false;
if (!equals(this.p5_1, tmp0_other_with_cast.p5_1))
return false;
return true;
};
function Callback(success, failure) {
this.o5_1 = success;
this.p5_1 = failure;
this.q5_1 = success;
this.r5_1 = failure;
}
protoOf(Callback).toString = function () {
return 'Callback(success=' + this.o5_1 + ', failure=' + this.p5_1 + ')';
return 'Callback(success=' + this.q5_1 + ', failure=' + this.r5_1 + ')';
};
protoOf(Callback).hashCode = function () {
var result = hashCode(this.o5_1);
result = imul(result, 31) + hashCode(this.p5_1) | 0;
var result = hashCode(this.q5_1);
result = imul(result, 31) + hashCode(this.r5_1) | 0;
return result;

@@ -101,5 +127,5 @@ };

var tmp0_other_with_cast = other instanceof Callback ? other : THROW_CCE();
if (!equals(this.o5_1, tmp0_other_with_cast.o5_1))
if (!equals(this.q5_1, tmp0_other_with_cast.q5_1))
return false;
if (!equals(this.p5_1, tmp0_other_with_cast.p5_1))
if (!equals(this.r5_1, tmp0_other_with_cast.r5_1))
return false;

@@ -114,6 +140,6 @@ return true;

// Inline function 'net.devvit.DispatcherImpl.replayEvents.<anonymous>' call
if (element.f6()) {
$this.z5_1.z4(element);
if (element.h6()) {
$this.b6_1.z4(element);
} else {
$this.y5_1.z4(element);
$this.a6_1.z4(element);
}

@@ -126,36 +152,36 @@ }

}
var request = $this.r5_1.g6($this.q5_1, batch);
var isRemote = first(batch).j6() ? true : !$this.h6().i6();
var runtime = isRemote ? $this.k6() : $this.h6();
var tmp1 = $this.v5_1;
$this.v5_1 = tmp1 + 1 | 0;
var request = $this.t5_1.i6($this.s5_1, batch);
var isRemote = first(batch).l6() ? true : !$this.j6().k6();
var runtime = isRemote ? $this.m6() : $this.j6();
var tmp1 = $this.x5_1;
$this.x5_1 = tmp1 + 1 | 0;
var requestId = tmp1;
var tmp = DispatcherImpl$processBatch$lambda($this, requestId, batch);
var tmp = DispatcherImpl$processBatch$lambda($this, requestId, request, batch);
var cbs = new Callback(tmp, DispatcherImpl$processBatch$lambda_0($this, requestId, batch));
// Inline function 'kotlin.collections.set' call
$this.b6_1.g1(requestId, cbs);
runtime.l6($this.s5_1, request, cbs.o5_1, cbs.p5_1);
$this.d6_1.g1(requestId, cbs);
runtime.n6($this.u5_1, request, cbs.q5_1, cbs.r5_1);
}
function DispatcherImpl$subscribe$1(this$0, $typedCallback) {
this.m6_1 = this$0;
this.n6_1 = $typedCallback;
this.o6_1 = this$0;
this.p6_1 = $typedCallback;
}
protoOf(DispatcherImpl$subscribe$1).unsubscribe = function () {
this.m6_1.c6_1.h(this.n6_1);
this.o6_1.e6_1.h(this.p6_1);
};
function DispatcherImpl$processBatch$lambda(this$0, $requestId, $batch) {
function DispatcherImpl$processBatch$lambda(this$0, $requestId, $request, $batch) {
return function (rsp) {
replayEvents(this$0, rsp.o6());
this$0.b6_1.h1($requestId);
var tmp0_iterator = this$0.c6_1.j();
replayEvents(this$0, rsp.q6());
this$0.d6_1.h1($requestId);
var tmp0_iterator = this$0.e6_1.j();
while (tmp0_iterator.k()) {
var element = tmp0_iterator.m();
// Inline function 'net.devvit.DispatcherImpl.processBatch.<anonymous>.<anonymous>' call
element(rsp);
element(new SubscribeCallbackParams($request, rsp));
}
var tmp;
if (!first($batch).f6()) {
this$0.q5_1 = rsp.p6();
this$0.a6_1 = false;
this$0.q6();
if (!first($batch).h6()) {
this$0.s5_1 = rsp.r6();
this$0.c6_1 = false;
this$0.s6();
tmp = Unit_instance;

@@ -168,3 +194,3 @@ }

return function (err) {
this$0.b6_1.h1($requestId);
this$0.d6_1.h1($requestId);
// Inline function 'kotlin.collections.groupBy' call

@@ -178,3 +204,3 @@ // Inline function 'kotlin.collections.groupByTo' call

// Inline function 'net.devvit.DispatcherImpl.processBatch.<anonymous>.<anonymous>' call
var key = !element.j6() ? !element.r6() : false;
var key = !element.l6() ? !element.t6() : false;
// Inline function 'kotlin.collections.getOrPut' call

@@ -216,4 +242,4 @@ var value = destination.p1(key);

// Inline function 'net.devvit.DispatcherImpl.processBatch.<anonymous>.<anonymous>' call
element_0.s6(true);
element_0.t6(true);
element_0.u6(true);
element_0.v6(true);
}

@@ -223,3 +249,3 @@ }

replayEvents(this$0, tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs);
this$0.q6();
this$0.s6();
tmp_1 = Unit_instance;

@@ -233,23 +259,23 @@ }

options = options === VOID ? new EmptyOptions() : options;
this.q5_1 = state;
this.r5_1 = requestBuilder;
this.s5_1 = method;
this.t5_1 = options;
this.u5_1 = this.t5_1.logger;
this.v5_1 = 0;
this.w5_1 = new NoOpDeduper();
this.x5_1 = new OneAtATimeAssembler(this.u5_1);
this.y5_1 = ArrayDeque_init_$Create$();
this.z5_1 = ArrayDeque_init_$Create$();
this.a6_1 = false;
this.s5_1 = state;
this.t5_1 = requestBuilder;
this.u5_1 = method;
this.v5_1 = options;
this.w5_1 = this.v5_1.logger;
this.x5_1 = 0;
this.y5_1 = new NoOpDeduper();
this.z5_1 = new OneAtATimeAssembler(this.w5_1);
this.a6_1 = ArrayDeque_init_$Create$();
this.b6_1 = ArrayDeque_init_$Create$();
this.c6_1 = false;
var tmp = this;
// Inline function 'kotlin.collections.mutableMapOf' call
tmp.b6_1 = LinkedHashMap_init_$Create$();
tmp.d6_1 = LinkedHashMap_init_$Create$();
var tmp_0 = this;
// Inline function 'kotlin.collections.mutableListOf' call
tmp_0.c6_1 = ArrayList_init_$Create$();
this.t5_1.logger.debug(['constructed Dispatcher']);
tmp_0.e6_1 = ArrayList_init_$Create$();
this.v5_1.logger.debug(['constructed Dispatcher']);
}
protoOf(DispatcherImpl).h6 = function () {
var tmp = this.d6_1;
protoOf(DispatcherImpl).j6 = function () {
var tmp = this.f6_1;
if (!(tmp == null))

@@ -261,4 +287,4 @@ return tmp;

};
protoOf(DispatcherImpl).k6 = function () {
var tmp = this.e6_1;
protoOf(DispatcherImpl).m6 = function () {
var tmp = this.g6_1;
if (!(tmp == null))

@@ -270,28 +296,28 @@ return tmp;

};
protoOf(DispatcherImpl).u6 = function (local, remote) {
this.u5_1.debug(['Initializing Dispatcher', local, remote]);
this.d6_1 = local;
this.e6_1 = remote;
protoOf(DispatcherImpl).w6 = function (local, remote) {
this.w5_1.debug(['Initializing Dispatcher', local, remote]);
this.f6_1 = local;
this.g6_1 = remote;
};
protoOf(DispatcherImpl).v6 = function (callback) {
protoOf(DispatcherImpl).x6 = function (callback) {
var typedCallback = typeof callback === 'function' ? callback : THROW_CCE();
this.c6_1.g(typedCallback);
this.e6_1.g(typedCallback);
return new DispatcherImpl$subscribe$1(this, typedCallback);
};
protoOf(DispatcherImpl).q6 = function () {
this.u5_1.debug(['ticking']);
if (!this.a6_1) {
var batch = this.x5_1.m5(this.y5_1);
protoOf(DispatcherImpl).s6 = function () {
this.w5_1.debug(['ticking']);
if (!this.c6_1) {
var batch = this.z5_1.m5(this.a6_1);
processBatch(this, batch);
}
if (!this.z5_1.q()) {
while (!this.z5_1.q()) {
var batch_0 = this.x5_1.m5(this.z5_1);
if (!this.b6_1.q()) {
while (!this.b6_1.q()) {
var batch_0 = this.z5_1.m5(this.b6_1);
processBatch(this, batch_0);
}
this.q6();
this.s6();
}
};
protoOf(DispatcherImpl).w6 = function (events) {
var deduped = this.w5_1.n5(events);
protoOf(DispatcherImpl).y6 = function (events) {
var deduped = this.y5_1.n5(events);
// Inline function 'kotlin.collections.forEach' call

@@ -302,9 +328,9 @@ var tmp0_iterator = deduped.j();

// Inline function 'net.devvit.DispatcherImpl.submit.<anonymous>' call
if (element.f6()) {
this.z5_1.g(element);
if (element.h6()) {
this.b6_1.g(element);
} else {
this.y5_1.g(element);
this.a6_1.g(element);
}
}
this.q6();
this.s6();
};

@@ -314,9 +340,9 @@ function DispatcherOptions() {

function EmptyOptions() {
this.z6_1 = new NoOpLogger();
this.b7_1 = new NoOpLogger();
}
protoOf(EmptyOptions).x6 = function (_set____db54di) {
this.z6_1 = _set____db54di;
protoOf(EmptyOptions).z6 = function (_set____db54di) {
this.b7_1 = _set____db54di;
};
protoOf(EmptyOptions).y6 = function () {
return this.z6_1;
protoOf(EmptyOptions).a7 = function () {
return this.b7_1;
};

@@ -339,3 +365,3 @@ function Logger() {

return function (wrapped) {
$callback(wrapped.a7_1);
$callback(unwrapSubscribeCallbackParams(wrapped));
return Unit_instance;

@@ -346,16 +372,16 @@ };

options = options === VOID ? new EmptyOptions() : options;
this.b7_1 = state;
this.c7_1 = jsRequestBuilder;
this.d7_1 = method;
this.e7_1 = options;
this.f7_1 = new DispatcherImpl(this.b7_1, new WrappedRequestBuilder(this.c7_1), this.d7_1, this.e7_1);
this.c7_1 = state;
this.d7_1 = jsRequestBuilder;
this.e7_1 = method;
this.f7_1 = options;
this.g7_1 = new DispatcherImpl(this.c7_1, new WrappedRequestBuilder(this.d7_1), this.e7_1, this.f7_1);
}
protoOf(JsDispatcherImpl).g7 = function (_set____db54di) {
this.b7_1 = _set____db54di;
protoOf(JsDispatcherImpl).h7 = function (_set____db54di) {
this.c7_1 = _set____db54di;
};
protoOf(JsDispatcherImpl).p6 = function () {
return this.b7_1;
protoOf(JsDispatcherImpl).r6 = function () {
return this.c7_1;
};
protoOf(JsDispatcherImpl).init = function (local, remote) {
this.f7_1.u6(new WrappedJsRuntime(local, this.c7_1), new WrappedJsRuntime(remote, this.c7_1));
this.g7_1.w6(new WrappedJsRuntime(local, this.d7_1), new WrappedJsRuntime(remote, this.d7_1));
};

@@ -376,33 +402,33 @@ protoOf(JsDispatcherImpl).submit = function (events) {

var wrapped = toList(destination);
this.f7_1.w6(wrapped);
this.g7_1.y6(wrapped);
};
protoOf(JsDispatcherImpl).subscribe = function (callback) {
return this.f7_1.v6(JsDispatcherImpl$subscribe$lambda(callback));
return this.g7_1.x6(JsDispatcherImpl$subscribe$lambda(callback));
};
function WrappedJsEvent(jsEvent) {
this.h7_1 = jsEvent;
this.i7_1 = jsEvent;
}
protoOf(WrappedJsEvent).f6 = function () {
var tmp0_elvis_lhs = this.h7_1.async;
protoOf(WrappedJsEvent).h6 = function () {
var tmp0_elvis_lhs = this.i7_1.async;
return tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs;
};
protoOf(WrappedJsEvent).t6 = function (v) {
this.h7_1.remoteOnly = v;
protoOf(WrappedJsEvent).v6 = function (v) {
this.i7_1.remoteOnly = v;
};
protoOf(WrappedJsEvent).j6 = function () {
var tmp0_elvis_lhs = this.h7_1.remoteOnly;
protoOf(WrappedJsEvent).l6 = function () {
var tmp0_elvis_lhs = this.i7_1.remoteOnly;
return tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs;
};
protoOf(WrappedJsEvent).s6 = function (v) {
this.h7_1.retry = v;
protoOf(WrappedJsEvent).u6 = function (v) {
this.i7_1.retry = v;
};
protoOf(WrappedJsEvent).r6 = function () {
var tmp0_elvis_lhs = this.h7_1.retry;
protoOf(WrappedJsEvent).t6 = function () {
var tmp0_elvis_lhs = this.i7_1.retry;
return tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs;
};
protoOf(WrappedJsEvent).toString = function () {
return 'WrappedJsEvent(jsEvent=' + this.h7_1 + ')';
return 'WrappedJsEvent(jsEvent=' + this.i7_1 + ')';
};
protoOf(WrappedJsEvent).hashCode = function () {
return hashCode(this.h7_1);
return hashCode(this.i7_1);
};

@@ -415,3 +441,3 @@ protoOf(WrappedJsEvent).equals = function (other) {

var tmp0_other_with_cast = other instanceof WrappedJsEvent ? other : THROW_CCE();
if (!equals(this.h7_1, tmp0_other_with_cast.h7_1))
if (!equals(this.i7_1, tmp0_other_with_cast.i7_1))
return false;

@@ -421,32 +447,32 @@ return true;

function WrappedJsLogger(jsLogger) {
this.i7_1 = jsLogger;
this.j7_1 = jsLogger;
}
protoOf(WrappedJsLogger).info = function (messages) {
this.i7_1.info(messages);
this.j7_1.info(messages);
};
protoOf(WrappedJsLogger).error = function (messages) {
this.i7_1.error(messages);
this.j7_1.error(messages);
};
protoOf(WrappedJsLogger).warn = function (messages) {
this.i7_1.warn(messages);
this.j7_1.warn(messages);
};
protoOf(WrappedJsLogger).debug = function (messages) {
this.i7_1.debug(messages);
this.j7_1.debug(messages);
};
function BasicJsRequest(state, events) {
this.j7_1 = state;
this.k7_1 = events;
this.k7_1 = state;
this.l7_1 = events;
}
protoOf(BasicJsRequest).p6 = function () {
return this.j7_1;
};
protoOf(BasicJsRequest).l7 = function () {
protoOf(BasicJsRequest).r6 = function () {
return this.k7_1;
};
protoOf(BasicJsRequest).m7 = function () {
return this.l7_1;
};
protoOf(BasicJsRequest).toString = function () {
return 'BasicJsRequest(state=' + this.j7_1 + ', events=' + toString(this.k7_1) + ')';
return 'BasicJsRequest(state=' + this.k7_1 + ', events=' + toString(this.l7_1) + ')';
};
protoOf(BasicJsRequest).hashCode = function () {
var result = hashCode(this.j7_1);
result = imul(result, 31) + hashCode(this.k7_1) | 0;
var result = hashCode(this.k7_1);
result = imul(result, 31) + hashCode(this.l7_1) | 0;
return result;

@@ -460,14 +486,14 @@ };

var tmp0_other_with_cast = other instanceof BasicJsRequest ? other : THROW_CCE();
if (!equals(this.j7_1, tmp0_other_with_cast.j7_1))
return false;
if (!equals(this.k7_1, tmp0_other_with_cast.k7_1))
return false;
if (!equals(this.l7_1, tmp0_other_with_cast.l7_1))
return false;
return true;
};
function WrappedJsRequest(jsRequest) {
this.m7_1 = jsRequest;
this.n7_1 = jsRequest;
}
protoOf(WrappedJsRequest).l7 = function () {
protoOf(WrappedJsRequest).m7 = function () {
// Inline function 'kotlin.collections.map' call
var this_0 = toList_0(this.m7_1.events);
var this_0 = toList_0(this.n7_1.events);
// Inline function 'kotlin.collections.mapTo' call

@@ -484,11 +510,11 @@ var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));

};
protoOf(WrappedJsRequest).p6 = function () {
var tmp0_elvis_lhs = this.m7_1.state;
protoOf(WrappedJsRequest).r6 = function () {
var tmp0_elvis_lhs = this.n7_1.state;
return tmp0_elvis_lhs == null ? JSON.parse('{}') : tmp0_elvis_lhs;
};
protoOf(WrappedJsRequest).toString = function () {
return 'WrappedJsRequest(jsRequest=' + this.m7_1 + ')';
return 'WrappedJsRequest(jsRequest=' + this.n7_1 + ')';
};
protoOf(WrappedJsRequest).hashCode = function () {
return hashCode(this.m7_1);
return hashCode(this.n7_1);
};

@@ -501,3 +527,3 @@ protoOf(WrappedJsRequest).equals = function (other) {

var tmp0_other_with_cast = other instanceof WrappedJsRequest ? other : THROW_CCE();
if (!equals(this.m7_1, tmp0_other_with_cast.m7_1))
if (!equals(this.n7_1, tmp0_other_with_cast.n7_1))
return false;

@@ -507,5 +533,5 @@ return true;

function WrappedRequestBuilder(jsRequestBuilder) {
this.n7_1 = jsRequestBuilder;
this.o7_1 = jsRequestBuilder;
}
protoOf(WrappedRequestBuilder).o7 = function (state, events) {
protoOf(WrappedRequestBuilder).p7 = function (state, events) {
// Inline function 'kotlin.collections.toTypedArray' call

@@ -519,3 +545,3 @@ // Inline function 'kotlin.collections.map' call

// Inline function 'net.devvit.WrappedRequestBuilder.build.<anonymous>' call
var tmp$ret$0 = item.h7_1;
var tmp$ret$0 = item.i7_1;
destination.g(tmp$ret$0);

@@ -526,10 +552,10 @@ }

};
protoOf(WrappedRequestBuilder).g6 = function (state, events) {
return this.o7((!(state == null) ? !(state == null) : false) ? state : THROW_CCE(), events);
protoOf(WrappedRequestBuilder).i6 = function (state, events) {
return this.p7((!(state == null) ? !(state == null) : false) ? state : THROW_CCE(), events);
};
protoOf(WrappedRequestBuilder).toString = function () {
return 'WrappedRequestBuilder(jsRequestBuilder=' + this.n7_1 + ')';
return 'WrappedRequestBuilder(jsRequestBuilder=' + this.o7_1 + ')';
};
protoOf(WrappedRequestBuilder).hashCode = function () {
return hashCode(this.n7_1);
return hashCode(this.o7_1);
};

@@ -542,12 +568,59 @@ protoOf(WrappedRequestBuilder).equals = function (other) {

var tmp0_other_with_cast = other instanceof WrappedRequestBuilder ? other : THROW_CCE();
if (!equals(this.n7_1, tmp0_other_with_cast.n7_1))
if (!equals(this.o7_1, tmp0_other_with_cast.o7_1))
return false;
return true;
};
function JsSubscribeCallbackParams(request, response) {
this.request = request;
this.response = response;
}
protoOf(JsSubscribeCallbackParams).q7 = function () {
return this.request;
};
protoOf(JsSubscribeCallbackParams).r7 = function () {
return this.response;
};
protoOf(JsSubscribeCallbackParams).s7 = function () {
return this.request;
};
protoOf(JsSubscribeCallbackParams).t7 = function () {
return this.response;
};
protoOf(JsSubscribeCallbackParams).u7 = function (request, response) {
return new JsSubscribeCallbackParams(request, response);
};
protoOf(JsSubscribeCallbackParams).copy = function (request, response, $super) {
request = request === VOID ? this.request : request;
response = response === VOID ? this.response : response;
return this.u7(request, response);
};
protoOf(JsSubscribeCallbackParams).toString = function () {
return 'JsSubscribeCallbackParams(request=' + this.request + ', response=' + this.response + ')';
};
protoOf(JsSubscribeCallbackParams).hashCode = function () {
var result = hashCode(this.request);
result = imul(result, 31) + hashCode(this.response) | 0;
return result;
};
protoOf(JsSubscribeCallbackParams).equals = function (other) {
if (this === other)
return true;
if (!(other instanceof JsSubscribeCallbackParams))
return false;
var tmp0_other_with_cast = other instanceof JsSubscribeCallbackParams ? other : THROW_CCE();
if (!equals(this.request, tmp0_other_with_cast.request))
return false;
if (!equals(this.response, tmp0_other_with_cast.response))
return false;
return true;
};
function unwrapSubscribeCallbackParams(params) {
return new JsSubscribeCallbackParams(params.o5_1.n7_1, params.p5_1.v7_1);
}
function WrappedJsResponse(jsResponse) {
this.a7_1 = jsResponse;
this.v7_1 = jsResponse;
}
protoOf(WrappedJsResponse).o6 = function () {
protoOf(WrappedJsResponse).q6 = function () {
// Inline function 'kotlin.collections.map' call
var tmp0_elvis_lhs = this.a7_1.replay;
var tmp0_elvis_lhs = this.v7_1.replay;
var tmp;

@@ -572,11 +645,11 @@ if (tmp0_elvis_lhs == null) {

};
protoOf(WrappedJsResponse).p6 = function () {
var tmp0_elvis_lhs = this.a7_1.state;
protoOf(WrappedJsResponse).r6 = function () {
var tmp0_elvis_lhs = this.v7_1.state;
return tmp0_elvis_lhs == null ? JSON.parse('{}') : tmp0_elvis_lhs;
};
protoOf(WrappedJsResponse).toString = function () {
return 'WrappedJsResponse(jsResponse=' + this.a7_1 + ')';
return 'WrappedJsResponse(jsResponse=' + this.v7_1 + ')';
};
protoOf(WrappedJsResponse).hashCode = function () {
return hashCode(this.a7_1);
return hashCode(this.v7_1);
};

@@ -589,3 +662,3 @@ protoOf(WrappedJsResponse).equals = function (other) {

var tmp0_other_with_cast = other instanceof WrappedJsResponse ? other : THROW_CCE();
if (!equals(this.a7_1, tmp0_other_with_cast.a7_1))
if (!equals(this.v7_1, tmp0_other_with_cast.v7_1))
return false;

@@ -601,13 +674,13 @@ return true;

function WrappedJsRuntime(jsRuntime, jsRequestBuilder) {
this.p7_1 = jsRuntime;
this.q7_1 = jsRequestBuilder;
this.w7_1 = jsRuntime;
this.x7_1 = jsRequestBuilder;
}
protoOf(WrappedJsRuntime).i6 = function () {
return this.p7_1.isReady();
protoOf(WrappedJsRuntime).k6 = function () {
return this.w7_1.isReady();
};
protoOf(WrappedJsRuntime).r7 = function (method, req, cb, err) {
var tmp = req.p6();
protoOf(WrappedJsRuntime).y7 = function (method, req, cb, err) {
var tmp = req.r6();
// Inline function 'kotlin.collections.toTypedArray' call
// Inline function 'kotlin.collections.map' call
var this_0 = req.l7();
var this_0 = req.m7();
// Inline function 'kotlin.collections.mapTo' call

@@ -619,18 +692,18 @@ var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));

// Inline function 'net.devvit.WrappedJsRuntime.handle.<anonymous>' call
var tmp$ret$0 = item.h7_1;
var tmp$ret$0 = item.i7_1;
destination.g(tmp$ret$0);
}
var tmp$ret$3 = copyToArray(destination);
var jsReq = this.q7_1.build(tmp, tmp$ret$3);
this.p7_1.handle(method, jsReq, WrappedJsRuntime$handle$lambda(cb), err);
var jsReq = this.x7_1.build(tmp, tmp$ret$3);
this.w7_1.handle(method, jsReq, WrappedJsRuntime$handle$lambda(cb), err);
};
protoOf(WrappedJsRuntime).l6 = function (method, req, cb, err) {
return this.r7(method, req, cb, err);
protoOf(WrappedJsRuntime).n6 = function (method, req, cb, err) {
return this.y7(method, req, cb, err);
};
protoOf(WrappedJsRuntime).toString = function () {
return 'WrappedJsRuntime(jsRuntime=' + this.p7_1 + ', jsRequestBuilder=' + this.q7_1 + ')';
return 'WrappedJsRuntime(jsRuntime=' + this.w7_1 + ', jsRequestBuilder=' + this.x7_1 + ')';
};
protoOf(WrappedJsRuntime).hashCode = function () {
var result = hashCode(this.p7_1);
result = imul(result, 31) + hashCode(this.q7_1) | 0;
var result = hashCode(this.w7_1);
result = imul(result, 31) + hashCode(this.x7_1) | 0;
return result;

@@ -644,5 +717,5 @@ };

var tmp0_other_with_cast = other instanceof WrappedJsRuntime ? other : THROW_CCE();
if (!equals(this.p7_1, tmp0_other_with_cast.p7_1))
if (!equals(this.w7_1, tmp0_other_with_cast.w7_1))
return false;
if (!equals(this.q7_1, tmp0_other_with_cast.q7_1))
if (!equals(this.x7_1, tmp0_other_with_cast.x7_1))
return false;

@@ -653,16 +726,16 @@ return true;

defineProp(protoOf(EmptyOptions), 'logger', function () {
return this.y6();
return this.a7();
}, function (value) {
this.x6(value);
this.z6(value);
});
defineProp(protoOf(JsDispatcherImpl), 'state', function () {
return this.p6();
return this.r6();
}, function (value) {
this.g7(value);
this.h7(value);
});
defineProp(protoOf(BasicJsRequest), 'state', function () {
return this.p6();
return this.r6();
});
defineProp(protoOf(BasicJsRequest), 'events', function () {
return this.l7();
return this.m7();
});

@@ -693,2 +766,3 @@ //endregion

var $net$devvit = $net.devvit || ($net.devvit = {});
$net$devvit.JsSubscribeCallbackParams = JsSubscribeCallbackParams;
var $net = _.net || (_.net = {});

@@ -695,0 +769,0 @@ var $net$devvit = $net.devvit || ($net.devvit = {});

{
"name": "@devvit/multiplatform",
"version": "0.0.1-20240509-4743383a",
"version": "0.0.1-20240510-61430e8f",
"main": "kotlin/ui-shared-shared.js",

@@ -5,0 +5,0 @@ "devDependencies": {

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc