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

dashkite

Package Overview
Dependencies
Maintainers
2
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dashkite - npm Package Compare versions

Comparing version 0.2.1 to 0.2.2

build/npm/src/client/block/delete.js

2

build/npm/src/client/builder.js

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

var client, url;
url = "https://ms0v1tyzkl.execute-api.us-east-1.amazonaws.com/staging";
url = "https://k75gaxh33a.execute-api.us-east-1.amazonaws.com/staging";
client = yield (0, _pandaSkyClient2.default)(url, _fetchH.fetch);

@@ -25,0 +25,0 @@ return {

@@ -33,2 +33,5 @@ "use strict";

break;
case 403:
(0, _logger.logError)("you cannot follow profiles that have blocked you");
break;
case 500:

@@ -35,0 +38,0 @@ (0, _logger.logError)("Unknown API error.");

@@ -23,2 +23,4 @@ "use strict";

var _utils = require("../../utils");
var _credentials = require("../../credentials");

@@ -44,3 +46,3 @@

var _ref = _asyncToGenerator(function* (argv) {
var client, creds, dotfile, fetchFeed, hangup, i, len, p, posts, root;
var client, creds, dotfile, fetchFeed, hangup, posts, root;
// defs = [

@@ -66,8 +68,3 @@ // {name: "nickname", defaultOption: true}

} else {
for (i = 0, len = posts.length; i < len; i++) {
p = posts[i];
console.error("---");
console.error(`${p.content}`);
}
return console.error("---");
return (0, _utils.printPosts)(posts);
}

@@ -74,0 +71,0 @@ });

@@ -15,2 +15,4 @@ "use strict";

var _utils = require("../../utils");
var _credentials = require("../../credentials");

@@ -38,3 +40,3 @@

var _ref = _asyncToGenerator(function* (argv) {
var client, defs, hangup, i, id, len, listPosts, lookupNickname, nickname, p, posts;
var client, defs, hangup, id, listPosts, lookupNickname, nickname, posts;
defs = [{

@@ -60,8 +62,3 @@ name: "nickname",

} else {
for (i = 0, len = posts.length; i < len; i++) {
p = posts[i];
console.error("---");
console.error(`${p.content}`);
}
return console.error("---");
return (0, _utils.printPosts)(posts);
}

@@ -68,0 +65,0 @@ });

@@ -33,2 +33,14 @@ "use strict";

var _followers = require("./followers");
var _followers2 = _interopRequireDefault(_followers);
var _block = require("./block");
var _block2 = _interopRequireDefault(_block);
var _unblock = require("./unblock");
var _unblock2 = _interopRequireDefault(_unblock);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

@@ -66,2 +78,9 @@

return yield (0, _sources2.default)(argv);
case "follower":
case "followers":
return yield (0, _followers2.default)(argv);
case "block":
return yield (0, _block2.default)(argv);
case "unblock":
return yield (0, _unblock2.default)(argv);
default:

@@ -68,0 +87,0 @@ // TODO: Put some fancy commandline usage stuff here.

@@ -42,4 +42,2 @@ "use strict";

// TODO: Put some fancy commandline usage stuff here.
// when "contact"
// await Commands.contact argv
return (0, _logger.logError)("Unknown command.");

@@ -46,0 +44,0 @@ }

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

'use strict';
"use strict";

@@ -6,8 +6,14 @@ Object.defineProperty(exports, "__esModule", {

});
exports.gatherSTDIN = exports.toURLSafe = undefined;
exports.printPosts = exports.gatherSTDIN = exports.toURLSafe = undefined;
var _logger = require('./logger');
var _logger = require("./logger");
var gatherSTDIN, toURLSafe;
var _moment = require("moment");
var _moment2 = _interopRequireDefault(_moment);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var gatherSTDIN, printPosts, toURLSafe;
exports.toURLSafe = toURLSafe = function (str) {

@@ -39,3 +45,15 @@ return str.replace(/\+/g, '-').replace(/\//g, '_').replace(/\=+$/, '');

exports.printPosts = printPosts = function (posts) {
var i, len, p, results;
results = [];
for (i = 0, len = posts.length; i < len; i++) {
p = posts[i];
p.created = new Date(Number(p.created)).toISOString();
results.push(console.error(`\n\n${"-".repeat(40)}\n@${p.nickname} ${(0, _moment2.default)(p.created).format('MMMM Do YYYY, h:mm:ss a')}\n${"-".repeat(40)}\n${p.content}`));
}
return results;
};
exports.toURLSafe = toURLSafe;
exports.gatherSTDIN = gatherSTDIN;
exports.gatherSTDIN = gatherSTDIN;
exports.printPosts = printPosts;
{
"name": "dashkite",
"version": "0.2.1",
"version": "0.2.2",
"description": "CLI for DashKite - social media with strong privacy",

@@ -27,2 +27,3 @@ "main": "./build/npm/src/index.js",

"minimatch": "^3.0.4",
"moment": "^2.22.1",
"panda-confidential": "0.0.1",

@@ -29,0 +30,0 @@ "panda-sky-client": "0.0.2"

@@ -123,10 +123,14 @@ # DashKite CLI

[dash] info: looking for posts from "david"...
---
-----------------------------------------
@david April 18th 2018, 02:35:41 pm
-----------------------------------------
Hello, from stdin
We can write multiple lines here, too.
---
-----------------------------------------
@david April 18th 2018, 02:34:08 pm
-----------------------------------------
Hello World!
---
###

@@ -173,24 +177,37 @@ ## To view anyone else's posts, just put their profile name in this command.

---
You got me. I will now reveal my love of knitting
---
-----------------------------------------
@bob April 18th 2018, 06:55:02 pm
-----------------------------------------
Of course. We're doing the whole game-day spread.
-----------------------------------------
@david April 18th 2018, 03:48:41 pm
-----------------------------------------
Are you going to watch the game tomorrow, @bob?
-----------------------------------------
@david April 18th 2018, 02:35:41 pm
-----------------------------------------
Hello, from stdin
We can write multiple lines here, too.
-----------------------------------------
@david April 18th 2018, 02:34:08 pm
-----------------------------------------
Hello World!
-----------------------------------------
@bob April 16th 2018, 01:45:21 pm
-----------------------------------------
My name is Bob, and I like sports.
---
###
## Your feed is arranged in reverse-chronological order, so adding new people orders their posts.
## Your feed is arranged in reverse-chronological order, and includes you, so you'll see everything ordered.
###
$ kite profile follow david
$ kite feed
---
You got me. I will now reveal my love of knitting
---
That's cool, but where did all those blanets come from?
---
My name is Bob, and I like sports.
---
```

@@ -232,3 +249,23 @@

### source
_kite source [profile-name]_
This command takes a given profile name and provides a list of profiles they follow, ordered by when they started following -- newest first.
### followers
_kite followers [profile-name]_
This command takes a given profile name and provides a list of profiles that follow them, ordered by when those profiles started following the target -- newest first.
### block
_kite block [profile-name]_
This command allows you to manage who follows you on DashKite. Issuing this command dissolves the follow relationships between your account and theirs and prevents them from following you. That keeps you out of their feed, but because your posts are public, your posts will still be visible via the `kite list` command.
### unblock
_kite unblock [profile-name]_
This command allows you to remove a block on another profile, but it does not restore follow relationships between your accounts, even if they previously existed. After unblocking someone, their profile will be able to follow yours.
## Device

@@ -235,0 +272,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