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

api-doc-validator

Package Overview
Dependencies
Maintainers
1
Versions
81
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

api-doc-validator - npm Package Compare versions

Comparing version 2.17.0 to 2.18.0

13

lib/annotations/schema.js

@@ -6,7 +6,13 @@ module.exports = function (data) {

module.exports.prepare = function (schema) {
var name;
let name, local = false;
if (typeof schema === 'string') {
name = /^\s*([\w.]+)\s*=/.exec(schema);
name = name && name[1];
name = /^\s*(const\s+|let\s+|var\s+)?([$\w.]+)\s*=/.exec(schema);
local = !!(name && name[1]);
if (local) {
schema = schema.replace(name[1], '');
}
name = name && name[2];
}

@@ -25,2 +31,3 @@ else if (typeof schema === 'function') {

return {
local,
name,

@@ -27,0 +34,0 @@ schema,

{
"name": "api-doc-validator",
"version": "2.17.0",
"version": "2.18.0",
"description": "api doc and validator",

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

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