New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

concurrent

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

concurrent - npm Package Compare versions

Comparing version 0.1.0 to 0.2.1

bower.json

38

Gruntfile.js

@@ -10,2 +10,33 @@ module.exports = function(grunt) {

},
concat: {
options: {
banner: grunt.file.read('browser/banner.jst'),
footer: grunt.file.read('browser/footer.jst'),
process: function(src) {
var noModules = src.replace('= module.exports =', '=');
return noModules.replace(/var .+? = require\(.+?\);/g, '');
}
},
dist: {
src: [
'lib/state.js',
'lib/promise.js',
'lib/future.js',
'lib/collections.js'
],
dest: 'browser/concurrent.js'
}
},
uglify: {
dist: {
files: {
'browser/concurrent.min.js': ['browser/concurrent.js']
}
}
},
shell: {
docs: {
command: 'docker -i lib -o doc'
}
},
'gh-pages': {

@@ -19,4 +50,11 @@ options: {

grunt.registerTask('default', ['jshint', 'concat', 'uglify']);
grunt.registerTask('docs', ['shell', 'gh-pages']);
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-shell');
grunt.loadNpmTasks('grunt-gh-pages');
grunt.loadNpmTasks('grunt-bump');
};

18

lib/collections.js
var Future = require('./future');
var next = require('./next');
var collections = module.exports = {};
/**

@@ -11,3 +13,3 @@ * Iterates over the collection an fulfills with the array

*/
var forEach = exports.forEach = function(arr, iterator) {
var forEach = collections.forEach = function(arr, iterator) {
var future = new Future();

@@ -40,3 +42,3 @@ var completed = 0;

*/
var every = exports.every = function(arr, predicate) {
var every = collections.every = function(arr, predicate) {
var future = new Future();

@@ -66,3 +68,3 @@

*/
var some = exports.some = function(arr, predicate) {
var some = collections.some = function(arr, predicate) {
var future = new Future();

@@ -92,3 +94,3 @@

*/
var filter = exports.filter = function(arr, predicate) {
var filter = collections.filter = function(arr, predicate) {
var future = new Future();

@@ -119,3 +121,3 @@ var elements = [];

*/
var map = exports.map = function(arr, transform) {
var map = collections.map = function(arr, transform) {
var future = new Future();

@@ -143,3 +145,3 @@ var elements = [];

*/
var reverse = exports.reverse = function(arr) {
var reverse = collections.reverse = function(arr) {
var future = new Future();

@@ -169,3 +171,3 @@ var elements = [];

*/
var reduce = exports.reduce = function(arr, transform, initial) {
var reduce = collections.reduce = function(arr, transform, initial) {
var future = new Future();

@@ -204,3 +206,3 @@ var accumulator, list;

*/
var reduceRight = exports.reduceRight = function(arr, transform, initial) {
var reduceRight = collections.reduceRight = function(arr, transform, initial) {
return reverse(arr).then(function(elements) {

@@ -207,0 +209,0 @@ return reduce(elements, transform, initial);

@@ -7,3 +7,4 @@ var Promise = require('./promise');

* Future
* @class Future class matchin Promises/A+ Spec and Scala API
* Future class matchin Promises/A+ Spec and Scala API
* @class
*/

@@ -10,0 +11,0 @@ var Future = module.exports = function() {

@@ -83,4 +83,4 @@ var next = require('./next');

/**
* Promise
* @class Promise implementing the Promises/A+ Specification
* Promise implementing the Promises/A+ Specification
* @class
*/

@@ -87,0 +87,0 @@ var Promise = module.exports = function() {

{
"name": "concurrent",
"version": "0.1.0",
"version": "0.2.1",
"description": "Promises/A+ with Scala awesomeness",

@@ -32,4 +32,8 @@ "main": "index.js",

"grunt-contrib-jshint": "~0.6.3",
"grunt-gh-pages": "~0.7.1"
"grunt-gh-pages": "~0.7.1",
"grunt-contrib-concat": "~0.3.0",
"grunt-shell": "~0.3.1",
"grunt-contrib-uglify": "~0.2.2",
"grunt-bump": "0.0.11"
}
}

@@ -228,2 +228,8 @@ Concurrent

Browsers
--------
Concurrent can be used in browser environments that support ES5, specifically
`forEach`, `Array.isArray` and `Object.create`.
Credits

@@ -230,0 +236,0 @@ -------

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