Skip to content

Commit

Permalink
chore: upgrade dependencies (Redocly#1634)
Browse files Browse the repository at this point in the history
  • Loading branch information
RomanHotsiy committed Jun 2, 2021
1 parent 823be24 commit 92387bc
Show file tree
Hide file tree
Showing 13 changed files with 33,011 additions and 5,821 deletions.
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

0 comments on commit 92387bc

Please sign in to comment.