
Research
Security News
Malicious PyPI Package Exploits Deezer API for Coordinated Music Piracy
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
yet another experimental small DOM component library, < 1kb
el(tagName [, attributes [,children ]] ): HTMLElement
svg(tagName [, attributes [,children ]] ): SVGElement
text(content [, properties ]] ): TextNode
where
attributes: {name: value, update: updateFunction}
children: {number|string|Node|Array<children>}
updateFunction: (this:Node, value:* [, key:* [, object:*]]): void
updateChildren: function(this:ParentNode, value:* [, key:* [, object:*]]): void
Updates all children nodes of a parent nodeSynthetic events are used when the first letter of the event name is capitalised
el('h1', {onclick: handler}, 'click me')
el('h1', {onClick: handler}, 'click me')
list([getKey, ]nodeFactory): CommentNode
where
getKey: string | function([*], [number], [Array]): string
nodeFactory: function(value:* [, key:* [, object:*]]): Node
list
creates a Comment Node
that will be followed by a variable number of Nodes upon update with an array.
getKey
is not provided, the list is 'unkeyed' (ie the key is the index) (example: list(factory)
)getKey
is a string, the key is value[getKey]
(example: list('id', factory)
)getKey
is a function, the key is getKey(value, index, array)
(example: list(v=>v.id, factory)
)A list can't contain another list
var ol = el('ol',
list((v, i) => el('li', i + ':' + v)),
{update: updateChildren}
)
ol.update(['a', 'b'])
//=> <ol><#comment><li>1:a</li><li>2:b</li><#comment></ol>
[0.10.0]
FAQs
yet another small DOM component library
The npm package attodom receives a total of 1 weekly downloads. As such, attodom popularity was classified as not popular.
We found that attodom 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.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.
Security News
Newly introduced telemetry in devenv 1.4 sparked a backlash over privacy concerns, leading to the removal of its AI-powered feature after strong community pushback.