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

serializr

Package Overview
Dependencies
Maintainers
5
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

serializr - npm Package Compare versions

Comparing version 3.0.2 to 3.0.3

2

lib/api/createSimpleSchema.d.ts

@@ -18,2 +18,2 @@ import { Props, ModelSchema } from "./types";

*/
export default function createSimpleSchema<T extends object>(props: Props): ModelSchema<T>;
export default function createSimpleSchema<T extends object>(props: Props<T>): ModelSchema<T>;

@@ -1315,2 +1315,4 @@ /**

*
* For `Map`s which are not string-keyed, check out `mapAsArray`.
*
* @param additionalArgs optional object that contains beforeDeserialize and/or afterDeserialize handlers

@@ -1317,0 +1319,0 @@ */

@@ -1321,2 +1321,4 @@ (function (global, factory) {

*
* For `Map`s which are not string-keyed, check out `mapAsArray`.
*
* @param additionalArgs optional object that contains beforeDeserialize and/or afterDeserialize handlers

@@ -1323,0 +1325,0 @@ */

@@ -7,4 +7,6 @@ import { PropSchema, AdditionalPropArgs } from "../api/types";

*
* For `Map`s which are not string-keyed, check out `mapAsArray`.
*
* @param additionalArgs optional object that contains beforeDeserialize and/or afterDeserialize handlers
*/
export default function map(propSchema: PropSchema, additionalArgs?: AdditionalPropArgs): PropSchema;
{
"name": "serializr",
"version": "3.0.2",
"version": "3.0.3",
"description": "Serialize and deserialize complex object graphs to JSON",

@@ -5,0 +5,0 @@ "main": "lib/serializr.umd.js",

@@ -407,3 +407,3 @@ # Serializr

See https://serializr.github.io/serializr/docs/functions/subSchema.html for more information.
See https://mobxjs.github.io/serializr/functions/subSchema.html for more information.

@@ -410,0 +410,0 @@ # Future ideas

@@ -19,3 +19,3 @@ import { Props, ModelSchema } from "./types";

*/
export default function createSimpleSchema<T extends object>(props: Props): ModelSchema<T> {
export default function createSimpleSchema<T extends object>(props: Props<T>): ModelSchema<T> {
return {

@@ -22,0 +22,0 @@ factory: function () {

@@ -18,2 +18,4 @@ import {

*
* For `Map`s which are not string-keyed, check out `mapAsArray`.
*
* @param additionalArgs optional object that contains beforeDeserialize and/or afterDeserialize handlers

@@ -20,0 +22,0 @@ */

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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