Skip to content

Commit

Permalink
Merge pull request #10 from Shopify/process
Browse files Browse the repository at this point in the history
use process library instead of relying on Node's process object
  • Loading branch information
malte-wessel authored Mar 23, 2017
2 parents 2d53f35 + 365322d commit 96d7a42
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
14 changes: 8 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@
"url": "https://github.com/malte-wessel/react-textfit.git"
},
"keywords": [
"textfit",
"fittext",
"text",
"react",
"react-component"
"textfit",
"fittext",
"text",
"react",
"react-component"
],
"author": "Malte Wessel",
"license": "MIT",
Expand Down Expand Up @@ -51,5 +51,7 @@
"react": "^0.14.0",
"react-dom": "^0.14.0"
},
"dependencies": {}
"dependencies": {
"process": "^0.11.9"
}
}
3 changes: 3 additions & 0 deletions src/utils/series.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
* @params {Array} tasks An array containing functions to run, each function is passed a callback(err, result) which it must call on completion with an error err (which can be null) and an optional result value.
* @params {Function} callback(err, results) - An optional callback to run once all the functions have completed. This function gets a results array containing all the result arguments passed to the task callbacks.
*/

import process from 'process';

export default function series(tasks, cb) {
const results = [];
let current = 0;
Expand Down

0 comments on commit 96d7a42

Please sign in to comment.