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

@paulpopat/safe-type

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@paulpopat/safe-type - npm Package Compare versions

Comparing version 2.1.2 to 2.1.3

4

dist/index.js

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

return function (arg) {
if (!Array.isArray(arg))
return false;
if (arg.length !== checkers.length)
return false;
return checkers.find(function (v, i) { return !v(arg[i]); }) == null;

@@ -59,0 +63,0 @@ };

2

package.json
{
"name": "@paulpopat/safe-type",
"version": "2.1.2",
"version": "2.1.3",
"description": "Typesafety with strong inference",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

@@ -126,2 +126,3 @@ import {

["Tuple", [123, "test"], IsTuple(IsString, IsNumber)],
["Tuple", ["test", 123, "another"], IsTuple(IsString, IsNumber)],
]) {

@@ -128,0 +129,0 @@ it(`Correctly assignes to false for ${name}`, () => {

@@ -65,2 +65,4 @@ export type IsType<T> = T extends (arg: any) => arg is infer T ? T : never;

return (arg: any): arg is T => {
if (!Array.isArray(arg)) return false;
if (arg.length !== checkers.length) return false;
return checkers.find((v, i) => !v(arg[i])) == null;

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