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

dmhy-subscribe

Package Overview
Dependencies
Maintainers
2
Versions
84
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dmhy-subscribe - npm Package Compare versions

Comparing version 0.6.20 to 0.6.21

4

bin/cli.js

@@ -5,3 +5,3 @@ #!/usr/bin/env node

const fs = require('fs-extra');
const axios = require('axios');
const fetch = require('node-fetch');
const yargs = require('yargs');

@@ -18,3 +18,3 @@ const semver = require('semver');

if (count > REFETCH_TIMES) {
const { data } = await axios.get('https://registry.npmjs.org/dmhy-subscribe');
const data = await fetch('https://registry.npmjs.org/dmhy-subscribe').then((resp) => resp.json());
const remoteVersion = data['dist-tags'].latest;

@@ -21,0 +21,0 @@ count = 0;

{
"name": "dmhy-subscribe",
"version": "0.6.20",
"version": "0.6.21",
"bin": {

@@ -12,3 +12,3 @@ "dmhy": "./bin/cli.js"

"postinstall": "node npm-scripts/postinstall.js",
"prepare": "eslint --fix **/*.js && npm run test",
"prepare": "eslint --fix '**/*.js' && npm run test",
"test": "mocha",

@@ -29,19 +29,19 @@ "publish": "node npm-scripts/publish.js"

"ajv": "^6.10.0",
"all-contributors-cli": "^5.11.0",
"all-contributors-cli": "^6.6.1",
"eslint": "^5.16.0",
"eslint-config-google": "^0.12.0",
"mocha": "^5.2.0"
"eslint-config-google": "^0.13.0",
"mocha": "^6.1.4"
},
"dependencies": {
"aria2": "^4.0.3",
"axios": "^0.18.0",
"chalk": "^2.4.2",
"easy-table": "^1.1.1",
"fs-extra": "^7.0.1",
"js-yaml": "^3.13.0",
"opn": "^5.5.0",
"prompts": "^2.0.4",
"rss-parser": "^3.7.0",
"semver": "^5.7.0",
"yargs": "^12.0.5"
"fs-extra": "^8.0.1",
"js-yaml": "^3.13.1",
"node-fetch": "^2.6.0",
"opn": "^6.0.0",
"prompts": "^2.1.0",
"rss-parser": "^3.7.1",
"semver": "^6.1.1",
"yargs": "^13.2.4"
},

@@ -48,0 +48,0 @@ "yargs": {

@@ -22,5 +22,5 @@ const { spawn } = require('child_process');

print.error(l10n('DOWNLOADER_START_FAILED', { downloader: 'deluge' }), error);
rej();
rej(error);
});
});
};

@@ -1,2 +0,2 @@

const axios = require('axios');
const fetch = require('node-fetch');
const { print, l10n } = require('../..');

@@ -13,10 +13,13 @@ const crypto = require('crypto');

.digest('hex');
return axios
.post(config['webhook-url'], thread, {
headers: {
'x-dmhy-token': tok,
},
})
return fetch(config['webhook-url'], {
method: 'POST',
body: JSON.stringify(thread),
headers: {
'Content-Type': 'application/json',
'x-dmhy-token': tok,
},
})
.then(() => print.success(l10n('DOWNLOADER_DL_SUCCESS', { title: thread.title })))
.catch(() => print.error(l10n('DOWNLOADER_DL_FAILED', { title: thread.title })));
};
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