+13
-22
| { | ||
| "name": "serially", | ||
| "version": "0.0.0", | ||
| "description": "Compose async functions into one function that runs all serially", | ||
| "version": "0.0.1-security", | ||
| "description": "", | ||
| "main": "index.js", | ||
| "scripts": { | ||
| "test": "mocha" | ||
| "test": "echo \"Error: no test specified\" && exit 1" | ||
| }, | ||
| "devDependencies": { | ||
| "prova": "*" | ||
| }, | ||
| "keywords": [ | ||
| "serial", | ||
| "series", | ||
| "async", | ||
| "flow", | ||
| "flow control", | ||
| "serially" | ||
| ], | ||
| "repository": { | ||
| "url": "git@github.com:azer/serially.git", | ||
| "type": "git" | ||
| "type": "git", | ||
| "url": "git+https://github.com/npm/security-holder.git" | ||
| }, | ||
| "author": "azer", | ||
| "license": "BSD", | ||
| "dependencies": { | ||
| "serial-loop": "0.0.0" | ||
| } | ||
| } | ||
| "keywords": [], | ||
| "author": "", | ||
| "license": "ISC", | ||
| "bugs": { | ||
| "url": "https://github.com/npm/security-holder/issues" | ||
| }, | ||
| "homepage": "https://github.com/npm/security-holder#readme" | ||
| } |
+7
-34
@@ -1,36 +0,9 @@ | ||
| ## serially | ||
| # Security holding package | ||
| Compose async functions into one function that runs all serially | ||
| This package name is not currently in use, but was formerly occupied | ||
| by a popular package. To avoid malicious use, npm is hanging on to | ||
| the package name, but loosely, and we'll probably give it to you if | ||
| you want it. | ||
| ## Install | ||
| ```bash | ||
| $ npm install serially | ||
| ``` | ||
| ## Usage | ||
| ```js | ||
| var serially = require('serially') | ||
| var http = require('http') | ||
| var fs = require('fs') | ||
| var all = serially() | ||
| .add(foo, ['a', 'b', 'c']) | ||
| .add(bar, [1, 2, 3]) | ||
| .add('qux alias', qux, [4, 5, 6]) | ||
| all(function (error, results) { | ||
| if (error) throw error | ||
| console.log('done') | ||
| console.log(results) | ||
| // => { foo: [...], bar: [...], qux alias: [...] } | ||
| }) | ||
| function foo (pa, ra, ms, callback) {} | ||
| function bar (pa, ra, ms, callback) {} | ||
| function qux (pa, ra, ms, callback) {} | ||
| ``` | ||
| See `test.js` for more info. | ||
| You may adopt this package by contacting support@npmjs.com and | ||
| requesting the name. |
Sorry, the diff of this file is not supported yet
-46
| var loop = require("serial-loop"); | ||
| module.exports = serially; | ||
| function serially (fn, params) { | ||
| var fns = []; | ||
| call.add = add; | ||
| return call; | ||
| function call (callback) { | ||
| var results = []; | ||
| loop(fns.length, each, function (error) { | ||
| callback(error, results); | ||
| }); | ||
| function each (done, i) { | ||
| var params = fns[i].params ? fns[i].params.slice() : []; | ||
| params.push(function callback (error) { | ||
| if (error) return done(error); | ||
| results[fns[i].alias] = Array.prototype.slice.call(arguments, 1); | ||
| done(); | ||
| }); | ||
| fns[i].fn.apply(undefined, params); | ||
| } | ||
| } | ||
| function add (alias, fn, params) { | ||
| if (typeof alias != 'string') { | ||
| params = fn; | ||
| fn = alias; | ||
| alias = fn.name; | ||
| } | ||
| if (!alias) { | ||
| throw new Error('Function does not have a name. Either declare it with a name or specify an alias.'); | ||
| } | ||
| fns.push({ alias: alias, fn: fn, params: params }); | ||
| return call; | ||
| } | ||
| } |
Known malware
Supply chain riskThis package version is identified as malware. It has been flagged either by Socket's AI scanner and confirmed by our threat research team, or is listed as malicious in security databases and other sources.
Found 1 instance in 1 package
Empty package
Supply chain riskPackage does not contain any code. It may be removed, is name squatting, or the result of a faulty package publish.
Found 1 instance in 1 package
No contributors or author data
MaintenancePackage does not specify a list of contributors or an author in package.json.
Found 1 instance in 1 package
No tests
QualityPackage does not have any tests. This is a strong signal of a poorly maintained or low quality package.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
0
-100%0
-100%801
-63.52%2
-50%0
-100%10
-72.97%1
Infinity%1
Infinity%- Removed
- Removed