@nxtedition/lib 19.4.9 → 19.4.11

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nxtedition/lib",
3
- "version": "19.4.9",
3
+ "version": "19.4.11",
4
4
  "license": "MIT",
5
5
  "author": "Robert Nagy <robert.nagy@boffins.se>",
6
6
  "type": "module",
@@ -164,7 +164,7 @@ class PromiseEntry {
164
164
  }
165
165
  }
166
166
 
167
- function pipe(value, fns) {
167
+ function pipe(value, ...fns) {
168
168
  for (const fn of fns) {
169
169
  value = fn(value)
170
170
  if (value == null) {
@@ -570,7 +570,7 @@ export default function ({ ds, proxify, compiler }) {
570
570
  script = new vm.Script(`
571
571
  "use strict";
572
572
  {
573
- const _ = (value, ...args) => pipe(value, args);
573
+ const _ = pipe;
574
574
  _.asset = (type, state, throws) => (id) => nxt._asset(id, type, state, throws);
575
575
  _.ds = (postfix, state, throws) => (id) => nxt._ds(id, postfix, state, throws);
576
576
  _.timer = (dueTime) => (dueValue) => nxt.timer(dueTime, dueValue);