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

alertover

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

alertover - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0

.npmignore

11

index.js

@@ -53,2 +53,13 @@ 'use strict';

/**
* 发送 Alert
*
* @param {String} title 发送标题
* @param {Stringany} content 发送内容
* @param {boolean} [urgency=false] 是否紧急
* @param {String} [receiver=this.receiver] 接收组
* @param {String} [source=this.source] 发送源
* @returns {Promise}
* @memberof AlertOver
*/
send(title, content, urgency = false, receiver = this.receiver, source = this.source) {

@@ -55,0 +66,0 @@ const data = {

12

package.json
{
"name": "alertover",
"version": "1.0.0",
"description": "AlertOver (https://www.alertover.com ) cliet for Node.js",
"version": "1.1.0",
"description": "AlertOver (https://www.alertover.com ) client for Node.js",
"main": "index.js",

@@ -14,3 +14,11 @@ "scripts": {

"author": "Yourtion <yourtion@gmail.com>",
"repository": {
"type": "git",
"url": "git+https://github.com/yourtion/node-alertover.git"
},
"bugs": {
"url": "https://github.com/yourtion/node-alertover/issues"
},
"homepage": "https://github.com/yourtion/node-alertover#readme",
"license": "MIT"
}

6

test.js

@@ -6,6 +6,6 @@ 'use strict';

const client = new AlertOver({
source: '',
receiver: '',
source: process.env.ALERT_SOURCE,
receiver: process.env.ALERT_RECEIVER,
})
client.send('Hello', 'World').then(console.log).catch(console.log)
client.send('Hello', 'World').then(console.log).catch(console.log);
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