Comparing version 1.1.0 to 1.1.1
## Changelog | ||
* `v1.1.1`: Fixing sobject get method for falsey values | ||
* `v1.1.0`: Experimental SAML Bearer Assertion Flow support | ||
@@ -4,0 +5,0 @@ * `v1.0.0`: Adds promises, improves streaming, better plugin support |
@@ -23,1 +23,2 @@ ## Contributors | ||
* Timmy Sze -> [timmysze](https://github.com/timmysze) | ||
* Elias Dawson -> [eliasdawson](https://github.com/eliasdawson) |
@@ -26,4 +26,13 @@ var gulp = require('gulp'); | ||
var test = spawn('npm', [ 'test' ], { stdio: 'inherit' }); | ||
var pkg = require('./package.json'); | ||
if(!pkg || !pkg.scripts || !pkg.scripts.test) { | ||
return cb(new Error('No test script provided in package.json')); | ||
} | ||
var args = pkg.scripts.test.split(' '); | ||
var cmd = args.shift(); | ||
var test = spawn(cmd, args, { stdio: 'inherit' }); | ||
test.on('close', function(code) { | ||
@@ -30,0 +39,0 @@ if(code !== 0) { |
@@ -27,3 +27,3 @@ var _ = require('lodash'); | ||
field = field.toLowerCase(); | ||
if(field && this._fields[field]) { | ||
if(field && this._fields[field] !== undefined) { | ||
return this._fields[field]; | ||
@@ -30,0 +30,0 @@ } |
@@ -5,3 +5,3 @@ { | ||
"description": "nforce is a REST API wrapper for force.com, database.com, and salesforce.com", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"keywords": [ | ||
@@ -50,4 +50,3 @@ "salesforce", | ||
"scripts": { | ||
"test": "mocha --reporter spec", | ||
"testrecord": "mocha test/record.js --reporter spec" | ||
"test": "./node_modules/mocha/bin/mocha --reporter spec" | ||
}, | ||
@@ -54,0 +53,0 @@ "license": { |
@@ -84,2 +84,10 @@ /* jshint -W030 */ | ||
it('should return false properties', function() { | ||
var acc = new Record(accData); | ||
acc.set('Test', false); | ||
acc.get('Test').should.equal(false); | ||
acc.set('Test', 0); | ||
acc.get('Test').should.equal(0); | ||
}); | ||
}); | ||
@@ -86,0 +94,0 @@ |
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
280185
3200