зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1262389 - Update to kinto.js 2.0. r=mgoodwin,MattN
* Land kinto.js 2.0, with transactions, indexeddb optimizations and incoming-changes hooks for content signing * Renamed moz-kinto-client.js to kinto-offline-client.js * Introduced kinto-http-client.js for direct interaction with Kinto HTTP API MozReview-Commit-ID: 2rOW27cB7wt --HG-- rename : services/common/moz-kinto-client.js => services/common/kinto-offline-client.js extra : amend_source : d1fe9291dbec41bae1b4521ab7e64ae4def6f403
This commit is contained in:
Родитель
51d726419d
Коммит
ca88fcd131
|
@ -8,7 +8,7 @@ this.EXPORTED_SYMBOLS = ["OneCRLClient"];
|
|||
|
||||
const { classes: Cc, interfaces: Ci, utils: Cu } = Components;
|
||||
|
||||
Cu.import("resource://services-common/moz-kinto-client.js");
|
||||
Cu.import("resource://services-common/kinto-offline-client.js");
|
||||
|
||||
Cu.import("resource://gre/modules/Services.jsm");
|
||||
Cu.import("resource://gre/modules/Task.jsm");
|
||||
|
|
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
|
@ -15,10 +15,11 @@ EXTRA_COMPONENTS += [
|
|||
|
||||
EXTRA_JS_MODULES['services-common'] += [
|
||||
'async.js',
|
||||
'kinto-http-client.js',
|
||||
'kinto-offline-client.js',
|
||||
'kinto-updater.js',
|
||||
'KintoCertificateBlocklist.js',
|
||||
'logmanager.js',
|
||||
'moz-kinto-client.js',
|
||||
'observers.js',
|
||||
'rest.js',
|
||||
'stringbundle.js',
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/* Any copyright is dedicated to the Public Domain.
|
||||
http://creativecommons.org/publicdomain/zero/1.0/ */
|
||||
|
||||
Cu.import("resource://services-common/moz-kinto-client.js")
|
||||
Cu.import("resource://services-common/kinto-offline-client.js");
|
||||
Cu.import("resource://testing-common/httpd.js");
|
||||
|
||||
const BinaryInputStream = Components.Constructor("@mozilla.org/binaryinputstream;1",
|
||||
|
@ -359,7 +359,7 @@ function getSampleResponse(req, port) {
|
|||
"status": {status: 200, statusText: "OK"},
|
||||
"responseBody": JSON.stringify({"settings":{"cliquet.batch_max_requests":25}, "url":`http://localhost:${port}/v1/`, "documentation":"https://kinto.readthedocs.org/", "version":"1.5.1", "commit":"cbc6f58", "hello":"kinto"})
|
||||
},
|
||||
"GET:/v1/buckets/default/collections/test_collection/records?": {
|
||||
"GET:/v1/buckets/default/collections/test_collection/records?_sort=-last_modified": {
|
||||
"sampleHeaders": [
|
||||
"Access-Control-Allow-Origin: *",
|
||||
"Access-Control-Expose-Headers: Retry-After, Content-Length, Alert, Backoff",
|
||||
|
@ -370,7 +370,7 @@ function getSampleResponse(req, port) {
|
|||
"status": {status: 200, statusText: "OK"},
|
||||
"responseBody": JSON.stringify({"data":[{"last_modified":1445606341071, "done":false, "id":"68db8313-686e-4fff-835e-07d78ad6f2af", "title":"New test"}]})
|
||||
},
|
||||
"GET:/v1/buckets/default/collections/test_collection/records?_since=1445606341071": {
|
||||
"GET:/v1/buckets/default/collections/test_collection/records?_sort=-last_modified&_since=1445606341071": {
|
||||
"sampleHeaders": [
|
||||
"Access-Control-Allow-Origin: *",
|
||||
"Access-Control-Expose-Headers: Retry-After, Content-Length, Alert, Backoff",
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
const { Constructor: CC } = Components;
|
||||
|
||||
Cu.import("resource://services-common/KintoCertificateBlocklist.js");
|
||||
Cu.import("resource://services-common/moz-kinto-client.js")
|
||||
Cu.import("resource://services-common/kinto-offline-client.js");
|
||||
Cu.import("resource://testing-common/httpd.js");
|
||||
|
||||
const BinaryInputStream = CC("@mozilla.org/binaryinputstream;1",
|
||||
|
@ -145,7 +145,7 @@ function getSampleResponse(req, port) {
|
|||
"status": {status: 200, statusText: "OK"},
|
||||
"responseBody": JSON.stringify({"settings":{"cliquet.batch_max_requests":25}, "url":`http://localhost:${port}/v1/`, "documentation":"https://kinto.readthedocs.org/", "version":"1.5.1", "commit":"cbc6f58", "hello":"kinto"})
|
||||
},
|
||||
"GET:/v1/buckets/blocklists/collections/certificates/records?": {
|
||||
"GET:/v1/buckets/blocklists/collections/certificates/records?_sort=-last_modified": {
|
||||
"sampleHeaders": [
|
||||
"Access-Control-Allow-Origin: *",
|
||||
"Access-Control-Expose-Headers: Retry-After, Content-Length, Alert, Backoff",
|
||||
|
@ -161,7 +161,7 @@ function getSampleResponse(req, port) {
|
|||
"last_modified":3000
|
||||
}]})
|
||||
},
|
||||
"GET:/v1/buckets/blocklists/collections/certificates/records?_since=3000": {
|
||||
"GET:/v1/buckets/blocklists/collections/certificates/records?_sort=-last_modified&_since=3000": {
|
||||
"sampleHeaders": [
|
||||
"Access-Control-Allow-Origin: *",
|
||||
"Access-Control-Expose-Headers: Retry-After, Content-Length, Alert, Backoff",
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/* Any copyright is dedicated to the Public Domain.
|
||||
http://creativecommons.org/publicdomain/zero/1.0/ */
|
||||
|
||||
Cu.import("resource://services-common/moz-kinto-client.js");
|
||||
Cu.import("resource://services-common/kinto-offline-client.js");
|
||||
|
||||
// set up what we need to make storage adapters
|
||||
const Kinto = loadKinto();
|
||||
|
|
Загрузка…
Ссылка в новой задаче