Socket
Socket
Sign inDemoInstall

needs

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

needs - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

33

gulpfile.js
'use strict';
var path = require('path');
var gulp = require('gulp');
var eslint = require('gulp-eslint');
var excludeGitignore = require('gulp-exclude-gitignore');
var mocha = require('gulp-mocha');
var jshint = require('gulp-jshint');
var istanbul = require('gulp-istanbul');
var nsp = require('gulp-nsp');
var istanbul = require('gulp-istanbul');
var plumber = require('gulp-plumber');
var coveralls = require('gulp-coveralls');
var handleErr = function (err) {
console.log(err.message);
process.exit(1);
};
gulp.task('static', function () {
return gulp.src(['**/*.js', '!coverage/**'])
return gulp.src('**/*.js')
.pipe(excludeGitignore())
.pipe(jshint('.jshintrc'))
.pipe(jshint.reporter('jshint-stylish'))
.pipe(jshint.reporter('fail'))
.on('error', handleErr);
.pipe(eslint())
.pipe(eslint.format())
.pipe(eslint.failAfterError());
});
gulp.task('nsp', function (cb) {
nsp('package.json', cb);
nsp({package: path.resolve('package.json')}, cb);
});

@@ -33,3 +26,6 @@

return gulp.src('lib/**/*.js')
.pipe(istanbul({includeUntested: true}))
.pipe(excludeGitignore())
.pipe(istanbul({
includeUntested: true
}))
.pipe(istanbul.hookRequire());

@@ -41,3 +37,3 @@ });

gulp.src('test/**/*.test.js')
gulp.src('test/**/*.js')
.pipe(plumber())

@@ -54,2 +50,6 @@ .pipe(mocha({reporter: 'spec'}))

gulp.task('watch', function () {
gulp.watch(['lib/**/*.js', 'test/**'], ['test']);
});
gulp.task('coveralls', ['test'], function () {

@@ -64,2 +64,3 @@ if (!process.env.CI) {

gulp.task('prepublish', ['nsp']);
gulp.task('default', ['static', 'test', 'coveralls']);
{
"name": "needs",
"version": "1.0.1",
"version": "1.0.2",
"description": "Require multiple modules in node.js.",

@@ -28,20 +28,21 @@ "main": "index.js",

"dependencies": {
"lodash": ">=3.x.x",
"minimatch": ">=2.x.x"
"lodash": ">=4.x.x",
"minimatch": ">=3.x.x"
},
"devDependencies": {
"chai": "~3.2.0",
"gulp": "^3.9.0",
"gulp-babel": "^5.2.0",
"chai": "~3.5.0",
"eslint-config-xo-space": "^0.10.0",
"gulp": "^3.9.1",
"gulp-coveralls": "^0.1.4",
"gulp-eslint": "^2.0.0",
"gulp-exclude-gitignore": "^1.0.0",
"gulp-istanbul": "^0.10.0",
"gulp-jscs": "^2.0.0",
"gulp-jshint": "^1.11.2",
"gulp-mocha": "^2.1.3",
"gulp-nsp": "^0.4.5",
"gulp-plumber": "^1.0.1",
"jshint-stylish": "^2.0.1",
"mocha": "~2.2.5"
"gulp-istanbul": "^0.10.3",
"gulp-mocha": "^2.2.0",
"gulp-nsp": "^2.3.0",
"gulp-plumber": "^1.1.0",
"mocha": "~2.4.5"
},
"publishConfig": {
"registry": "http://registry.npmjs.org"
}
}

Sorry, the diff of this file is not supported yet

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