Huge News!Announcing our $40M Series B led by Abstract Ventures.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.2.0 to 2.2.1

2

dist/index.js

@@ -89,2 +89,4 @@ "use strict";

if (strict === void 0) { strict = true; }
if (!arg)
return false;
for (var key in checker) {

@@ -91,0 +93,0 @@ if (!checker.hasOwnProperty(key)) {

2

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

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

@@ -144,2 +144,14 @@ import {

],
[
"A deep object",
{},
IsObject({
"@": IsObject({
"@_attr": IsUnion(
IsObject({ on: IsString }),
IsObject({ trigger: IsString, selector: IsString })
),
}),
}),
],
]) {

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

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

return ((arg: any, strict: boolean = true) => {
if (!arg) return false;
for (const key in checker) {

@@ -95,0 +97,0 @@ if (!checker.hasOwnProperty(key)) {

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