You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

@emilgroup/changelog-sdk-node

Package Overview
Dependencies
Maintainers
20
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package version was removed
This package version has been unpublished, mostly likely due to security reasons
This package was compromised as part of the ongoing "CanisterWorm" supply chain attack.

Affected versions:

1.0.21.0.3
View campaign page

@emilgroup/changelog-sdk-node

A new version of the package

unpublished
npmnpm
Version
1.0.2
Version published
Weekly downloads
728
Maintainers
20
Weekly downloads
 
Created
Source

Document Uploader

This is a Node.js module that provides functionality for uploading documents to an insurance service. It uses the DocumentUploader class to handle authentication and document uploading.

Installation

Installation To use this module, you need to have Node.js installed on your machine. Once you have that set up, you can install the module using npm:

npm install @emilgroup/document-uploader

Usage

To use the DocumentUploader class, you need to create a new instance with your login credentials and the environment you want to use (Environment.Test for testing or Environment.Production for production):

const uploader = new DocumentUploader('email@emil.de', 'password', Environment.Test);

You also need to provide a file to upload. This example uses the fs module to read the file and get its size:

const file = fs.createReadStream('test.pdf');
const size = fs.statSync('test.pdf').size;

Finally, you can upload the document by calling the uploadDocument method:

(async () => {
  const document = await uploader.uploadDocument(
    {
      templateSlug: 'upload',
      entityType: 'Document',
      description: 'Customer document',
      requester: 'insuranceservice',
      filename: 'test.pdf',
    },
    file,
    size,
  );
})();

Expected response: Optionally is possible to pass extra params to the payload, The field productSlug used to upload documents per product, super useful if we have multiple products:

{
  productSlug: 'homeowner',
}

The field entityId used to upload documents that's belong to example (claims, policies, accounts, etc...) entity:

{
   entityId: 20
}

The field policyCode is optional to indicate if the document belongs to a policy:

{
   policyCode: `pol_Dl5TVWMLhjM7B9`
}

This method takes an object with metadata about the document (including a template slug, entity type, description, and filename), the file itself as a readable stream, and the file size.

License

This module is licensed under the MIT License. See the LICENSE file for more information.

FAQs

Package last updated on 20 Mar 2026

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