Comparing version 0.2.8 to 0.2.9
@@ -78,4 +78,7 @@ /*global setImmediate: false, setTimeout: false, console: false */ | ||
if (typeof setImmediate === 'function') { | ||
async.setImmediate = setImmediate; | ||
async.nextTick = setImmediate; | ||
async.nextTick = function (fn) { | ||
// not a direct alias for IE10 compatibility | ||
setImmediate(fn); | ||
}; | ||
async.setImmediate = async.nextTick; | ||
} | ||
@@ -82,0 +85,0 @@ else { |
@@ -6,9 +6,9 @@ { | ||
"author": "Caolan McMahon", | ||
"version": "0.2.8", | ||
"version": "0.2.9", | ||
"repository" : { | ||
"type" : "git", | ||
"url" : "http://github.com/caolan/async.git" | ||
"url" : "https://github.com/caolan/async.git" | ||
}, | ||
"bugs" : { | ||
"url" : "http://github.com/caolan/async/issues" | ||
"url" : "https://github.com/caolan/async/issues" | ||
}, | ||
@@ -18,3 +18,3 @@ "licenses" : [ | ||
"type" : "MIT", | ||
"url" : "http://github.com/caolan/async/raw/master/LICENSE" | ||
"url" : "https://github.com/caolan/async/raw/master/LICENSE" | ||
} | ||
@@ -21,0 +21,0 @@ ], |
@@ -6,3 +6,3 @@ # Async.js | ||
use with [node.js](http://nodejs.org), it can also be used directly in the | ||
browser. | ||
browser. Also supports [component](https://github.com/component/component). | ||
@@ -23,3 +23,3 @@ Async provides around 20 functions that include the usual 'functional' | ||
async.filter(['file1','file2','file3'], path.exists, function(results){ | ||
async.filter(['file1','file2','file3'], fs.exists, function(results){ | ||
// results now equals an array of the existing files | ||
@@ -315,3 +315,3 @@ }); | ||
false, it does not accept an error argument first!_ This is in-line with the | ||
way node libraries work with truth tests like path.exists. This operation is | ||
way node libraries work with truth tests like fs.exists. This operation is | ||
performed in parallel, but the results array will be in the same order as the | ||
@@ -332,3 +332,3 @@ original. | ||
```js | ||
async.filter(['file1','file2','file3'], path.exists, function(results){ | ||
async.filter(['file1','file2','file3'], fs.exists, function(results){ | ||
// results now equals an array of the existing files | ||
@@ -442,3 +442,3 @@ }); | ||
```js | ||
async.detect(['file1','file2','file3'], path.exists, function(result){ | ||
async.detect(['file1','file2','file3'], fs.exists, function(result){ | ||
// result now equals the first file in the list that exists | ||
@@ -499,3 +499,3 @@ }); | ||
false, it does not accept an error argument first!_ This is in-line with the | ||
way node libraries work with truth tests like path.exists. Once any iterator | ||
way node libraries work with truth tests like fs.exists. Once any iterator | ||
call returns true, the main callback is immediately called. | ||
@@ -516,3 +516,3 @@ | ||
```js | ||
async.some(['file1','file2','file3'], path.exists, function(result){ | ||
async.some(['file1','file2','file3'], fs.exists, function(result){ | ||
// if result is true then at least one of the files exists | ||
@@ -532,3 +532,3 @@ }); | ||
false, it does not accept an error argument first!_ This is in-line with the | ||
way node libraries work with truth tests like path.exists. | ||
way node libraries work with truth tests like fs.exists. | ||
@@ -548,3 +548,3 @@ __Arguments__ | ||
```js | ||
async.every(['file1','file2','file3'], path.exists, function(result){ | ||
async.every(['file1','file2','file3'], fs.exists, function(result){ | ||
// if result is true then every file exists | ||
@@ -551,0 +551,0 @@ }); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
74218
5
896