@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.
@@ -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({ type: 'application/vnd.msgpack' }), async (req, res) => {
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 currentTsMs.transform((curr) => Math.floor(curr / rate));
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cripty2001/utils",
3
- "version": "0.0.207",
3
+ "version": "0.0.209",
4
4
  "description": "Internal Set of utils. If you need them use them, otherwise go to the next package ;)",
5
5
  "homepage": "https://github.com/cripty2001/utils#readme",
6
6
  "bugs": {