chore: mark version v1.23.0

This commit is contained in:
Pedro S Lopez 2023-10-21 11:37:45 -04:00
commit d2127832c6
70 changed files with 3740 additions and 402 deletions

View file

@ -4,7 +4,7 @@
<head>
<meta name="generator" content="JSDoc 3.6.11">
<meta charset="utf-8">
<title>whatsapp-web.js 1.22.1 &raquo; Source: structures/Location.js</title>
<title>whatsapp-web.js 1.23.0 &raquo; Source: structures/Location.js</title>
<link rel="stylesheet" href="https://brick.a.ssl.fastly.net/Karla:400,400i,700,700i" type="text/css">
<link rel="stylesheet" href="https://brick.a.ssl.fastly.net/Noto+Serif:400,400i,700,700i" type="text/css">
<link rel="stylesheet" href="https://brick.a.ssl.fastly.net/Inconsolata:500" type="text/css">
@ -15,7 +15,7 @@
<nav id="jsdoc-navbar" role="navigation" class="jsdoc-navbar">
<div id="jsdoc-navbar-container">
<div id="jsdoc-navbar-content">
<a href="index.html" class="jsdoc-navbar-package-name">whatsapp-web.<wbr>js 1.<wbr>22.<wbr>1</a>
<a href="index.html" class="jsdoc-navbar-package-name">whatsapp-web.<wbr>js 1.<wbr>23.<wbr>0</a>
</div>
</div>
</nav>
@ -31,6 +31,14 @@
<article>
<pre class="prettyprint linenums"><code>&#x27;use strict&#x27;;
/**
* Location send options
* @typedef {Object} LocationSendOptions
* @property {string} [name] Location name
* @property {string} [address] Location address
* @property {string} [url] URL address to be shown within a location message
*/
/**
* Location information
*/
@ -38,9 +46,9 @@ class Location {
/**
* @param {number} latitude
* @param {number} longitude
* @param {?string} description
* @param {LocationSendOptions} [options] Location send options
*/
constructor(latitude, longitude, description) {
constructor(latitude, longitude, options &#x3D; {}) {
/**
* Location latitude
* @type {number}
@ -55,9 +63,29 @@ class Location {
/**
* Name for the location
* @type {?string}
* @type {string|undefined}
*/
this.description &#x3D; description;
this.name &#x3D; options.name;
/**
* Location address
* @type {string|undefined}
*/
this.address &#x3D; options.address;
/**
* URL address to be shown within a location message
* @type {string|undefined}
*/
this.url &#x3D; options.url;
/**
* Location full description
* @type {string|undefined}
*/
this.description &#x3D; this.name &amp;amp;&amp;amp; this.address
? &#x60;${this.name}\n${this.address}&#x60;
: this.name || this.address || &#x27;&#x27;;
}
}
@ -71,7 +99,7 @@ module.exports &#x3D; Location;</code></pre>
<footer id="jsdoc-footer" class="jsdoc-footer">
<div id="jsdoc-footer-container">
<p>
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc</a> 3.6.11 on August 10, 2023.
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc</a> 3.6.11 on October 21, 2023.
</p>
</div>
</footer>