Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

nforce

Package Overview
Dependencies
Maintainers
1
Versions
77
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nforce - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

1

CHANGELOG.md
## 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) {

2

lib/record.js

@@ -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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc