New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

msgpack-context-aware

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

msgpack-context-aware

A space-efficient object serialization library for node.js

latest
Source
npmnpm
Version
1.0.4
Version published
Maintainers
1
Created
Source

node-msgpack-context-aware is same to msgpack, just except that one of the bugs has been fixed to make the module context-aware;

issue:

rpo

The following erro occurred when i use msgpack in worker-thread

[2023-06-09T15:59:10.621] [ERROR] default - thread error: Error: Module did not self-register: 'xxxxxx\node_modules\msgpack\build\Release\msgpackBinding.node'.
    at Module._extensions..node (node:internal/modules/cjs/loader:1338:18)
    at Module.load (node:internal/modules/cjs/loader:1117:32)
    at Module._load (node:internal/modules/cjs/loader:958:12)
    at Module.require (node:internal/modules/cjs/loader:1141:19)       
    at require (node:internal/modules/cjs/helpers:110:18)
    at Object.<anonymous> (H:\company\sg2\tsgf\node_modules\msgpack\lib\msgpack.js:6:14)
    at Module._compile (node:internal/modules/cjs/loader:1254:14)      
    at Module._extensions..js (node:internal/modules/cjs/loader:1308:10)
    at Module.load (node:internal/modules/cjs/loader:1117:32)
    at Module._load (node:internal/modules/cjs/loader:958:12) {        
  code: 'ERR_DLOPEN_FAILED'
}

solution

reference

change this to new

// NODE_MODULE(msgpackBinding, init);
// fix: make the module context-aware that it needs to reolace NODE_MODULE
NODE_MODULE_INIT()
{
    init(exports);
}

thanks for all help, Stevie, fathyb, and brother Tao

addition

Context-aware addons

FAQs

Package last updated on 09 Jun 2023

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