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

typ

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

typ - npm Package Compare versions

Comparing version 0.5.4 to 0.6.0

10

lib/typ.js

@@ -302,3 +302,3 @@ // Copyright 2012 The Obvious Corporation.

function isUint(x) {
function isUInt(x) {
return isInt(x) && (x >= 0);

@@ -390,4 +390,4 @@ }

function assertUint(x) {
if (!isUint(x)) {
function assertUInt(x) {
if (!isUInt(x)) {
failType(x, UINT);

@@ -428,3 +428,3 @@ }

assertString: assertString,
assertUint: assertUint,
assertUInt: assertUInt,
assertUndefined: assertUndefined,

@@ -448,4 +448,4 @@

isString: isString,
isUint: isUint,
isUInt: isUInt,
isUndefined: isUndefined
};
{
"name": "typ",
"version": "0.5.4",
"version": "0.6.0",
"keywords":

@@ -5,0 +5,0 @@ ["type", "assert", "predicate"],

@@ -42,3 +42,3 @@ // Copyright 2012 The Obvious Corporation.

{ assert: typ.assertString, predicate: typ.isString },
{ assert: typ.assertUint, predicate: typ.isUint },
{ assert: typ.assertUInt, predicate: typ.isUInt },
{ assert: typ.assertUndefined, predicate: typ.isUndefined },

@@ -79,5 +79,5 @@ ];

// numbers
{ v: 0, p: [typ.isInt, typ.isUint, typ.isNumber, typ.isDefined] },
{ v: 10, p: [typ.isInt, typ.isUint, typ.isNumber, typ.isDefined] },
{ v: 1e200, p: [typ.isInt, typ.isUint, typ.isNumber, typ.isDefined] },
{ v: 0, p: [typ.isInt, typ.isUInt, typ.isNumber, typ.isDefined] },
{ v: 10, p: [typ.isInt, typ.isUInt, typ.isNumber, typ.isDefined] },
{ v: 1e200, p: [typ.isInt, typ.isUInt, typ.isNumber, typ.isDefined] },
{ v: -1, p: [typ.isInt, typ.isNumber, typ.isDefined] },

@@ -84,0 +84,0 @@ { v: -12345, p: [typ.isInt, typ.isNumber, typ.isDefined] },

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