Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

breeze

Package Overview
Dependencies
Maintainers
2
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

breeze - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

.npmignore

41

breeze.js

@@ -11,2 +11,3 @@ /**

*
* @private
* @param {Function} next Next callback in the system to be invoked.

@@ -36,3 +37,3 @@ * @return {Function} Completion callback, first argument is error, subsequent arguments are passed down the chain.

if (next) {
args.push(system.createDoneCallback(this.steps.shift()))
args.unshift(system.createDoneCallback(system.steps.shift()))
next.apply(this, args)

@@ -44,3 +45,3 @@ } else {

system.check()
system.check(true)
}

@@ -50,19 +51,35 @@ }

/**
* Starts the next task to be completed.
*
* @private
* @return {void}
*/
Breeze.prototype.run = function _breezeRun () {
var args = this.args || []
this.running = true
func = this.steps.shift()
args.unshift(this.createDoneCallback(this.steps.shift()))
func.apply(this.context, args)
}
/**
* Checks whether the system is running, needs to be ran, or has completed
* running.
*
* @private
* @return {void}
*/
Breeze.prototype.check = function _breezeCheck () {
var func
Breeze.prototype.check = function _breezeCheck (pop) {
if (pop) {
if (this.steps.length) {
this.run()
} else {
this.running = false
}
args = this.args || []
return
}
if (!this.running && this.steps.length) {
this.running = true
func = this.steps.shift()
args.unshift(this.createDoneCallback(this.steps.shift()))
func.apply(this.context, args)
} else if (this.running && !this.steps.length) {
this.running = false
if (this.steps.length && !this.running) {
this.run()
}

@@ -69,0 +86,0 @@ }

{
"name": "breeze",
"version": "1.0.0",
"version": "1.0.1",
"description": "Functional async flow control library",

@@ -5,0 +5,0 @@ "main": "breeze.js",

@@ -7,6 +7,3 @@ # Breeze

[![License][npm-license]][license-url]
[![Build Status][travis-image]][travis-url]
[![Downloads][npm-downloads]][npm-url]
[![Code Climate][codeclimate-quality]][codeclimate-url]
[![Coverage Status][codeclimate-coverage]][codeclimate-url]
[![Dependencies][david-image]][david-url]

@@ -84,3 +81,2 @@

[download]: https://github.com/Nijikokun/breeze/archive/v1.0.0.zip
[mithril]: https://github.com/lhorie/mithril.js
[download]: https://github.com/Nijikokun/breeze/archive/v1.0.1.zip
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc