@sealsystems/droddel
Advanced tools
Comparing version 2.0.0 to 2.1.0
'use strict'; | ||
const droddel = function (fn) { | ||
const droddel = function(fn) { | ||
if (!fn) { | ||
@@ -10,3 +10,3 @@ throw new Error('Function is missing'); | ||
const throtteledFn = function () { | ||
const throtteledFn = function() { | ||
return new Promise((resolve, reject) => { | ||
@@ -17,8 +17,8 @@ if (!promise) { | ||
promise. | ||
then((result) => { | ||
promise | ||
.then((result) => { | ||
promise = undefined; | ||
resolve(result); | ||
}). | ||
catch((err) => { | ||
}) | ||
.catch((err) => { | ||
promise = undefined; | ||
@@ -25,0 +25,0 @@ reject(err); |
{ | ||
"name": "@sealsystems/droddel", | ||
"version": "2.0.0", | ||
"version": "2.1.0", | ||
"description": "Serialize asynchronous calls", | ||
@@ -13,8 +13,10 @@ "author": { | ||
"bot": "bot", | ||
"release": "bot release && npm publish", | ||
"release-minor": "bot release --type minor && npm publish", | ||
"release-major": "bot release --type major && npm publish", | ||
"test": "bot test-units", | ||
"coverage": "istanbul cover _mocha -- --recursive --ui tdd ", | ||
"report": "npm run coverage && if [[ $OSTYPE == darwin* ]]; then open=open; else open=xdg-open; fi && $open coverage/lcov-report/index.html" | ||
"lint": "lint", | ||
"lint:fix": "lint-fix", | ||
"release": "release", | ||
"test": "test-run", | ||
"test:coverage": "test-coverage", | ||
"test:coverage:check": "test-coverage-check", | ||
"test:report": "test-report", | ||
"licenses": "license-checker --production --csv" | ||
}, | ||
@@ -24,6 +26,5 @@ "main": "lib/droddel.js", | ||
"devDependencies": { | ||
"@sealsystems/eslint-config-es": "1.0.0", | ||
"assertthat": "0.11.0", | ||
"roboter": "0.15.4", | ||
"roboter-server": "0.15.4" | ||
"@sealsystems/eslint-config-es": "3.5.4", | ||
"@sealsystems/mocha": "4.1.1", | ||
"@sealsystems/semantic-release": "4.0.12" | ||
}, | ||
@@ -33,3 +34,9 @@ "repository": { | ||
"url": "git://github.com/sealsystems/node-droddel.git" | ||
}, | ||
"release": { | ||
"extends": "@sealsystems/semantic-release/node-module" | ||
}, | ||
"publishConfig": { | ||
"access": "public" | ||
} | ||
} |
# @sealsystems/droddel | ||
[![CircleCI](https://circleci.com/gh/sealsystems/seal-droddel.svg?style=svg)](https://circleci.com/gh/sealsystems/seal-droddel) | ||
[![AppVeyor](https://ci.appveyor.com/api/projects/status/9tmhr4nt442rkvjy?svg=true)](https://ci.appveyor.com/project/Plossys/seal-droddel) | ||
[![CircleCI](https://circleci.com/gh/sealsystems/node-droddel.svg?style=svg)](https://circleci.com/gh/sealsystems/node-droddel) | ||
[![AppVeyor](https://ci.appveyor.com/api/projects/status/v61t9v04d4q32oo4?svg=true)](https://ci.appveyor.com/project/Plossys/node-droddel) | ||
@@ -6,0 +6,0 @@ Serialize asynchronous calls. |
Sorry, the diff of this file is not supported yet
3
4609
5
25