Socket
Socket
Sign inDemoInstall

@samchon/openapi

Package Overview
Dependencies
Maintainers
0
Versions
82
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@samchon/openapi - npm Package Compare versions

Comparing version 0.1.24 to 0.1.25

4

lib/internal/MigrateConverter.js

@@ -10,5 +10,5 @@ "use strict";

MigrateConverter.convert = (document) => {
var _a;
var _a, _b;
const errors = [];
const entire = Object.entries((_a = document.paths) !== null && _a !== void 0 ? _a : {})
const entire = Object.entries(Object.assign(Object.assign({}, ((_a = document.paths) !== null && _a !== void 0 ? _a : {})), ((_b = document.webhooks) !== null && _b !== void 0 ? _b : {})))
.map(([path, collection]) => ["head", "get", "post", "put", "patch", "delete"]

@@ -15,0 +15,0 @@ .filter((method) => collection[method] !== undefined)

@@ -65,3 +65,3 @@ import { IMigrateDocument } from "./IMigrateDocument";

paths?: Record<string, IPath>;
webhooks?: Record<string, IJsonSchema.IReference<`#/components/pathItems/${string}`> | IPath>;
webhooks?: Record<string, IPath>;
security?: Record<string, string[]>[];

@@ -68,0 +68,0 @@ tags?: IDocument.ITag[];

{
"name": "@samchon/openapi",
"version": "0.1.24",
"version": "0.1.25",
"description": "OpenAPI definitions and converters for 'typia' and 'nestia'.",

@@ -5,0 +5,0 @@ "main": "./lib/index.js",

@@ -11,5 +11,6 @@ import { IMigrateRoute } from "../IMigrateRoute";

const errors: IMigrateDocument.IError[] = [];
const entire: Array<IMigrateRoute | null> = Object.entries(
document.paths ?? {},
)
const entire: Array<IMigrateRoute | null> = Object.entries({
...(document.paths ?? {}),
...(document.webhooks ?? {}),
})
.map(([path, collection]) =>

@@ -16,0 +17,0 @@ (["head", "get", "post", "put", "patch", "delete"] as const)

@@ -124,6 +124,3 @@ import { IMigrateDocument } from "./IMigrateDocument";

paths?: Record<string, IPath>;
webhooks?: Record<
string,
IJsonSchema.IReference<`#/components/pathItems/${string}`> | IPath
>;
webhooks?: Record<string, IPath>;
security?: Record<string, string[]>[];

@@ -130,0 +127,0 @@ tags?: IDocument.ITag[];

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