@backstage/backend-openapi-utils 0.6.5 → 0.6.6-next.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +10 -0
- package/dist/proxy/setup.cjs.js.map +1 -1
- package/dist/testUtils.cjs.js.map +1 -1
- package/dist/testUtils.d.ts +1 -1
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @backstage/backend-openapi-utils
|
|
2
2
|
|
|
3
|
+
## 0.6.6-next.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 7455dae: Use node prefix on native imports
|
|
8
|
+
- Updated dependencies
|
|
9
|
+
- @backstage/backend-plugin-api@1.7.0-next.0
|
|
10
|
+
- @backstage/errors@1.2.7
|
|
11
|
+
- @backstage/types@1.2.2
|
|
12
|
+
|
|
3
13
|
## 0.6.5
|
|
4
14
|
|
|
5
15
|
### Patch Changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setup.cjs.js","sources":["../../src/proxy/setup.ts"],"sourcesContent":["/*\n * Copyright 2024 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport * as mockttp from 'mockttp';\nimport { OpenApiProxyValidator } from '../schema/validation';\nimport getPort from 'get-port';\nimport { Server } from 'http';\n\nexport class Proxy {\n server: mockttp.Mockttp;\n #openRequests: Record<string, mockttp.CompletedRequest> = {};\n requestResponsePairs = new Map<\n mockttp.CompletedRequest,\n mockttp.CompletedResponse\n >();\n validator: OpenApiProxyValidator;\n public forwardTo: { port: number } = { port: 0 };\n express: { server: Server | undefined } = { server: undefined };\n constructor() {\n this.server = mockttp.getLocal();\n this.validator = new OpenApiProxyValidator();\n }\n\n async setup() {\n await this.server.start();\n this.forwardTo.port = await getPort();\n this.server\n .forAnyRequest()\n .thenForwardTo(`http://localhost:${this.forwardTo.port}`);\n await this.server.on('request', request => {\n this.#openRequests[request.id] = request;\n });\n await this.server.on('response', response => {\n const request = this.#openRequests[response.id];\n if (request) {\n this.requestResponsePairs.set(request, response);\n }\n delete this.#openRequests[response.id];\n this.validator.validate(request, response);\n });\n }\n\n async initialize(url: string, server: Server) {\n await this.validator.initialize(`${url}/openapi.json`);\n this.express.server = server;\n }\n\n stop() {\n if (Object.keys(this.#openRequests).length > 0) {\n throw new Error('There are still open requests');\n }\n this.server.stop();\n\n // If this isn't expressly closed, it will cause a jest memory leak warning.\n this.express.server?.close();\n }\n\n get url() {\n return this.server.proxyEnv.HTTP_PROXY;\n }\n}\n"],"names":["mockttp","OpenApiProxyValidator","getPort"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqBO,MAAM,KAAA,CAAM;AAAA,EACjB,MAAA;AAAA,EACA,gBAA0D,EAAC;AAAA,EAC3D,oBAAA,uBAA2B,GAAA,EAGzB;AAAA,EACF,SAAA;AAAA,EACO,SAAA,GAA8B,EAAE,IAAA,EAAM,CAAA,EAAE;AAAA,EAC/C,OAAA,GAA0C,EAAE,MAAA,EAAQ,MAAA,EAAU;AAAA,EAC9D,WAAA,GAAc;AACZ,IAAA,IAAA,CAAK,MAAA,GAASA,mBAAQ,QAAA,EAAS;AAC/B,IAAA,IAAA,CAAK,SAAA,GAAY,IAAIC,gCAAA,EAAsB;AAAA,EAC7C;AAAA,EAEA,MAAM,KAAA,GAAQ;AACZ,IAAA,MAAM,IAAA,CAAK,OAAO,KAAA,EAAM;AACxB,IAAA,IAAA,CAAK,SAAA,CAAU,IAAA,GAAO,MAAMC,wBAAA,EAAQ;AACpC,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C7B;AAAA,EAEA,IAAI,GAAA,GAAM;AACR,IAAA,OAAO,IAAA,CAAK,OAAO,QAAA,CAAS,UAAA;AAAA,EAC9B;AACF;;;;"}
|
|
1
|
+
{"version":3,"file":"setup.cjs.js","sources":["../../src/proxy/setup.ts"],"sourcesContent":["/*\n * Copyright 2024 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport * as mockttp from 'mockttp';\nimport { OpenApiProxyValidator } from '../schema/validation';\nimport getPort from 'get-port';\nimport { Server } from 'node:http';\n\nexport class Proxy {\n server: mockttp.Mockttp;\n #openRequests: Record<string, mockttp.CompletedRequest> = {};\n requestResponsePairs = new Map<\n mockttp.CompletedRequest,\n mockttp.CompletedResponse\n >();\n validator: OpenApiProxyValidator;\n public forwardTo: { port: number } = { port: 0 };\n express: { server: Server | undefined } = { server: undefined };\n constructor() {\n this.server = mockttp.getLocal();\n this.validator = new OpenApiProxyValidator();\n }\n\n async setup() {\n await this.server.start();\n this.forwardTo.port = await getPort();\n this.server\n .forAnyRequest()\n .thenForwardTo(`http://localhost:${this.forwardTo.port}`);\n await this.server.on('request', request => {\n this.#openRequests[request.id] = request;\n });\n await this.server.on('response', response => {\n const request = this.#openRequests[response.id];\n if (request) {\n this.requestResponsePairs.set(request, response);\n }\n delete this.#openRequests[response.id];\n this.validator.validate(request, response);\n });\n }\n\n async initialize(url: string, server: Server) {\n await this.validator.initialize(`${url}/openapi.json`);\n this.express.server = server;\n }\n\n stop() {\n if (Object.keys(this.#openRequests).length > 0) {\n throw new Error('There are still open requests');\n }\n this.server.stop();\n\n // If this isn't expressly closed, it will cause a jest memory leak warning.\n this.express.server?.close();\n }\n\n get url() {\n return this.server.proxyEnv.HTTP_PROXY;\n }\n}\n"],"names":["mockttp","OpenApiProxyValidator","getPort"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqBO,MAAM,KAAA,CAAM;AAAA,EACjB,MAAA;AAAA,EACA,gBAA0D,EAAC;AAAA,EAC3D,oBAAA,uBAA2B,GAAA,EAGzB;AAAA,EACF,SAAA;AAAA,EACO,SAAA,GAA8B,EAAE,IAAA,EAAM,CAAA,EAAE;AAAA,EAC/C,OAAA,GAA0C,EAAE,MAAA,EAAQ,MAAA,EAAU;AAAA,EAC9D,WAAA,GAAc;AACZ,IAAA,IAAA,CAAK,MAAA,GAASA,mBAAQ,QAAA,EAAS;AAC/B,IAAA,IAAA,CAAK,SAAA,GAAY,IAAIC,gCAAA,EAAsB;AAAA,EAC7C;AAAA,EAEA,MAAM,KAAA,GAAQ;AACZ,IAAA,MAAM,IAAA,CAAK,OAAO,KAAA,EAAM;AACxB,IAAA,IAAA,CAAK,SAAA,CAAU,IAAA,GAAO,MAAMC,wBAAA,EAAQ;AACpC,IAAA,IAAA,CAAK,MAAA,CACF,eAAc,CACd,aAAA,CAAc,oBAAoB,IAAA,CAAK,SAAA,CAAU,IAAI,CAAA,CAAE,CAAA;AAC1D,IAAA,MAAM,IAAA,CAAK,MAAA,CAAO,EAAA,CAAG,SAAA,EAAW,CAAA,OAAA,KAAW;AACzC,MAAA,IAAA,CAAK,aAAA,CAAc,OAAA,CAAQ,EAAE,CAAA,GAAI,OAAA;AAAA,IACnC,CAAC,CAAA;AACD,IAAA,MAAM,IAAA,CAAK,MAAA,CAAO,EAAA,CAAG,UAAA,EAAY,CAAA,QAAA,KAAY;AAC3C,MAAA,MAAM,OAAA,GAAU,IAAA,CAAK,aAAA,CAAc,QAAA,CAAS,EAAE,CAAA;AAC9C,MAAA,IAAI,OAAA,EAAS;AACX,QAAA,IAAA,CAAK,oBAAA,CAAqB,GAAA,CAAI,OAAA,EAAS,QAAQ,CAAA;AAAA,MACjD;AACA,MAAA,OAAO,IAAA,CAAK,aAAA,CAAc,QAAA,CAAS,EAAE,CAAA;AACrC,MAAA,IAAA,CAAK,SAAA,CAAU,QAAA,CAAS,OAAA,EAAS,QAAQ,CAAA;AAAA,IAC3C,CAAC,CAAA;AAAA,EACH;AAAA,EAEA,MAAM,UAAA,CAAW,GAAA,EAAa,MAAA,EAAgB;AAC5C,IAAA,MAAM,IAAA,CAAK,SAAA,CAAU,UAAA,CAAW,CAAA,EAAG,GAAG,CAAA,aAAA,CAAe,CAAA;AACrD,IAAA,IAAA,CAAK,QAAQ,MAAA,GAAS,MAAA;AAAA,EACxB;AAAA,EAEA,IAAA,GAAO;AACL,IAAA,IAAI,OAAO,IAAA,CAAK,IAAA,CAAK,aAAa,CAAA,CAAE,SAAS,CAAA,EAAG;AAC9C,MAAA,MAAM,IAAI,MAAM,+BAA+B,CAAA;AAAA,IACjD;AACA,IAAA,IAAA,CAAK,OAAO,IAAA,EAAK;AAGjB,IAAA,IAAA,CAAK,OAAA,CAAQ,QAAQ,KAAA,EAAM;AAAA,EAC7B;AAAA,EAEA,IAAI,GAAA,GAAM;AACR,IAAA,OAAO,IAAA,CAAK,OAAO,QAAA,CAAS,UAAA;AAAA,EAC9B;AACF;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"testUtils.cjs.js","sources":["../src/testUtils.ts"],"sourcesContent":["/*\n * Copyright 2023 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { Express } from 'express';\nimport { Server } from 'http';\nimport { Proxy } from './proxy/setup';\n\nconst proxiesToCleanup: Proxy[] = [];\n\n/**\n * !!! THIS CURRENTLY ONLY SUPPORTS SUPERTEST !!!\n * Setup a server with a custom OpenAPI proxy. This proxy will capture all requests and responses and make sure they\n * conform to the spec.\n * @param app - express server, needed to ensure we have the correct ports for the proxy.\n * @returns - a configured HTTP server that should be used with supertest.\n * @public\n */\nexport async function wrapServer(app: Express): Promise<Server> {\n const proxy = new Proxy();\n proxiesToCleanup.push(proxy);\n await proxy.setup();\n\n const server = app.listen(proxy.forwardTo.port);\n await proxy.initialize(`http://localhost:${proxy.forwardTo.port}`, server);\n\n return { ...server, address: () => new URL(proxy.url) } as any;\n}\n\nlet registered = false;\nfunction registerHooks() {\n if (typeof afterAll !== 'function' || typeof beforeAll !== 'function') {\n return;\n }\n if (registered) {\n return;\n }\n registered = true;\n\n afterAll(() => {\n for (const proxy of proxiesToCleanup) {\n proxy.stop();\n }\n });\n}\n\nregisterHooks();\n\n/**\n * !!! THIS CURRENTLY ONLY SUPPORTS SUPERTEST !!!\n * Running against supertest, we need some way to hit the optic proxy. This ensures that\n * that happens at runtime when in the context of a `yarn optic capture` command.\n * @param app - Express router that would be passed to supertest's `request`.\n * @returns A wrapper around the express router (or the router untouched) that still works with supertest.\n * @public\n */\nexport const wrapInOpenApiTestServer = (app: Express): Server | Express => {\n if (process.env.OPTIC_PROXY) {\n const server = app.listen(+process.env.PORT!);\n return {\n ...server,\n address: () => new URL(process.env.OPTIC_PROXY!),\n } as any;\n }\n return app;\n};\n"],"names":["Proxy"],"mappings":";;;;AAmBA,MAAM,mBAA4B,EAAC;AAUnC,eAAsB,WAAW,GAAA,EAA+B;AAC9D,EAAA,MAAM,KAAA,GAAQ,IAAIA,WAAA,EAAM;AACxB,EAAA,gBAAA,CAAiB,KAAK,KAAK,CAAA;AAC3B,EAAA,MAAM,MAAM,KAAA,EAAM;AAElB,EAAA,MAAM,MAAA,GAAS,GAAA,CAAI,MAAA,CAAO,KAAA,CAAM,UAAU,IAAI,CAAA;AAC9C,EAAA,MAAM,MAAM,UAAA,CAAW,CAAA,iBAAA,EAAoB,MAAM,SAAA,CAAU,IAAI,IAAI,MAAM,CAAA;AAEzE,EAAA,OAAO,EAAE,GAAG,MAAA,EAAQ,OAAA,EAAS,MAAM,IAAI,GAAA,CAAI,KAAA,CAAM,GAAG,CAAA,EAAE;AACxD;AAEA,IAAI,UAAA,GAAa,KAAA;AACjB,SAAS,aAAA,GAAgB;AACvB,EAAA,IAAI,OAAO,QAAA,KAAa,UAAA,IAAc,OAAO,cAAc,UAAA,EAAY;AACrE,IAAA;AAAA,EACF;AACA,EAAA,IAAI,UAAA,EAAY;AACd,IAAA;AAAA,EACF;AACA,EAAA,UAAA,GAAa,IAAA;AAEb,EAAA,QAAA,CAAS,MAAM;AACb,IAAA,KAAA,MAAW,SAAS,gBAAA,EAAkB;AACpC,MAAA,KAAA,CAAM,IAAA,EAAK;AAAA,IACb;AAAA,EACF,CAAC,CAAA;AACH;AAEA,aAAA,EAAc;AAUP,MAAM,uBAAA,GAA0B,CAAC,GAAA,KAAmC;AACzE,EAAA,IAAI,OAAA,CAAQ,IAAI,WAAA,EAAa;AAC3B,IAAA,MAAM,SAAS,GAAA,CAAI,MAAA,CAAO,CAAC,OAAA,CAAQ,IAAI,IAAK,CAAA;AAC5C,IAAA,OAAO;AAAA,MACL,GAAG,MAAA;AAAA,MACH,SAAS,MAAM,IAAI,GAAA,CAAI,OAAA,CAAQ,IAAI,WAAY;AAAA,KACjD;AAAA,EACF;AACA,EAAA,OAAO,GAAA;AACT;;;;;"}
|
|
1
|
+
{"version":3,"file":"testUtils.cjs.js","sources":["../src/testUtils.ts"],"sourcesContent":["/*\n * Copyright 2023 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { Express } from 'express';\nimport { Server } from 'node:http';\nimport { Proxy } from './proxy/setup';\n\nconst proxiesToCleanup: Proxy[] = [];\n\n/**\n * !!! THIS CURRENTLY ONLY SUPPORTS SUPERTEST !!!\n * Setup a server with a custom OpenAPI proxy. This proxy will capture all requests and responses and make sure they\n * conform to the spec.\n * @param app - express server, needed to ensure we have the correct ports for the proxy.\n * @returns - a configured HTTP server that should be used with supertest.\n * @public\n */\nexport async function wrapServer(app: Express): Promise<Server> {\n const proxy = new Proxy();\n proxiesToCleanup.push(proxy);\n await proxy.setup();\n\n const server = app.listen(proxy.forwardTo.port);\n await proxy.initialize(`http://localhost:${proxy.forwardTo.port}`, server);\n\n return { ...server, address: () => new URL(proxy.url) } as any;\n}\n\nlet registered = false;\nfunction registerHooks() {\n if (typeof afterAll !== 'function' || typeof beforeAll !== 'function') {\n return;\n }\n if (registered) {\n return;\n }\n registered = true;\n\n afterAll(() => {\n for (const proxy of proxiesToCleanup) {\n proxy.stop();\n }\n });\n}\n\nregisterHooks();\n\n/**\n * !!! THIS CURRENTLY ONLY SUPPORTS SUPERTEST !!!\n * Running against supertest, we need some way to hit the optic proxy. This ensures that\n * that happens at runtime when in the context of a `yarn optic capture` command.\n * @param app - Express router that would be passed to supertest's `request`.\n * @returns A wrapper around the express router (or the router untouched) that still works with supertest.\n * @public\n */\nexport const wrapInOpenApiTestServer = (app: Express): Server | Express => {\n if (process.env.OPTIC_PROXY) {\n const server = app.listen(+process.env.PORT!);\n return {\n ...server,\n address: () => new URL(process.env.OPTIC_PROXY!),\n } as any;\n }\n return app;\n};\n"],"names":["Proxy"],"mappings":";;;;AAmBA,MAAM,mBAA4B,EAAC;AAUnC,eAAsB,WAAW,GAAA,EAA+B;AAC9D,EAAA,MAAM,KAAA,GAAQ,IAAIA,WAAA,EAAM;AACxB,EAAA,gBAAA,CAAiB,K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"0.6.
|
|
3
|
+
"version": "0.6.6-next.0",
|
|
4
4
|
"description": "OpenAPI typescript support.",
|
|
5
5
|
"backstage": {
|
|
6
6
|
"role": "node-library"
|
|
@@ -54,9 +54,9 @@
|
|
|
54
54
|
},
|
|
55
55
|
"dependencies": {
|
|
56
56
|
"@apidevtools/swagger-parser": "^10.1.0",
|
|
57
|
-
"@backstage/backend-plugin-api": "
|
|
58
|
-
"@backstage/errors": "
|
|
59
|
-
"@backstage/types": "
|
|
57
|
+
"@backstage/backend-plugin-api": "1.7.0-next.0",
|
|
58
|
+
"@backstage/errors": "1.2.7",
|
|
59
|
+
"@backstage/types": "1.2.2",
|
|
60
60
|
"@types/express": "^4.17.6",
|
|
61
61
|
"@types/express-serve-static-core": "^4.17.5",
|
|
62
62
|
"ajv": "^8.16.0",
|
|
@@ -71,8 +71,8 @@
|
|
|
71
71
|
"openapi3-ts": "^3.1.2"
|
|
72
72
|
},
|
|
73
73
|
"devDependencies": {
|
|
74
|
-
"@backstage/cli": "
|
|
75
|
-
"@backstage/test-utils": "
|
|
74
|
+
"@backstage/cli": "0.35.3-next.0",
|
|
75
|
+
"@backstage/test-utils": "1.7.15-next.0",
|
|
76
76
|
"msw": "^1.0.0",
|
|
77
77
|
"supertest": "^7.0.0"
|
|
78
78
|
}
|