mirror of
https://github.com/lucaspalomodevelop/JSSTE.git
synced 2026-03-12 23:17:22 +00:00
remove checker dependecy
This commit is contained in:
parent
9f131a1702
commit
828667c3f3
@ -32,7 +32,6 @@
|
||||
},
|
||||
"homepage": "https://github.com/lucaspalomodevelop/JSSTE#readme",
|
||||
"dependencies": {
|
||||
"typechecker": "^7.18.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 0.10.0"
|
||||
|
||||
@ -1,12 +1,10 @@
|
||||
const checker = require("typechecker");
|
||||
|
||||
function mergeJson(org, ext) {
|
||||
// let placeholder = undefined;
|
||||
|
||||
if (!checker.isObject(org)) {
|
||||
if (!(typeof org === 'object' && org !== null)) {
|
||||
org = JSON.parse(org);
|
||||
}
|
||||
if (!checker.isObject(ext)) {
|
||||
if (!(typeof ext === 'object' && ext !== null)) {
|
||||
ext = JSON.parse(ext);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user