wantworthy.js
Advanced tools
Comparing version 0.3.6 to 0.3.7
@@ -11,2 +11,11 @@ var resourceful = require("../resourceful"); | ||
options = options || {}; | ||
var auth = this.auth(); | ||
if(options && options.authtoken) { | ||
auth = {'Authorization': 'token ' + options.authtoken }; | ||
delete options.authtoken; | ||
} | ||
//TODO: fix the 'Accept' for product sets | ||
@@ -16,3 +25,3 @@ this._request | ||
.send(options) | ||
.set(this.auth()) | ||
.set(auth) | ||
.on('error', callback) | ||
@@ -19,0 +28,0 @@ // .set('Accept', this.schema.mediaType) |
{ | ||
"name": "wantworthy.js", | ||
"description": "Javascript client for working with the wantworthy.com api. Runs in node and the browser", | ||
"version": "0.3.6", | ||
"version": "0.3.7", | ||
"author": "Ryan Fitzgerald <ryan@codebrewstudios.com>", | ||
@@ -6,0 +6,0 @@ "repository": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
191469
5690