Comparing version 0.2.88 to 0.2.89
@@ -381,3 +381,3 @@ /* eslint-env browser */ | ||
// insert remaining | ||
component.insertBefore(dom.fragment(insert.slice(insertStart).map(insState => { | ||
component.insertBefore(dom.fragment(insert.slice(insertStart).map(/** @param {any} insState */ insState => { | ||
const el = new Item() | ||
@@ -384,0 +384,0 @@ el.setState(insState) |
@@ -8,2 +8,3 @@ export const isNode: boolean; | ||
export function getConf(name: string): string | null; | ||
export function ensureConf(name: string): string; | ||
export function hasConf(name: string): boolean; | ||
@@ -10,0 +11,0 @@ export const production: boolean; |
@@ -8,2 +8,3 @@ export const isNode: boolean; | ||
export function getConf(name: string): string | null; | ||
export function ensureConf(name: string): string; | ||
export function hasConf(name: string): boolean; | ||
@@ -10,0 +11,0 @@ export const production: boolean; |
@@ -97,3 +97,3 @@ /** | ||
isNode | ||
? conditions.undefinedToNull(process.env[name.toUpperCase()]) | ||
? conditions.undefinedToNull(process.env[name.toUpperCase().replaceAll('-', '_')]) | ||
: conditions.undefinedToNull(storage.varStorage.getItem(name)) | ||
@@ -111,2 +111,13 @@ | ||
* @param {string} name | ||
* @return {string} | ||
*/ | ||
/* c8 ignore next 5 */ | ||
export const ensureConf = (name) => { | ||
const c = getConf(name) | ||
if (c == null) throw new Error(`Expected configuration "${name.toUpperCase().replaceAll('-', '_')}"`) | ||
return c | ||
} | ||
/** | ||
* @param {string} name | ||
* @return {boolean} | ||
@@ -113,0 +124,0 @@ */ |
{ | ||
"name": "lib0", | ||
"version": "0.2.88", | ||
"version": "0.2.89", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "sideEffects": false, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
1791312
23407