Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-select-search

Package Overview
Dependencies
Maintainers
1
Versions
108
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-select-search - npm Package Compare versions

Comparing version 0.3.1 to 0.3.2

dist/es5.js

79

gulpfile.js

@@ -1,73 +0,10 @@

var gulp = require('gulp'),
browserify = require('browserify'),
watchify = require('watchify'),
babelify = require('babelify'),
source = require('vinyl-source-stream'),
buffer = require('vinyl-buffer'),
merge = require('utils-merge'),
rename = require('gulp-rename'),
uglify = require('gulp-uglify'),
sourcemaps = require('gulp-sourcemaps'),
gutil = require('gulp-util'),
chalk = require('chalk');
var gulp = require('gulp'),
babel = require('gulp-babel'),
rename = require('gulp-rename');
function map_error(error) {
if (error.fileName) {
// regular error
gutil.log(chalk.red(error.name)
+ ': '
+ chalk.yellow(error.fileName.replace(__dirname + '/src/js/', ''))
+ ': '
+ 'Line '
+ chalk.magenta(error.lineNumber)
+ ' & '
+ 'Column '
+ chalk.magenta(error.columnNumber || error.column)
+ ': '
+ chalk.blue(error.description));
} else {
// browserify error..
gutil.log(chalk.red(error.name)
+ ': '
+ chalk.yellow(error.message));
}
this.end();
}
gulp.task('watch', function () {
var args = merge(watchify.args, { debug: true }),
bundler = watchify(browserify('./index.js', args)).transform(babelify, { /* opts */ });
bundle_js(bundler);
bundler.on('update', function () {
bundle_js(bundler);
});
});
function bundle_js(bundler) {
return bundler.bundle()
.on('error', map_error)
.pipe(source('bundle.js'))
.pipe(buffer())
.pipe(gulp.dest('./dist'))
.pipe(rename('bundle.js'))
.pipe(sourcemaps.init({ loadMaps: true }))
.pipe(uglify())
.pipe(sourcemaps.write('.'))
.pipe(gulp.dest('./dist'));
}
// Without sourcemaps
gulp.task('build', function () {
var bundler = browserify('./index.js').transform(babelify, {/* options */ })
return bundler.bundle()
.on('error', map_error)
.pipe(source('bundle.min.js'))
.pipe(buffer())
.pipe(rename('bundle.min.js'))
.pipe(uglify())
.pipe(gulp.dest('./dist'));
gulp.task('default', function () {
return gulp.src('index.js')
.pipe(babel())
.pipe(rename('es5.js'))
.pipe(gulp.dest('dist'));
});
{
"name": "react-select-search",
"version": "0.3.1",
"version": "0.3.2",
"description": "React powered selectbox with filter",

@@ -37,18 +37,8 @@ "main": "index.js",

"babel-preset-react": "^6.3.13",
"babelify": "^7.2.0",
"browserify": "^12.0.1",
"chalk": "^1.1.1",
"eslint": "^1.10.3",
"gulp": "^3.9.0",
"gulp-babel": "^6.1.1",
"gulp-rename": "^1.2.2",
"gulp-sourcemaps": "^1.6.0",
"gulp-uglify": "^1.5.1",
"gulp-util": "^3.0.7",
"jest-cli": "^0.8.0",
"react-addons-test-utils": "^0.14.3",
"uglify-js": "^2.6.1",
"utils-merge": "^1.0.0",
"vinyl-buffer": "^1.0.0",
"vinyl-source-stream": "^1.1.0",
"watchify": "^3.6.1"
"react-addons-test-utils": "^0.14.3"
},

@@ -55,0 +45,0 @@ "jest": {

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