Socket
Socket
Sign inDemoInstall

@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-canary.2 to 0.111.0

8

CHANGELOG.md

@@ -6,2 +6,10 @@ # Change Log

# [0.111.0](https://github.com/Bearer/bearer/compare/v0.110.0...v0.111.0) (2019-04-09)
**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)

@@ -8,0 +16,0 @@

6

lib/index.d.ts

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

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

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

* @param functions list of func names
* @param buid integration unique identifier
* @param integrationUuid integration unique identifier
* @param integrationName name of the integration
*/
function generator({ functionsDir, functions, buid, integrationName }) {
function generator({ functionsDir, functions, integrationUuid, 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({
buid,
integrationUuid,
functionName: func,

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

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

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

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

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

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

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

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

{
"name": "@bearer/openapi-generator",
"version": "0.111.0-canary.2+178ddcbc",
"version": "0.111.0",
"description": "Function openapi spec generator",

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

"dependencies": {
"@bearer/functions": "^0.111.0-canary.2+178ddcbc",
"@bearer/functions": "^0.111.0",
"lodash.merge": "^4.6.1"
},
"gitHead": "178ddcbcf7c0763cb204ad42450d88aa30f4f337"
"gitHead": "60daf46e8781c3d6ca49def23fa862ef1a2ef232"
}
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