prismic.io
Advanced tools
Comparing version 3.4.1 to 3.4.2
@@ -362,2 +362,4 @@ 'use strict'; | ||
getByID: function(id, options, callback) { | ||
options = options || {}; | ||
if(!options.lang) options.lang = '*'; | ||
return this.queryFirst(Predicates.at('document.id', id), options, callback); | ||
@@ -373,2 +375,4 @@ }, | ||
getByIDs: function(ids, options, callback) { | ||
options = options || {}; | ||
if(!options.lang) options.lang = '*'; | ||
return this.query(['in', 'document.id', ids], options, callback); | ||
@@ -385,2 +389,4 @@ }, | ||
getByUID: function(type, uid, options, callback) { | ||
options = options || {}; | ||
if(!options.lang) options.lang = '*'; | ||
return this.queryFirst(Predicates.at('my.'+type+'.uid', uid), options, callback); | ||
@@ -451,3 +457,3 @@ }, | ||
} else { | ||
api.form("everything").query(Predicates.at("document.id", mainDocumentId)).ref(token).submit(function(err, response) { | ||
api.form("everything").query(Predicates.at("document.id", mainDocumentId)).ref(token).lang('*').submit(function(err, response) { | ||
if (err) { | ||
@@ -454,0 +460,0 @@ cb(err); |
@@ -13,3 +13,3 @@ { | ||
], | ||
"version": "3.4.1", | ||
"version": "3.4.2", | ||
"devDependencies": { | ||
@@ -16,0 +16,0 @@ "babel-preset-es2015": "^6.3.13", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
2180283
17012