@aviarytech/did-peer
Advanced tools
Comparing version 0.0.7 to 0.0.8
@@ -1,2 +0,2 @@ | ||
import type { IDIDDocumentServiceDescriptor, IDIDDocumentVerificationMethod } from "./interfaces"; | ||
import type { IDIDDocumentServiceDescriptor, IDIDDocumentVerificationMethod } from "./interfaces.js"; | ||
export declare const create: (numalgo: number, authenticationKeys: IDIDDocumentVerificationMethod[], encryptionKeys?: IDIDDocumentVerificationMethod[], service?: IDIDDocumentServiceDescriptor) => Promise<string>; | ||
@@ -3,0 +3,0 @@ export declare const createNumAlgo0: (authenticationKey: IDIDDocumentVerificationMethod) => Promise<string>; |
@@ -1,4 +0,4 @@ | ||
import { Numalgo2Prefixes } from "./constants"; | ||
import { encodeService } from "./utils"; | ||
import { validateAuthentication, validateEncryption } from "./validators"; | ||
import { Numalgo2Prefixes } from "./constants.js"; | ||
import { encodeService } from "./utils.js"; | ||
import { validateAuthentication, validateEncryption } from "./validators.js"; | ||
export const create = async (numalgo, authenticationKeys, encryptionKeys, service) => { | ||
@@ -5,0 +5,0 @@ switch (numalgo) { |
{ | ||
"name": "@aviarytech/did-peer", | ||
"version": "0.0.7", | ||
"version": "0.0.8", | ||
"type": "module", | ||
@@ -5,0 +5,0 @@ "devDependencies": { |
@@ -1,2 +0,2 @@ | ||
import type { IDIDDocument } from "./interfaces"; | ||
import type { IDIDDocument } from "./interfaces.js"; | ||
export declare const resolve: (did: string) => Promise<IDIDDocument>; | ||
@@ -3,0 +3,0 @@ export declare const resolveNumAlgo0: (did: string) => Promise<IDIDDocument>; |
import { assert } from "vitest"; | ||
import { Numalgo2Prefixes } from "./constants"; | ||
import { createDIDDocument, decodeService, isPeerDID } from "./utils"; | ||
import { Numalgo2Prefixes } from "./constants.js"; | ||
import { createDIDDocument, decodeService, isPeerDID } from "./utils.js"; | ||
export const resolve = async (did) => { | ||
@@ -5,0 +5,0 @@ assert(isPeerDID(did), `${did} is not a valid did:peer`); |
@@ -1,2 +0,2 @@ | ||
import type { IDIDDocumentServiceDescriptor, IDIDDocumentVerificationMethod } from "./interfaces"; | ||
import type { IDIDDocumentServiceDescriptor, IDIDDocumentVerificationMethod } from "./interfaces.js"; | ||
export declare const base64: { | ||
@@ -3,0 +3,0 @@ encode: (unencoded: any) => string; |
import { Buffer } from 'buffer/index.js'; | ||
import { Numalgo2Prefixes, ServiceReplacements } from "./constants"; | ||
import { Numalgo2Prefixes, ServiceReplacements } from "./constants.js"; | ||
export const base64 = { | ||
@@ -4,0 +4,0 @@ encode: (unencoded) => { |
@@ -1,3 +0,3 @@ | ||
import type { IDIDDocumentVerificationMethod } from "./interfaces"; | ||
import type { IDIDDocumentVerificationMethod } from "./interfaces.js"; | ||
export declare const validateAuthentication: (verificationMethod: IDIDDocumentVerificationMethod) => void; | ||
export declare const validateEncryption: (verificationMethod: IDIDDocumentVerificationMethod) => void; |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
15884
0