Bug 1551952: Update kinto-offline-client.js to v12.4.2 r=leplatrem
authorEthan Glasser-Camp <ethan@betacantrips.com>
Thu, 16 May 2019 13:12:40 +0000
changeset 532903 20457619f22b5c08a94f5423c0388f84312f6a43
parent 532902 14b42e8bd2b5bd973323690c11e823237a8f08a4
child 532904 8e5c0606d1555b052c98ab5d01dc6076b4453039
push id11276
push userrgurzau@mozilla.com
push dateMon, 20 May 2019 13:11:24 +0000
treeherdermozilla-beta@847755a7c325 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersleplatrem
bugs1551952
milestone68.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1551952: Update kinto-offline-client.js to v12.4.2 r=leplatrem This fixes the bug where the call to getData was not passing authentication information. Depends on D31379 Differential Revision: https://phabricator.services.mozilla.com/D31377
services/common/kinto-offline-client.js
--- a/services/common/kinto-offline-client.js
+++ b/services/common/kinto-offline-client.js
@@ -28,17 +28,17 @@
 //
 // See https://bugzilla.mozilla.org/show_bug.cgi?id=1394556#c3 for
 // more details.
 const global = this;
 
 var EXPORTED_SYMBOLS = ["Kinto"];
 
 /*
- * Version 12.4.0 - 896d337
+ * Version 12.4.2 - 87e72a0
  */
 
 (function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.Kinto = f()}})(function(){var define,module,exports;return (function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){
 /*
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
@@ -2760,24 +2760,27 @@ class Collection {
       record.last_modified > localRecord.last_modified;
       return shouldKeep;
     });
     return await this.db.importBulk(newRecords.map(markSynced));
   }
 
   async pullMetadata(client, options = {}) {
     const {
-      expectedTimestamp
+      expectedTimestamp,
+      headers
     } = options;
     const query = expectedTimestamp ? {
       query: {
         _expected: expectedTimestamp
       }
     } : undefined;
-    const metadata = await client.getData(query);
+    const metadata = await client.getData({ ...query,
+      headers
+    });
     return this.db.saveMetadata(metadata);
   }
 
   async metadata() {
     return this.db.getMetadata();
   }
 
 }