Comparing version 6.1.1 to 6.1.2
@@ -8,3 +8,3 @@ (function (global, factory) { | ||
const name = "apivis"; | ||
const version = "6.1.1"; | ||
const version = "6.1.2"; | ||
@@ -209,3 +209,3 @@ const { | ||
return { | ||
type(val, comment, opts) { | ||
type(val, comment = undefined, opts = undefined) { | ||
fnOutput( | ||
@@ -217,3 +217,3 @@ typeStr(val), | ||
}, | ||
desc(val, k, comment, opts) { | ||
desc(val, k, comment = undefined, opts = undefined) { | ||
fnOutput( | ||
@@ -225,7 +225,11 @@ descStr(val, k), | ||
}, | ||
members(val, comment, opts) { | ||
members(val, comment = undefined, opts = undefined) { | ||
fnOutput( | ||
membersStr(val, | ||
(opts.indent === undefined) ? undefined : opts.indent, | ||
(opts.indentLevel === undefined) ? undefined : opts.indentLevel | ||
(opts && typeof opts.indent === 'string') ? | ||
opts.indent : | ||
undefined, | ||
(opts && typeof opts.indentLevel === 'number') ? | ||
opts.indentLevel : | ||
undefined | ||
), | ||
@@ -236,6 +240,8 @@ fnComment(comment, typeStr(val), 'members'), | ||
}, | ||
chain(val, comment, opts) { | ||
chain(val, comment = undefined, opts = undefined) { | ||
fnOutput( | ||
chainStr(val, | ||
(opts.indent === undefined) ? undefined : opts.indent | ||
(opts && typeof opts.indent === 'string') ? | ||
opts.indent : | ||
undefined | ||
), | ||
@@ -246,6 +252,8 @@ fnComment(comment, typeStr(val), 'chain'), | ||
}, | ||
api(val, comment, opts) { | ||
api(val, comment = undefined, opts = undefined) { | ||
fnOutput( | ||
apiStr(val, | ||
(opts.indent === undefined) ? undefined : opts.indent | ||
(opts && typeof opts.indent === 'string') ? | ||
opts.indent : | ||
undefined | ||
), | ||
@@ -252,0 +260,0 @@ fnComment(comment, typeStr(val), 'api'), |
'use strict'; | ||
const name = "apivis"; | ||
const version = "6.1.1"; | ||
const version = "6.1.2"; | ||
@@ -204,3 +204,3 @@ const { | ||
return { | ||
type(val, comment, opts) { | ||
type(val, comment = undefined, opts = undefined) { | ||
fnOutput( | ||
@@ -212,3 +212,3 @@ typeStr(val), | ||
}, | ||
desc(val, k, comment, opts) { | ||
desc(val, k, comment = undefined, opts = undefined) { | ||
fnOutput( | ||
@@ -220,7 +220,11 @@ descStr(val, k), | ||
}, | ||
members(val, comment, opts) { | ||
members(val, comment = undefined, opts = undefined) { | ||
fnOutput( | ||
membersStr(val, | ||
(opts.indent === undefined) ? undefined : opts.indent, | ||
(opts.indentLevel === undefined) ? undefined : opts.indentLevel | ||
(opts && typeof opts.indent === 'string') ? | ||
opts.indent : | ||
undefined, | ||
(opts && typeof opts.indentLevel === 'number') ? | ||
opts.indentLevel : | ||
undefined | ||
), | ||
@@ -231,6 +235,8 @@ fnComment(comment, typeStr(val), 'members'), | ||
}, | ||
chain(val, comment, opts) { | ||
chain(val, comment = undefined, opts = undefined) { | ||
fnOutput( | ||
chainStr(val, | ||
(opts.indent === undefined) ? undefined : opts.indent | ||
(opts && typeof opts.indent === 'string') ? | ||
opts.indent : | ||
undefined | ||
), | ||
@@ -241,6 +247,8 @@ fnComment(comment, typeStr(val), 'chain'), | ||
}, | ||
api(val, comment, opts) { | ||
api(val, comment = undefined, opts = undefined) { | ||
fnOutput( | ||
apiStr(val, | ||
(opts.indent === undefined) ? undefined : opts.indent | ||
(opts && typeof opts.indent === 'string') ? | ||
opts.indent : | ||
undefined | ||
), | ||
@@ -247,0 +255,0 @@ fnComment(comment, typeStr(val), 'api'), |
{ | ||
"name": "apivis", | ||
"version": "6.1.1", | ||
"version": "6.1.2", | ||
"description": "JavaScript objects API visualization", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -14,5 +14,3 @@ # ApiVis | ||
- Node module (CJS) - [https://unpkg.com/apivis@latest/dist/apivis.node.js](https://unpkg.com/apivis@latest/dist/apivis.node.js) | ||
- Browser bundle (UMD) - [https://unpkg.com/apivis@latest/dist/apivis.browser.js](https://unpkg.com/apivis@latest/dist/apivis.browser.js) | ||
- Universal ES module - [https://unpkg.com/apivis@latest/dist/apivis.universal.mjs](https://unpkg.com/apivis@latest/dist/apivis.universal.mjs) | ||
@@ -71,17 +69,10 @@ | ||
- `version` - library version | ||
- `typeStr(val)` - returns type string for `val` (based on `Object.prototype.toString.call(val)` with a few twists) | ||
- `descStr(val, k)` - returns own property descriptor string for `k` in `val` in the form `vw ec` or `g c` for example, where each letter shows if the prop is value and writable or getter and setter and if it is enumerable and configurable | ||
- `members(val)` - returns (sorted) array of all *own* `val` property names (including symbols) | ||
- `membersStr(val, indent = ' ', level = 0)` - returns string representation of all *own* `val` property names (including symbols) with type and own property descriptor information and the values of the primitive booleans, numbers and strings, separated by a newline and indented accordingly | ||
- `chain(val)` - returns the prototype chain of `val` (an array, `val` is first, the root is last) | ||
- `chainStr(val, indent = ' ')` - returns string representation of `val` prototype chain | ||
- `apiStr(val, indent = ' ')` - returns string representation of `val` API tree | ||
See the **example** folder for node and browser examples respectively |
# Release Notes | ||
## 6.1.2 | ||
- Fix opts handling bug in `peek42` plugin code | ||
## 6.1.0 | ||
@@ -4,0 +8,0 @@ |
@@ -204,3 +204,3 @@ import { | ||
return { | ||
type(val, comment, opts) { | ||
type(val, comment = undefined, opts = undefined) { | ||
fnOutput( | ||
@@ -212,3 +212,3 @@ typeStr(val), | ||
}, | ||
desc(val, k, comment, opts) { | ||
desc(val, k, comment = undefined, opts = undefined) { | ||
fnOutput( | ||
@@ -220,7 +220,11 @@ descStr(val, k), | ||
}, | ||
members(val, comment, opts) { | ||
members(val, comment = undefined, opts = undefined) { | ||
fnOutput( | ||
membersStr(val, | ||
(opts.indent === undefined) ? undefined : opts.indent, | ||
(opts.indentLevel === undefined) ? undefined : opts.indentLevel | ||
(opts && typeof opts.indent === 'string') ? | ||
opts.indent : | ||
undefined, | ||
(opts && typeof opts.indentLevel === 'number') ? | ||
opts.indentLevel : | ||
undefined | ||
), | ||
@@ -231,6 +235,8 @@ fnComment(comment, typeStr(val), 'members'), | ||
}, | ||
chain(val, comment, opts) { | ||
chain(val, comment = undefined, opts = undefined) { | ||
fnOutput( | ||
chainStr(val, | ||
(opts.indent === undefined) ? undefined : opts.indent | ||
(opts && typeof opts.indent === 'string') ? | ||
opts.indent : | ||
undefined | ||
), | ||
@@ -241,6 +247,8 @@ fnComment(comment, typeStr(val), 'chain'), | ||
}, | ||
api(val, comment, opts) { | ||
api(val, comment = undefined, opts = undefined) { | ||
fnOutput( | ||
apiStr(val, | ||
(opts.indent === undefined) ? undefined : opts.indent | ||
(opts && typeof opts.indent === 'string') ? | ||
opts.indent : | ||
undefined | ||
), | ||
@@ -247,0 +255,0 @@ fnComment(comment, typeStr(val), 'api'), |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
215952
1028
77