Socket
Socket
Sign inDemoInstall

ts-json-serializer

Package Overview
Dependencies
71
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.2.2 to 1.2.3

7

CHANGELOG.md

@@ -7,5 +7,7 @@ # Change Log

## [1.2.3]
## [1.2.2]
#### Fixed
- Undefined objects in array caused error
- Bugrelease.

@@ -40,3 +42,4 @@ ## [1.2.1]

[Unreleased]: https://github.com/buehler/typescript-hero/compare/v1.2.2...master
[Unreleased]: https://github.com/buehler/ts-json-serializer/compare/v1.2.3...master
[1.2.3]: https://github.com/buehler/ts-json-serializer/compare/v1.2.2...v1.2.3
[1.2.2]: https://github.com/buehler/typescript-hero/compare/v1.2.1...v1.2.2

@@ -43,0 +46,0 @@ [1.2.1]: https://github.com/buehler/ts-json-serializer/compare/v1.2.0...v1.2.1

{
"name": "ts-json-serializer",
"version": "1.2.2",
"version": "1.2.3",
"description": "Object serialization made easy with decorators.",

@@ -5,0 +5,0 @@ "main": "index.js",

{
"extends": "./tsconfig/base.json",
"compilerOptions": {
"outDir": "../build",
"declaration": false,

@@ -13,4 +12,4 @@ "sourceMap": true,

"node_modules",
"ßbuild"
"build"
]
}

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

if (objectOrArray !== null && objectOrArray.constructor === Array) {
serialized = objectOrArray.map(function (o) { return _this.serializeObject(o); }).filter(function (o) { return o !== undefined; });
serialized = objectOrArray.filter(function (o) { return o !== undefined; }).map(function (o) { return _this.serializeObject(o); });
}

@@ -107,6 +107,3 @@ else {

var _this = this;
if (obj === undefined || (obj && !obj.constructor)) {
return;
}
else if (obj === null) {
if (obj === null) {
return {

@@ -126,3 +123,3 @@ __type: 'null',

__type: 'Array',
__value: obj.map(function (o) { return _this.serializeObject(o); })
__value: obj.map(function (o) { return _this.serializeObject(o); }).filter(function (o) { return o !== undefined; })
};

@@ -129,0 +126,0 @@ }

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc