Skip to content

Commit

Permalink
chore(opn): upgrade to open library (#101)
Browse files Browse the repository at this point in the history
  • Loading branch information
goldcaddy77 authored Jun 3, 2019
1 parent 09bba0f commit 1217bf7
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 17 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
"@types/mkdirp": "^0.5.2",
"@types/node": "^10.12.18",
"@types/node-emoji": "^1.8.0",
"@types/opn": "^5.1.0",
"@types/open": "^6.1.0",
"@types/pg": "^7.4.11",
"@types/prettier": "^1.15.2",
"@types/shortid": "^0.0.29",
Expand All @@ -81,7 +81,7 @@
"lodash": "^4.17.11",
"mkdirp": "^0.5.1",
"node-emoji": "^1.8.1",
"opn": "^5.4.0",
"open": "^6.3.0",
"pg": "^7.7.1",
"reflect-metadata": "^0.1.12",
"shortid": "^2.2.14",
Expand Down
8 changes: 4 additions & 4 deletions src/core/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { GraphQLSchema } from 'graphql';
import { Binding } from 'graphql-binding';
import { Server as HttpServer } from 'http';
import { Server as HttpsServer } from 'https';
import opn = require('opn');
const open = require('open'); // tslint:disable-line:no-var-requires
import * as path from 'path';
import { AuthChecker, buildSchema, useContainer as TypeGraphQLUseContainer } from 'type-graphql'; // formatArgumentValidationError
import { Container } from 'typedi';
Expand Down Expand Up @@ -217,8 +217,8 @@ export class Server<C extends BaseContext> {
debug('start:applyMiddleware:start');
this.graphQLServer.applyMiddleware({
app,
path: '/graphql',
bodyParserConfig: this.bodyParserConfig
bodyParserConfig: this.bodyParserConfig,
path: '/graphql'
});
debug('start:applyMiddleware:end');

Expand All @@ -231,7 +231,7 @@ export class Server<C extends BaseContext> {

// Open playground in the browser
if (this.shouldOpenPlayground()) {
opn(url, { wait: false });
open(url, { wait: false });
}

debug('start:end');
Expand Down
22 changes: 11 additions & 11 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -411,10 +411,10 @@
resolved "https://registry.npmjs.org/@types/node/-/node-9.6.41.tgz#e57c3152eb2e7ec748c733cebd0c095b437c5d37"
integrity sha512-sPZWEbFMz6qAy9SLY7jh5cgepmsiwqUUHjvEm8lpU6kug2hmmcyuTnwhoGw/GWpI5Npue4EqvsiQQI0eWjW/ZA==

"@types/opn@^5.1.0":
version "5.1.0"
resolved "https://registry.npmjs.org/@types/opn/-/opn-5.1.0.tgz#bff7bc371677f4bdbb37884400e03fd81f743927"
integrity sha512-TNPrB7Y1xl06zDI0aGyqkgxjhIev3oJ+cdqlZ52MTAHauWpEL/gIUdHebIfRHFZk9IqSBpE2ci1DT48iZH81yg==
"@types/open@^6.1.0":
version "6.1.0"
resolved "https://registry.npmjs.org/@types/open/-/open-6.1.0.tgz#3cdf3db197a6a5d823babe6effeed243fad5d28a"
integrity sha512-sdB0OltczakZfdn5DYg3ZbHoQeYtU8Vbo4dys0U98gikn++M4gGDI02dzEWXPMP5uXGSjGx9GnK/yLlJMfGjlg==
dependencies:
"@types/node" "*"

Expand Down Expand Up @@ -5935,18 +5935,18 @@ onetime@^2.0.0:
dependencies:
mimic-fn "^1.0.0"

open@^6.3.0:
version "6.3.0"
resolved "https://registry.npmjs.org/open/-/open-6.3.0.tgz#60d0b845ee38fae0631f5d739a21bd40e3d2a527"
integrity sha512-6AHdrJxPvAXIowO/aIaeHZ8CeMdDf7qCyRNq8NwJpinmCdXhz+NZR7ie1Too94lpciCDsG+qHGO9Mt0svA4OqA==
dependencies:
is-wsl "^1.1.0"

opener@^1.5.1:
version "1.5.1"
resolved "https://registry.npmjs.org/opener/-/opener-1.5.1.tgz#6d2f0e77f1a0af0032aca716c2c1fbb8e7e8abed"
integrity sha512-goYSy5c2UXE4Ra1xixabeVh1guIX/ZV/YokJksb6q2lubWu6UbvPQ20p542/sFIll1nl8JnCyK9oBaOcCWXwvA==

opn@^5.4.0:
version "5.4.0"
resolved "https://registry.npmjs.org/opn/-/opn-5.4.0.tgz#cb545e7aab78562beb11aa3bfabc7042e1761035"
integrity sha512-YF9MNdVy/0qvJvDtunAOzFw9iasOQHpVthTCvGzxt61Il64AYSGdK+rYwld7NAfk9qJ7dt+hymBNSc9LNYS+Sw==
dependencies:
is-wsl "^1.1.0"

optimist@^0.6.1:
version "0.6.1"
resolved "https://registry.npmjs.org/optimist/-/optimist-0.6.1.tgz#da3ea74686fa21a19a111c326e90eb15a0196686"
Expand Down

0 comments on commit 1217bf7

Please sign in to comment.