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

tserialize

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tserialize - npm Package Compare versions

Comparing version 1.5.3 to 1.5.4

8

CHANGELOG.md

@@ -0,1 +1,7 @@

# 1.5.4
- Изменено поведение десериализации JsonStruct, чтобы fromServer при наличии работал в контексте корректного класса
# 1.5.3
- Добавлен конфиг для deserialize вида { makeInstance: boolean }. Если его передать с { makeInstance: false } - на выходе будет не экземпляр, а объект
#1.5.2

@@ -106,2 +112,2 @@ - Корректная сериализация экземпляров, унаследованных от чистых классов(без декораторов)

// { id: 1, os: 'MacOS', isWeb: true }
```
```

5

index.js

@@ -556,3 +556,6 @@ (function webpackUniversalModuleDefinition(root, factory) {

var proto = TargetClass;
var deserializeFunc = proto.fromServer ? proto.fromServer : function (value) { return deserialize_1.deserialize(value, proto); };
var deserializeFunc = proto.fromServer
// tslint:disable-next-line
? function (value) { return proto.fromServer(value); }
: function (value) { return deserialize_1.deserialize(value, proto); };
var propertyMetadata = core_1.PropertyMetaBuilder.make(propertyKey, rawName).deserializer(deserializeFunc).struct().raw;

@@ -559,0 +562,0 @@ core_1.RootMetaStore.setupPropertyMetadata(target, propertyMetadata);

{
"name": "tserialize",
"version": "1.5.3",
"version": "1.5.4",
"description": "TypeScript serialize utils",

@@ -5,0 +5,0 @@ "types": "index.d.ts",

@@ -17,3 +17,6 @@ import { PropertyMetaBuilder, RootMetaStore } from './../core';

const deserializeFunc = proto.fromServer ? proto.fromServer : (value): any => deserialize(value, proto);
const deserializeFunc = proto.fromServer
// tslint:disable-next-line
? function(value) { return proto.fromServer(value); }
: (value): any => deserialize(value, proto);

@@ -20,0 +23,0 @@ const propertyMetadata = PropertyMetaBuilder.make(propertyKey, rawName).deserializer(deserializeFunc).struct().raw;

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