Comparing version 1.3.3 to 1.4.0
## Changelog | ||
* `v1.4.0`: Fixing content version body requests | ||
* `v1.3.0`: Better errors - includes field errors | ||
@@ -4,0 +5,0 @@ * `v1.2.3`: Allow plugin chaining |
@@ -26,1 +26,2 @@ ## Contributors | ||
* pentode -> [pentode](https://github.com/pentode) | ||
* Caleb Everett -> [CalebEverett](https://github.com/CalebEverett) |
11
index.js
@@ -558,3 +558,3 @@ var request = require('request'); | ||
} else if(type === 'contentversion') { | ||
return this.getContentVersionBody(opts, opts.callback); | ||
return this.getContentVersionData(opts, opts.callback); | ||
} else { | ||
@@ -597,2 +597,11 @@ var resolver = promises.createResolver(opts.callback); | ||
Connection.prototype.getContentVersionData = function(data, callback) { | ||
var opts = this._getOpts(data, callback); | ||
var id = (opts.sobject) ? sobject.getId() : opts.id; | ||
opts.resource = '/sobjects/contentversion/' + id + '/versiondata'; | ||
opts.method = 'GET'; | ||
opts.blob = true; | ||
return this._apiRequest(opts, opts.callback); | ||
}; | ||
/***************************** | ||
@@ -599,0 +608,0 @@ * query |
@@ -5,3 +5,3 @@ { | ||
"description": "nforce is a REST API wrapper for force.com, database.com, and salesforce.com", | ||
"version": "1.3.3", | ||
"version": "1.4.0", | ||
"keywords": [ | ||
@@ -8,0 +8,0 @@ "salesforce", |
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
284412
3230