@cripty2001/utils 0.0.207 → 0.0.209
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/Appserver/server.js +4 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/Appserver/server.js
CHANGED
|
@@ -143,7 +143,10 @@ class Appserver {
|
|
|
143
143
|
if (this.registered.has(action))
|
|
144
144
|
throw new Error(`Action ${action} is already registered`);
|
|
145
145
|
this.registered.add(action);
|
|
146
|
-
this.app.post(action, express_1.default.raw({
|
|
146
|
+
this.app.post(action, express_1.default.raw({
|
|
147
|
+
type: 'application/vnd.msgpack',
|
|
148
|
+
limit: '1gb'
|
|
149
|
+
}), async (req, res) => {
|
|
147
150
|
const { status, data } = await (async () => {
|
|
148
151
|
try {
|
|
149
152
|
const { data: unsafeData, user } = await this.parseInput(req);
|
package/dist/index.js
CHANGED
|
@@ -217,7 +217,7 @@ const CURRENT_TS_MS = () => {
|
|
|
217
217
|
};
|
|
218
218
|
exports.CURRENT_TS_MS = CURRENT_TS_MS;
|
|
219
219
|
function getClock(rate) {
|
|
220
|
-
return
|
|
220
|
+
return (0, exports.CURRENT_TS_MS)().transform((curr) => Math.floor(curr / rate));
|
|
221
221
|
}
|
|
222
222
|
function timediff2HumanReadable(diffMs) {
|
|
223
223
|
const { unit, diff } = (() => {
|
package/package.json
CHANGED