Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@bearer/openapi-generator

Package Overview
Dependencies
Maintainers
4
Versions
174
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bearer/openapi-generator - npm Package Compare versions

Comparing version 0.111.0 to 0.112.0

10

CHANGELOG.md

@@ -6,3 +6,3 @@ # Change Log

# [0.111.0](https://github.com/Bearer/bearer/compare/v0.110.0...v0.111.0) (2019-04-09)
# [0.112.0](https://github.com/Bearer/bearer/compare/v0.110.0...v0.112.0) (2019-04-11)

@@ -15,2 +15,10 @@ **Note:** Version bump only for package @bearer/openapi-generator

# [0.111.0](https://github.com/Bearer/bearer/compare/v0.110.0...v0.111.0) (2019-04-11)
**Note:** Version bump only for package @bearer/openapi-generator
# [0.110.0](https://github.com/Bearer/bearer/compare/v0.109.0...v0.110.0) (2019-04-08)

@@ -17,0 +25,0 @@

6

lib/index.d.ts

@@ -20,11 +20,11 @@ import ts from 'typescript';

* @param functions list of func names
* @param integrationUuid integration unique identifier
* @param buid integration unique identifier
* @param integrationName name of the integration
*/
export default function generator({ functionsDir, functions, integrationUuid, integrationName }: {
export default function generator({ functionsDir, functions, buid, integrationName }: {
functionsDir: string;
functions: string[];
integrationUuid: string;
buid: string;
integrationName: string;
}): string;
export {};

@@ -128,6 +128,6 @@ "use strict";

* @param functions list of func names
* @param integrationUuid integration unique identifier
* @param buid integration unique identifier
* @param integrationName name of the integration
*/
function generator({ functionsDir, functions, integrationUuid, integrationName }) {
function generator({ functionsDir, functions, buid, integrationName }) {
const doc = openapi_template_1.topOfSpec(integrationName);

@@ -138,3 +138,3 @@ const schemas = functions.sort().reduce((acc, func) => {

return Object.assign(acc, openapi_template_1.specPath({
integrationUuid,
buid,
functionName: func,

@@ -141,0 +141,0 @@ response: { type: 'object', properties: typeSchema.response },

@@ -21,4 +21,4 @@ declare type THeader = {

};
export declare function specPath({ integrationUuid, functionName, requestBody, response, oauth }: {
integrationUuid: string;
export declare function specPath({ buid, functionName, requestBody, response, oauth }: {
buid: string;
functionName: string;

@@ -25,0 +25,0 @@ requestBody: any;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
function specPath({ integrationUuid, functionName, requestBody, response, oauth }) {
function specPath({ buid, functionName, requestBody, response, oauth }) {
return {
[`/${integrationUuid}/${functionName}`]: {
[`/${buid}/${functionName}`]: {
post: {

@@ -57,3 +57,3 @@ parameters: [

},
servers: [{ url: 'https://int.bearer.sh/api/v3/functions/backend/' }],
servers: [{ url: 'https://int.bearer.sh/api/v4/functions/backend/' }],
tags: []

@@ -60,0 +60,0 @@ };

{
"name": "@bearer/openapi-generator",
"version": "0.111.0",
"version": "0.112.0",
"description": "Function openapi spec generator",

@@ -32,6 +32,6 @@ "main": "lib/index.js",

"dependencies": {
"@bearer/functions": "^0.111.0",
"@bearer/functions": "^0.112.0",
"lodash.merge": "^4.6.1"
},
"gitHead": "60daf46e8781c3d6ca49def23fa862ef1a2ef232"
"gitHead": "4c58dd6b2019e09a7c32cda3c574723a3fe0e844"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc