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

tiny-types

Package Overview
Dependencies
Maintainers
1
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tiny-types - npm Package Compare versions

Comparing version 1.16.0 to 1.16.1

2

lib/predicates/isPlainObject.d.ts

@@ -16,2 +16,2 @@ import { Predicate } from './Predicate';

*/
export declare function isPlainObject(): Predicate<object>;
export declare function isPlainObject<T extends object = object>(): Predicate<T>;
{
"name": "tiny-types",
"version": "1.16.0",
"version": "1.16.1",
"description": "A tiny library that brings Tiny Types to JavaScript and TypeScript",

@@ -53,4 +53,4 @@ "main": "lib/index.js",

"esdoc": "^1.1.0",
"esdoc-importpath-plugin": "^1.0.2",
"esdoc-inject-style-plugin": "^1.0.0",
"esdoc-importpath-plugin": "^1.0.2",
"esdoc-standard-plugin": "^1.0.0",

@@ -63,4 +63,4 @@ "esdoc-typescript-plugin": "^1.0.1",

"rimraf": "^3.0.2",
"semantic-release": "^17.3.6",
"sinon": "^9.2.3",
"semantic-release": "^17.3.7",
"sinon": "^9.2.4",
"sinon-chai": "^3.5.0",

@@ -67,0 +67,0 @@ "ts-node": "^9.1.1",

@@ -38,4 +38,4 @@ import { Predicate } from './Predicate';

*/
export function isPlainObject(): Predicate<object> {
return Predicate.to(`be a plain object`, (value: object) => {
export function isPlainObject<T extends object = object>(): Predicate<T> {
return Predicate.to(`be a plain object`, (value: T) => {
if (! isObject(value)) {

@@ -42,0 +42,0 @@ return false;

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