Skip to content

Commit 27a7bb2

Browse files
authored
Merge pull request #110 from ngot/bump-oas3-chow-chow
Bump oas3 chow chow
2 parents 8e1b109 + df65a22 commit 27a7bb2

4 files changed

Lines changed: 85 additions & 55 deletions

File tree

.changeset/good-queens-raise.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"koa-oas3": patch
3+
---
4+
5+
bump oas3 chow chow

.github/workflows/ci.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
test-node:
9+
runs-on: ubuntu-latest
10+
11+
strategy:
12+
matrix:
13+
node-version: [14.x, 16.x]
14+
15+
steps:
16+
- uses: actions/checkout@v2
17+
- name: Use Node.js ${{ matrix.node-version }}
18+
uses: actions/setup-node@v1
19+
with:
20+
node-version: ${{ matrix.node-version }}
21+
- run: yarn install --frozen-lockfile
22+
- run: yarn build
23+
- run: yarn test
24+
env:
25+
CI: true

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,10 @@
66
"author": "<tli@atlassian.com>",
77
"license": "Apache-2.0",
88
"scripts": {
9+
"build": "tsc",
910
"test": "jest --coverage --no-watchman",
1011
"test:watch": "jest --coverage --watch",
11-
"prepublishOnly": "rm -rf lib && tsc",
12+
"prepublishOnly": "rm -rf lib && yarn build",
1213
"release": "yarn prepublishOnly && changeset publish"
1314
},
1415
"jest": {
@@ -31,8 +32,7 @@
3132
"koa-bodyparser": "^4.2.1",
3233
"koa-compose": "^4.1.0",
3334
"oas-validator": "^5.0.3",
34-
"oas3-chow-chow": "^1.2.0",
35-
"@types/qs": "^6.9.0",
35+
"oas3-chow-chow": "^2.0.0",
3636
"qs": "^6.9.1"
3737
},
3838
"devDependencies": {
@@ -42,6 +42,7 @@
4242
"@types/jsonfile": "5.0.2",
4343
"@types/koa": "2.11.0",
4444
"@types/koa-bodyparser": "4.3.3",
45+
"@types/qs": "^6.9.7",
4546
"jest": "24.9.0",
4647
"koa": "2.11.0",
4748
"node-mocks-http": "1.10.1",

yarn.lock

Lines changed: 51 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,13 @@
99
dependencies:
1010
"@babel/highlight" "^7.0.0"
1111

12+
"@babel/code-frame@^7.16.0":
13+
version "7.16.0"
14+
resolved "https://packages.atlassian.com/api/npm/npm-remote/@babel/code-frame/-/code-frame-7.16.0.tgz#0dfc80309beec8411e65e706461c408b0bb9b431"
15+
integrity sha1-DfyAMJvuyEEeZecGRhxAiwu5tDE=
16+
dependencies:
17+
"@babel/highlight" "^7.16.0"
18+
1219
"@babel/core@^7.1.0":
1320
version "7.7.7"
1421
resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.7.7.tgz#ee155d2e12300bcc0cff6a8ad46f2af5063803e9"
@@ -67,6 +74,11 @@
6774
dependencies:
6875
"@babel/types" "^7.7.4"
6976

77+
"@babel/helper-validator-identifier@^7.15.7":
78+
version "7.15.7"
79+
resolved "https://packages.atlassian.com/api/npm/npm-remote/@babel/helper-validator-identifier/-/helper-validator-identifier-7.15.7.tgz#220df993bfe904a4a6b02ab4f3385a5ebf6e2389"
80+
integrity sha1-Ig35k7/pBKSmsCq08zhaXr9uI4k=
81+
7082
"@babel/helpers@^7.7.4":
7183
version "7.7.4"
7284
resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.7.4.tgz#62c215b9e6c712dadc15a9a0dcab76c92a940302"
@@ -85,6 +97,15 @@
8597
esutils "^2.0.2"
8698
js-tokens "^4.0.0"
8799

100+
"@babel/highlight@^7.16.0":
101+
version "7.16.0"
102+
resolved "https://packages.atlassian.com/api/npm/npm-remote/@babel/highlight/-/highlight-7.16.0.tgz#6ceb32b2ca4b8f5f361fb7fd821e3fddf4a1725a"
103+
integrity sha1-bOsysspLj182H7f9gh4/3fShclo=
104+
dependencies:
105+
"@babel/helper-validator-identifier" "^7.15.7"
106+
chalk "^2.0.0"
107+
js-tokens "^4.0.0"
108+
88109
"@babel/parser@^7.1.0", "@babel/parser@^7.4.3", "@babel/parser@^7.7.4", "@babel/parser@^7.7.7":
89110
version "7.7.7"
90111
resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.7.7.tgz#1b886595419cf92d811316d5b715a53ff38b4937"
@@ -105,13 +126,6 @@
105126
core-js "^2.6.5"
106127
regenerator-runtime "^0.13.2"
107128

108-
"@babel/runtime@^7.0.0":
109-
version "7.7.7"
110-
resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.7.7.tgz#194769ca8d6d7790ec23605af9ee3e42a0aa79cf"
111-
integrity sha512-uCnC2JEVAu8AKB5do1WRIsvrdJ0flYx/A/9f/6chdacnEZ7LmavjdsDXr5ksYBegxtuTPR5Va9/+13QF/kFkCA==
112-
dependencies:
113-
regenerator-runtime "^0.13.2"
114-
115129
"@babel/runtime@^7.10.4", "@babel/runtime@^7.5.5":
116130
version "7.13.17"
117131
resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.13.17.tgz#8966d1fc9593bf848602f0662d6b4d0069e3a7ec"
@@ -349,6 +363,11 @@
349363
resolved "https://registry.yarnpkg.com/@exodus/schemasafe/-/schemasafe-1.0.0-rc.3.tgz#dda2fbf3dafa5ad8c63dadff7e01d3fdf4736025"
350364
integrity sha512-GoXw0U2Qaa33m3eUcxuHnHpNvHjNlLo0gtV091XBpaRINaB4X6FGCG5XKxSFNFiPpugUDqNruHzaqpTdDm4AOg==
351365

366+
"@humanwhocodes/momoa@^2.0.2":
367+
version "2.0.2"
368+
resolved "https://packages.atlassian.com/api/npm/npm-remote/@humanwhocodes/momoa/-/momoa-2.0.2.tgz#127d18c22abf4dd988797c898b4356db8d99b662"
369+
integrity sha1-En0Ywiq/TdmIeXyJi0NW242ZtmI=
370+
352371
"@jest/console@^24.7.1", "@jest/console@^24.9.0":
353372
version "24.9.0"
354373
resolved "https://registry.yarnpkg.com/@jest/console/-/console-24.9.0.tgz#79b1bc06fb74a8cfb01cbdedf945584b1b9707f0"
@@ -745,10 +764,10 @@
745764
resolved "https://registry.yarnpkg.com/@types/normalize-package-data/-/normalize-package-data-2.4.0.tgz#e486d0d97396d79beedd0a6e33f4534ff6b4973e"
746765
integrity sha512-f5j5b/Gf71L+dbqxIpQ4Z2WlmI/mPJ0fOkGGmFgtb6sAu97EPczzbS3/tJKxmcYDj55OX6ssqwDAWOHIYDRDGA==
747766

748-
"@types/qs@^6.9.0":
749-
version "6.9.0"
750-
resolved "https://registry.yarnpkg.com/@types/qs/-/qs-6.9.0.tgz#2a5fa918786d07d3725726f7f650527e1cfeaffd"
751-
integrity sha512-c4zji5CjWv1tJxIZkz1oUtGcdOlsH3aza28Nqmm+uNDWBRHoMsjooBEN4czZp1V3iXPihE/VRUOBqg+4Xq0W4g==
767+
"@types/qs@^6.9.7":
768+
version "6.9.7"
769+
resolved "https://packages.atlassian.com/api/npm/npm-remote/@types/qs/-/qs-6.9.7.tgz#63bb7d067db107cc1e457c303bc25d511febf6cb"
770+
integrity sha1-Y7t9Bn2xB8weRXwwO8JdUR/r9ss=
752771

753772
"@types/range-parser@*":
754773
version "1.2.3"
@@ -1072,18 +1091,16 @@ bcrypt-pbkdf@^1.0.0:
10721091
dependencies:
10731092
tweetnacl "^0.14.3"
10741093

1075-
better-ajv-errors@^0.6.7:
1076-
version "0.6.7"
1077-
resolved "https://registry.yarnpkg.com/better-ajv-errors/-/better-ajv-errors-0.6.7.tgz#b5344af1ce10f434fe02fc4390a5a9c811e470d1"
1078-
integrity sha512-PYgt/sCzR4aGpyNy5+ViSQ77ognMnWq7745zM+/flYO4/Yisdtp9wDQW2IKCyVYPUxQt3E/b5GBSwfhd1LPdlg==
1094+
better-ajv-errors@1.1.0:
1095+
version "1.1.0"
1096+
resolved "https://packages.atlassian.com/api/npm/npm-remote/better-ajv-errors/-/better-ajv-errors-1.1.0.tgz#9ca19cc133df2ec290f4e185ea5b543825fa3d3d"
1097+
integrity sha1-nKGcwTPfLsKQ9OGF6ltUOCX6PT0=
10791098
dependencies:
1080-
"@babel/code-frame" "^7.0.0"
1081-
"@babel/runtime" "^7.0.0"
1082-
chalk "^2.4.1"
1083-
core-js "^3.2.1"
1084-
json-to-ast "^2.0.3"
1085-
jsonpointer "^4.0.1"
1086-
leven "^3.1.0"
1099+
"@babel/code-frame" "^7.16.0"
1100+
"@humanwhocodes/momoa" "^2.0.2"
1101+
chalk "^4.1.2"
1102+
jsonpointer "^5.0.0"
1103+
leven "^3.1.0 < 4"
10871104

10881105
better-path-resolve@1.0.0:
10891106
version "1.0.0"
@@ -1250,7 +1267,7 @@ caseless@~0.12.0:
12501267
resolved "https://registry.yarnpkg.com/caseless/-/caseless-0.12.0.tgz#1b681c21ff84033c826543090689420d187151dc"
12511268
integrity sha1-G2gcIf+EAzyCZUMJBolCDRhxUdw=
12521269

1253-
chalk@^2.0.0, chalk@^2.0.1, chalk@^2.1.0, chalk@^2.4.1, chalk@^2.4.2:
1270+
chalk@^2.0.0, chalk@^2.0.1, chalk@^2.1.0, chalk@^2.4.2:
12541271
version "2.4.2"
12551272
resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.4.2.tgz#cd42541677a54333cf541a49108c1432b44c9424"
12561273
integrity sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==
@@ -1267,7 +1284,7 @@ chalk@^3.0.0:
12671284
ansi-styles "^4.1.0"
12681285
supports-color "^7.1.0"
12691286

1270-
chalk@^4.0.0:
1287+
chalk@^4.0.0, chalk@^4.1.2:
12711288
version "4.1.2"
12721289
resolved "https://registry.yarnpkg.com/chalk/-/chalk-4.1.2.tgz#aac4e2b7734a740867aeb16bf02aad556a1e7a01"
12731290
integrity sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==
@@ -1348,11 +1365,6 @@ co@^4.6.0:
13481365
resolved "https://registry.yarnpkg.com/co/-/co-4.6.0.tgz#6ea6bdf3d853ae54ccb8e47bfa0bf3f9031fb184"
13491366
integrity sha1-bqa989hTrlTMuOR7+gvz+QMfsYQ=
13501367

1351-
code-error-fragment@0.0.230:
1352-
version "0.0.230"
1353-
resolved "https://registry.yarnpkg.com/code-error-fragment/-/code-error-fragment-0.0.230.tgz#d736d75c832445342eca1d1fedbf17d9618b14d7"
1354-
integrity sha512-cadkfKp6932H8UkhzE/gcUqhRMNf8jHzkAN7+5Myabswaghu4xABTgPHDCjW+dBAJxj/SpkTYokpzDqY4pCzQw==
1355-
13561368
collection-visit@^1.0.0:
13571369
version "1.0.0"
13581370
resolved "https://registry.yarnpkg.com/collection-visit/-/collection-visit-1.0.0.tgz#4bc0373c164bc3291b4d368c829cf1a80a59dca0"
@@ -1444,11 +1456,6 @@ core-js@^2.6.5:
14441456
resolved "https://registry.yarnpkg.com/core-js/-/core-js-2.6.11.tgz#38831469f9922bded8ee21c9dc46985e0399308c"
14451457
integrity sha512-5wjnpaT/3dV+XB4borEsnAYQchn00XSgTAWKDkEqv+K8KevjbzmofK6hfJ9TZIlpj2N0xQpazy7PiRQiWHqzWg==
14461458

1447-
core-js@^3.2.1:
1448-
version "3.6.2"
1449-
resolved "https://registry.yarnpkg.com/core-js/-/core-js-3.6.2.tgz#2799ea1a59050f0acf50dfe89b916d6503b16caa"
1450-
integrity sha512-hIE5dXkRzRvnZ5vhkRfQxUvDxQZmD9oueA08jDYRBKJHx+VIl/Pne/e0A4x9LObEEthC/TqiZybUoNM4tRgnKg==
1451-
14521459
core-util-is@1.0.2:
14531460
version "1.0.2"
14541461
resolved "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.2.tgz#b5fd54220aa2bc5ab57aab7140c940754503c1a7"
@@ -3117,14 +3124,6 @@ json-stringify-safe@~5.0.1:
31173124
resolved "https://registry.yarnpkg.com/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz#1296a2d58fd45f19a0f6ce01d65701e2c735b6eb"
31183125
integrity sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus=
31193126

3120-
json-to-ast@^2.0.3:
3121-
version "2.1.0"
3122-
resolved "https://registry.yarnpkg.com/json-to-ast/-/json-to-ast-2.1.0.tgz#041a9fcd03c0845036acb670d29f425cea4faaf9"
3123-
integrity sha512-W9Lq347r8tA1DfMvAGn9QNcgYm4Wm7Yc+k8e6vezpMnRT+NHbtlxgNBXRVjXe9YM6eTn6+p/MKOlV/aABJcSnQ==
3124-
dependencies:
3125-
code-error-fragment "0.0.230"
3126-
grapheme-splitter "^1.0.4"
3127-
31283127
json5@2.x, json5@^2.1.0:
31293128
version "2.1.1"
31303129
resolved "https://registry.yarnpkg.com/json5/-/json5-2.1.1.tgz#81b6cb04e9ba496f1c7005d07b4368a2638f90b6"
@@ -3148,10 +3147,10 @@ jsonfile@^5.0.0:
31483147
optionalDependencies:
31493148
graceful-fs "^4.1.6"
31503149

3151-
jsonpointer@^4.0.1:
3152-
version "4.0.1"
3153-
resolved "https://registry.yarnpkg.com/jsonpointer/-/jsonpointer-4.0.1.tgz#4fd92cb34e0e9db3c89c8622ecf51f9b978c6cb9"
3154-
integrity sha1-T9kss04OnbPInIYi7PUfm5eMbLk=
3150+
jsonpointer@^5.0.0:
3151+
version "5.0.0"
3152+
resolved "https://packages.atlassian.com/api/npm/npm-remote/jsonpointer/-/jsonpointer-5.0.0.tgz#f802669a524ec4805fa7389eadbc9921d5dc8072"
3153+
integrity sha1-+AJmmlJOxIBfpzierbyZIdXcgHI=
31553154

31563155
jsprim@^1.2.2:
31573156
version "1.4.1"
@@ -3267,7 +3266,7 @@ left-pad@^1.3.0:
32673266
resolved "https://registry.yarnpkg.com/left-pad/-/left-pad-1.3.0.tgz#5b8a3a7765dfe001261dde915589e782f8c94d1e"
32683267
integrity sha512-XI5MPzVNApjAyhQzphX8BkmKsKUxD4LdyK24iZeQGinBN9yTQT3bFlCBy/aVx2HrNcqQGsdot8ghrjyrvMCoEA==
32693268

3270-
leven@^3.1.0:
3269+
leven@^3.1.0, "leven@^3.1.0 < 4":
32713270
version "3.1.0"
32723271
resolved "https://registry.yarnpkg.com/leven/-/leven-3.1.0.tgz#77891de834064cccba82ae7842bb6b14a13ed7f2"
32733272
integrity sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A==
@@ -3725,13 +3724,13 @@ oas-validator@^5.0.3:
37253724
should "^13.2.1"
37263725
yaml "^1.10.0"
37273726

3728-
oas3-chow-chow@^1.2.0:
3729-
version "1.2.0"
3730-
resolved "https://registry.yarnpkg.com/oas3-chow-chow/-/oas3-chow-chow-1.2.0.tgz#1e7ee31814c926cca26f77a8e66b61acfc63b155"
3731-
integrity sha512-utUc8aeGr7v7K7bf+4Q4T8+C0qoCbrA17+JUg2FOQ9nfeK1UjJknS8iam3IZg/ZIl05KUUBbl7C3c+dzaCx0hQ==
3727+
oas3-chow-chow@^2.0.0:
3728+
version "2.0.0"
3729+
resolved "https://packages.atlassian.com/api/npm/npm-remote/oas3-chow-chow/-/oas3-chow-chow-2.0.0.tgz#b22a3cc4f24e875c8dac80c1dc525e37a8af9b1d"
3730+
integrity sha1-sio8xPJOh1yNrIDB3FJeN6ivmx0=
37323731
dependencies:
37333732
ajv "^6.12.3"
3734-
better-ajv-errors "^0.6.7"
3733+
better-ajv-errors "1.1.0"
37353734
json-schema-deref-sync "^0.14.0"
37363735
openapi3-ts "^1.3.0"
37373736
xregexp "^4.2.4"

0 commit comments

Comments
 (0)