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

is-ovhcloud-down

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

is-ovhcloud-down - npm Package Compare versions

Comparing version 2.0.1 to 3.0.0

29

cli.js
#!/usr/bin/env node
'use strict';
const meow = require('meow');
const got = require('got');
import process from 'node:process';
import meow from 'meow';
import got from 'got';

@@ -10,9 +10,20 @@ meow(`

🦄 It's down. Go outside!
`);
`, {
importMeta: import.meta,
});
got.head('ovhcloud.com').then(() => {
(async () => {
const {statusCode} = await got('https://ovhcloud.com', {
timeout: 10_000,
retry: 2,
});
if (statusCode !== 200) {
console.log('\n🦄 It\'s down!');
process.exitCode = 1;
return;
}
console.error('\n 🐈 It\'s up!');
process.exitCode = 1;
}).catch(() => {
console.log('\n🦄 It\'s down!');
});
process.exitCode = 0;
})();
{
"name": "is-ovhcloud-down",
"version": "2.0.1",
"version": "3.0.0",
"description": "Check if OVHcloud is down",

@@ -9,8 +9,8 @@ "license": "MIT",

"name": "Antoine Leblanc",
"email": "ant.leblanc@gmail.com",
"url": "antleblanc.me"
"email": "ant.leblanc@gmail.com"
},
"bin": "cli.js",
"type": "module",
"bin": "./cli.js",
"engines": {
"node": ">=10"
"node": ">=16.0.0"
},

@@ -33,10 +33,10 @@ "scripts": {

"dependencies": {
"got": "^11.0.1",
"meow": "^6.1.0"
"got": "^11.8.2",
"meow": "^10.1.1"
},
"devDependencies": {
"ava": "^2.4.0",
"execa": "^0.6.0",
"xo": "^0.30.0"
"ava": "^3.15.0",
"execa": "^5.1.1",
"xo": "^0.45.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