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

ts-auto-guard

Package Overview
Dependencies
Maintainers
2
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ts-auto-guard - npm Package Compare versions

Comparing version 1.0.0-alpha.28 to 1.0.0-alpha.29

2

lib/index.js

@@ -536,3 +536,3 @@ "use strict";

: '';
return "Object.entries(" + varName + ")" + staticKeysFilter + "\n .every(([" + keyPrefix + "key, " + valuePrefix + "value]) => " + conditions + ")";
return "Object.entries<any>(" + varName + ")" + staticKeysFilter + "\n .every(([" + keyPrefix + "key, " + valuePrefix + "value]) => " + conditions + ")";
}

@@ -539,0 +539,0 @@ function generateTypeGuard(functionName, typeDeclaration, addDependency, project, records, outFile, options) {

{
"name": "ts-auto-guard",
"version": "1.0.0-alpha.28",
"version": "1.0.0-alpha.29",
"description": "Generate type guard functions from TypeScript interfaces",

@@ -5,0 +5,0 @@ "homepage": "https://github.com/rhys-vdw/ts-auto-guard",

@@ -1116,3 +1116,3 @@ import test from 'tape'

typeof obj === "function") &&
Object.entries(obj)
Object.entries<any>(obj)
.every(([_key, value]) => (typeof value === "string"))

@@ -1127,3 +1127,3 @@ )

typeof obj === "function") &&
Object.entries(obj)
Object.entries<any>(obj)
.every(([_key, value]) => (typeof value === "string"))

@@ -1241,3 +1241,3 @@ )

obj.someKey === "key") &&
Object.entries(obj)
Object.entries<any>(obj)
.filter(([key]) => !["someKey"].includes(key))

@@ -1274,3 +1274,3 @@ .every(([key, value]) => ((value === "string" ||

typeof obj === "function") &&
Object.entries(obj)
Object.entries<any>(obj)
.every(([key, value]) => ((value === "string" ||

@@ -1305,3 +1305,3 @@ value === "dynamic") &&

typeof obj === "function") &&
Object.entries(obj)
Object.entries<any>(obj)
.every(([key, _value]) => (typeof key === "string"))

@@ -1334,3 +1334,3 @@ )

typeof obj === "function") &&
Object.entries(obj)
Object.entries<any>(obj)
.every(([_key, value]) => (typeof value === "string"))

@@ -1371,3 +1371,3 @@ )

typeof obj === "function") &&
Object.entries(obj)
Object.entries<any>(obj)
.every(([key, _value]) => (typeof key === "string"))

@@ -1374,0 +1374,0 @@ )

Sorry, the diff of this file is not supported yet

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