
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
message-mover
Advanced tools
This package contains a Javascript function to send messages to GCP PubSub.
npm install message-mover
In this package you will find the following features:
This function publish a message to GCP PubSub.
const messageMover = require('message-mover');
// some async function to use
const callSendMessage = async () => {
// Object with all the PubSub parameters needed to send a message
const psObject = {
// Required fields
PUBSUB_PROJECT_ID: process.env.PUBSUB_PROJECT_ID,
PUBSUB_CLIENT_EMAIL: process.env.PUBSUB_CLIENT_EMAIL,
PUBSUB_PRIVATE_KEY: process.env.PUBSUB_PRIVATE_KEY,
TOPIC_NAME: process.env.TOPIC_NAME,
MESSAGE_ENTITY_TYPE: process.env.MESSAGE_ENTITY_TYPE,
MESSAGE_COUNTRY: process.env.MESSAGE_COUNTRY,
MESSAGE_COMMERCE: process.env.MESSAGE_COMMERCE,
MESSAGE_BUSINESS_UNIT: process.env.MESSAGE_BUSINESS_UNIT,
MESSAGE_DOMAIN: process.env.MESSAGE_DOMAIN,
MESSAGE_CAPABILITY: process.env.MESSAGE_CAPABILITY,
// Optional fields, if not defined, will be used with the default values
MESSAGE_VERSION: '1.0',
MESSAGE_EVENT_TYPE: 'notifyNewRecord',
MESSAGE_CHANNEL: 'Async-PubSub',
MESSAGE_MIME_TYPE:'application/json'
};
// Array with data object that contains their own id
const dataList = [{ id: 1, data: { field_1: XXX, ..., field_N: YYY } }];
await messageMover.sendMessage(psObject, dataList).then((resp) => {
console.log(resp);
});
};
callSendMessage();
This function additionally validates the input parameters to ensure that the message could be sent correctly.
This version contains the following features:
FAQs
Message mover to GCP pubsub
The npm package message-mover receives a total of 3 weekly downloads. As such, message-mover popularity was classified as not popular.
We found that message-mover 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.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.