@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
|
@@ -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 _ =
|
|
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);
|