update dependencies and devDependencies
[squeep-indieauth-helper] / lib / communication.js
index a9eb66100d2c2ef9525b4dc75bddb31b0769c060..4856985ce3f83c4373db7f0653d4064b453d10e2 100644 (file)
@@ -73,7 +73,7 @@ class Communication {
    */
   /**
    * Create a code verifier and its challenge.
-   * @param {Number} length
+   * @param {Number} length of verifier string, between 43 and 128
    * @returns {Promise<PKCEData>}
    */
   static async generatePKCE(length = 128) {
@@ -219,9 +219,10 @@ class Communication {
 
 
   /**
-   * Parse and add any header link relations to mf data.
+   * Parse and add any header link relations from response to microformat data.
    * @param {Object} microformat
    * @param {Object} response
+   * @param {Object} response.headers
    */
   _mergeLinkHeader(microformat, response) {
     const _scope = _fileScope('_mergeLinkHeader');