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

cplug

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cplug - npm Package Compare versions

Comparing version 1.0.10 to 1.0.11

2

lib/commands/news.d.ts

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

declare const plugNews: (assetKey: string) => Promise<void>;
declare const plugNews: (assetKey: string | boolean) => Promise<void>;
export default plugNews;

@@ -49,3 +49,3 @@ "use strict";

var plugNews = function (assetKey) { return __awaiter(void 0, void 0, void 0, function () {
var newsArticles, onSubmit, newsChoices, prompt_1, error_1;
var defaultNews, newsApiUrl, newsArticles, onSubmit, newsChoices, prompt_1, error_1;
return __generator(this, function (_a) {

@@ -55,3 +55,5 @@ switch (_a.label) {

_a.trys.push([0, 3, , 4]);
return [4 /*yield*/, http_client_1.useHttpClient("v1/news/" + assetKey + "?page=1&as-markdown")];
defaultNews = assetKey === true;
newsApiUrl = "v1/news" + (defaultNews ? "" : "/" + assetKey) + "?page=1&as-markdown";
return [4 /*yield*/, http_client_1.useHttpClient(newsApiUrl)];
case 1:

@@ -58,0 +60,0 @@ newsArticles = (_a.sent()).data;

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

.option("-dev --developers <ticker>", "Get GitHub repository data")
.option("-news --news <ticker>", "Get current Messari news for asset")
.option("-news --news [ticker]", "Get current Messari news (ticker optional)")
.option("-sat --satoshi", "Get satoshi's net worth")

@@ -45,0 +45,0 @@ .helpOption("-h, --help", "Display help for more commands");

{
"name": "cplug",
"version": "1.0.10",
"version": "1.0.11",
"description": "Crypto Plug is a CLI tool for getting cryptocurrency market data, news, and more!",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

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