Skip to content
This repository has been archived by the owner on Dec 27, 2024. It is now read-only.

Commit

Permalink
build: update dependencies to vastest versions
Browse files Browse the repository at this point in the history
  • Loading branch information
joolfe committed Sep 18, 2021
1 parent b24c7f7 commit 513ed85
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 38 deletions.
4 changes: 3 additions & 1 deletion lib/md-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ function parseMdTable (md) {
const parsed = marked.lexer(md)
const table = parsed.find(el => el.type === 'table')
if (table == null) return {}
const { header, cells } = table
const { header: rawHeader, rows } = table
const cells = rows.map(row => row.map(e => e.text))
const header = rawHeader.map(e => e.text)
if (!header.includes('object') || !header.includes('name')) return {}
const headers = header.map(h => supHeaders.includes(h) ? h : false)
const tableObj = cells.reduce((accTable, cell, i) => {
Expand Down
67 changes: 35 additions & 32 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "postman-to-openapi",
"version": "1.17.2",
"version": "1.17.3",
"description": "Convert postman collection to OpenAPI spec",
"main": "lib/index.js",
"types": "types/index.d.ts",
Expand Down Expand Up @@ -53,10 +53,10 @@
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^5.1.0",
"execa": "^5.1.1",
"husky": "^6.0.0",
"husky": "^7.0.2",
"mocha": "^9.0.3",
"nyc": "^15.1.0",
"typescript": "^4.3.2"
"typescript": "^4.4.3"
},
"commitlint": {
"extends": [
Expand Down Expand Up @@ -86,9 +86,9 @@
"check-coverage": true
},
"dependencies": {
"commander": "^7.2.0",
"commander": "^8.2.0",
"js-yaml": "^4.1.0",
"marked": "^2.0.7",
"marked": "^3.0.4",
"mustache": "^4.2.0"
},
"husky": {
Expand Down

0 comments on commit 513ed85

Please sign in to comment.