Skip to content

Commit 219e035

Browse files
committed
Merge pull request #79 from seegno/enhancement/dependencies
Update dependencies
2 parents 46ebcf5 + e9a71dc commit 219e035

File tree

8 files changed

+19
-22
lines changed

8 files changed

+19
-22
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ git:
1010
depth: 10
1111

1212
node_js:
13-
- iojs
13+
- 4.3
1414

1515
cache:
1616
directories:

gulpfile.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,14 @@
33
* Module dependencies.
44
*/
55

6+
var babel = require('gulp-babel');
67
var concat = require('gulp-concat');
78
var gulp = require('gulp');
89
var header = require('gulp-header');
910
var jshint = require('gulp-jshint');
10-
var karma = require('karma').server;
11-
var ngAnnotate = require('gulp-ng-annotate');
11+
var karma = require('karma').Server;
1212
var pkg = require('./package.json');
1313
var rename = require('gulp-rename');
14-
var to5 = require('gulp-6to5');
1514
var uglify = require('gulp-uglify');
1615
var wrapUmd = require('gulp-wrap-umd');
1716

@@ -61,8 +60,7 @@ var config = {
6160

6261
gulp.task('scripts', ['scripts-lint'], function() {
6362
return gulp.src(config.src)
64-
.pipe(to5({ modules: 'ignore', blacklist: ['useStrict'] }))
65-
.pipe(ngAnnotate({ single_quotes: true, add: true }))
63+
.pipe(babel({ modules: 'ignore', blacklist: ['useStrict'] }))
6664
.pipe(concat(config.name))
6765
.pipe(wrapUmd(config.umd))
6866
.pipe(uglify({
@@ -95,12 +93,14 @@ gulp.task('scripts-lint', function() {
9593
*/
9694

9795
gulp.task('test', ['scripts'], function() {
98-
return karma.start({
96+
var server = new karma({
9997
configFile: __dirname + '/karma.conf.js',
10098
singleRun: true
10199
}, function(code) {
102100
console.log('Karma has exited with code', code);
103101
});
102+
103+
return server.start();
104104
});
105105

106106
/**

karma.conf.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ module.exports = function(config) {
1717
'node_modules/angular/angular.js',
1818
'node_modules/angular-cookies/angular-cookies.js',
1919
'node_modules/query-string/query-string.js',
20-
'node_modules/lodash/dist/lodash.js',
20+
'node_modules/lodash/lodash.js',
2121
'node_modules/angular-mocks/angular-mocks.js',
2222
'dist/angular-oauth2.js',
2323
'test/mocks/**/*.mock.js',

package.json

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,29 +27,26 @@
2727
"query-string": "^1.0.0"
2828
},
2929
"devDependencies": {
30-
"6to5ify": "^3.1.2",
3130
"angular-mocks": "^1.3.9",
32-
"bower": "^1.3.12",
3331
"github-changes": "^1.0.0",
3432
"gulp": "^3.8.10",
35-
"gulp-6to5": "^2.0.2",
33+
"gulp-babel": "^5.3.0",
3634
"gulp-concat": "^2.4.3",
3735
"gulp-header": "^1.2.2",
3836
"gulp-jshint": "^1.9.0",
39-
"gulp-ng-annotate": "^0.4.4",
4037
"gulp-rename": "^1.2.0",
4138
"gulp-uglify": "^1.0.2",
4239
"gulp-wrap-umd": "^0.2.1",
4340
"jshint-stylish": "^1.0.0",
44-
"karma": "^0.12.31",
41+
"karma": "^0.13.0",
4542
"karma-browserify": "^2.0.0",
4643
"karma-chrome-launcher": "^0.1.7",
4744
"karma-firefox-launcher": "^0.1.4",
4845
"karma-mocha": "^0.1.10",
4946
"karma-mocha-reporter": "^0.3.1",
5047
"karma-should": "0.0.1",
5148
"karma-sinon": "^1.0.4",
52-
"lodash": "^2.4.1",
49+
"lodash": "^4.0.0",
5350
"mocha": "^2.4.5",
5451
"should": "^4.6.0",
5552
"sinon": "^1.17.3",

src/config/oauth-config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11

22
/**
33
* OAuth config.
4-
*
5-
* @ngInject
64
*/
75

86
function oauthConfig($httpProvider) {
97
$httpProvider.interceptors.push('oauthInterceptor');
108
}
119

10+
oauthConfig.$inject = ['$httpProvider'];
11+
1212
/**
1313
* Export `oauthConfig`.
1414
*/

src/interceptors/oauth-interceptor.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11

22
/**
33
* OAuth interceptor.
4-
*
5-
* @ngInject
64
*/
75

86
function oauthInterceptor($q, $rootScope, OAuthToken) {
@@ -41,6 +39,8 @@ function oauthInterceptor($q, $rootScope, OAuthToken) {
4139
};
4240
}
4341

42+
oauthInterceptor.$inject = ['$q', '$rootScope', 'OAuthToken'];
43+
4444
/**
4545
* Export `oauthInterceptor`.
4646
*/

src/providers/oauth-provider.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,6 @@ function OAuthProvider() {
7575

7676
/**
7777
* OAuth service.
78-
*
79-
* @ngInject
8078
*/
8179

8280
this.$get = function($http, OAuthToken) {
@@ -214,6 +212,8 @@ function OAuthProvider() {
214212

215213
return new OAuth();
216214
};
215+
216+
this.$get.$inject = ['$http', 'OAuthToken'];
217217
}
218218

219219
/**

src/providers/oauth-token-provider.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,6 @@ function OAuthTokenProvider() {
3737

3838
/**
3939
* OAuthToken service.
40-
*
41-
* @ngInject
4240
*/
4341

4442
this.$get = function($cookies) {
@@ -107,6 +105,8 @@ function OAuthTokenProvider() {
107105

108106
return new OAuthToken();
109107
};
108+
109+
this.$get.$inject = ['$cookies'];
110110
}
111111

112112
/**

0 commit comments

Comments
 (0)