Lines Matching refs:meta
274 const meta = {
300 const nextResolve = nextHookFactory(chain[chain.length - 1], meta, { validateArgs, validateOutput });
303 const { hookErrIdentifier } = meta; // Retrieve the value after all settled
307 if (resolution?.shortCircuit === true) { meta.shortCircuited = true; }
309 if (!meta.chainFinished && !meta.shortCircuited) {
400 const meta = {
445 const nextLoad = nextHookFactory(chain[chain.length - 1], meta, { validateArgs, validateOutput });
448 const { hookErrIdentifier } = meta; // Retrieve the value after all settled
452 if (loaded?.shortCircuit === true) { meta.shortCircuited = true; }
454 if (!meta.chainFinished && !meta.shortCircuited) {
525 importMetaInitialize(meta, context, loader) {
527 meta = importMetaInitializer(meta, context, loader);
528 return meta;
708 importMetaInitialize(meta, context, loader) {
709 this.#importMetaInitializer(meta, context, loader);
755 next = (meta, context) => {
756 return fn(meta, context, parent);
808 * @param {object} meta Properties that change as the current hook advances
810 * @param {boolean} meta.chainFinished Whether the end of the chain has been
812 * @param {string} meta.hookErrIdentifier A user-facing identifier to help
814 * @param {string} meta.hookName The kind of hook the chain is (ex 'resolve')
815 * @param {boolean} meta.shortCircuited Whether a hook signaled a short-circuit.
821 function nextHookFactory(current, meta, { validateArgs, validateOutput }) {
823 const { hookName } = meta;
838 nextNextHook = nextHookFactory(next, meta, { validateArgs, validateOutput });
851 meta.hookErrIdentifier = `${hookFilePath} '${hookName}'`;
853 validateArgs(`${meta.hookErrIdentifier} hook's ${nextHookName}()`, arg0, context);
858 if (!next) { meta.chainFinished = true; }
861 ObjectAssign(meta.context, context);
864 const output = await hook(arg0, meta.context, nextNextHook);
867 if (output?.shortCircuit === true) { meta.shortCircuited = true; }