Skip to content

Commit 987f2a6

Browse files
author
tombertrand
committed
upgrade dependencies
1 parent 3e98b78 commit 987f2a6

File tree

7 files changed

+3662
-3234
lines changed

7 files changed

+3662
-3234
lines changed

.babelrc

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
{
2-
"presets": [
3-
"env"
4-
]
2+
"presets": ["@babel/preset-env"],
3+
"env": {
4+
"test": {
5+
"presets": [
6+
[
7+
"@babel/preset-env",
8+
{
9+
"targets": {
10+
"node": "current"
11+
}
12+
}
13+
]
14+
]
15+
}
16+
}
517
}

dist/jquery.typeahead.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/jquery.typeahead.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gulpfile.babel.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,14 @@
22

33
import gulp from 'gulp';
44
import sass from 'gulp-sass';
5-
import cssnano from 'gulp-cssnano';
5+
import cleanCSS from 'gulp-clean-css';
66
import rename from 'gulp-rename';
77
import replace from 'gulp-replace';
88
import autoprefixer from 'gulp-autoprefixer';
99
import uglify from 'gulp-uglify';
1010
import jshint from 'gulp-jshint';
1111
import saveLicense from 'uglify-save-license';
1212

13-
1413
let pkg = require('./package.json'),
1514
version = pkg.version,
1615
date = new Date(),
@@ -45,7 +44,7 @@ gulp.task('scss', function () {
4544
cascade: false
4645
}))
4746
.pipe(gulp.dest('./src'))
48-
.pipe(cssnano({keepSpecialComments: 0}))
47+
.pipe(cleanCSS())
4948
.pipe(rename('jquery.typeahead.min.css'))
5049
.pipe(gulp.dest('./dist'));
5150
});

package.json

Lines changed: 23 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
{
22
"name": "jquery-typeahead",
33
"version": "2.10.7",
4-
"description":
5-
"jQuery plugin that provides Typeahead (autocomplete) Search preview from Json object(s) via same domain Ajax request or cross domain Jsonp and offers data compression inside Local Storage. The plugin is built with a lot of options and callbacks to allow customization.",
4+
"description": "jQuery plugin that provides Typeahead (autocomplete) Search preview from Json object(s) via same domain Ajax request or cross domain Jsonp and offers data compression inside Local Storage. The plugin is built with a lot of options and callbacks to allow customization.",
65
"author": {
76
"name": "Tom Bertrand"
87
},
@@ -24,35 +23,37 @@
2423
},
2524
"license": "MIT",
2625
"dependencies": {
27-
"gulp-cli": "^2.0.1",
26+
"@babel/register": "^7.6.2",
2827
"jquery": ">=1.7.2",
29-
"lz-string": "^1.4.4",
30-
"uglify-save-license": "^0.4.1"
28+
"lz-string": "^1.4.4"
3129
},
3230
"devDependencies": {
33-
"babel-core": "^6.26.0",
34-
"babel-preset-env": "^1.6.1",
35-
"babel-register": "^6.26.0",
36-
"gulp": "4.0.0",
31+
"@babel/core": "^7.6.4",
32+
"@babel/preset-env": "^7.6.3",
33+
"gulp": "^4.0.2",
3734
"gulp-autoprefixer": "5.0.0",
38-
"gulp-cssnano": "2.1.3",
39-
"gulp-jshint": "2.1.0",
40-
"gulp-rename": "1.2.2",
41-
"gulp-replace": "0.6.1",
42-
"gulp-sass": "3.2.1",
43-
"gulp-uglify": "3.0.0",
44-
"jest": "22.4.3",
45-
"jshint": "2.9.5",
46-
"prettier": "1.11.1",
47-
"prettier-eslint": "8.8.1",
48-
"prettier-eslint-cli": "4.7.1",
49-
"sinon": "4.5.0"
35+
"gulp-clean-css": "^4.2.0",
36+
"gulp-cli": "^2.2.0",
37+
"gulp-jshint": "^2.1.0",
38+
"gulp-rename": "^1.4.0",
39+
"gulp-replace": "^1.0.0",
40+
"gulp-sass": "^4.0.2",
41+
"gulp-uglify": "^3.0.2",
42+
"jest": "^24.9.0",
43+
"jshint": "^2.10.2",
44+
"prettier": "^1.18.2",
45+
"prettier-eslint": "^9.0.0",
46+
"prettier-eslint-cli": "^5.0.0",
47+
"sinon": "^7.5.0",
48+
"uglify-save-license": "^0.4.1"
5049
},
5150
"scripts": {
5251
"test": "jest"
5352
},
5453
"jest": {
5554
"testURL": "http://localhost/",
56-
"setupFiles": ["<rootDir>/test/jestSetupFile.js"]
55+
"setupFiles": [
56+
"<rootDir>/test/jestSetupFile.js"
57+
]
5758
}
5859
}

src/jquery.typeahead.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* Licensed under the MIT license
55
*
66
* @author Tom Bertrand
7-
* @version 2.10.7 (2019-10-22)
7+
* @version 2.10.7 (2019-10-31)
88
* @link http://www.runningcoder.org/jquerytypeahead/
99
*/
1010
(function (factory) {

0 commit comments

Comments
 (0)