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-20240507-441b7d19 to 0.0.1-20240508-1a3beae0

3

kotlin/ui-shared-shared.d.ts

@@ -31,4 +31,5 @@ type Nullable<T> = T | null | undefined

readonly async?: Nullable<boolean>;
readonly remoteOnly?: Nullable<boolean>;
remoteOnly?: Nullable<boolean>;
readonly hook?: Nullable<string>;
retry?: Nullable<boolean>;
}

@@ -35,0 +36,0 @@ }

@@ -25,8 +25,8 @@ (function (root, factory) {

var equals = kotlin_kotlin.$_$.q;
var reversed = kotlin_kotlin.$_$.l;
var Unit_instance = kotlin_kotlin.$_$.f;
var first = kotlin_kotlin.$_$.j;
var reversed = kotlin_kotlin.$_$.l;
var ArrayDeque_init_$Create$ = kotlin_kotlin.$_$.b;
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.e;
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.d;
var ArrayDeque_init_$Create$ = kotlin_kotlin.$_$.b;
var throwUninitializedPropertyAccessException = kotlin_kotlin.$_$.x;

@@ -97,2 +97,15 @@ var interfaceMeta = kotlin_kotlin.$_$.s;

};
function replayEvents($this, events) {
// Inline function 'kotlin.collections.forEach' call
var tmp0_iterator = reversed(events).j();
while (tmp0_iterator.k()) {
var element = tmp0_iterator.m();
// Inline function 'net.devvit.DispatcherImpl.replayEvents.<anonymous>' call
if (element.c6()) {
$this.w5_1.z4(element);
} else {
$this.v5_1.z4(element);
}
}
}
function processBatch($this, batch) {

@@ -102,4 +115,5 @@ if (batch.q()) {

}
var request = $this.q5_1.c6($this.p5_1, batch);
var runtime = (first(batch).g6() ? true : !$this.d6().f6()) ? $this.e6() : $this.d6();
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;

@@ -109,35 +123,26 @@ $this.s5_1 = tmp1 + 1 | 0;

var tmp = DispatcherImpl$processBatch$lambda($this, requestId, batch);
var cbs = new Callback(tmp, DispatcherImpl$processBatch$lambda_0($this, requestId));
var cbs = new Callback(tmp, DispatcherImpl$processBatch$lambda_0($this, requestId, batch));
// Inline function 'kotlin.collections.set' call
$this.y5_1.g1(requestId, cbs);
runtime.h6($this.r5_1, request, cbs.n5_1, cbs.o5_1);
runtime.i6($this.r5_1, request, cbs.n5_1, cbs.o5_1);
}
function DispatcherImpl$subscribe$1(this$0, $typedCallback) {
this.i6_1 = this$0;
this.j6_1 = $typedCallback;
this.j6_1 = this$0;
this.k6_1 = $typedCallback;
}
protoOf(DispatcherImpl$subscribe$1).unsubscribe = function () {
this.i6_1.z5_1.h(this.j6_1);
this.j6_1.z5_1.h(this.k6_1);
};
function DispatcherImpl$processBatch$lambda(this$0, $requestId, $batch) {
return function (rsp) {
var tmp0_iterator = reversed(rsp.k6()).j();
replayEvents(this$0, rsp.l6());
this$0.y5_1.h1($requestId);
var tmp0_iterator = this$0.z5_1.j();
while (tmp0_iterator.k()) {
var element = tmp0_iterator.m();
// Inline function 'net.devvit.DispatcherImpl.processBatch.<anonymous>.<anonymous>' call
if (element.l6()) {
this$0.w5_1.z4(element);
} else {
this$0.v5_1.z4(element);
}
element(rsp);
}
this$0.y5_1.h1($requestId);
var tmp0_iterator_0 = this$0.z5_1.j();
while (tmp0_iterator_0.k()) {
var element_0 = tmp0_iterator_0.m();
// Inline function 'net.devvit.DispatcherImpl.processBatch.<anonymous>.<anonymous>' call
element_0(rsp);
}
var tmp;
if (!first($batch).l6()) {
if (!first($batch).c6()) {
this$0.p5_1 = rsp.m6();

@@ -151,6 +156,60 @@ this$0.x5_1 = false;

}
function DispatcherImpl$processBatch$lambda_0(this$0, $requestId) {
function DispatcherImpl$processBatch$lambda_0(this$0, $requestId, $batch) {
return function (err) {
this$0.y5_1.h1($requestId);
throw err;
// Inline function 'kotlin.collections.groupBy' call
// Inline function 'kotlin.collections.groupByTo' call
var this_0 = $batch;
var destination = LinkedHashMap_init_$Create$();
var tmp0_iterator = this_0.j();
while (tmp0_iterator.k()) {
var element = tmp0_iterator.m();
// Inline function 'net.devvit.DispatcherImpl.processBatch.<anonymous>.<anonymous>' call
var key = !element.g6() ? !element.o6() : false;
// Inline function 'kotlin.collections.getOrPut' call
var value = destination.p1(key);
var tmp;
if (value == null) {
// Inline function 'kotlin.collections.groupByTo.<anonymous>' call
var answer = ArrayList_init_$Create$();
destination.g1(key, answer);
tmp = answer;
} else {
tmp = value;
}
var list = tmp;
list.g(element);
}
var replayable = destination;
var tmp_0;
// Inline function 'kotlin.collections.isNullOrEmpty' call
var this_1 = replayable.p1(false);
// Inline function 'kotlin.contracts.contract' call
if (!(this_1 == null ? true : this_1.q())) {
throw err;
}
var tmp_1;
// Inline function 'kotlin.collections.isNullOrEmpty' call
var this_2 = replayable.p1(true);
// Inline function 'kotlin.contracts.contract' call
if (!(this_2 == null ? true : this_2.q())) {
var tmp0_safe_receiver = replayable.p1(true);
if (tmp0_safe_receiver == null)
null;
else {
// Inline function 'kotlin.collections.forEach' call
var tmp0_iterator_0 = tmp0_safe_receiver.j();
while (tmp0_iterator_0.k()) {
var element_0 = tmp0_iterator_0.m();
// Inline function 'net.devvit.DispatcherImpl.processBatch.<anonymous>.<anonymous>' call
element_0.p6(true);
element_0.q6(true);
}
}
var tmp1_elvis_lhs = replayable.p1(true);
replayEvents(this$0, tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs);
this$0.n6();
tmp_1 = Unit_instance;
}
return Unit_instance;
};

@@ -176,3 +235,3 @@ }

}
protoOf(DispatcherImpl).d6 = function () {
protoOf(DispatcherImpl).e6 = function () {
var tmp = this.a6_1;

@@ -185,3 +244,3 @@ if (!(tmp == null))

};
protoOf(DispatcherImpl).e6 = function () {
protoOf(DispatcherImpl).h6 = function () {
var tmp = this.b6_1;

@@ -194,7 +253,7 @@ if (!(tmp == null))

};
protoOf(DispatcherImpl).o6 = function (local, remote) {
protoOf(DispatcherImpl).r6 = function (local, remote) {
this.a6_1 = local;
this.b6_1 = remote;
};
protoOf(DispatcherImpl).p6 = function (callback) {
protoOf(DispatcherImpl).s6 = function (callback) {
var typedCallback = typeof callback === 'function' ? callback : THROW_CCE();

@@ -217,3 +276,3 @@ this.z5_1.g(typedCallback);

};
protoOf(DispatcherImpl).q6 = function (events) {
protoOf(DispatcherImpl).t6 = function (events) {
var deduped = this.t5_1.m5(events);

@@ -225,3 +284,3 @@ // Inline function 'kotlin.collections.forEach' call

// Inline function 'net.devvit.DispatcherImpl.submit.<anonymous>' call
if (element.l6()) {
if (element.c6()) {
this.w5_1.g(element);

@@ -238,3 +297,3 @@ } else {

return function (wrapped) {
$callback(wrapped.r6_1);
$callback(wrapped.u6_1);
return Unit_instance;

@@ -244,14 +303,14 @@ };

function JsDispatcherImpl(state, jsRequestBuilder) {
this.s6_1 = state;
this.t6_1 = jsRequestBuilder;
this.u6_1 = new DispatcherImpl(this.s6_1, new WrappedRequestBuilder(this.t6_1));
this.v6_1 = state;
this.w6_1 = jsRequestBuilder;
this.x6_1 = new DispatcherImpl(this.v6_1, new WrappedRequestBuilder(this.w6_1));
}
protoOf(JsDispatcherImpl).v6 = function (_set____db54di) {
this.s6_1 = _set____db54di;
protoOf(JsDispatcherImpl).y6 = function (_set____db54di) {
this.v6_1 = _set____db54di;
};
protoOf(JsDispatcherImpl).m6 = function () {
return this.s6_1;
return this.v6_1;
};
protoOf(JsDispatcherImpl).init = function (local, remote) {
this.u6_1.o6(new WrappedJsRuntime(local, this.t6_1), new WrappedJsRuntime(remote, this.t6_1));
this.x6_1.r6(new WrappedJsRuntime(local, this.w6_1), new WrappedJsRuntime(remote, this.w6_1));
};

@@ -272,23 +331,33 @@ protoOf(JsDispatcherImpl).submit = function (events) {

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

@@ -301,3 +370,3 @@ protoOf(WrappedJsEvent).equals = function (other) {

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

@@ -307,17 +376,17 @@ return true;

function BasicJsRequest(state, events) {
this.x6_1 = state;
this.y6_1 = events;
this.a7_1 = state;
this.b7_1 = events;
}
protoOf(BasicJsRequest).m6 = function () {
return this.x6_1;
return this.a7_1;
};
protoOf(BasicJsRequest).z6 = function () {
return this.y6_1;
protoOf(BasicJsRequest).c7 = function () {
return this.b7_1;
};
protoOf(BasicJsRequest).toString = function () {
return 'BasicJsRequest(state=' + this.x6_1 + ', events=' + toString(this.y6_1) + ')';
return 'BasicJsRequest(state=' + this.a7_1 + ', events=' + toString(this.b7_1) + ')';
};
protoOf(BasicJsRequest).hashCode = function () {
var result = hashCode(this.x6_1);
result = imul(result, 31) + hashCode(this.y6_1) | 0;
var result = hashCode(this.a7_1);
result = imul(result, 31) + hashCode(this.b7_1) | 0;
return result;

@@ -331,5 +400,5 @@ };

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

@@ -339,7 +408,7 @@ return true;

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

@@ -357,10 +426,10 @@ var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));

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

@@ -373,3 +442,3 @@ protoOf(WrappedJsRequest).equals = function (other) {

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

@@ -379,5 +448,5 @@ return true;

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

@@ -391,3 +460,3 @@ // Inline function 'kotlin.collections.map' call

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

@@ -398,10 +467,10 @@ }

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

@@ -414,3 +483,3 @@ protoOf(WrappedRequestBuilder).equals = function (other) {

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

@@ -420,7 +489,7 @@ return true;

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

@@ -446,10 +515,10 @@ if (tmp0_elvis_lhs == null) {

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

@@ -462,3 +531,3 @@ protoOf(WrappedJsResponse).equals = function (other) {

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

@@ -474,13 +543,13 @@ return true;

function WrappedJsRuntime(jsRuntime, jsRequestBuilder) {
this.d7_1 = jsRuntime;
this.e7_1 = jsRequestBuilder;
this.g7_1 = jsRuntime;
this.h7_1 = jsRequestBuilder;
}
protoOf(WrappedJsRuntime).f6 = function () {
return this.d7_1.isReady();
return this.g7_1.isReady();
};
protoOf(WrappedJsRuntime).f7 = function (method, req, cb, err) {
protoOf(WrappedJsRuntime).i7 = function (method, req, cb, err) {
var tmp = req.m6();
// Inline function 'kotlin.collections.toTypedArray' call
// Inline function 'kotlin.collections.map' call
var this_0 = req.z6();
var this_0 = req.c7();
// Inline function 'kotlin.collections.mapTo' call

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

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

@@ -517,5 +586,5 @@ };

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

@@ -528,3 +597,3 @@ return true;

}, function (value) {
this.v6(value);
this.y6(value);
});

@@ -535,3 +604,3 @@ defineProp(protoOf(BasicJsRequest), 'state', function () {

defineProp(protoOf(BasicJsRequest), 'events', function () {
return this.z6();
return this.c7();
});

@@ -538,0 +607,0 @@ //endregion

{
"name": "@devvit/multiplatform",
"version": "0.0.1-20240507-441b7d19",
"version": "0.0.1-20240508-1a3beae0",
"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

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