
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
@buggyorg/dynatype
Advanced tools
A dynamic datatype is a meta construct that abstracts the data represented by a datatype. It is possible to define datatypes and define relations between those.
The API is separated into descriptors and translators.
The descriptor API is usable via
var descriptor = require('dynatype').descriptor
It offers the following functions
function | description |
---|---|
create(name, data) | Create a new dynatype descriptor. It always must have a unique name. The data object contains information about the structure of the type. It is a JS object. |
typename(dynatype) | Get the name of a dynatype descriptor instance |
hasProperty(dynatype, property) | Returns whether the dynatype defines the property property |
datatype(dynatype, property) | Returns the datatype of the dynatype property. |
The data object for a descriptor has a special structure. It is a mapping between the name of the property and its type. They type can be one of the following
"number"
"bool"
"string"
"array"
this requires the extra field arraytype
for the array datatype. We don't support mixed arrays.A descriptor could look like this:
var pointXY = descriptor.create('PointXY', {
'x': 'number',
'y': 'number'
})
A translator defines a method of translating one datatype into another. Consider this example:
var pointXY = /*...*/
var pointRPhi = descriptor.create('PointRPhi', {
'r': 'number',
'phi': 'number'
})
var translator = translator.create(pointXY, pointRPhi, {/*...*/})
this creates a translator that defines some way of translating a point given in XY coordinates into a point given in polar coordinates. The data that describes the translation is specific to the system it is used in. The dynatype libraries do only store this information but never touch it.
FAQs
A dynamic type implementation.
The npm package @buggyorg/dynatype receives a total of 1 weekly downloads. As such, @buggyorg/dynatype popularity was classified as not popular.
We found that @buggyorg/dynatype demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.