dreambase-library
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -6,4 +6,4 @@ import bigintDef from "../types/bigint.js"; | ||
import MapDef from "../types/Map.js"; | ||
import TypedArraysDefs from "../types/TypedArray"; | ||
import ArrayBufferDef from "../types/ArrayBuffer"; | ||
import TypedArraysDefs from "../types/TypedArray.js"; | ||
import ArrayBufferDef from "../types/ArrayBuffer.js"; | ||
export default { | ||
@@ -10,0 +10,0 @@ ...bigintDef, |
@@ -43,3 +43,3 @@ const { toString: toStr } = {}; | ||
// | ||
const type = value.$t; | ||
const type = value === null || value === void 0 ? void 0 : value.$t; | ||
if (type) { | ||
@@ -87,3 +87,5 @@ const typeDef = typeDefs[type]; | ||
case "function": { | ||
// "object", "function" | ||
// "object", "function", null | ||
if (realVal === null) | ||
return null; | ||
const proto = Object.getPrototypeOf(realVal); | ||
@@ -90,0 +92,0 @@ if (!proto) |
{ | ||
"name": "dreambase-library", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "Library of dreambase-related code for use in other libraries.", | ||
@@ -9,2 +9,5 @@ "main": "dist/index.js", | ||
"type": "module", | ||
"engines": { | ||
"node": ">=14.8.0" | ||
}, | ||
"scripts": { | ||
@@ -11,0 +14,0 @@ "test": "jest", |
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
27327
53
670