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

rollup-plugin-swagger-jsdoc

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rollup-plugin-swagger-jsdoc - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

2

build/rollup-plugin-swagger-jsdoc.cjs.js

@@ -1,1 +0,1 @@

"use strict";var e=require("swagger-jsdoc"),r=require("fs");module.exports=function(t){return{name:"swagger-jsdoc",buildStart:function(){if(!t.definition)throw new Error('You need to provide "definition"');if(!t.apis)throw new Error('You need to provide "apis"');if(!t.output)throw new Error('You need to provide "output"')},generateBundle:function(){console.log("Yahoo from "+__filename);var o=t.output;delete t.output;var i=!1;t.pretty&&(i=t.pretty,delete t.pretty);var n=e(t),u=i?JSON.stringify(n,null,"\t"):JSON.stringify(n);r.writeFileSync(o,u)}}};
"use strict";var e=require("swagger-jsdoc"),t=require("fs");module.exports=function(r){return{name:"swagger-jsdoc",buildStart:function(){if(!r.definition)throw new Error('You need to provide "definition"');if(!r.apis)throw new Error('You need to provide "apis"');if(!r.output)throw new Error('You need to provide "output"')},generateBundle:function(){var o=r.output;delete r.output;var i=!1;r.pretty&&(i=r.pretty,delete r.pretty);var n=e(r),u=i?JSON.stringify(n,null,"\t"):JSON.stringify(n);t.writeFileSync(o,u)}}};

@@ -1,1 +0,1 @@

var e=require("swagger-jsdoc"),r=require("fs");function t(t){return{name:"swagger-jsdoc",buildStart:function(){if(!t.definition)throw new Error('You need to provide "definition"');if(!t.apis)throw new Error('You need to provide "apis"');if(!t.output)throw new Error('You need to provide "output"')},generateBundle:function(){console.log("Yahoo from "+__filename);var o=t.output;delete t.output;var i=!1;t.pretty&&(i=t.pretty,delete t.pretty);var n=e(t),u=i?JSON.stringify(n,null,"\t"):JSON.stringify(n);r.writeFileSync(o,u)}}}export default t;
var e=require("swagger-jsdoc"),t=require("fs");function r(r){return{name:"swagger-jsdoc",buildStart:function(){if(!r.definition)throw new Error('You need to provide "definition"');if(!r.apis)throw new Error('You need to provide "apis"');if(!r.output)throw new Error('You need to provide "output"')},generateBundle:function(){var o=r.output;delete r.output;var i=!1;r.pretty&&(i=r.pretty,delete r.pretty);var n=e(r),u=i?JSON.stringify(n,null,"\t"):JSON.stringify(n);t.writeFileSync(o,u)}}}export default r;
{
"name": "rollup-plugin-swagger-jsdoc",
"version": "1.0.0",
"version": "1.0.1",
"description": "Rollup plugin to generate a swagger.json file from JSDoc comments.",

@@ -8,2 +8,3 @@ "main": "build/rollup-plugin-swagger-jsdoc.cjs.js",

"scripts": {
"test": "",
"build": "rollup -c"

@@ -10,0 +11,0 @@ },

# rollup-plugin-swagger-jsdoc
[![Build Status](https://travis-ci.org/zoltraks/rollup-plugin-swagger-jsdoc.svg?branch=main)](https://travis-ci.org/zoltraks/rollup-plugin-swagger-jsdoc.svg?branch=main)
[![Build Status](https://travis-ci.org/zoltraks/rollup-plugin-swagger-jsdoc.svg?branch=main)](https://travis-ci.org/zoltraks/rollup-plugin-swagger-jsdoc)

@@ -5,0 +5,0 @@ Rollup plugin to generate a *swagger.json* file from ``JSDoc`` comments using **swagger-jsdoc** library.

@@ -19,3 +19,2 @@ const swaggerJSDoc = require('swagger-jsdoc');

generateBundle() {
console.log(`Yahoo from ${__filename}`);
const output = options.output;

@@ -22,0 +21,0 @@ delete options.output;

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