@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.
@@ -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})`;