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

docworks-model

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

docworks-model - npm Package Compare versions

Comparing version 1.5.5 to 1.6.0

10

dist/index.js

@@ -39,3 +39,3 @@ 'use strict';

function Docs(summary, description, links, examples) {
function Docs(summary, description, links, examples, extra) {
return {

@@ -45,10 +45,12 @@ summary: summary,

links: links,
examples: examples
examples: examples,
extra: extra || {}
};
}
function Example(title, body) {
function Example(title, body, extra) {
return {
title: title,
body: body
body: body,
extra: extra || {}
};

@@ -55,0 +57,0 @@ }

2

package.json
{
"name": "docworks-model",
"version": "1.5.5",
"version": "1.6.0",
"description": "The model objects for docworks json files",

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

@@ -22,3 +22,3 @@

export function Docs(summary, description, links, examples) {
export function Docs(summary, description, links, examples, extra) {
return {

@@ -28,10 +28,12 @@ summary: summary,

links: links,
examples: examples
examples: examples,
extra: extra || {}
}
}
export function Example(title, body) {
export function Example(title, body, extra) {
return {
title: title,
body: body
body: body,
extra: extra || {}
}

@@ -38,0 +40,0 @@ }

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