insomnia/packages/openapi-2-kong/package.json

41 lines
1.0 KiB
JSON
Raw Normal View History

2020-04-26 20:33:39 +00:00
{
"private": true,
2020-04-26 20:33:39 +00:00
"name": "openapi-2-kong",
"license": "Apache-2.0",
2023-01-17 16:04:55 +00:00
"version": "3.11.0",
"author": "Kong <office@konghq.com>",
2020-04-26 20:33:39 +00:00
"main": "dist/index.js",
"types": "dist/index.d.ts",
2020-04-26 20:33:39 +00:00
"scripts": {
"bootstrap": "npm run build",
2021-12-10 23:10:20 +00:00
"lint": "eslint . --ext .js,.ts,.tsx --cache",
"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-04-26 20:33:39 +00:00
},
"dependencies": {
2022-11-29 17:46:35 +00:00
"@apidevtools/swagger-parser": "10.1.0",
"openapi-types": "^8.0.0",
"slugify": "1.6.5",
2020-04-26 20:33:39 +00:00
"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": {
"@jest/globals": "^28.1.0",
"@types/url-join": "^4.0.1",
"@types/yaml": "^1.9.7",
"jest": "^28.1.0",
2022-03-08 23:05:21 +00:00
"type-fest": "^2.12.0"
2020-07-01 23:28:05 +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-04-26 20:33:39 +00:00
}