Socket
Socket
Sign inDemoInstall

@foal/core

Package Overview
Dependencies
64
Maintainers
1
Versions
96
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.11.1 to 1.11.2

4

lib/openapi/create-open-api-document.d.ts
import { Class, ServiceManager } from '../core';
import { IOpenAPI } from './interfaces';
import { IApiPaths, IOpenAPI } from './interfaces';
export declare function canonicalisePath(path: string): string;
export declare function throwErrorIfDuplicatePaths(paths: IApiPaths): void;
/**

@@ -4,0 +6,0 @@ * Create an OpenAPI document from a controller class.

@@ -9,2 +9,6 @@ "use strict";

const utils_2 = require("./utils");
function canonicalisePath(path) {
return path.replace(/{.*?}/g, () => '#');
}
exports.canonicalisePath = canonicalisePath;
function throwErrorIfDuplicatePaths(paths) {

@@ -14,3 +18,3 @@ const originalPaths = [];

for (const path in paths) {
const convertedPath = path.replace(/{.*}/g, () => '#');
const convertedPath = canonicalisePath(path);
const index = convertedPaths.indexOf(convertedPath);

@@ -26,2 +30,3 @@ if (index !== -1) {

}
exports.throwErrorIfDuplicatePaths = throwErrorIfDuplicatePaths;
function getPaths(controllerClass, operation, controllers) {

@@ -28,0 +33,0 @@ const paths = {};

{
"name": "@foal/core",
"version": "1.11.1",
"version": "1.11.2",
"description": "A Node.js and TypeScript framework, all-inclusive.",

@@ -91,4 +91,4 @@ "main": "./lib/index.js",

"devDependencies": {
"@foal/ejs": "^1.11.1",
"@foal/internal-test": "^1.11.1",
"@foal/ejs": "^1.11.2",
"@foal/internal-test": "^1.11.2",
"@types/mocha": "~2.2.43",

@@ -114,3 +114,3 @@ "@types/node": "~10.1.2",

},
"gitHead": "3dec926f141773926de45e44457216146647e48f"
"gitHead": "f1b3749d6e1c03b24205735faf5ebbfe653f7553"
}
SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc