Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: upgrade dependencies #1634

Merged
merged 5 commits into from
Jun 2, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions cli/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,6 @@ YargsParser.command(
redocOptions: getObjectOrJSON(argv.options),
};

console.log(config);

try {
await serve(argv.port as number, argv.spec as string, config);
} catch (e) {
Expand Down
2,889 changes: 2,678 additions & 211 deletions cli/npm-shrinkwrap.json

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,18 @@
"node": ">=12.0.0"
},
"dependencies": {
"chokidar": "^3.4.1",
"handlebars": "^4.7.6",
"chokidar": "^3.5.1",
"handlebars": "^4.7.7",
"isarray": "^2.0.5",
"mkdirp": "^1.0.4",
"mobx": "^6.0.4",
"mobx": "^6.3.2",
"node-libs-browser": "^2.2.1",
"react": "^16.13.1",
"react-dom": "^16.13.1",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"redoc": "2.0.0-rc.53",
"styled-components": "^5.1.1",
"tslib": "^2.0.0",
"yargs": "^15.4.1"
"styled-components": "^5.3.0",
"tslib": "^2.2.0",
"yargs": "^17.0.1"
},
"publishConfig": {
"access": "public"
Expand Down
8 changes: 3 additions & 5 deletions demo/ssr/index.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
import { renderToString } from 'react-dom/server';
import * as React from 'react';
import { ServerStyleSheet } from 'styled-components';
// @ts-ignore
import { Redoc, createStore } from '../../';
import { readFileSync } from 'fs';
import { resolve } from 'path';

const yaml = require('yaml-js');
const yaml = require('js-yaml');
const http = require('http');
const url = require('url');
const fs = require('fs');

const PORT = 9999;
Expand All @@ -18,8 +16,8 @@ const server = http.createServer(async (request, response) => {
if (request.url === '/redoc.standalone.js') {
fs.createReadStream('bundles/redoc.standalone.js', 'utf8').pipe(response);
} else if (request.url === '/') {
const spec = yaml.load(readFileSync(resolve(__dirname, '../openapi.yaml')));
let store = await createStore(spec, 'path/to/spec.yaml');
const spec = yaml.load(readFileSync(resolve(__dirname, '../openapi.yaml'), 'utf-8'));
const store = await createStore(spec, 'path/to/spec.yaml');

const sheet = new ServerStyleSheet();

Expand Down
2 changes: 1 addition & 1 deletion e2e/integration/misc.e2e.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// tslint:disable:no-implicit-dependencies
import * as yaml from 'yaml-js';
import * as yaml from 'js-yaml';

async function loadSpec(url: string): Promise<any> {
const spec = await (await fetch(url)).text();
Expand Down
Loading