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.100.0 to 0.100.1-canary.25

6

lib/index.js

@@ -82,2 +82,3 @@ "use strict";

const authType = checker.typeToString(typ.aliasTypeArguments[index]);
console.log(authType);
if (/apiKey/.test(authType))

@@ -87,2 +88,5 @@ return 'APIKEY';

return 'BASIC';
if ((/accessToken/.test(authType) && /tokenSecret/.test(authType)) || /TOAUTH1AuthContext/.test(authType)) {
return 'OAUTH1';
}
if (/accessToken/.test(authType))

@@ -155,3 +159,3 @@ return 'OAUTH2';

requestBody: typeSchema.requestBody,
oauth2: typeSchema.intentAuthType === 'OAUTH2'
oauth: typeSchema.intentAuthType === 'OAUTH2' || typeSchema.intentAuthType === 'OAUTH1'
}));

@@ -158,0 +162,0 @@ }, {});

4

lib/openapi-template.d.ts

@@ -36,3 +36,3 @@ declare type THeader = {

};
export declare function specPath({ integrationUuid, intentName, requestBody, response, oauth2 }: {
export declare function specPath({ integrationUuid, intentName, requestBody, response, oauth }: {
integrationUuid: string;

@@ -42,3 +42,3 @@ intentName: string;

response: any;
oauth2: boolean;
oauth: boolean;
}): {

@@ -45,0 +45,0 @@ [x: string]: {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
function specPath({ integrationUuid, intentName, requestBody, response, oauth2 }) {
function specPath({ integrationUuid, intentName, requestBody, response, oauth }) {
return {

@@ -15,3 +15,3 @@ [`/${integrationUuid}/${intentName}`]: {

},
oauthParam(oauth2)
oauthParam(oauth)
].filter(e => e !== undefined),

@@ -40,4 +40,4 @@ summary: intentName,

exports.specPath = specPath;
function oauthParam(oauth2) {
if (oauth2) {
function oauthParam(oauth) {
if (oauth) {
return {

@@ -44,0 +44,0 @@ name: 'authId',

{
"name": "@bearer/openapi-generator",
"version": "0.100.0",
"version": "0.100.1-canary.25+f940327d",
"description": "Intent openapi spec generator",
"main": "lib/index.js",
"repository": {
"type": "git",
"url": "github:Bearer/bearer"
},
"repository": "Bearer/bearer",
"homepage": "https://github.com/Bearer/bearer/packages/openapi-generator#readme",
"author": "Bearer Team",

@@ -16,20 +14,9 @@ "license": "MIT",

"devDependencies": {
"@bearer/intents": "next",
"@bearer/package-init": "^0.78.0",
"@commitlint/cli": "^7.4.0",
"@commitlint/config-conventional": "^7.3.1",
"@oclif/tslint": "^3.1.1",
"@types/jest": "^23.3.13",
"@types/lodash.merge": "^4.6.5",
"@types/node": "^10.12.19",
"commitlint": "^7.4.0",
"cz-conventional-changelog": "^2.1.0",
"husky": "^1.3.1",
"jest": "^24.0.0",
"lint-staged": "^8.1.1",
"prettier": "^1.16.2",
"ts-jest": "^24.0.0",
"tslint": "^5.12.1",
"tslint-config-prettier": "^1.17.0",
"typescript": "^3.2.4"
"typescript": "^3.3.3333"
},

@@ -46,5 +33,6 @@ "scripts": {

"dependencies": {
"@bearer/intents": "^0.99.0",
"lodash.merge": "^4.6.1"
},
"gitHead": "c3f5144aa6c0cddc9d4341051cba3fb7b88f263e"
"gitHead": "f940327ddcfb8d1956bc3ca20aa2b420e95ed9aa"
}
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