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-20240508-1a3beae0 to 0.0.1-20240508-7811bfd0

45

kotlin/ui-shared-shared.d.ts
type Nullable<T> = T | null | undefined
export declare namespace net.devvit {
interface DispatcherOptions {
logger: net.devvit.Logger;
readonly __doNotUseOrImplementIt: {
readonly "net.devvit.DispatcherOptions": unique symbol;
};
}
class EmptyOptions implements net.devvit.DispatcherOptions {
constructor();
get logger(): net.devvit.Logger;
set logger(value: net.devvit.Logger);
readonly __doNotUseOrImplementIt: net.devvit.DispatcherOptions["__doNotUseOrImplementIt"];
}
}
export declare namespace net.devvit {
interface Logger {
info(messages: Array<any>): void;
error(messages: Array<any>): void;
warn(messages: Array<any>): void;
debug(messages: Array<any>): void;
readonly __doNotUseOrImplementIt: {
readonly "net.devvit.Logger": unique symbol;
};
}
}
export declare namespace net.devvit {
interface Unsubscriber {

@@ -20,3 +45,3 @@ unsubscribe(): void;

class JsDispatcherImpl<Ev extends net.devvit.JsEvent, Req extends net.devvit.JsRequest<Ev>, Rsp extends net.devvit.JsResponse<Ev>> implements net.devvit.JsDispatcher<Ev, Req, Rsp> {
constructor(state: Json, jsRequestBuilder: net.devvit.JsRequestBuilder<Ev, Req>);
constructor(state: Json, jsRequestBuilder: net.devvit.JsRequestBuilder<Ev, Req>, method: string, options?: net.devvit.DispatcherOptions);
get state(): Json;

@@ -38,2 +63,20 @@ set state(value: Json);

export declare namespace net.devvit {
interface JsLogger {
info(messages: Array<any>): void;
error(messages: Array<any>): void;
warn(messages: Array<any>): void;
debug(messages: Array<any>): void;
}
}
export declare namespace net.devvit {
class WrappedJsLogger implements net.devvit.Logger {
constructor(jsLogger: net.devvit.JsLogger);
info(messages: Array<any>): void;
error(messages: Array<any>): void;
warn(messages: Array<any>): void;
debug(messages: Array<any>): void;
readonly __doNotUseOrImplementIt: net.devvit.Logger["__doNotUseOrImplementIt"];
}
}
export declare namespace net.devvit {
interface JsRequest<Ev extends net.devvit.JsEvent> {

@@ -40,0 +83,0 @@ readonly events: Array<Ev>;

376

kotlin/ui-shared-shared.js

@@ -33,5 +33,5 @@ (function (root, factory) {

var interfaceMeta = kotlin_kotlin.$_$.s;
var defineProp = kotlin_kotlin.$_$.p;
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.c;
var toList = kotlin_kotlin.$_$.m;
var defineProp = kotlin_kotlin.$_$.p;
var toString = kotlin_kotlin.$_$.v;

@@ -43,3 +43,3 @@ var toList_0 = kotlin_kotlin.$_$.n;

//region block: pre-declaration
setMetadataFor(OneAtATimeAssembler, 'OneAtATimeAssembler', classMeta, VOID, VOID, OneAtATimeAssembler);
setMetadataFor(OneAtATimeAssembler, 'OneAtATimeAssembler', classMeta);
setMetadataFor(NoOpDeduper, 'NoOpDeduper', classMeta, VOID, VOID, NoOpDeduper);

@@ -50,4 +50,9 @@ setMetadataFor(Callback, 'Callback', classMeta);

setMetadataFor(DispatcherImpl, 'DispatcherImpl', classMeta);
setMetadataFor(DispatcherOptions, 'DispatcherOptions', interfaceMeta);
setMetadataFor(EmptyOptions, 'EmptyOptions', classMeta, VOID, [DispatcherOptions], EmptyOptions);
setMetadataFor(Logger, 'Logger', interfaceMeta);
setMetadataFor(NoOpLogger, 'NoOpLogger', classMeta, VOID, [Logger], NoOpLogger);
setMetadataFor(JsDispatcherImpl, 'JsDispatcherImpl', classMeta);
setMetadataFor(WrappedJsEvent, 'WrappedJsEvent', classMeta);
setMetadataFor(WrappedJsLogger, 'WrappedJsLogger', classMeta, VOID, [Logger]);
setMetadataFor(BasicJsRequest, 'BasicJsRequest', classMeta);

@@ -59,5 +64,6 @@ setMetadataFor(WrappedJsRequest, 'WrappedJsRequest', classMeta);

//endregion
function OneAtATimeAssembler() {
function OneAtATimeAssembler(logger) {
this.l5_1 = logger;
}
protoOf(OneAtATimeAssembler).l5 = function (queue) {
protoOf(OneAtATimeAssembler).m5 = function (queue) {
var tmp;

@@ -67,3 +73,5 @@ if (queue.q()) {

} else {
tmp = listOf(queue.b5());
var item = queue.b5();
this.l5_1.debug(['building batch of ', item]);
tmp = listOf(item);
}

@@ -74,15 +82,15 @@ return tmp;

}
protoOf(NoOpDeduper).m5 = function (events) {
protoOf(NoOpDeduper).n5 = function (events) {
return events;
};
function Callback(success, failure) {
this.n5_1 = success;
this.o5_1 = failure;
this.o5_1 = success;
this.p5_1 = failure;
}
protoOf(Callback).toString = function () {
return 'Callback(success=' + this.n5_1 + ', failure=' + this.o5_1 + ')';
return 'Callback(success=' + this.o5_1 + ', failure=' + this.p5_1 + ')';
};
protoOf(Callback).hashCode = function () {
var result = hashCode(this.n5_1);
result = imul(result, 31) + hashCode(this.o5_1) | 0;
var result = hashCode(this.o5_1);
result = imul(result, 31) + hashCode(this.p5_1) | 0;
return result;

@@ -96,6 +104,6 @@ };

var tmp0_other_with_cast = other instanceof Callback ? other : THROW_CCE();
if (!equals(this.n5_1, tmp0_other_with_cast.n5_1))
return false;
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;

@@ -109,6 +117,6 @@ };

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

@@ -121,7 +129,7 @@ }

}
var request = $this.q5_1.d6($this.p5_1, batch);
var isRemote = first(batch).g6() ? true : !$this.e6().f6();
var runtime = isRemote ? $this.h6() : $this.e6();
var tmp1 = $this.s5_1;
$this.s5_1 = tmp1 + 1 | 0;
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 requestId = tmp1;

@@ -131,17 +139,17 @@ var tmp = DispatcherImpl$processBatch$lambda($this, requestId, batch);

// Inline function 'kotlin.collections.set' call
$this.y5_1.g1(requestId, cbs);
runtime.i6($this.r5_1, request, cbs.n5_1, cbs.o5_1);
$this.b6_1.g1(requestId, cbs);
runtime.l6($this.s5_1, request, cbs.o5_1, cbs.p5_1);
}
function DispatcherImpl$subscribe$1(this$0, $typedCallback) {
this.j6_1 = this$0;
this.k6_1 = $typedCallback;
this.m6_1 = this$0;
this.n6_1 = $typedCallback;
}
protoOf(DispatcherImpl$subscribe$1).unsubscribe = function () {
this.j6_1.z5_1.h(this.k6_1);
this.m6_1.c6_1.h(this.n6_1);
};
function DispatcherImpl$processBatch$lambda(this$0, $requestId, $batch) {
return function (rsp) {
replayEvents(this$0, rsp.l6());
this$0.y5_1.h1($requestId);
var tmp0_iterator = this$0.z5_1.j();
replayEvents(this$0, rsp.o6());
this$0.b6_1.h1($requestId);
var tmp0_iterator = this$0.c6_1.j();
while (tmp0_iterator.k()) {

@@ -153,6 +161,6 @@ var element = tmp0_iterator.m();

var tmp;
if (!first($batch).c6()) {
this$0.p5_1 = rsp.m6();
this$0.x5_1 = false;
this$0.n6();
if (!first($batch).f6()) {
this$0.q5_1 = rsp.p6();
this$0.a6_1 = false;
this$0.q6();
tmp = Unit_instance;

@@ -165,3 +173,3 @@ }

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

@@ -175,3 +183,3 @@ // Inline function 'kotlin.collections.groupByTo' call

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

@@ -213,4 +221,4 @@ var value = destination.p1(key);

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

@@ -220,3 +228,3 @@ }

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

@@ -227,22 +235,26 @@ }

}
function DispatcherImpl(state, requestBuilder, method) {
function DispatcherImpl(state, requestBuilder, method, options) {
method = method === VOID ? 'RenderPostContent' : method;
this.p5_1 = state;
this.q5_1 = requestBuilder;
this.r5_1 = method;
this.s5_1 = 0;
this.t5_1 = new NoOpDeduper();
this.u5_1 = new OneAtATimeAssembler();
this.v5_1 = ArrayDeque_init_$Create$();
this.w5_1 = ArrayDeque_init_$Create$();
this.x5_1 = false;
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;
var tmp = this;
// Inline function 'kotlin.collections.mutableMapOf' call
tmp.y5_1 = LinkedHashMap_init_$Create$();
tmp.b6_1 = LinkedHashMap_init_$Create$();
var tmp_0 = this;
// Inline function 'kotlin.collections.mutableListOf' call
tmp_0.z5_1 = ArrayList_init_$Create$();
tmp_0.c6_1 = ArrayList_init_$Create$();
this.t5_1.logger.debug(['constructed Dispatcher']);
}
protoOf(DispatcherImpl).e6 = function () {
var tmp = this.a6_1;
protoOf(DispatcherImpl).h6 = function () {
var tmp = this.d6_1;
if (!(tmp == null))

@@ -254,4 +266,4 @@ return tmp;

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

@@ -263,26 +275,28 @@ return tmp;

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

@@ -293,10 +307,33 @@ var tmp0_iterator = deduped.j();

// Inline function 'net.devvit.DispatcherImpl.submit.<anonymous>' call
if (element.c6()) {
this.w5_1.g(element);
if (element.f6()) {
this.z5_1.g(element);
} else {
this.v5_1.g(element);
this.y5_1.g(element);
}
}
this.n6();
this.q6();
};
function DispatcherOptions() {
}
function EmptyOptions() {
this.z6_1 = new NoOpLogger();
}
protoOf(EmptyOptions).x6 = function (_set____db54di) {
this.z6_1 = _set____db54di;
};
protoOf(EmptyOptions).y6 = function () {
return this.z6_1;
};
function Logger() {
}
function NoOpLogger() {
}
protoOf(NoOpLogger).info = function (messages) {
};
protoOf(NoOpLogger).error = function (messages) {
};
protoOf(NoOpLogger).warn = function (messages) {
};
protoOf(NoOpLogger).debug = function (messages) {
};
function Unsubscriber() {

@@ -306,19 +343,22 @@ }

return function (wrapped) {
$callback(wrapped.u6_1);
$callback(wrapped.a7_1);
return Unit_instance;
};
}
function JsDispatcherImpl(state, jsRequestBuilder) {
this.v6_1 = state;
this.w6_1 = jsRequestBuilder;
this.x6_1 = new DispatcherImpl(this.v6_1, new WrappedRequestBuilder(this.w6_1));
function JsDispatcherImpl(state, jsRequestBuilder, method, options) {
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);
}
protoOf(JsDispatcherImpl).y6 = function (_set____db54di) {
this.v6_1 = _set____db54di;
protoOf(JsDispatcherImpl).g7 = function (_set____db54di) {
this.b7_1 = _set____db54di;
};
protoOf(JsDispatcherImpl).m6 = function () {
return this.v6_1;
protoOf(JsDispatcherImpl).p6 = function () {
return this.b7_1;
};
protoOf(JsDispatcherImpl).init = function (local, remote) {
this.x6_1.r6(new WrappedJsRuntime(local, this.w6_1), new WrappedJsRuntime(remote, this.w6_1));
this.f7_1.u6(new WrappedJsRuntime(local, this.c7_1), new WrappedJsRuntime(remote, this.c7_1));
};

@@ -339,33 +379,33 @@ protoOf(JsDispatcherImpl).submit = function (events) {

var wrapped = toList(destination);
this.x6_1.t6(wrapped);
this.f7_1.w6(wrapped);
};
protoOf(JsDispatcherImpl).subscribe = function (callback) {
return this.x6_1.s6(JsDispatcherImpl$subscribe$lambda(callback));
return this.f7_1.v6(JsDispatcherImpl$subscribe$lambda(callback));
};
function WrappedJsEvent(jsEvent) {
this.z6_1 = jsEvent;
this.h7_1 = jsEvent;
}
protoOf(WrappedJsEvent).c6 = function () {
var tmp0_elvis_lhs = this.z6_1.async;
protoOf(WrappedJsEvent).f6 = function () {
var tmp0_elvis_lhs = this.h7_1.async;
return tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs;
};
protoOf(WrappedJsEvent).q6 = function (v) {
this.z6_1.remoteOnly = v;
protoOf(WrappedJsEvent).t6 = function (v) {
this.h7_1.remoteOnly = v;
};
protoOf(WrappedJsEvent).g6 = function () {
var tmp0_elvis_lhs = this.z6_1.remoteOnly;
protoOf(WrappedJsEvent).j6 = function () {
var tmp0_elvis_lhs = this.h7_1.remoteOnly;
return tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs;
};
protoOf(WrappedJsEvent).p6 = function (v) {
this.z6_1.retry = v;
protoOf(WrappedJsEvent).s6 = function (v) {
this.h7_1.retry = v;
};
protoOf(WrappedJsEvent).o6 = function () {
var tmp0_elvis_lhs = this.z6_1.retry;
protoOf(WrappedJsEvent).r6 = function () {
var tmp0_elvis_lhs = this.h7_1.retry;
return tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs;
};
protoOf(WrappedJsEvent).toString = function () {
return 'WrappedJsEvent(jsEvent=' + this.z6_1 + ')';
return 'WrappedJsEvent(jsEvent=' + this.h7_1 + ')';
};
protoOf(WrappedJsEvent).hashCode = function () {
return hashCode(this.z6_1);
return hashCode(this.h7_1);
};

@@ -378,22 +418,37 @@ protoOf(WrappedJsEvent).equals = function (other) {

var tmp0_other_with_cast = other instanceof WrappedJsEvent ? other : THROW_CCE();
if (!equals(this.z6_1, tmp0_other_with_cast.z6_1))
if (!equals(this.h7_1, tmp0_other_with_cast.h7_1))
return false;
return true;
};
function WrappedJsLogger(jsLogger) {
this.i7_1 = jsLogger;
}
protoOf(WrappedJsLogger).info = function (messages) {
this.i7_1.info(messages);
};
protoOf(WrappedJsLogger).error = function (messages) {
this.i7_1.error(messages);
};
protoOf(WrappedJsLogger).warn = function (messages) {
this.i7_1.warn(messages);
};
protoOf(WrappedJsLogger).debug = function (messages) {
this.i7_1.debug(messages);
};
function BasicJsRequest(state, events) {
this.a7_1 = state;
this.b7_1 = events;
this.j7_1 = state;
this.k7_1 = events;
}
protoOf(BasicJsRequest).m6 = function () {
return this.a7_1;
protoOf(BasicJsRequest).p6 = function () {
return this.j7_1;
};
protoOf(BasicJsRequest).c7 = function () {
return this.b7_1;
protoOf(BasicJsRequest).l7 = function () {
return this.k7_1;
};
protoOf(BasicJsRequest).toString = function () {
return 'BasicJsRequest(state=' + this.a7_1 + ', events=' + toString(this.b7_1) + ')';
return 'BasicJsRequest(state=' + this.j7_1 + ', events=' + toString(this.k7_1) + ')';
};
protoOf(BasicJsRequest).hashCode = function () {
var result = hashCode(this.a7_1);
result = imul(result, 31) + hashCode(this.b7_1) | 0;
var result = hashCode(this.j7_1);
result = imul(result, 31) + hashCode(this.k7_1) | 0;
return result;

@@ -407,5 +462,5 @@ };

var tmp0_other_with_cast = other instanceof BasicJsRequest ? other : THROW_CCE();
if (!equals(this.a7_1, tmp0_other_with_cast.a7_1))
if (!equals(this.j7_1, tmp0_other_with_cast.j7_1))
return false;
if (!equals(this.b7_1, tmp0_other_with_cast.b7_1))
if (!equals(this.k7_1, tmp0_other_with_cast.k7_1))
return false;

@@ -415,7 +470,7 @@ return true;

function WrappedJsRequest(jsRequest) {
this.d7_1 = jsRequest;
this.m7_1 = jsRequest;
}
protoOf(WrappedJsRequest).c7 = function () {
protoOf(WrappedJsRequest).l7 = function () {
// Inline function 'kotlin.collections.map' call
var this_0 = toList_0(this.d7_1.events);
var this_0 = toList_0(this.m7_1.events);
// Inline function 'kotlin.collections.mapTo' call

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

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

@@ -449,3 +504,3 @@ protoOf(WrappedJsRequest).equals = function (other) {

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

@@ -455,5 +510,5 @@ return true;

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

@@ -467,3 +522,3 @@ // Inline function 'kotlin.collections.map' call

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

@@ -474,10 +529,10 @@ }

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

@@ -490,3 +545,3 @@ protoOf(WrappedRequestBuilder).equals = function (other) {

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

@@ -496,7 +551,7 @@ return true;

function WrappedJsResponse(jsResponse) {
this.u6_1 = jsResponse;
this.a7_1 = jsResponse;
}
protoOf(WrappedJsResponse).l6 = function () {
protoOf(WrappedJsResponse).o6 = function () {
// Inline function 'kotlin.collections.map' call
var tmp0_elvis_lhs = this.u6_1.replay;
var tmp0_elvis_lhs = this.a7_1.replay;
var tmp;

@@ -521,11 +576,11 @@ if (tmp0_elvis_lhs == null) {

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

@@ -538,3 +593,3 @@ protoOf(WrappedJsResponse).equals = function (other) {

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

@@ -550,13 +605,13 @@ return true;

function WrappedJsRuntime(jsRuntime, jsRequestBuilder) {
this.g7_1 = jsRuntime;
this.h7_1 = jsRequestBuilder;
this.p7_1 = jsRuntime;
this.q7_1 = jsRequestBuilder;
}
protoOf(WrappedJsRuntime).f6 = function () {
return this.g7_1.isReady();
protoOf(WrappedJsRuntime).i6 = function () {
return this.p7_1.isReady();
};
protoOf(WrappedJsRuntime).i7 = function (method, req, cb, err) {
var tmp = req.m6();
protoOf(WrappedJsRuntime).r7 = function (method, req, cb, err) {
var tmp = req.p6();
// Inline function 'kotlin.collections.toTypedArray' call
// Inline function 'kotlin.collections.map' call
var this_0 = req.c7();
var this_0 = req.l7();
// Inline function 'kotlin.collections.mapTo' call

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

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

@@ -593,5 +648,5 @@ };

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

@@ -601,12 +656,17 @@ return true;

//region block: post-declaration
defineProp(protoOf(EmptyOptions), 'logger', function () {
return this.y6();
}, function (value) {
this.x6(value);
});
defineProp(protoOf(JsDispatcherImpl), 'state', function () {
return this.m6();
return this.p6();
}, function (value) {
this.y6(value);
this.g7(value);
});
defineProp(protoOf(BasicJsRequest), 'state', function () {
return this.m6();
return this.p6();
});
defineProp(protoOf(BasicJsRequest), 'events', function () {
return this.c7();
return this.l7();
});

@@ -618,4 +678,9 @@ //endregion

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

@@ -626,2 +691,3 @@ var $net = _.net || (_.net = {});

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

@@ -633,2 +699,4 @@ var $net$devvit = $net.devvit || ($net.devvit = {});

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

@@ -635,0 +703,0 @@ $jsExportAll$(_);

{
"name": "@devvit/multiplatform",
"version": "0.0.1-20240508-1a3beae0",
"version": "0.0.1-20240508-7811bfd0",
"main": "kotlin/ui-shared-shared.js",

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

Sorry, the diff of this file is too big to display

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