Comparing version 0.1.7-alpha.1 to 0.1.7-alpha.2
@@ -15,3 +15,8 @@ let currentConfig = { | ||
} | ||
const getSettings = () => currentConfig | ||
const getSettings = (configPath, defaultValue = null) => { | ||
if (!configPath) { | ||
return currentConfig | ||
} | ||
return require('jsonpath').value(currentConfig, configPath) || defaultValue | ||
} | ||
@@ -18,0 +23,0 @@ const init = async () => { |
{ | ||
"name": "djorm", | ||
"version": "0.1.7-alpha.1", | ||
"version": "0.1.7-alpha.2", | ||
"description": "Django like ORM framework", | ||
@@ -34,6 +34,7 @@ "author": "Pavel Žák <pavel@zak.global>", | ||
"camelcase": "^6.2.0", | ||
"jsonpath": "^1.1.1", | ||
"moment-timezone": "^0.5.33", | ||
"pino": "^6.11.3" | ||
}, | ||
"gitHead": "83a3f180119b11e3f1966e5e4519c5aba977c82d" | ||
"gitHead": "684cee931129d8b4902c376032cea73ac28ac9fd" | ||
} |
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
55895
1984
4
+ Addedjsonpath@^1.1.1
+ Addeddeep-is@0.1.4(transitive)
+ Addedescodegen@1.14.3(transitive)
+ Addedesprima@1.2.24.0.1(transitive)
+ Addedestraverse@4.3.0(transitive)
+ Addedesutils@2.0.3(transitive)
+ Addedfast-levenshtein@2.0.6(transitive)
+ Addedjsonpath@1.1.1(transitive)
+ Addedlevn@0.3.0(transitive)
+ Addedoptionator@0.8.3(transitive)
+ Addedprelude-ls@1.1.2(transitive)
+ Addedsource-map@0.6.1(transitive)
+ Addedstatic-eval@2.0.2(transitive)
+ Addedtype-check@0.3.2(transitive)
+ Addedunderscore@1.12.1(transitive)
+ Addedword-wrap@1.2.5(transitive)