New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

types.js

Package Overview
Dependencies
Maintainers
1
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

types.js - npm Package Compare versions

Comparing version 1.7.0 to 1.7.1

2

package.json
{
"name": "types.js",
"version": "1.7.0",
"version": "1.7.1",
"description": "A tiny and fast dynamic type checker/enforcer library",

@@ -5,0 +5,0 @@ "main": "types.min.js",

@@ -19,3 +19,3 @@ types.js

// if for untested reason the type of arr at run time is
// something like null, your app will crash in all its glory
// something like null, my app would crash in all its glory

@@ -52,6 +52,2 @@ // I prefer 100% safety at all times, functional and readable:

const COLORS= enumerate( ['RED', 'GREEN', 'BLUE'] );
console.log( COLORS.BLUE );
// 2
typeOf( [] );

@@ -84,2 +80,6 @@ // 'array'

const COLORS= enumerate( ['RED', 'GREEN', 'BLUE'] );
console.log( COLORS.BLUE );
// 2
// there is much more, see below.

@@ -86,0 +86,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