Socket
Socket
Sign inDemoInstall

@guardian/anghammarad

Package Overview
Dependencies
Maintainers
45
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@guardian/anghammarad - npm Package Compare versions

Comparing version 1.8.0 to 1.8.1

1

dist/src/interfaces.d.ts

@@ -29,2 +29,3 @@ import { SNS } from "aws-sdk";

client?: SNS;
threadKey?: string;
}

11

dist/src/main.js

@@ -29,9 +29,6 @@ "use strict";

messageJson(params) {
return JSON.stringify({
message: params.message,
sender: params.sourceSystem,
channel: params.channel,
target: params.target,
actions: params.actions,
});
const { message, sourceSystem, channel, target, actions, threadKey } = params;
return JSON.stringify(Object.assign({ message, sender: sourceSystem, channel,
target,
actions }, (threadKey && { threadKey })));
}

@@ -38,0 +35,0 @@ notify(params) {

{
"name": "@guardian/anghammarad",
"version": "1.8.0",
"version": "1.8.1",
"description": "Notification service for the Guardian's dev teams",

@@ -5,0 +5,0 @@ "main": "dist/src/main.js",

@@ -33,2 +33,3 @@ import { SNS } from "aws-sdk";

client?: SNS;
threadKey?: string;
}

@@ -13,8 +13,18 @@ import { NotifyParams } from "./interfaces";

messageJson(params: NotifyParams): string {
const {
message,
sourceSystem,
channel,
target,
actions,
threadKey
} = params
return JSON.stringify({
message: params.message,
sender: params.sourceSystem,
channel: params.channel,
target: params.target,
actions: params.actions,
message,
sender: sourceSystem,
channel,
target,
actions,
...(threadKey && { threadKey }), // only add "threadKey" when it is defined
});

@@ -21,0 +31,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