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

@aviarytech/did-peer

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aviarytech/did-peer - npm Package Compare versions

Comparing version 0.0.7 to 0.0.8

2

create.d.ts

@@ -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;
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