
Research
Security News
Lazarus Strikes npm Again with New Wave of Malicious Packages
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
emarsys-integration-client
Advanced tools
Emarsys Integration Client JS is a library providing methods of communication between Emarsys and integrated services running in an iframe.
npm install emarsys-integration-client --save
var ClientApi = require('emarsys-integration-client');
var clientApi = ClientApi.init({
global: window,
integrationId: 'my-integration',
integrationInstanceId: 1234567
});
In the code above, integrationId and integrationInstanceId should have the values passed in the iframe URL.
Calling the methods above will render different types of Emarsys UI alerts with the text
given.
It's a lower level method for displaying custom alerts.
Options
Field | Role | Mandatory | Default |
---|---|---|---|
text: String | Alert message. | YES | |
icon: String | Icon class of the icon to be rendered on the left side of the alert. Eg. 'check' for a check mark or 'exclamation-circle' for an exclamation mark in a circle. | NO | |
className: String | Alert sub-class to use when rendering the alert. Eg. 'e-alert-success' for a green bar, 'e-alert-danger' for a red one. | NO | |
timeout: Int | Amount of time after the alert will fade out and get removed from the DOM, in milliseconds. | NO | 1500 |
This will enable a button selected.
Closing the dialog and removing it from DOM.
Rendering a confirm dialog.
Options
Field | Role | Mandatory | Default |
---|---|---|---|
title: String | Title of the confirm dialog. | YES | |
body: String | Body text of the confirm dialog. | NO | |
cancel: String | Text of Cancel button. | YES | |
ok: String | Text of OK button. | YES |
Rendering a modal dialog with it's content in an iframe.
Options
Field | Role | Mandatory | Default |
---|---|---|---|
src: String | URL for the iframe providing the modal content. | YES | |
width: Int | Width of the modal. | NO | 650 |
height: Int | Height of the modal. | NO | 500 |
Submitting a dialog.
Options
Field | Role | Mandatory | Default |
---|---|---|---|
success: Boolean | True if the result of the dialog is truthy. | YES | |
data: Object | Arbitrary object to send to the originating service. | NO | {} |
Navigating the browser to a preset page.
Options
Field | Role | Mandatory |
---|---|---|
target: String | The prespecified target you would like to head to. | YES |
params.foo: Object | The general param the actual target needs. | MIXED |
Targets available
Target | Action | Params |
---|---|---|
email_campaigns/list | Will head to the campaign list. | |
email_campaigns/edit | Will open the editor with the campaign set. | campaign_id |
email_analysis/list | Will head to reporting. | |
email_analysis/details | Will head to reporting details of a campaign. | campaign_id, launch_id |
Reloading the whole page.
Resizing the iframe.
Sending a track message.
Setting up click handler for <a>
elements, popping a navigation confirm dialog when clicked. It makes sense to call this method right after your content gets dirty.
Options
Field | Role | Mandatory | Default |
---|---|---|---|
selector: String | Selector for ancestor elements of <a> elements. | YES | |
confirm: Object | Options for confirm dialog. See dialog.confirm() . | NO | Options for a general unload confirm dialog. |
Stopping to watch click events of elements selected by selector
. It makes sense to call this method right after your content gets clean (ie. saved).
FAQs
Client library for Emarsys services.
The npm package emarsys-integration-client receives a total of 65 weekly downloads. As such, emarsys-integration-client popularity was classified as not popular.
We found that emarsys-integration-client demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 8 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
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.
Security News
Opengrep continues building momentum with the alpha release of its Playground tool, demonstrating the project's rapid evolution just two months after its initial launch.