Skip to content

Commit

Permalink
fix: use lodash instead of lodash.isobject, lodash.isstring
Browse files Browse the repository at this point in the history
  • Loading branch information
jedwards1211 committed Jun 19, 2018
1 parent 8f39419 commit 3b09fc0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
6 changes: 2 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@
"backo2": "^1.0.2",
"eventemitter3": "^3.1.0",
"iterall": "^1.2.1",
"lodash.assign": "^4.2.0",
"lodash.isobject": "^3.0.2",
"lodash.isstring": "^4.0.1",
"symbol-observable": "^1.0.4",
"ws": "^5.2.0"
},
Expand Down Expand Up @@ -44,11 +41,12 @@
"@types/node": "^8.0.8",
"@types/sinon": "^2.3.0",
"@types/ws": "^5.1.2",
"babel-plugin-lodash": "^3.3.4",
"chai": "^4.0.2",
"graphql": "^0.13.2",
"graphql-subscriptions": "^0.5.7",
"istanbul": "^1.0.0-alpha.2",
"lodash": "^4.17.1",
"lodash": "^4.17.10",
"mocha": "^3.4.2",
"mock-socket-with-protocol": "^7.1.0",
"remap-istanbul": "^0.9.5",
Expand Down
3 changes: 1 addition & 2 deletions src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ const NativeWebSocket = _global.WebSocket || _global.MozWebSocket;

import * as Backoff from 'backo2';
import { default as EventEmitterType, EventEmitter, ListenerFn } from 'eventemitter3';
import isString = require('lodash.isstring');
import isObject = require('lodash.isobject');
import {isString, isObject} from 'lodash';
import { ExecutionResult } from 'graphql/execution/execute';
import { print } from 'graphql/language/printer';
import { DocumentNode } from 'graphql/language/ast';
Expand Down
3 changes: 1 addition & 2 deletions src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import * as WebSocket from 'ws';

import MessageTypes from './message-types';
import { GRAPHQL_WS, GRAPHQL_SUBSCRIPTIONS } from './protocol';
import isObject = require('lodash.isobject');
import {isObject} from 'lodash';
import {
parse,
ExecutionResult,
Expand Down Expand Up @@ -475,4 +475,3 @@ export class SubscriptionServer {
);
}
}

0 comments on commit 3b09fc0

Please sign in to comment.