docworks-model
Advanced tools
Comparing version 1.5.5 to 1.6.0
@@ -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 @@ } |
{ | ||
"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 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7080
273