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

assume

Package Overview
Dependencies
Maintainers
4
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

assume - npm Package Compare versions

Comparing version 0.0.13 to 0.0.14

1

index.js

@@ -22,2 +22,3 @@ 'use strict';

function type(of) {
if (Buffer.isBuffer(of)) return 'buffer';
return toString.call(of).slice(8, -1).toLowerCase();

@@ -24,0 +25,0 @@ }

6

package.json
{
"name": "assume",
"version": "0.0.13",
"version": "0.0.14",
"description": "Expect-like assertions that works seamlessly in node and browsers",

@@ -44,5 +44,5 @@ "main": "index.js",

"devDependencies": {
"browserify": "7.0.x",
"browserify": "8.0.x",
"istanbul": "0.3.x",
"mocha": "2.0.x",
"mocha": "2.1.x",
"mocha-phantomjs": "3.5.x",

@@ -49,0 +49,0 @@ "phantomjs": "1.9.x",

@@ -67,2 +67,9 @@ if ('undefined' === typeof global) global = (function that() {

if (global.Buffer) it('classifies buffers', function (next) {
assume(new Buffer(0)).to.be.a('buffer');
try { assume({}).to.be.a('buffer'); }
catch (e) { next(); }
});
if (global.Float32Array) it('classifies float32arrays');

@@ -69,0 +76,0 @@ if (global.Float64Array) it('classifies float64arrays');

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