Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

parameter fix

  • Loading branch information...
commit e5f15786ba70957cda914685eadca64e47921e1b 1 parent 85e0a44
@kaiquewdev authored
Showing with 13 additions and 5 deletions.
  1. +6 −3 lib/tumblr-m.js
  2. +7 −2 package.json
View
9 lib/tumblr-m.js
@@ -122,10 +122,13 @@ exports.core = (function () {
if ( parameters ) {
if ( url ) {
output = url + '/';
- }
+
+ output += __query__( parameters );
+ } else if ( url === '' ) {
+ output = url;
- // Pattern: slug, parameters and optional values
- output += __query__( parameters );
+ output += __query__( parameters ).replace('?', '&');
+ }
}
return output;
View
9 package.json
@@ -1,6 +1,6 @@
{
"name": "tumblr-m",
- "version": "0.0.1",
+ "version": "0.0.2",
"description": "Unification of Tumblr API to a node.js module",
"main": "./index.js",
"bin": {
@@ -16,7 +16,12 @@
},
"devDependencies": {
"mocha": "*",
- "chai": "*"
+ "chai": "*",
+ "sinon": "*"
+ },
+ "dependencies": {
+ "vodevil": "*",
+ "request": "*"
},
"engines": {
"node": "*"
Please sign in to comment.
Something went wrong with that request. Please try again.