Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@nahuelmorata/framework-frontend

Package Overview
Dependencies
Maintainers
0
Versions
174
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nahuelmorata/framework-frontend

## Contacto

  • 18.2.3
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
239
increased by819.23%
Maintainers
0
Weekly downloads
 
Created
Source

Framework Frontend

Contacto

Contactame

Versiones

VersionAngular Version
v1.x.xv9.x.x
v2.x.xv10.x.x
v3.x.xv11.x.x
v4.x.xv12.x.x
v5.x.xv13.x.x
v6.x.xv14.x.x
v7.x.xv15.x.x
v8.x.xv16.x.x

Dependencias

Con npm

npm i @microsoft/signalr @sentry/angular 

Con yarn

yarn add @microsoft/signalr @sentry/angular 

Instalacion

Con npm

npm i @nahuelmorata/framework-frontend

Con yarn

yarn add @nahuelmorata/framework-frontend

Uso

En el app.module.ts

@NgModule({
    //...
    imports: [
        // other imports
        FrameworkFrontendModule.forRoot({
            apiURL: Constantes.apiURL,
            logger: {
                transportadores: {
                    consola: true,
                    slack: {
                        activado: false,
                        idCanal: '',
                        token: '',
                    }
                }
            }
        }),
        // other imports
    ]
    // ...
})
export class AppModule { }

Contenido

Guards

  • Auth guard (authGuard): Usado para rutas en donde se necesite autenticacion
  • Login guard (loginGuard): Usado solo para la ruta de login

Services

  • SignalR
  • Auth
  • Notificacion

Pipes

  • Nombre metodo

API

FrontendConfig

export interface FrontendConfig {
    apiURL: string; // URL de la api
    logger?: LoggerConfiguracion; // Configuracion de los loggers
    desarrollo?: boolean; // modo de desarrollo
}

LoggerConfiguracion

export interface LoggerConfiguracion {
    transportadores: {
        consola: boolean; // Consola activada para enviar errores
        slack?: { // Configuracion para enviar a Slack
            activado: boolean; // Loggear a Slack activado
            idCanal: string; // Id del canal de Slack
            token: string; // Token de seguridad para Slack
        };
        sentry?: { // configuracion para enviar a Sentry
            activado: boolean; // Loggear a Sentry activado
            dsn: string;
            tracesSampleRate?: number;
            tracePropagationTargets?: (string | RegExp)[];
            replaysSessionSampleRate?: number;
            replaysOnErrorSampleRate?: number;
        };
    };
}

FAQs

Package last updated on 19 Nov 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc