Socket
Socket
Sign inDemoInstall

wpcom-xhr-request

Package Overview
Dependencies
Maintainers
2
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wpcom-xhr-request - npm Package Compare versions

Comparing version 0.2.2 to 0.2.3

7

History.md
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 @@ ==================

9

index.js

@@ -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": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc