vite-plugin-linter
Advanced tools
Comparing version
@@ -30,3 +30,3 @@ ## 1.0.0 (2021-10-10) | ||
## 2.0.4 (2023-08-17) | ||
## 2.0.5 (2023-08-17) | ||
* Fix null error |
@@ -89,3 +89,5 @@ "use strict"; | ||
for (const key of Object.keys(record)) { | ||
if (typeof record[key] === typeof object && maxDepth > 0) { | ||
if (typeof record[key] === typeof object && | ||
record[key] !== null && | ||
maxDepth > 0) { | ||
restoreFunctionsToObject(record[key], functions, maxDepth - 1); | ||
@@ -92,0 +94,0 @@ } |
@@ -5,3 +5,3 @@ { | ||
"license": "MIT", | ||
"version": "2.0.4", | ||
"version": "2.0.5", | ||
"scripts": { | ||
@@ -8,0 +8,0 @@ "build": "tsc", |
@@ -143,3 +143,7 @@ import path from "path"; | ||
for (const key of Object.keys(record)) { | ||
if (typeof record[key] === typeof object && maxDepth > 0) { | ||
if ( | ||
typeof record[key] === typeof object && | ||
record[key] !== null && | ||
maxDepth > 0 | ||
) { | ||
restoreFunctionsToObject(record[key] as object, functions, maxDepth - 1); | ||
@@ -146,0 +150,0 @@ } |
71317
0.14%1754
0.34%