Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ssb-typescript

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ssb-typescript - npm Package Compare versions

Comparing version 1.2.1 to 1.3.0

2

package.json
{
"name": "ssb-typescript",
"version": "1.2.1",
"version": "1.3.0",
"description": "TypeScript type definitions for Secure Scuttlebutt",

@@ -5,0 +5,0 @@ "repository": {

@@ -6,2 +6,3 @@ import { Msg, PostContent, AboutContent, ContactContent, VoteContent } from './readme';

export declare function isRootPostMsg(msg: Msg<any>): msg is Msg<PostContent>;
export declare function isReplyPostMsg(msg: Msg<any>): msg is Msg<PostContent>;
export declare function isAboutMsg(msg: Msg<any>): msg is Msg<AboutContent>;

@@ -8,0 +9,0 @@ export declare function isContactMsg(msg: Msg<any>): msg is Msg<ContactContent>;

@@ -19,2 +19,6 @@ "use strict";

exports.isRootPostMsg = isRootPostMsg;
function isReplyPostMsg(msg) {
return isPostMsg(msg) && !!msg.value.content.root;
}
exports.isReplyPostMsg = isReplyPostMsg;
function isAboutMsg(msg) {

@@ -21,0 +25,0 @@ return hasContent(msg) && msg.value.content.type === 'about';

@@ -25,2 +25,6 @@ import {

export function isReplyPostMsg(msg: Msg<any>): msg is Msg<PostContent> {
return isPostMsg(msg) && !!msg.value.content.root;
}
export function isAboutMsg(msg: Msg<any>): msg is Msg<AboutContent> {

@@ -27,0 +31,0 @@ return hasContent(msg) && msg.value.content.type === 'about';

Sorry, the diff of this file is not supported yet

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