Skip to content

Commit

Permalink
fix: fixes for 2 vulnerable dependency paths (#6)
Browse files Browse the repository at this point in the history
closes #5
  • Loading branch information
fengmk2 committed May 18, 2017
1 parent 34e3b62 commit 85ea24d
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 65 deletions.
6 changes: 5 additions & 1 deletion .travis.yml
@@ -1,5 +1,9 @@
sudo: false
language: node_js
node_js:
- 'iojs-2'
- '0.12'
- '4'
- '6'
- '7'
script: "npm run test-travis"
after_script: "npm install coveralls@2 && cat ./coverage/lcov.info | coveralls"
14 changes: 0 additions & 14 deletions lib/client.js
@@ -1,19 +1,5 @@
/**!
* restful-client - lib/client.js
*
* Copyright(c) node-modules and other contributors.
* MIT Licensed
*
* Authors:
* fengmk2 <fengmk2@gmail.com> (http://fengmk2.com)
*/

'use strict';

/**
* Module dependencies.
*/

var debug = require('debug')('restful-client:client');
var urllib = require('urllib');
var RESTFulResource = require('./resource');
Expand Down
14 changes: 0 additions & 14 deletions lib/resource.js
@@ -1,19 +1,5 @@
/**!
* restful-client - lib/resource.js
*
* Copyright(c) fengmk2 and other contributors.
* MIT Licensed
*
* Authors:
* fengmk2 <m@fengmk2.com> (http://fengmk2.com)
*/

'use strict';

/**
* Module dependencies.
*/

module.exports = RESTFulResource;

/**
Expand Down
15 changes: 7 additions & 8 deletions package.json
Expand Up @@ -12,19 +12,18 @@
"test-cov": "node --harmony node_modules/.bin/istanbul cover node_modules/.bin/_mocha -- -t 20000 -r should-http test/*.test.js",
"test-travis": "node --harmony node_modules/.bin/istanbul cover node_modules/.bin/_mocha --report lcovonly -- -t 20000 -r should-http test/*.test.js",
"jshint": "jshint .",
"autod": "autod -w --prefix '~' && npm run cnpm",
"cnpm": "npm install --registry=https://registry.npm.taobao.org"
"autod": "autod -w --prefix '^'"
},
"dependencies": {
"debug": "~2.2.0",
"urllib": "~2.3.8"
"debug": "^2.6.7",
"urllib": "^2.22.0"
},
"devDependencies": {
"autod": "*",
"istanbul-harmony": "*",
"mm": "*",
"istanbul": "*",
"mm": "^2.1.0",
"mocha": "*",
"should": "6",
"should": "^11.2.1",
"should-http": "*"
},
"homepage": "https://github.com/node-modules/restful-client",
Expand All @@ -36,7 +35,7 @@
"restful-client", "restful"
],
"engines": {
"node": ">= 0.10.0"
"node": ">= 0.12.0"
},
"author": "fengmk2 <fengmk2@gmail.com>",
"license": "MIT"
Expand Down
14 changes: 0 additions & 14 deletions test/client.test.js
@@ -1,19 +1,5 @@
/**!
* restful-client - test/client.test.js
*
* Copyright(c) node-modules and other contributors.
* MIT Licensed
*
* Authors:
* fengmk2 <m@fengmk2.com> (http://fengmk2.com)
*/

'use strict';

/**
* Module dependencies.
*/

var should = require('should');
var mm = require('mm');
var Gitlab = require('./gitlab_client');
Expand Down
14 changes: 0 additions & 14 deletions test/gitlab_client.js
@@ -1,19 +1,5 @@
/**!
* restful-client - test/gitlab_client.js
*
* Copyright(c) node-modules and other contributors.
* MIT Licensed
*
* Authors:
* fengmk2 <fengmk2@gmail.com> (http://fengmk2.github.com)
*/

'use strict';

/**
* Module dependencies.
*/

var util = require('util');
var restful = require('../');

Expand Down

0 comments on commit 85ea24d

Please sign in to comment.