@ibgib/core-gib 0.0.77 → 0.0.78
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/witness/space/metaspace/metaspace-base.d.mts +6 -1
- package/dist/witness/space/metaspace/metaspace-base.d.mts.map +1 -1
- package/dist/witness/space/metaspace/metaspace-base.mjs +3 -2
- package/dist/witness/space/metaspace/metaspace-base.mjs.map +1 -1
- package/dist/witness/space/metaspace/metaspace-types.d.mts +5 -0
- package/dist/witness/space/metaspace/metaspace-types.d.mts.map +1 -1
- package/dist/witness/space/space-helper.d.mts +10 -1
- package/dist/witness/space/space-helper.d.mts.map +1 -1
- package/dist/witness/space/space-helper.mjs +2 -2
- package/dist/witness/space/space-helper.mjs.map +1 -1
- package/package.json +1 -1
- package/src/witness/space/metaspace/metaspace-base.mts +8 -1
- package/src/witness/space/metaspace/metaspace-types.mts +5 -0
- package/src/witness/space/space-helper.mts +11 -1
|
@@ -380,6 +380,7 @@ export async function getSpecialIbGib({
|
|
|
380
380
|
fnBroadcast,
|
|
381
381
|
fnGetInitializing,
|
|
382
382
|
fnSetInitializing,
|
|
383
|
+
dontWarnIfNotExist,
|
|
383
384
|
}: {
|
|
384
385
|
type: SpecialIbGibType,
|
|
385
386
|
initialize?: boolean,
|
|
@@ -406,6 +407,11 @@ export async function getSpecialIbGib({
|
|
|
406
407
|
* Because we don't want to initialize while we're initializing.
|
|
407
408
|
*/
|
|
408
409
|
fnSetInitializing?: (x: boolean) => void,
|
|
410
|
+
/**
|
|
411
|
+
* if true, won't warn about non-existent/non-initialized things.
|
|
412
|
+
* useful if you are just checking to see if a special ibgib exists.
|
|
413
|
+
*/
|
|
414
|
+
dontWarnIfNotExist?: boolean,
|
|
409
415
|
}): Promise<IbGib_V1 | null> {
|
|
410
416
|
const lc = `[${getSpecialIbGib.name}]`;
|
|
411
417
|
try {
|
|
@@ -414,7 +420,7 @@ export async function getSpecialIbGib({
|
|
|
414
420
|
let key = getSpecialConfigKey({ type });
|
|
415
421
|
let addr = await getConfigAddr({
|
|
416
422
|
key, space,
|
|
417
|
-
dontWarn: !!initialize // dont warn if we're initializing
|
|
423
|
+
dontWarn: dontWarnIfNotExist || !!initialize // dont warn if we're initializing
|
|
418
424
|
});
|
|
419
425
|
|
|
420
426
|
if (!addr) {
|
|
@@ -652,6 +658,10 @@ export async function getConfigAddr({
|
|
|
652
658
|
}: {
|
|
653
659
|
key: string,
|
|
654
660
|
space: IbGibSpaceAny,
|
|
661
|
+
/**
|
|
662
|
+
* if true, won't warn about non-existent/non-initialized things.
|
|
663
|
+
* useful if you are just checking to see if a special ibgib exists.
|
|
664
|
+
*/
|
|
655
665
|
dontWarn?: boolean,
|
|
656
666
|
}): Promise<string | undefined> {
|
|
657
667
|
const lc = `[${getConfigAddr.name}](${key})`;
|