Comparing version 1.4.1 to 1.5.0
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 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
21434
260
83
+ Addedssb-typescript@2.5.0(transitive)
- Removedssb-typescript@2.2.0(transitive)
Updatedssb-typescript@~2.5.0