🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

fist-fistlabs_unit_serial

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fist-fistlabs_unit_serial

fist plugin which provides serial unit

latest
Source
npmnpm
Version
0.0.3
Version published
Maintainers
1
Created
Source

fist-fistlabs_unit_serial Build Status

fist-fistlabs_unit_serial is a fist plugin that provides abstract unit _fistlabs_unit_serial.

##Usage

$ npm i fist-fistlabs_unit_serial
app.install('fist-fistlabs_unit_serial');
app.unit({
    base: '_fistlabs_unit_serial',
    name: 'foo',
    series: ['foo', 'bar'],
    foo: function (track, context) {
        return 1;
    },
    bar: function (track, context) {
        return context.prev + 1;
    }
});
  • Inherit from _fistlabs_unit_serial
  • Define steps which elements is unit function members names.
  • Define the methods which represents execution series.

After each step the unit keep previous step returned value in context.prev property. Last step result is a unit execution result. If one of steps was rejected, the unit will try to call e<stepName> method as fallback if exists, but other methods will not be called. To stop steps execution propagation, call context.series.clear()

Any step can be asynchronous if returned promise

LICENSE MIT

FAQs

Package last updated on 17 Mar 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts