@randajan/jet-base
Advanced tools
Comparing version 2.0.3 to 2.0.4
@@ -262,5 +262,5 @@ // src/Base.js | ||
} | ||
get(path, def) { | ||
get(path, def2) { | ||
const v = get(this, path); | ||
return v != null ? jet4.copy(v, true) : def; | ||
return v != null ? jet4.copy(v, true) : def2; | ||
} | ||
@@ -284,5 +284,5 @@ getType(path, strict = true) { | ||
pull(path) { | ||
const value = this.get(path); | ||
const v = get(this, path); | ||
set(this, path); | ||
return value; | ||
return v != null ? jet4.copy(v, true) : def; | ||
} | ||
@@ -344,5 +344,5 @@ watch(path, fce, initRun = false) { | ||
} | ||
get(path, def) { | ||
get(path, def2) { | ||
autoInit(this, true); | ||
return super.get(path, def); | ||
return super.get(path, def2); | ||
} | ||
@@ -419,5 +419,5 @@ getType(path, strict = true) { | ||
} | ||
async get(path, def) { | ||
async get(path, def2) { | ||
await autoInit(this, true); | ||
return super.get(path, def); | ||
return super.get(path, def2); | ||
} | ||
@@ -424,0 +424,0 @@ async getType(path, strict = true) { |
{ | ||
"name": "@randajan/jet-base", | ||
"version": "2.0.3", | ||
"version": "2.0.4", | ||
"description": "Ecosystem of types and related usefull tools.", | ||
@@ -5,0 +5,0 @@ "repository": "randajan/jet-base", |
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
42607