
Research
/Security News
10 npm Typosquatted Packages Deploy Multi-Stage Credential Harvester
Socket researchers found 10 typosquatted npm packages that auto-run on install, show fake CAPTCHAs, fingerprint by IP, and deploy a credential stealer.
@cnbritain/merlin-frontend-article-js
Advanced tools
ArticleManager, Article
Kind: global class
ObjectHTMLElementBooleanArticleManager| Param | Type | Description |
|---|---|---|
| el | HTMLElement | The article element |
| options | Object | Article options |
| options.analytics | Object | Analytics configuration for the article |
| options.infinite | Boolean | Whether the article came from infinite scroll |
| options.manager | ArticleManager | The article manager that added the article |
| options.type | Number | The article type based on ARTICLE_TYPES enum |
| options.simplereach | Object | Simplereach configuration for promotions |
ObjectThe bounds of the article element
Kind: instance property of Article
Access: public
HTMLElementThe article element
Kind: instance property of Article
Access: public
BooleanIs the article from infinite scroll?
Kind: instance property of Article
Access: public
ArticleManagerThe article manager that added the article
Kind: instance property of Article
Access: public
Initialiases the ads
Kind: instance method of Article
Access: public
Calculates any new size changes
Kind: instance method of Article
Access: public
When an article is the current focus on the screen
Kind: event emitted by Article
When an article is the loses current focus on the screen
Kind: event emitted by Article
Kind: global class
NumberArrayList of articles that have been loaded
Kind: instance property of ArticleManager
Access: public
ArticleAdds an article to the list
Kind: instance method of ArticleManager
Emits: add
Access: public
| Param | Type | Description |
|---|---|---|
| el | HTMLElement | The article element |
| options | Object | Options for the Article |
| options.infinite | Boolean | Has the article come from infinite scroll? |
| options.type | Number | The article type. Based on ARTICLE_TYPES |
| options.analytics | Object | Analytics config for the article |
| options.simplereach | Object | SimpleReach config for promotions |
Disables the infinite scroll
Kind: instance method of ArticleManager
Access: public
Enables the infinite scroll
Kind: instance method of ArticleManager
Access: public
Recalculates some measurements
Kind: instance method of ArticleManager
Access: public
| Param | Type |
|---|---|
| _start | Number |
| _length | Number |
Adds an article to the list
Kind: event emitted by ArticleManager
Properties
| Name | Description |
|---|---|
| article | The added article |
NumberArticle types enum
Kind: static property of ArticleManager
Kind: global class
ObjectArray.HTMLElementArray.HTMLElementGalleryImageNavigationHTMLElementHTMLElement| Param | Type | Description |
|---|---|---|
| el | HTMLElement | Article Element 'a-main' |
| options | Object | Gallery options |
ObjectThe bounds of the gallery container
Kind: instance property of Gallery
Access: public
Array.HTMLElementItems in the gallery - images and ads
Kind: instance property of Gallery
Access: public
Array.HTMLElementImages in the gallery
Kind: instance property of Gallery
Access: public
GalleryImageNavigationThe gallery navigation arrows
Kind: instance property of Gallery
Access: public
HTMLElementThe gallery thumbnail images
Kind: instance property of Gallery
Access: public
HTMLElementThe gallery section images
Kind: instance property of Gallery
Access: public
Resize calculates new bounds
Kind: instance method of Gallery
Access: public
Hides list view and shows thumbnail view
Kind: instance method of Gallery
Access: public
Shows list view and hides thumbnail view
Kind: instance method of Gallery
Access: public
Toggles list and thumbnail views
Kind: instance method of Gallery
Access: public
Gallery image has gained focus
Kind: event emitted by Gallery
Gallery image has blurred
Kind: event emitted by Gallery
Install dependencies:
npm install
Build the things:
npm run sass
npm run js
npm run docs
Hint your JS
npm run jshint
Python the pythons:
npm run demo-install
Start the demo server:
python demo.py
FAQs
ArticleManager, Article
We found that @cnbritain/merlin-frontend-article-js demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers 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 found 10 typosquatted npm packages that auto-run on install, show fake CAPTCHAs, fingerprint by IP, and deploy a credential stealer.

Product
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.

Security News
Open source dashboard CNAPulse tracks CVE Numbering Authorities’ publishing activity, highlighting trends and transparency across the CVE ecosystem.