Skip to content

Commit

Permalink
Switch from node-uuid to uuid (jbmusso#104)
Browse files Browse the repository at this point in the history
  • Loading branch information
ctdio authored and jbmusso committed Feb 9, 2018
1 parent 541bd71 commit 0a080bd
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
4 changes: 2 additions & 2 deletions gremlin-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"test:watch": "npm run test -- --watch"
},
"lint-staged": {
"gitDir": "../",
"gitDir": "../",
"*.js": [
"npm run prettify",
"git add"
Expand All @@ -47,8 +47,8 @@
"gremlin-template-string": "^2.0.0",
"highland": "^2.5.1",
"lodash": "^3.10.1",
"node-uuid": "^1.4.3",
"readable-stream": "^2.0.2",
"uuid": "^3.2.1",
"ws": "^2.3.1",
"zer": "^0.1.0"
},
Expand Down
6 changes: 3 additions & 3 deletions gremlin-client/src/GremlinClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/*jslint node: true */
import { EventEmitter } from 'events';

import uuid from 'node-uuid';
import uuidV1 from 'uuid/v1';
import _ from 'lodash';
import highland from 'highland';
import { gremlin, renderChain } from 'zer';
Expand Down Expand Up @@ -43,7 +43,7 @@ class GremlinClient extends EventEmitter {
this.password = this.options.password;

if (this.useSession) {
this.sessionId = uuid.v1();
this.sessionId = uuidV1();
}

this.connected = false;
Expand Down Expand Up @@ -225,7 +225,7 @@ class GremlinClient extends EventEmitter {
const args = _.defaults(baseMessage.args || {}, baseArgs);

const message = {
requestId: uuid.v1(),
requestId: uuidV1(),
processor,
op,
args,
Expand Down
6 changes: 1 addition & 5 deletions gremlin-client/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2704,10 +2704,6 @@ node-pre-gyp@^0.6.39:
tar "^2.2.1"
tar-pack "^3.4.0"

node-uuid@^1.4.3:
version "1.4.8"
resolved "https://registry.yarnpkg.com/node-uuid/-/node-uuid-1.4.8.tgz#b040eb0923968afabf8d32fb1f17f1167fdab907"

[email protected]:
version "3.0.6"
resolved "https://registry.yarnpkg.com/nopt/-/nopt-3.0.6.tgz#c6465dbf08abcd4db359317f79ac68a646b28ff9"
Expand Down Expand Up @@ -3816,7 +3812,7 @@ [email protected], util@^0.10.3, util@~0.10.1:
dependencies:
inherits "2.0.1"

uuid@^3.0.0:
uuid@^3.0.0, uuid@^3.2.1:
version "3.2.1"
resolved "https://registry.yarnpkg.com/uuid/-/uuid-3.2.1.tgz#12c528bb9d58d0b9265d9a2f6f0fe8be17ff1f14"

Expand Down

0 comments on commit 0a080bd

Please sign in to comment.