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

quizas

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

quizas - npm Package Compare versions

Comparing version 1.1.1 to 1.1.2

2

package.json
{
"name": "quizas",
"version": "1.1.1",
"version": "1.1.2",
"description": "A sort-of monad for reading values from objects",

@@ -5,0 +5,0 @@ "main": "src/quizas",

@@ -9,2 +9,6 @@ "use strict";

function deepRead(obj, path){
if(typeof obj !== 'object' || obj === null){
return {found:false,value:null};
}
var found = true;

@@ -11,0 +15,0 @@

@@ -116,3 +116,11 @@ 'use strict';

expect(result).to.deep.equal(expected);
});
describe('Bugs', function() {
it('Should be able to cope with not being passed and object', function(){
var result = quizas(null, 'prop');
expect(result.hasValue).to.be.false;
})
})
});
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