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

ssb-uri2

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ssb-uri2 - npm Package Compare versions

Comparing version 1.4.1 to 1.5.0

6

lib/index.d.ts
import { BlobId, FeedId, MsgId } from 'ssb-typescript';
declare type FeedTF = ['feed', 'ed25519'] | ['feed', 'bendybutt-v1'];
declare type MessageTF = ['message', 'sha256'] | ['message', 'bendybutt-v1'];
declare type FeedTF = ['feed', 'ed25519'] | ['feed', 'bendybutt-v1'] | ['feed', 'gabbygrove-v1'];
declare type MessageTF = ['message', 'sha256'] | ['message', 'bendybutt-v1'] | ['message', 'gabbygrove-v1'];
declare type BlobTF = ['blob', 'sha256'];

@@ -19,4 +19,6 @@ declare type AddressTF = ['address', 'multiserver'];

export declare function isBendyButtV1FeedSSBURI(uri: string | null): boolean;
export declare function isGabbyGroveV1FeedSSBURI(uri: string | null): boolean;
export declare function isMessageSSBURI(uri: string | null): boolean;
export declare function isBendyButtV1MessageSSBURI(uri: string | null): boolean;
export declare function isGabbyGroveV1MessageSSBURI(uri: string | null): boolean;
export declare function isBlobSSBURI(uri: string | null): boolean;

@@ -23,0 +25,0 @@ export declare function isAddressSSBURI(uri: string | null): boolean;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.decompose = exports.compose = exports.isSSBURI = exports.isExperimentalSSBURIWithAction = exports.isExperimentalSSBURI = exports.isIdentityPOBoxSSBURI = exports.isEncryptionKeyBox2DMDiffieHellmanSSBURI = exports.isAddressSSBURI = exports.isBlobSSBURI = exports.isBendyButtV1MessageSSBURI = exports.isMessageSSBURI = exports.isBendyButtV1FeedSSBURI = exports.isFeedSSBURI = exports.toMultiserverAddress = exports.toBlobSigil = exports.toMessageSigil = exports.toFeedSigil = exports.fromMultiserverAddress = exports.fromBlobSigil = exports.fromMessageSigil = exports.fromFeedSigil = void 0;
exports.decompose = exports.compose = exports.isSSBURI = exports.isExperimentalSSBURIWithAction = exports.isExperimentalSSBURI = exports.isIdentityPOBoxSSBURI = exports.isEncryptionKeyBox2DMDiffieHellmanSSBURI = exports.isAddressSSBURI = exports.isBlobSSBURI = exports.isGabbyGroveV1MessageSSBURI = exports.isBendyButtV1MessageSSBURI = exports.isMessageSSBURI = exports.isGabbyGroveV1FeedSSBURI = exports.isBendyButtV1FeedSSBURI = exports.isFeedSSBURI = exports.toMultiserverAddress = exports.toBlobSigil = exports.toMessageSigil = exports.toFeedSigil = exports.fromMultiserverAddress = exports.fromBlobSigil = exports.fromMessageSigil = exports.fromFeedSigil = void 0;
const urlParse = require('url-parse');

@@ -88,2 +88,6 @@ const Base64 = {

exports.isBendyButtV1FeedSSBURI = isBendyButtV1FeedSSBURI;
function isGabbyGroveV1FeedSSBURI(uri) {
return checkTypeFormat(uri, 'feed', 'gabbygrove-v1');
}
exports.isGabbyGroveV1FeedSSBURI = isGabbyGroveV1FeedSSBURI;
function isMessageSSBURI(uri) {

@@ -97,2 +101,6 @@ return checkTypeFormat(uri, 'message', 'sha256');

exports.isBendyButtV1MessageSSBURI = isBendyButtV1MessageSSBURI;
function isGabbyGroveV1MessageSSBURI(uri) {
return checkTypeFormat(uri, 'message', 'gabbygrove-v1');
}
exports.isGabbyGroveV1MessageSSBURI = isGabbyGroveV1MessageSSBURI;
function isBlobSSBURI(uri) {

@@ -136,4 +144,6 @@ return checkTypeFormat(uri, 'blob', 'sha256');

isBendyButtV1FeedSSBURI(uri) ||
isGabbyGroveV1FeedSSBURI(uri) ||
isMessageSSBURI(uri) ||
isBendyButtV1MessageSSBURI(uri) ||
isGabbyGroveV1MessageSSBURI(uri) ||
isBlobSSBURI(uri) ||

@@ -140,0 +150,0 @@ isAddressSSBURI(uri) ||

{
"name": "ssb-uri2",
"version": "1.4.1",
"version": "1.5.0",
"description": "Utilities for recognizing and converting SSB URIs",

@@ -24,3 +24,3 @@ "repository": {

"dependencies": {
"ssb-typescript": "~2.2.0",
"ssb-typescript": "~2.5.0",
"url-parse": "^1.5.1"

@@ -27,0 +27,0 @@ },

@@ -36,2 +36,4 @@ # ssb-uri2

### `isGabbyGroveV1FeedSSBURI(uri: string | null): boolean`
### `isMessageSSBURI(uri: string | null): boolean`

@@ -41,2 +43,4 @@

### `isGabbyGroveV1MessageSSBURI(uri: string | null): boolean`
### `isBlobSSBURI(uri: string | null): boolean`

@@ -43,0 +47,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