@scaleforge/joser
Advanced tools
Comparing version 0.5.0 to 0.5.1
@@ -74,2 +74,3 @@ "use strict"; | ||
serialize(obj) { | ||
var _a; | ||
const serializers = Object.values(this.serializers); | ||
@@ -95,6 +96,7 @@ const t = []; | ||
} | ||
if (!t.includes(serializer.type.name)) { | ||
t.push(serializer.type.name); | ||
const name = (_a = serializer.name) !== null && _a !== void 0 ? _a : serializer.type.name; | ||
if (!t.includes(name)) { | ||
t.push(name); | ||
} | ||
i.push([key, t.indexOf(serializer.type.name)]); | ||
i.push([key, t.indexOf(name)]); | ||
o.push([key, serializer.serialize(value)]); | ||
@@ -101,0 +103,0 @@ continue; |
{ | ||
"name": "@scaleforge/joser", | ||
"version": "0.5.0", | ||
"version": "0.5.1", | ||
"description": "Javascript object serializer", | ||
@@ -19,3 +19,3 @@ "main": "dist/index.js", | ||
"@types/jest": "~29.5.5", | ||
"@types/node": "^20.10.6", | ||
"@types/node": "~20.10.6", | ||
"@typescript-eslint/eslint-plugin": "~6.7.4", | ||
@@ -25,3 +25,3 @@ "@typescript-eslint/parser": "~6.7.4", | ||
"jest": "~29.7.0", | ||
"rimraf": "^5.0.5", | ||
"rimraf": "~5.0.5", | ||
"ts-jest": "~29.1.1", | ||
@@ -28,0 +28,0 @@ "ts-node": "~10.9.1", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
19883
223