gilded-wordpress
Advanced tools
Comparing version 1.0.7 to 1.0.8
10
index.js
@@ -179,4 +179,10 @@ var fs = require( "fs" ); | ||
if ( xmlrpcVersion !== version ) { | ||
return callback( new Error( "Mismatching versions for Gilded WordPress. " + | ||
// The server should have all capabilities expected by this client. | ||
// The server must therefore be in the "^x.y.z" semver-range, whereby it | ||
// implements the same major version, and the same (or newer) minor version. | ||
var xmlrpcVersionParts = xmlrpcVersion.split( ".", 3 ).map( parseFloat ); | ||
var clientVersionParts = version.split( ".", 3 ).map( parseFloat ); | ||
if ( !( xmlrpcVersionParts[0] === clientVersionParts[0] && xmlrpcVersionParts[1] >= clientVersionParts[1] ) ) { | ||
return callback( new Error( "Incompatible versions for Gilded WordPress. " + | ||
"Version " + version + " is installed as a Node.js module, " + | ||
@@ -183,0 +189,0 @@ "but the WordPress server is running version " + xmlrpcVersion + "." ) ); |
{ | ||
"name": "gilded-wordpress", | ||
"description": "Easily synchronize content between the file system and WordPress", | ||
"version": "1.0.7", | ||
"version": "1.0.8", | ||
"homepage": "https://github.com/scottgonzalez/gilded-wordpress", | ||
@@ -6,0 +6,0 @@ "author": { |
Sorry, the diff of this file is not supported yet
44385
897