@acidify/core 0.5.3 → 0.5.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/acidify-acidify-core.js +37 -26
- package/package.json +3 -3
|
@@ -142,6 +142,17 @@ if (typeof Array.prototype.fill === "undefined") {
|
|
|
142
142
|
Object.defineProperty(TypedArray.prototype, "fill", { value: Array.prototype.fill });
|
|
143
143
|
}
|
|
144
144
|
});
|
|
145
|
+
if (typeof Math.trunc === "undefined") {
|
|
146
|
+
Math.trunc = function(x) {
|
|
147
|
+
if (isNaN(x)) {
|
|
148
|
+
return NaN;
|
|
149
|
+
}
|
|
150
|
+
if (x > 0) {
|
|
151
|
+
return Math.floor(x);
|
|
152
|
+
}
|
|
153
|
+
return Math.ceil(x);
|
|
154
|
+
};
|
|
155
|
+
}
|
|
145
156
|
if (typeof Math.clz32 === "undefined") {
|
|
146
157
|
Math.clz32 = /* @__PURE__ */ (function(log, LN2) {
|
|
147
158
|
return function(x) {
|
|
@@ -153,16 +164,11 @@ if (typeof Math.clz32 === "undefined") {
|
|
|
153
164
|
};
|
|
154
165
|
})(Math.log, Math.LN2);
|
|
155
166
|
}
|
|
156
|
-
if (typeof
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
if (x > 0) {
|
|
162
|
-
return Math.floor(x);
|
|
163
|
-
}
|
|
164
|
-
return Math.ceil(x);
|
|
165
|
-
};
|
|
167
|
+
if (typeof String.prototype.startsWith === "undefined") {
|
|
168
|
+
Object.defineProperty(String.prototype, "startsWith", { value: function(searchString, position) {
|
|
169
|
+
position = position || 0;
|
|
170
|
+
return this.lastIndexOf(searchString, position) === position;
|
|
171
|
+
} });
|
|
166
172
|
}
|
|
167
173
|
if (typeof String.prototype.endsWith === "undefined") {
|
|
168
174
|
Object.defineProperty(String.prototype, "endsWith", { value: function(searchString, position) {
|
|
@@ -175,12 +181,6 @@ if (typeof String.prototype.endsWith === "undefined") {
|
|
|
175
181
|
return lastIndex !== -1 && lastIndex === position;
|
|
176
182
|
} });
|
|
177
183
|
}
|
|
178
|
-
if (typeof String.prototype.startsWith === "undefined") {
|
|
179
|
-
Object.defineProperty(String.prototype, "startsWith", { value: function(searchString, position) {
|
|
180
|
-
position = position || 0;
|
|
181
|
-
return this.lastIndexOf(searchString, position) === position;
|
|
182
|
-
} });
|
|
183
|
-
}
|
|
184
184
|
var imul_0 = Math.imul;
|
|
185
185
|
var trunc = Math.trunc;
|
|
186
186
|
var isView = ArrayBuffer.isView;
|
|
@@ -13595,7 +13595,18 @@ protoOf(Duration).equals = function(other) {
|
|
|
13595
13595
|
};
|
|
13596
13596
|
function toDuration(_this__u8e3s4, unit) {
|
|
13597
13597
|
var maxNsInUnit = convertDurationUnitOverflow(4611686018426999999n, DurationUnit_NANOSECONDS_getInstance(), unit);
|
|
13598
|
-
|
|
13598
|
+
var tmp;
|
|
13599
|
+
if (negate_0(maxNsInUnit) <= _this__u8e3s4 ? _this__u8e3s4 <= maxNsInUnit : false) {
|
|
13600
|
+
tmp = durationOfNanos(convertDurationUnitOverflow(_this__u8e3s4, unit, DurationUnit_NANOSECONDS_getInstance()));
|
|
13601
|
+
} else if (unit.m3(DurationUnit_MILLISECONDS_getInstance()) >= 0) {
|
|
13602
|
+
var tmp_0 = get_sign(_this__u8e3s4);
|
|
13603
|
+
var this_0 = -9223372036854775808n;
|
|
13604
|
+
var tmp$ret$0 = add_0(this_0, fromInt_0(1));
|
|
13605
|
+
tmp = durationOfMillis(multiply_0(numberToLong(tmp_0), convertDurationUnitToMilliseconds(abs_1(coerceAtLeast_0(_this__u8e3s4, tmp$ret$0)), unit)));
|
|
13606
|
+
} else {
|
|
13607
|
+
tmp = durationOfMillis(coerceIn(convertDurationUnit(_this__u8e3s4, unit, DurationUnit_MILLISECONDS_getInstance()), -4611686018427387903n, 4611686018427387903n));
|
|
13608
|
+
}
|
|
13609
|
+
return tmp;
|
|
13599
13610
|
}
|
|
13600
13611
|
function durationOfMillis(normalMillis) {
|
|
13601
13612
|
var tmp = Companion_getInstance_20();
|
|
@@ -16987,11 +16998,6 @@ initMetadataForClass(SendBroadcast, "SendBroadcast", VOID, VOID, [Waiter]);
|
|
|
16987
16998
|
initMetadataForClass(BufferedChannelIterator, "BufferedChannelIterator", VOID, VOID, [Waiter], [0, 3]);
|
|
16988
16999
|
initMetadataForCoroutine($sendCOROUTINE$, CoroutineImpl);
|
|
16989
17000
|
initMetadataForCoroutine($receiveCOROUTINE$, CoroutineImpl);
|
|
16990
|
-
function close$default(cause, $super) {
|
|
16991
|
-
cause = cause === VOID ? null : cause;
|
|
16992
|
-
return $super === VOID ? this.j2a(cause) : $super.j2a.call(this, cause);
|
|
16993
|
-
}
|
|
16994
|
-
initMetadataForInterface(SendChannel, "SendChannel", VOID, VOID, VOID, [1]);
|
|
16995
17001
|
function cancel$default_0(cause, $super) {
|
|
16996
17002
|
cause = cause === VOID ? null : cause;
|
|
16997
17003
|
var tmp;
|
|
@@ -17004,7 +17010,12 @@ function cancel$default_0(cause, $super) {
|
|
|
17004
17010
|
return tmp;
|
|
17005
17011
|
}
|
|
17006
17012
|
initMetadataForInterface(ReceiveChannel, "ReceiveChannel", VOID, VOID, VOID, [0]);
|
|
17007
|
-
|
|
17013
|
+
function close$default(cause, $super) {
|
|
17014
|
+
cause = cause === VOID ? null : cause;
|
|
17015
|
+
return $super === VOID ? this.j2a(cause) : $super.j2a.call(this, cause);
|
|
17016
|
+
}
|
|
17017
|
+
initMetadataForInterface(SendChannel, "SendChannel", VOID, VOID, VOID, [1]);
|
|
17018
|
+
initMetadataForClass(BufferedChannel, "BufferedChannel", VOID, VOID, [ReceiveChannel, SendChannel], [1, 4, 0, 3]);
|
|
17008
17019
|
initMetadataForClass(WaiterEB, "WaiterEB");
|
|
17009
17020
|
initMetadataForClass(ReceiveCatching, "ReceiveCatching", VOID, VOID, [Waiter]);
|
|
17010
17021
|
initMetadataForObject(Factory, "Factory");
|
|
@@ -17014,7 +17025,7 @@ initMetadataForCompanion(Companion2);
|
|
|
17014
17025
|
initMetadataForClass(ChannelResult, "ChannelResult");
|
|
17015
17026
|
initMetadataForClass(ClosedReceiveChannelException, "ClosedReceiveChannelException", VOID, NoSuchElementException);
|
|
17016
17027
|
initMetadataForClass(ClosedSendChannelException, "ClosedSendChannelException", VOID, IllegalStateException);
|
|
17017
|
-
initMetadataForClass(ChannelCoroutine, "ChannelCoroutine", VOID, AbstractCoroutine, [AbstractCoroutine,
|
|
17028
|
+
initMetadataForClass(ChannelCoroutine, "ChannelCoroutine", VOID, AbstractCoroutine, [AbstractCoroutine, ReceiveChannel, SendChannel], [1, 0]);
|
|
17018
17029
|
initMetadataForClass(ConflatedBufferedChannel, "ConflatedBufferedChannel", VOID, BufferedChannel, VOID, [1, 0]);
|
|
17019
17030
|
initMetadataForInterface(ProducerScope, "ProducerScope", VOID, VOID, [CoroutineScope, SendChannel], [1]);
|
|
17020
17031
|
initMetadataForClass(ProducerCoroutine, "ProducerCoroutine", VOID, ChannelCoroutine, [ChannelCoroutine, ProducerScope], [1, 0]);
|
|
@@ -66898,7 +66909,7 @@ initMetadataForClass(TCPClientSocketOptions, "TCPClientSocketOptions", VOID, Pee
|
|
|
66898
66909
|
initMetadataForCompanion(Companion15);
|
|
66899
66910
|
initMetadataForClass(TcpSocketBuilder, "TcpSocketBuilder", VOID, VOID, VOID, [3, 2]);
|
|
66900
66911
|
initMetadataForCompanion(Companion_09);
|
|
66901
|
-
initMetadataForObject(NoopSelectorManager, "NoopSelectorManager", VOID, VOID, [
|
|
66912
|
+
initMetadataForObject(NoopSelectorManager, "NoopSelectorManager", VOID, VOID, [AutoCloseable, CoroutineScope], [2]);
|
|
66902
66913
|
initMetadataForClass(SocketContext, "SocketContext");
|
|
66903
66914
|
initMetadataForLambda(SocketImpl$attachForReadingImpl$slambda, CoroutineImpl, VOID, [1]);
|
|
66904
66915
|
initMetadataForLambda(SocketImpl$attachForWritingImpl$slambda, CoroutineImpl, VOID, [1]);
|
|
@@ -68180,7 +68191,7 @@ function createDocument_0(namespace, qualifiedName, documentType) {
|
|
|
68180
68191
|
}
|
|
68181
68192
|
initMetadataForInterface(IDOMImplementation, "IDOMImplementation", VOID, VOID, [DOMImplementation]);
|
|
68182
68193
|
initMetadataForObject(DOMImplementationImpl, "DOMImplementationImpl", VOID, VOID, [IDOMImplementation]);
|
|
68183
|
-
initMetadataForClass(DocumentFragmentImpl, "DocumentFragmentImpl", VOID, NodeImpl, [NodeImpl,
|
|
68194
|
+
initMetadataForClass(DocumentFragmentImpl, "DocumentFragmentImpl", VOID, NodeImpl, [NodeImpl, Node_0, INode]);
|
|
68184
68195
|
function getInputEncoding_0() {
|
|
68185
68196
|
return this.inputEncoding;
|
|
68186
68197
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@acidify/core",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.4",
|
|
4
4
|
"description": "Kotlin NTQQ protocol implementation, ported to JS",
|
|
5
5
|
"main": "dist/acidify-acidify-core.js",
|
|
6
6
|
"typings": "dist/acidify-acidify-core.d.ts",
|
|
@@ -22,12 +22,12 @@
|
|
|
22
22
|
"homepage": "https://acidify.ntqqrev.org/",
|
|
23
23
|
"author": "LagrangeDev",
|
|
24
24
|
"license": "GPL-3.0-only",
|
|
25
|
-
"packageManager": "pnpm@10.
|
|
25
|
+
"packageManager": "pnpm@10.26.0",
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"ws": "^8.18.3"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"tsup": "^8.5.
|
|
30
|
+
"tsup": "^8.5.1",
|
|
31
31
|
"typescript": "^5.9.3"
|
|
32
32
|
}
|
|
33
33
|
}
|