wpcom-xhr-request
Advanced tools
Comparing version 0.2.2 to 0.2.3
0.2.3 / 2014-06-24 | ||
================== | ||
* dist: recompile | ||
* package: update "browserify" to v4.1.11 | ||
* index: added support for non v1 API endpoints via `apiVersion` option | ||
0.2.2 / 2014-06-10 | ||
@@ -3,0 +10,0 @@ ================== |
@@ -22,6 +22,6 @@ | ||
/** | ||
* WordPress.com v1 REST API URL. | ||
* Default WordPress.com REST API Version. | ||
*/ | ||
var apiUrl = proxyOrigin + '/rest/v1'; | ||
var defaultApiVersion = '1'; | ||
@@ -46,3 +46,6 @@ /** | ||
var url = apiUrl + params.path; | ||
var apiVersion = params.apiVersion || defaultApiVersion; | ||
delete params.apiVersion; | ||
var url = proxyOrigin + '/rest/v' + apiVersion + params.path; | ||
debug('API URL: `%s`', url); | ||
@@ -49,0 +52,0 @@ delete params.path; |
@@ -12,3 +12,3 @@ { | ||
], | ||
"version": "0.2.2", | ||
"version": "0.2.3", | ||
"author": "Automattic, Inc.", | ||
@@ -22,3 +22,3 @@ "contributors": [ | ||
"devDependencies": { | ||
"browserify": "3.44.0" | ||
"browserify": "4.1.11" | ||
}, | ||
@@ -25,0 +25,0 @@ "dependencies": { |
7304
105