npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

oece-firma-digital

v0.0.7

Published

Utilitario para realizar la firma digital

Readme

oece-firma-digital

Esta librería fue generada con Angular CLI version 18.2.0.

Pasos para integrar con otras aplicaciones

Instalar Dependencia de oece-firma-digital en el archivo package.Json

  {
  "name": "regaju-ui",
  "version": "0.0.0",
  "scripts": {
    ...
  },
  "dependencies": {
    ...
    "oece-firma-digital": "0.0.7"
  },
  "devDependencies": {
    ...
  }
}

En el componente a trabajar importar OsceFirmaDigitalService, StartSignatureRequest, FirmaDigitalConfig del projecto de libreria oece-firma-digital.

Tenemos que Configurar las variables de la libreria en el archivo app.config.ts agregamos lo siguiente

 providers: [    
    {
      provide: "FIRMA_DIGITAL_CONFIG",
      useValue: {
        apiFirmaDigital: 'https://desa6.seace.gob.pe/v1/osce-services/firmadigital', // configurar en envioment
        tokenAplicacion: '7072b7b5-041c-4694-8e5d-bf9c11937ef1' // configurar en envioment, este dato es proporcionado por el equipo de firma digital
      }
    }
  ]

Tenemos que importar las dependencias necesarias en el componente que se usara la firma digital

import { OsceFirmaDigitalService, StartSignatureRequest } from 'oece-firma-digital';

Injectamos el service para obtener una instancia del servicio de firma digital

private readonly osceFirmaDigitalService = inject(OsceFirmaDigitalService);

Para enviar la data al proceso de firma utilizar this.osceFirmaDigitalService.startSignature(dataFirma) de la siguiente manera:

  firmarDocumento() {
    const request: StartSignatureRequest = {
      idProceso: 1,
      nomProceso: "PROCESO FIRMA DIGITAL",
      codDocumento: `243`,
      idTipoArchivo: 50,
      nomTipoArchivo: "Informe Tectino Evaluacion",
      extension: "PDF",
      usuario: `mdavila` 
    };

    this.osceFirmaDigitalService.startSignature(request).then(x => {
      console.log('firma completada');
    }).catch(x => {
      console.log('firma cancelada o con error');
    });
  }

Construcción

Ejecuta ng build para construir el proyecto. Los artefactos de construcción se almacenarán en el directorio dist/.

Ejecución de pruebas unitarias

Ejecuta ng test para realizar las pruebas unitarias mediante Karma.

Ejecución de pruebas de extremo a extremo

Ejecuta ng e2e para realizar las pruebas de extremo a extremo a través de una plataforma de tu elección. Para usar este comando, necesitas agregar primero un paquete que implemente capacidades de pruebas de extremo a extremo.

Más ayuda

Para obtener más ayuda sobre el Angular CLI usa ng help o visita la página Angular CLI Overview and Command Reference.