formacao
This commit is contained in:
+24
-24
@@ -2774,11 +2774,11 @@ var ArgumentOutOfRangeError = createErrorClass(function(_super) {
|
||||
};
|
||||
});
|
||||
|
||||
// node_modules/rxjs/dist/esm5/internal/util/NotFoundError.js
|
||||
var NotFoundError = createErrorClass(function(_super) {
|
||||
return function NotFoundErrorImpl(message) {
|
||||
// node_modules/rxjs/dist/esm5/internal/util/notfoundError.js
|
||||
var notfoundError = createErrorClass(function(_super) {
|
||||
return function notfoundErrorImpl(message) {
|
||||
_super(this);
|
||||
this.name = "NotFoundError";
|
||||
this.name = "notfoundError";
|
||||
this.message = message;
|
||||
};
|
||||
});
|
||||
@@ -3257,9 +3257,9 @@ function setCurrentInjector(injector) {
|
||||
_currentInjector = injector;
|
||||
return former;
|
||||
}
|
||||
var NOT_FOUND = /* @__PURE__ */ Symbol("NotFound");
|
||||
function isNotFound(e) {
|
||||
return e === NOT_FOUND || e?.name === "ɵNotFound";
|
||||
var NOT_FOUND = /* @__PURE__ */ Symbol("notfound");
|
||||
function isnotfound(e) {
|
||||
return e === NOT_FOUND || e?.name === "ɵnotfound";
|
||||
}
|
||||
|
||||
// node_modules/@angular/core/fesm2022/_untracked-chunk.mjs
|
||||
@@ -4020,7 +4020,7 @@ function throwInvalidProviderError(ngModuleType, providers, provider) {
|
||||
throw new Error("Invalid provider");
|
||||
}
|
||||
}
|
||||
function throwProviderNotFoundError(token, injectorName) {
|
||||
function throwProvidernotfoundError(token, injectorName) {
|
||||
const errorMessage = ngDevMode && `No provider for ${stringifyForError(token)} found${injectorName ? ` in ${injectorName}` : ""}`;
|
||||
throw new RuntimeError(-201, errorMessage);
|
||||
}
|
||||
@@ -4074,14 +4074,14 @@ function setInjectImplementation(impl) {
|
||||
_injectImplementation = impl;
|
||||
return previous;
|
||||
}
|
||||
function injectRootLimpMode(token, notFoundValue, flags) {
|
||||
function injectRootLimpMode(token, notfoundValue, flags) {
|
||||
const injectableDef = getInjectableDef(token);
|
||||
if (injectableDef && injectableDef.providedIn == "root") {
|
||||
return injectableDef.value === void 0 ? injectableDef.value = injectableDef.factory() : injectableDef.value;
|
||||
}
|
||||
if (flags & 8) return null;
|
||||
if (notFoundValue !== void 0) return notFoundValue;
|
||||
throwProviderNotFoundError(token, typeof ngDevMode !== "undefined" && ngDevMode ? "Injector" : "");
|
||||
if (notfoundValue !== void 0) return notfoundValue;
|
||||
throwProvidernotfoundError(token, typeof ngDevMode !== "undefined" && ngDevMode ? "Injector" : "");
|
||||
}
|
||||
function assertInjectImplementationNotEqual(fn) {
|
||||
ngDevMode && assertNotEqual(_injectImplementation, fn, "Calling ɵɵinject would cause infinite recursion");
|
||||
@@ -4099,7 +4099,7 @@ var RetrievingInjector = class {
|
||||
try {
|
||||
return this.injector.get(token, flags & 8 ? null : THROW_IF_NOT_FOUND, flags);
|
||||
} catch (e) {
|
||||
if (isNotFound(e)) {
|
||||
if (isnotfound(e)) {
|
||||
return e;
|
||||
}
|
||||
throw e;
|
||||
@@ -4116,7 +4116,7 @@ function injectInjectorOnly(token, flags = 0) {
|
||||
const options = convertToInjectOptions(flags);
|
||||
const value = currentInjector.retrieve(token, options);
|
||||
ngDevMode && emitInjectEvent(token, value, flags);
|
||||
if (isNotFound(value)) {
|
||||
if (isnotfound(value)) {
|
||||
if (options.optional) {
|
||||
return null;
|
||||
}
|
||||
@@ -4189,9 +4189,9 @@ function attachInjectFlag(decorator, flag) {
|
||||
function getInjectFlag(token) {
|
||||
return token[DI_DECORATOR_FLAG];
|
||||
}
|
||||
function getFactoryDef(type, throwNotFound) {
|
||||
function getFactoryDef(type, thrownotfound) {
|
||||
const hasFactoryDef = type.hasOwnProperty(NG_FACTORY_DEF);
|
||||
if (!hasFactoryDef && throwNotFound === true && ngDevMode) {
|
||||
if (!hasFactoryDef && thrownotfound === true && ngDevMode) {
|
||||
throw new Error(`Type ${stringify(type)} does not have 'ɵfac' property.`);
|
||||
}
|
||||
return hasFactoryDef ? type[NG_FACTORY_DEF] : null;
|
||||
@@ -4315,14 +4315,14 @@ var ENVIRONMENT_INITIALIZER = new InjectionToken(typeof ngDevMode !== "undefined
|
||||
var INJECTOR$1 = new InjectionToken(typeof ngDevMode !== "undefined" && ngDevMode ? "INJECTOR" : "", -1);
|
||||
var INJECTOR_DEF_TYPES = new InjectionToken(typeof ngDevMode !== "undefined" && ngDevMode ? "INJECTOR_DEF_TYPES" : "");
|
||||
var NullInjector = class {
|
||||
get(token, notFoundValue = THROW_IF_NOT_FOUND) {
|
||||
if (notFoundValue === THROW_IF_NOT_FOUND) {
|
||||
get(token, notfoundValue = THROW_IF_NOT_FOUND) {
|
||||
if (notfoundValue === THROW_IF_NOT_FOUND) {
|
||||
const message = ngDevMode ? `No provider found for \`${stringify(token)}\`.` : "";
|
||||
const error = createRuntimeError(message, -201);
|
||||
error.name = "ɵNotFound";
|
||||
error.name = "ɵnotfound";
|
||||
throw error;
|
||||
}
|
||||
return notFoundValue;
|
||||
return notfoundValue;
|
||||
}
|
||||
};
|
||||
function makeEnvironmentProviders(providers) {
|
||||
@@ -4553,7 +4553,7 @@ var R3Injector = class extends EnvironmentInjector {
|
||||
try {
|
||||
return this.get(token, THROW_IF_NOT_FOUND, flags);
|
||||
} catch (e) {
|
||||
if (isNotFound(e)) {
|
||||
if (isnotfound(e)) {
|
||||
return e;
|
||||
}
|
||||
throw e;
|
||||
@@ -4603,7 +4603,7 @@ var R3Injector = class extends EnvironmentInjector {
|
||||
ngDevMode && setInjectorProfilerContext(prevInjectContext);
|
||||
}
|
||||
}
|
||||
get(token, notFoundValue = THROW_IF_NOT_FOUND, options) {
|
||||
get(token, notfoundValue = THROW_IF_NOT_FOUND, options) {
|
||||
assertNotDestroyed(this);
|
||||
if (token.hasOwnProperty(NG_ENV_ID)) {
|
||||
return token[NG_ENV_ID](this);
|
||||
@@ -4640,8 +4640,8 @@ var R3Injector = class extends EnvironmentInjector {
|
||||
}
|
||||
}
|
||||
const nextInjector = !(flags & 2) ? this.parent : getNullInjector();
|
||||
notFoundValue = flags & 8 && notFoundValue === THROW_IF_NOT_FOUND ? null : notFoundValue;
|
||||
return nextInjector.get(token, notFoundValue);
|
||||
notfoundValue = flags & 8 && notfoundValue === THROW_IF_NOT_FOUND ? null : notfoundValue;
|
||||
return nextInjector.get(token, notfoundValue);
|
||||
} catch (error) {
|
||||
const errorCode = getRuntimeErrorCode(error);
|
||||
if (errorCode === -200 || errorCode === -201) {
|
||||
@@ -6883,7 +6883,7 @@ export {
|
||||
debugStringifyTypeForError,
|
||||
cyclicDependencyError,
|
||||
cyclicDependencyErrorWithDetails,
|
||||
throwProviderNotFoundError,
|
||||
throwProvidernotfoundError,
|
||||
setInjectImplementation,
|
||||
injectRootLimpMode,
|
||||
assertInjectImplementationNotEqual,
|
||||
|
||||
Reference in New Issue
Block a user