From 00ec5f1fc8484c96592821bda228f754c0495dcc Mon Sep 17 00:00:00 2001 From: Keisuke Uozumi Date: Fri, 20 Jan 2017 02:14:41 +0900 Subject: [PATCH] FIX deprecated node-uuid@1.4.7 (#913) --- .travis.yml | 3 ++- lib/client.js | 2 +- lib/security/WSSecurityCert.js | 2 +- package.json | 4 ++-- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index 7b9b3fa50..b82ab4da3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,7 +6,8 @@ node_js: - 0.10 - 0.12 - 4.0 - - iojs + - 6.9.4 + - 7.4.0 env: - CXX=g++-4.8 addons: diff --git a/lib/client.js b/lib/client.js index 58c456f21..ade456f20 100644 --- a/lib/client.js +++ b/lib/client.js @@ -14,7 +14,7 @@ var HttpClient = require('./http'), findPrefix = require('./utils').findPrefix, _ = require('lodash'), concatStream = require('concat-stream'), - uuid = require('node-uuid'); + uuid = require('uuid'); var Client = function(wsdl, endpoint, options) { events.EventEmitter.call(this); diff --git a/lib/security/WSSecurityCert.js b/lib/security/WSSecurityCert.js index cd6e8cf97..8b2a8e5f9 100644 --- a/lib/security/WSSecurityCert.js +++ b/lib/security/WSSecurityCert.js @@ -6,7 +6,7 @@ var fs = require('fs'); var path = require('path'); var ejs = require('ejs'); var SignedXml = require('xml-crypto').SignedXml; -var uuid = require('node-uuid'); +var uuid = require('uuid'); var wsseSecurityHeaderTemplate = ejs.compile(fs.readFileSync(path.join(__dirname, 'templates', 'wsse-security-header.ejs')).toString()); var wsseSecurityTokenTemplate = ejs.compile(fs.readFileSync(path.join(__dirname, 'templates', 'wsse-security-token.ejs')).toString()); diff --git a/package.json b/package.json index 181dcbef1..8549d0c1c 100644 --- a/package.json +++ b/package.json @@ -13,13 +13,13 @@ "ejs": "~2.5.5", "finalhandler": "^0.5.0", "lodash": "^3.10.1", - "node-uuid": "~1.4.3", "optional": "^0.1.3", "request": ">=2.9.0", "sax": ">=0.6", "selectn": "^0.9.6", "serve-static": "^1.11.1", "strip-bom": "~0.3.1", + "uuid": "^3.0.1", "xml-crypto": "~0.8.0" }, "optionalDependencies": { @@ -37,7 +37,7 @@ "toc": "./node_modules/.bin/doctoc Readme.md --github --maxlevel 3", "pretest": "jshint index.js lib test", "cover": "istanbul cover _mocha -- --timeout 10000 test/*-test.js test/security/*.js", - "coveralls": "cat ./coverage/lcov.info | coveralls -v", + "coveralls": "cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js -v", "test": "mocha --timeout 10000 test/*-test.js test/security/*.js" }, "keywords": [