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.1.2 to 1.2.0

2

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

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

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

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

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

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

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

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

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

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

@@ -23,0 +27,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