New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@mediarithmics/plugins-nodejs-sdk

Package Overview
Dependencies
Maintainers
2
Versions
87
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mediarithmics/plugins-nodejs-sdk - npm Package Compare versions

Comparing version 0.4.4 to 0.4.5

.npmignore

4

CHANGELOG.md
# Changelog
# 0.4.5 - 2018-06-21
- Fix Email Renderer bug (wrong Id to store the InstanceContext)
# 0.4.4 - 2018-06-20

@@ -4,0 +8,0 @@

6

lib/mediarithmics/plugins/email-renderer/base/EmailRendererBasePlugin.js

@@ -71,6 +71,6 @@ "use strict";

}
if (!this.pluginCache.get(emailRenderRequest.email_renderer_id)) {
this.pluginCache.put(emailRenderRequest.email_renderer_id, this.instanceContextBuilder(emailRenderRequest.email_renderer_id), this.INSTANCE_CONTEXT_CACHE_EXPIRATION);
if (!this.pluginCache.get(emailRenderRequest.creative_id)) {
this.pluginCache.put(emailRenderRequest.creative_id, this.instanceContextBuilder(emailRenderRequest.creative_id), this.INSTANCE_CONTEXT_CACHE_EXPIRATION);
}
const instanceContext = yield this.pluginCache.get(emailRenderRequest.email_renderer_id);
const instanceContext = yield this.pluginCache.get(emailRenderRequest.creative_id);
const response = yield this.onEmailContents(emailRenderRequest, instanceContext);

@@ -77,0 +77,0 @@ this.logger.debug(`Returning: ${JSON.stringify(response)}`);

{
"name": "@mediarithmics/plugins-nodejs-sdk",
"version": "0.4.4",
"version": "0.4.5",
"description": "This is the mediarithmics nodejs to help plugin developers bootstrapping their plugin without having to deal with most of the plugin boilerplate",

@@ -5,0 +5,0 @@ "repository": "github:MEDIARITHMICS/plugins-nodejs-sdk",

@@ -97,7 +97,7 @@ import * as express from "express";

if (!this.pluginCache.get(emailRenderRequest.email_renderer_id)) {
if (!this.pluginCache.get(emailRenderRequest.creative_id)) {
this.pluginCache.put(
emailRenderRequest.email_renderer_id,
emailRenderRequest.creative_id,
this.instanceContextBuilder(
emailRenderRequest.email_renderer_id
emailRenderRequest.creative_id
),

@@ -109,3 +109,3 @@ this.INSTANCE_CONTEXT_CACHE_EXPIRATION

const instanceContext = await this.pluginCache.get(
emailRenderRequest.email_renderer_id
emailRenderRequest.creative_id
);

@@ -112,0 +112,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc