From cd378adf8992b2f08126bbfe8e64b9d6f8dd1289 Mon Sep 17 00:00:00 2001 From: Denis Demchenko Date: Wed, 17 Jul 2019 13:52:54 +0300 Subject: [PATCH] chore(docs): auto-generate docs --- docs/Bowser.html | 10 +++++----- docs/Parser.html | 4 ++-- docs/bowser.js.html | 19 ++++--------------- docs/global.html | 4 ++-- docs/index.html | 6 +++--- docs/parser.js.html | 4 ++-- docs/utils.js.html | 4 ++-- 7 files changed, 20 insertions(+), 31 deletions(-) diff --git a/docs/Bowser.html b/docs/Bowser.html index 50b07fc..f24d358 100644 --- a/docs/Bowser.html +++ b/docs/Bowser.html @@ -27,7 +27,7 @@
@@ -90,7 +90,7 @@
Source:
@@ -284,7 +284,7 @@ explicitly. Same as skipParsing for Parser
-BowserUAIsNotAStringError +Error
@@ -335,7 +335,7 @@ explicitly. Same as skipParsing for ParserSource:
@@ -492,7 +492,7 @@ explicitly. Same as skipParsing for Parser
- Documentation generated by JSDoc 3.6.3 on Tue Jul 16 2019 22:20:27 GMT+0300 (Eastern European Summer Time) using the docdash theme. + Documentation generated by JSDoc 3.6.3 on Wed Jul 17 2019 13:52:37 GMT+0300 (Eastern European Summer Time) using the docdash theme.
diff --git a/docs/Parser.html b/docs/Parser.html index 96259b9..a01f4f7 100644 --- a/docs/Parser.html +++ b/docs/Parser.html @@ -27,7 +27,7 @@
@@ -3061,7 +3061,7 @@ Returns undefined when the browser is no described in the checkTree
- Documentation generated by JSDoc 3.6.3 on Tue Jul 16 2019 22:20:27 GMT+0300 (Eastern European Summer Time) using the docdash theme. + Documentation generated by JSDoc 3.6.3 on Wed Jul 17 2019 13:52:37 GMT+0300 (Eastern European Summer Time) using the docdash theme.
diff --git a/docs/bowser.js.html b/docs/bowser.js.html index 0594346..f846891 100644 --- a/docs/bowser.js.html +++ b/docs/bowser.js.html @@ -27,7 +27,7 @@
@@ -56,17 +56,6 @@ import { PLATFORMS_MAP, } from './constants.js'; -/** - * @class - * @property name - */ -class BowserUAIsNotAStringError extends Error { - constructor(message) { - super(message); - this.name = 'BowserUAIsNotAStringError'; - } -} - /** * Bowser class. * Keep it simple as much as it can be. @@ -86,7 +75,7 @@ class Bowser { * @param {Boolean} [skipParsing=false] Will make the Parser postpone parsing until you ask it * explicitly. Same as `skipParsing` for {@link Parser}. * @returns {Parser} - * @throws {BowserUAIsNotAStringError} when UA is not a String + * @throws {Error} when UA is not a String * * @example * const parser = Bowser.getParser(window.navigator.userAgent); @@ -94,7 +83,7 @@ class Bowser { */ static getParser(UA, skipParsing = false) { if (typeof UA !== 'string') { - throw new BowserUAIsNotAStringError('UserAgent should be a string'); + throw new Error('UserAgent should be a string'); } return new Parser(UA, skipParsing); } @@ -144,7 +133,7 @@ export default Bowser;
- Documentation generated by JSDoc 3.6.3 on Tue Jul 16 2019 22:20:27 GMT+0300 (Eastern European Summer Time) using the docdash theme. + Documentation generated by JSDoc 3.6.3 on Wed Jul 17 2019 13:52:37 GMT+0300 (Eastern European Summer Time) using the docdash theme.
diff --git a/docs/global.html b/docs/global.html index db43dcf..169d3b6 100644 --- a/docs/global.html +++ b/docs/global.html @@ -27,7 +27,7 @@
@@ -2178,7 +2178,7 @@ like "iPhone" or "Kindle Fire HD 7"
- Documentation generated by JSDoc 3.6.3 on Tue Jul 16 2019 22:20:27 GMT+0300 (Eastern European Summer Time) using the docdash theme. + Documentation generated by JSDoc 3.6.3 on Wed Jul 17 2019 13:52:37 GMT+0300 (Eastern European Summer Time) using the docdash theme.
diff --git a/docs/index.html b/docs/index.html index 69f8dfd..f9d4778 100644 --- a/docs/index.html +++ b/docs/index.html @@ -27,7 +27,7 @@
@@ -58,7 +58,7 @@

Bowser

-

A small, fast and reach-API browser/platform/engine detector for both browser and node.

+

A small, fast and rich-API browser/platform/engine detector for both browser and node.