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

schemaglobin

Package Overview
Dependencies
Maintainers
1
Versions
64
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

schemaglobin - npm Package Compare versions

Comparing version 5.5.1 to 5.6.0

36

dist/types.d.ts

@@ -21,3 +21,3 @@ /** Helper type that allows `null` if `R` (required) is false. */

/**
* Partial object: a convert an object to its partial version.
* Partial object: deeply convert an object to its partial version.
* - Any value that extends `UnknownObject`has its props made partial.

@@ -30,1 +30,35 @@ * - Works deeply on nested objects too.

} : T;
/**
* Mutable type is the opposite of `Readonly<T>` helper type.
* - See https://github.com/microsoft/TypeScript/issues/24509
*/
export declare type Mutable<T> = {
-readonly [K in keyof T]: T[K];
};
/**
* Mutable object: deeply convert an object to its mutable version.
* - Like `Mutable<T>` but follows the same pattern and rules as `PartialObject`
* - Any value that extends `UnknownObject`has its props made mutable.
* - Works deeply on nested objects too.
* - Only makes plain objects changed (i.e. objects that extend `UnknownObject`), not arrays and functions.
*/
export declare type MutableObject<T> = T extends UnknownObject ? {
-readonly [K in keyof T]: MutableObject<T[K]>;
} : T;
/**
* Readonly object: deeply convert an object to its readonly version.
* - Like `Readonly<T>` but follows the same pattern and rules as `PartialObject`
* - Any value that extends `UnknownObject`has its props made readonly.
* - Works deeply on nested objects too.
* - Only makes plain objects changed (i.e. objects that extend `UnknownObject`), not arrays and functions.
*/
export declare type ReadonlyObject<T> = T extends UnknownObject ? {
+readonly [K in keyof T]: ReadonlyObject<T[K]>;
} : T;
/**
* Constructor: a class constructor that can be used with `new X`
* - Type passed in must
*/
export declare type Constructor<T extends EmptyObject | UnknownObject = UnknownObject> = {
new (): T;
};

2

package.json
{
"name": "schemaglobin",
"description": "Validate user-entered data.",
"version": "5.5.1",
"version": "5.6.0",
"repository": "https://github.com/dhoulb/schemaglobin",

@@ -6,0 +6,0 @@ "author": "Dave Houlbrooke <dave@shax.com>",

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