2020-04-26 20:33:39 +00:00
|
|
|
{
|
|
|
|
"name": "openapi-2-kong",
|
2021-04-22 20:21:22 +00:00
|
|
|
"license": "Apache-2.0",
|
2021-08-10 04:17:55 +00:00
|
|
|
"version": "2.3.1-alpha.1",
|
2021-05-12 12:31:07 +00:00
|
|
|
"author": "Kong <office@konghq.com>",
|
2020-04-26 20:33:39 +00:00
|
|
|
"main": "dist/index.js",
|
2021-05-12 06:35:00 +00:00
|
|
|
"types": "dist/index.d.ts",
|
2020-04-26 20:33:39 +00:00
|
|
|
"scripts": {
|
2020-05-14 20:57:03 +00:00
|
|
|
"bootstrap": "npm run build",
|
2021-05-12 06:35:00 +00:00
|
|
|
"lint": "eslint . --ext .js,.ts,.tsx",
|
|
|
|
"lint:fix": "npm run lint -- --fix",
|
|
|
|
"clean": "tsc --build tsconfig.build.json --clean",
|
|
|
|
"postclean": "rimraf dist",
|
|
|
|
"build": "tsc --build tsconfig.build.json",
|
|
|
|
"test": "jest",
|
2020-05-14 20:57:03 +00:00
|
|
|
"prepublish": "npm run build"
|
2020-04-26 20:33:39 +00:00
|
|
|
},
|
|
|
|
"dependencies": {
|
2021-05-12 06:35:00 +00:00
|
|
|
"openapi-types": "^8.0.0",
|
2020-04-26 20:33:39 +00:00
|
|
|
"slugify": "^1.3.6",
|
|
|
|
"swagger-parser": "^8.0.3",
|
|
|
|
"url-join": "^4.0.1",
|
[o2k] fix: kubernetes TLS implementation is (very) wrong (#3410)
* updates Kubernetes types to actually match Kuberenetes Ingress/v1beta1 API
* checks type of result in tests
among other cosmetic changes
* enables strict mode in o2k (but leaves bug it uncovered that this PR fixes)
I really do need this to complete the task at hand. For example, there was an existing error in `ingressDocWithOverride`:
```
Type 'string | null | undefined' is not assignable to type 'string | undefined'.
Type 'null' is not assignable to type 'string | undefined'.ts(2322)
kubernetes-config.ts(36, 3): The expected type comes from property 'path' which is declared here on type 'K8sHTTPIngressPath'
```
That is caught only by strict mode. This is literally what I am fixing in this PR, so it seems like as good a time as any. Thankfully, only took me ~30 minutes to do because it was already super close.
* fixtures for `kong-for-kubernetes`
* index exporters for actual exports
when I made these files, I didn't understand that the lower-level helpers are not actually exported by the library, therefore there's no reason to have these index.ts files.
Furthermore, the types file could use it's own for the same reason, because those types _are_ actually exported.
* fixes bug: TLS is now an array and a child of K8sIngress.spec
* updates 'yaml'
for some reason I cannot explain, suddenly the CI is failing constantly because of this package. https://github.com/Kong/insomnia/runs/2639615988
The only `yaml` exports we use in`o2k` are `parse` and `stringify` and we don't re-export it in any way. Therefore, we should be safe to update it (many other projects in the monorepo are on different versions anyway). This recent version is written purely in TypeScript, so we don't need the types packages anymore.
* adds a few more docs
2021-05-24 12:23:51 +00:00
|
|
|
"yaml": "2.0.0-5"
|
2020-04-26 20:33:39 +00:00
|
|
|
},
|
|
|
|
"devDependencies": {
|
2021-05-12 06:35:00 +00:00
|
|
|
"@types/url-join": "^4.0.0",
|
|
|
|
"@types/yaml": "^1.9.7",
|
2021-06-23 03:54:20 +00:00
|
|
|
"jest": "^26.6.3",
|
|
|
|
"type-fest": "^1.0.2"
|
2020-07-01 23:28:05 +00:00
|
|
|
},
|
2021-04-27 07:08:42 +00:00
|
|
|
"repository": {
|
|
|
|
"type": "git",
|
|
|
|
"url": "https://github.com/Kong/insomnia.git",
|
|
|
|
"directory": "packages/openapi-2-kong"
|
|
|
|
},
|
|
|
|
"bugs": {
|
|
|
|
"url": "https://github.com/Kong/insomnia/issues"
|
|
|
|
},
|
2020-07-01 23:28:05 +00:00
|
|
|
"gitHead": "d91e6735a76295166545a42c170328da4ab70dd3"
|
2020-04-26 20:33:39 +00:00
|
|
|
}
|