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

hapi-swagger

Package Overview
Dependencies
Maintainers
2
Versions
163
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hapi-swagger - npm Package Compare versions

Comparing version 13.0.1 to 13.0.2

8

lib/properties.js

@@ -150,5 +150,7 @@ const Hoek = require('@hapi/hoek');

let objectPattern = joiObj.$_terms.patterns[0];
let patternSchema = objectPattern.schema;
let patternName = patternSchema.$_terms.examples
&& patternSchema.$_terms.examples[0] ? patternSchema.$_terms.examples[0] : patternSchema.type;
let patternName = 'string';
if (objectPattern.schema) {
patternName = objectPattern.schema.$_terms.examples
&& objectPattern.schema.$_terms.examples[0] ? objectPattern.schema.$_terms.examples[0] : objectPattern.schema.type;
}
property.name = name;

@@ -155,0 +157,0 @@ property.properties = {

{
"name": "hapi-swagger",
"description": "A swagger documentation UI generator plugin for hapi",
"version": "13.0.1",
"version": "13.0.2",
"author": "Glenn Jones",

@@ -6,0 +6,0 @@ "repository": {

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