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
7
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-20240517-739a3a45 to 0.0.1-20240517-8ad107ea

3

kotlin/ui-shared-shared.d.ts

@@ -18,2 +18,4 @@ type Nullable<T> = T | null | undefined

set logger(value: net.devvit.Logger);
get errorHandler(): (p0: Error) => void;
set errorHandler(value: (p0: Error) => void);
}

@@ -62,2 +64,3 @@ }

logger: net.devvit.Logger;
errorHandler: (p0: Error) => void;
}

@@ -64,0 +67,0 @@ }

292

kotlin/ui-shared-shared.js

@@ -16,27 +16,28 @@ (function (root, factory) {

var imul = Math.imul;
var listOf = kotlin_kotlin.$_$.k;
var emptyList = kotlin_kotlin.$_$.i;
var protoOf = kotlin_kotlin.$_$.s;
var classMeta = kotlin_kotlin.$_$.m;
var setMetadataFor = kotlin_kotlin.$_$.t;
var VOID = kotlin_kotlin.$_$.a;
var hashCode = kotlin_kotlin.$_$.q;
var THROW_CCE = kotlin_kotlin.$_$.w;
var equals = kotlin_kotlin.$_$.o;
var Unit_instance = kotlin_kotlin.$_$.f;
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.e;
var Pair = kotlin_kotlin.$_$.v;
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.d;
var first = kotlin_kotlin.$_$.j;
var toList = kotlin_kotlin.$_$.l;
var ArrayDeque_init_$Create$ = kotlin_kotlin.$_$.b;
var throwUninitializedPropertyAccessException = kotlin_kotlin.$_$.x;
var copyToArray = kotlin_kotlin.$_$.h;
var isArray = kotlin_kotlin.$_$.r;
var addAll = kotlin_kotlin.$_$.g;
var defineProp = kotlin_kotlin.$_$.n;
var toString = kotlin_kotlin.$_$.u;
var getStringHashCode = kotlin_kotlin.$_$.p;
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.c;
var to = kotlin_kotlin.$_$.y;
var listOf = kotlin_kotlin.$_$.l;
var emptyList = kotlin_kotlin.$_$.j;
var protoOf = kotlin_kotlin.$_$.t;
var classMeta = kotlin_kotlin.$_$.n;
var setMetadataFor = kotlin_kotlin.$_$.u;
var VOID = kotlin_kotlin.$_$.b;
var hashCode = kotlin_kotlin.$_$.r;
var THROW_CCE = kotlin_kotlin.$_$.x;
var equals = kotlin_kotlin.$_$.p;
var Unit_instance = kotlin_kotlin.$_$.g;
var first = kotlin_kotlin.$_$.k;
var toList = kotlin_kotlin.$_$.m;
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.f;
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.e;
var copyToArray = kotlin_kotlin.$_$.i;
var arrayConcat = kotlin_kotlin.$_$.a;
var ArrayDeque_init_$Create$ = kotlin_kotlin.$_$.c;
var throwUninitializedPropertyAccessException = kotlin_kotlin.$_$.y;
var Pair = kotlin_kotlin.$_$.w;
var isArray = kotlin_kotlin.$_$.s;
var addAll = kotlin_kotlin.$_$.h;
var defineProp = kotlin_kotlin.$_$.o;
var toString = kotlin_kotlin.$_$.v;
var getStringHashCode = kotlin_kotlin.$_$.q;
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.d;
var to = kotlin_kotlin.$_$.z;
//endregion

@@ -146,40 +147,2 @@ //region block: pre-declaration

};
function replayEvents($this, events) {
if (events.r()) {
return Unit_instance;
}
$this.g6_1.s5(['replaying events', events]);
// Inline function 'kotlin.collections.groupBy' call
// Inline function 'kotlin.collections.groupByTo' call
var destination = LinkedHashMap_init_$Create$();
var tmp0_iterator = events.j();
while (tmp0_iterator.k()) {
var element = tmp0_iterator.m();
// Inline function 'net.devvit.DispatcherImpl.replayEvents.<anonymous>' call
var key = new Pair(element.async, element.retry);
// 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 grouped = destination;
var tmp0_elvis_lhs = grouped.p1(new Pair(true, true));
$this.l6_1.d5(0, tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs);
var tmp1_elvis_lhs = grouped.p1(new Pair(true, false));
$this.l6_1.n(tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs);
var tmp2_elvis_lhs = grouped.p1(new Pair(false, true));
$this.k6_1.d5(0, tmp2_elvis_lhs == null ? emptyList() : tmp2_elvis_lhs);
var tmp3_elvis_lhs = grouped.p1(new Pair(false, false));
$this.k6_1.n(tmp3_elvis_lhs == null ? emptyList() : tmp3_elvis_lhs);
$this.t6();
}
function processBatch($this, batch) {

@@ -190,3 +153,3 @@ if (batch.r()) {

var isBatchSync = !(first(batch).async === true);
var request = $this.c6_1.u6($this.state, batch);
var request = $this.c6_1.t6($this.state, batch);
var tmp;

@@ -197,6 +160,6 @@ var tmp0_elvis_lhs = first(batch).remoteOnly;

} else {
tmp = !$this.v6().isReady();
tmp = !$this.u6().isReady();
}
var isRemote = tmp;
var runtime = isRemote ? $this.w6() : $this.v6();
var runtime = isRemote ? $this.v6() : $this.u6();
var tmp2 = $this.h6_1;

@@ -215,14 +178,14 @@ $this.h6_1 = tmp2 + 1 | 0;

$this.k6_1.e5();
$this.u6().reset();
$this.v6().reset();
$this.w6().reset();
if (isResettingTimers) {
$this.x6().clear();
$this.w6().clear();
}
}
function DispatcherImpl$subscribe$1(this$0, $typedCallback) {
this.y6_1 = this$0;
this.z6_1 = $typedCallback;
this.x6_1 = this$0;
this.y6_1 = $typedCallback;
}
protoOf(DispatcherImpl$subscribe$1).unsubscribe = function () {
this.y6_1.o6_1.h(this.z6_1);
this.x6_1.o6_1.h(this.y6_1);
};

@@ -243,6 +206,6 @@ function DispatcherImpl$processBatch$lambda(this$0, $isRemote, $request, $requestId, $isBatchSync) {

this$0.m6_1 = false;
this$0.t6();
this$0.z6();
tmp = Unit_instance;
}
replayEvents(this$0, toList(rsp.replay));
this$0.a7(toList(rsp.replay));
return Unit_instance;

@@ -253,3 +216,3 @@ };

return function (err) {
this$0.g6_1.a7(['failed with error', err]);
this$0.g6_1.b7(['failed with error', err]);
this$0.n6_1.h1($requestId);

@@ -285,16 +248,20 @@ // Inline function 'kotlin.collections.groupBy' call

if (!(this_1 == null ? true : this_1.r())) {
this$0.g6_1.b7(['rethrowing', err]);
throw err;
// Inline function 'kotlin.collections.toTypedArray' call
var tmp0_elvis_lhs = replayable.p1(false);
var this_2 = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
var events = copyToArray(this_2);
this$0.g6_1.s5(arrayConcat([['unretryable', err], events]));
tmp_0 = this$0.f6_1.errorHandler(err);
}
var tmp_1;
// Inline function 'kotlin.collections.isNullOrEmpty' call
var this_2 = replayable.p1(true);
var this_3 = replayable.p1(true);
// Inline function 'kotlin.contracts.contract' call
if (!(this_2 == null ? true : this_2.r())) {
var tmp0_safe_receiver = replayable.p1(true);
if (tmp0_safe_receiver == null)
if (!(this_3 == null ? true : this_3.r())) {
var tmp1_safe_receiver = replayable.p1(true);
if (tmp1_safe_receiver == null)
null;
else {
// Inline function 'kotlin.collections.forEach' call
var tmp0_iterator_0 = tmp0_safe_receiver.j();
var tmp0_iterator_0 = tmp1_safe_receiver.j();
while (tmp0_iterator_0.k()) {

@@ -307,4 +274,4 @@ var element_0 = tmp0_iterator_0.m();

}
var tmp1_elvis_lhs = replayable.p1(true);
replayEvents(this$0, tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs);
var tmp2_elvis_lhs = replayable.p1(true);
this$0.a7(tmp2_elvis_lhs == null ? emptyList() : tmp2_elvis_lhs);
tmp_1 = Unit_instance;

@@ -345,6 +312,12 @@ }

};
protoOf(DispatcherImpl).e7 = function (_set____db54di) {
protoOf(DispatcherImpl).e7 = function () {
return this.k6_1;
};
protoOf(DispatcherImpl).f7 = function () {
return this.l6_1;
};
protoOf(DispatcherImpl).g7 = function (_set____db54di) {
this.p6_1 = _set____db54di;
};
protoOf(DispatcherImpl).v6 = function () {
protoOf(DispatcherImpl).u6 = function () {
var tmp = this.p6_1;

@@ -357,6 +330,6 @@ if (!(tmp == null))

};
protoOf(DispatcherImpl).f7 = function (_set____db54di) {
protoOf(DispatcherImpl).h7 = function (_set____db54di) {
this.q6_1 = _set____db54di;
};
protoOf(DispatcherImpl).w6 = function () {
protoOf(DispatcherImpl).v6 = function () {
var tmp = this.q6_1;

@@ -369,6 +342,6 @@ if (!(tmp == null))

};
protoOf(DispatcherImpl).g7 = function (_set____db54di) {
protoOf(DispatcherImpl).i7 = function (_set____db54di) {
this.r6_1 = _set____db54di;
};
protoOf(DispatcherImpl).x6 = function () {
protoOf(DispatcherImpl).w6 = function () {
var tmp = this.r6_1;

@@ -381,3 +354,3 @@ if (!(tmp == null))

};
protoOf(DispatcherImpl).h7 = function () {
protoOf(DispatcherImpl).j7 = function () {
return this.s6_1;

@@ -390,3 +363,3 @@ };

this.r6_1 = timers;
this.t6();
this.z6();
};

@@ -398,6 +371,6 @@ protoOf(DispatcherImpl).subscribe = function (callback) {

};
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...']);
protoOf(DispatcherImpl).z6 = function () {
this.g6_1.s5(['ticking', this.l6_1.w4_1, this.k6_1.w4_1]);
if ((!this.u6().isReady() ? !this.v6().isReady() : false) ? !(this.k6_1.r() ? this.l6_1.r() : false) : false) {
this.g6_1.b7(['ticking with events and no runtime, deferring...']);
return Unit_instance;

@@ -414,5 +387,43 @@ }

}
this.t6();
this.z6();
}
};
protoOf(DispatcherImpl).a7 = function (events) {
if (events.r()) {
return Unit_instance;
}
this.g6_1.s5(['replaying events', events]);
// Inline function 'kotlin.collections.groupBy' call
// Inline function 'kotlin.collections.groupByTo' call
var destination = LinkedHashMap_init_$Create$();
var tmp0_iterator = events.j();
while (tmp0_iterator.k()) {
var element = tmp0_iterator.m();
// Inline function 'net.devvit.DispatcherImpl.replayEvents.<anonymous>' call
var key = new Pair(element.async === true, element.retry === true);
// 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 grouped = destination;
var tmp0_elvis_lhs = grouped.p1(new Pair(true, true));
this.l6_1.d5(0, tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs);
var tmp1_elvis_lhs = grouped.p1(new Pair(true, false));
this.l6_1.n(tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs);
var tmp2_elvis_lhs = grouped.p1(new Pair(false, true));
this.k6_1.d5(0, tmp2_elvis_lhs == null ? emptyList() : tmp2_elvis_lhs);
var tmp3_elvis_lhs = grouped.p1(new Pair(false, false));
this.k6_1.n(tmp3_elvis_lhs == null ? emptyList() : tmp3_elvis_lhs);
this.z6();
};
protoOf(DispatcherImpl).submit = function (events) {

@@ -432,3 +443,3 @@ this.g6_1.s5(['submitted', events]);

}
this.t6();
this.z6();
};

@@ -446,7 +457,7 @@ protoOf(DispatcherImpl).reset = function () {

var tmp$ret$1 = copyToArray(this_1);
return new DispatcherSnapshot(tmp, tmp_0, tmp$ret$1, this.v6().snapshot(), this.w6().snapshot(), this.x6().list());
return new DispatcherSnapshot(tmp, tmp_0, tmp$ret$1, this.u6().snapshot(), this.v6().snapshot(), this.w6().list());
};
protoOf(DispatcherImpl).pause = function () {
var snap = this.snapshot();
this.x6().pauseAll();
this.w6().pauseAll();
reset(this, false);

@@ -463,15 +474,26 @@ return snap;

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);
this.u6().resume(snap.localSnapshot);
this.v6().resume(snap.remoteSnapshot);
this.w6().resumeAll(snap.timerSnapshot);
};
function EmptyOptions$errorHandler$lambda(it) {
return Unit_instance;
}
function EmptyOptions() {
this.i7_1 = new NoOpLogger();
this.k7_1 = new NoOpLogger();
var tmp = this;
tmp.l7_1 = EmptyOptions$errorHandler$lambda;
}
protoOf(EmptyOptions).j7 = function (_set____db54di) {
this.i7_1 = _set____db54di;
protoOf(EmptyOptions).m7 = function (_set____db54di) {
this.k7_1 = _set____db54di;
};
protoOf(EmptyOptions).k7 = function () {
return this.i7_1;
protoOf(EmptyOptions).n7 = function () {
return this.k7_1;
};
protoOf(EmptyOptions).o7 = function (_set____db54di) {
this.l7_1 = _set____db54di;
};
protoOf(EmptyOptions).p7 = function () {
return this.l7_1;
};
function DispatcherSnapshot(state, syncQueue, asyncQueue, localSnapshot, remoteSnapshot, timerSnapshot) {

@@ -488,15 +510,15 @@ this.state = state;

};
protoOf(DispatcherSnapshot).l7 = function () {
protoOf(DispatcherSnapshot).e7 = function () {
return this.syncQueue;
};
protoOf(DispatcherSnapshot).m7 = function () {
protoOf(DispatcherSnapshot).f7 = function () {
return this.asyncQueue;
};
protoOf(DispatcherSnapshot).n7 = function () {
protoOf(DispatcherSnapshot).q7 = function () {
return this.localSnapshot;
};
protoOf(DispatcherSnapshot).o7 = function () {
protoOf(DispatcherSnapshot).r7 = function () {
return this.remoteSnapshot;
};
protoOf(DispatcherSnapshot).p7 = function () {
protoOf(DispatcherSnapshot).s7 = function () {
return this.timerSnapshot;

@@ -510,15 +532,15 @@ };

};
protoOf(DispatcherSnapshot).q7 = function () {
protoOf(DispatcherSnapshot).t7 = function () {
return this.asyncQueue;
};
protoOf(DispatcherSnapshot).r7 = function () {
protoOf(DispatcherSnapshot).u7 = function () {
return this.localSnapshot;
};
protoOf(DispatcherSnapshot).s7 = function () {
protoOf(DispatcherSnapshot).v7 = function () {
return this.remoteSnapshot;
};
protoOf(DispatcherSnapshot).t7 = function () {
protoOf(DispatcherSnapshot).w7 = function () {
return this.timerSnapshot;
};
protoOf(DispatcherSnapshot).u7 = function (state, syncQueue, asyncQueue, localSnapshot, remoteSnapshot, timerSnapshot) {
protoOf(DispatcherSnapshot).x7 = function (state, syncQueue, asyncQueue, localSnapshot, remoteSnapshot, timerSnapshot) {
return new DispatcherSnapshot(state, syncQueue, asyncQueue, localSnapshot, remoteSnapshot, timerSnapshot);

@@ -533,3 +555,3 @@ };

timerSnapshot = timerSnapshot === VOID ? this.timerSnapshot : timerSnapshot;
return this.u7(state, syncQueue, asyncQueue, localSnapshot, remoteSnapshot, timerSnapshot);
return this.x7(state, syncQueue, asyncQueue, localSnapshot, remoteSnapshot, timerSnapshot);
};

@@ -572,5 +594,2 @@ protoOf(DispatcherSnapshot).toString = function () {

protoOf(NiceLogger).b7 = function (messages) {
this.r5_1.error(messages);
};
protoOf(NiceLogger).a7 = function (messages) {
this.r5_1.warn(messages);

@@ -595,6 +614,6 @@ };

}
protoOf(TimerDefinition).v7 = function () {
protoOf(TimerDefinition).y7 = function () {
return this.id;
};
protoOf(TimerDefinition).w7 = function () {
protoOf(TimerDefinition).z7 = function () {
return this.duration;

@@ -608,3 +627,3 @@ };

};
protoOf(TimerDefinition).x7 = function (id, duration) {
protoOf(TimerDefinition).a8 = function (id, duration) {
return new TimerDefinition(id, duration);

@@ -615,3 +634,3 @@ };

duration = duration === VOID ? this.duration : duration;
return this.x7(id, duration);
return this.a8(id, duration);
};

@@ -642,15 +661,15 @@ protoOf(TimerDefinition).toString = function () {

DispatcherImpl.call(this, state, new JsRequestBuilderAdapter(requestBuilder), new JsonStateOperations(), method, options);
this.q8_1 = method;
this.r8_1 = options;
this.t8_1 = method;
this.u8_1 = options;
}
function JsRequestBuilderAdapter(jsRequestBuilder) {
this.s8_1 = jsRequestBuilder;
this.v8_1 = jsRequestBuilder;
}
protoOf(JsRequestBuilderAdapter).t8 = function (state, events) {
protoOf(JsRequestBuilderAdapter).w8 = function (state, events) {
// Inline function 'kotlin.collections.toTypedArray' call
var tmp$ret$0 = copyToArray(events);
return this.s8_1.build(state, tmp$ret$0);
return this.v8_1.build(state, tmp$ret$0);
};
protoOf(JsRequestBuilderAdapter).u6 = function (state, events) {
return this.t8((!(state == null) ? !(state == null) : false) ? state : THROW_CCE(), events);
protoOf(JsRequestBuilderAdapter).t6 = function (state, events) {
return this.w8((!(state == null) ? !(state == null) : false) ? state : THROW_CCE(), events);
};

@@ -706,6 +725,11 @@ function entriesOf(jsObject) {

defineProp(protoOf(EmptyOptions), 'logger', function () {
return this.k7();
return this.n7();
}, function (value) {
this.j7(value);
this.m7(value);
});
defineProp(protoOf(EmptyOptions), 'errorHandler', function () {
return this.p7();
}, function (value) {
this.o7(value);
});
defineProp(protoOf(JsDispatcherImpl), 'state', function () {

@@ -712,0 +736,0 @@ return this.d7();

{
"name": "@devvit/multiplatform",
"version": "0.0.1-20240517-739a3a45",
"version": "0.0.1-20240517-8ad107ea",
"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