Comparing version 1.7.0 to 1.8.0
@@ -18,6 +18,7 @@ | ||
this.authHeader = options.header || 'X-XAPP-Token'; | ||
this.credentials = options.credentials || options.creds; | ||
this.authorization = options.token; | ||
if (!this.authorization) { | ||
throw new Error('Token required to make api requests, please generate one'); | ||
if (!this.authorization && !this.credentials) { | ||
throw new Error('Token or credentials required to make Artsy requests.'); | ||
} | ||
@@ -24,0 +25,0 @@ }, |
{ | ||
"name": "artsy", | ||
"version": "1.7.0", | ||
"version": "1.8.0", | ||
"description": "A Node.js client for the Artsy API", | ||
@@ -34,3 +34,3 @@ "main": "lib/index.js", | ||
"request": "~2.40.0", | ||
"vows": "~0.7.0" | ||
"vows": "~0.9.0-rc2" | ||
}, | ||
@@ -37,0 +37,0 @@ "dependencies": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
50943
21
1313