New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@dialectlabs/identity-dialect-dapps

Package Overview
Dependencies
Maintainers
8
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dialectlabs/identity-dialect-dapps - npm Package Compare versions

Comparing version 0.0.1 to 1.0.0-beta.1

src/api.ts

7

lib/cjs/identity-dialect-dapps.js

@@ -5,3 +5,2 @@ "use strict";

const tslib_1 = require("tslib");
const web3_js_1 = require("@solana/web3.js");
const api_1 = require("./api");

@@ -15,3 +14,3 @@ class DialectDappsIdentityResolver {

}
resolve(publicKey) {
resolve(address) {
return tslib_1.__awaiter(this, void 0, void 0, function* () {

@@ -28,3 +27,3 @@ if (!this.dappsCached) {

type: this.type,
publicKey: new web3_js_1.PublicKey(it.publicKey),
address: it.publicKey,
name: it.name,

@@ -40,3 +39,3 @@ additionals: {

}
return this.dappsCached[publicKey.toString()] || null;
return this.dappsCached[address] || null;
});

@@ -43,0 +42,0 @@ }

@@ -1,2 +0,1 @@

import { PublicKey } from '@solana/web3.js';
import { fetchAllDapps } from './api';

@@ -10,3 +9,3 @@ export class DialectDappsIdentityResolver {

}
async resolve(publicKey) {
async resolve(address) {
if (!this.dappsCached) {

@@ -22,3 +21,3 @@ if (this.dappsData) {

type: this.type,
publicKey: new PublicKey(it.publicKey),
address: it.publicKey,
name: it.name,

@@ -34,3 +33,3 @@ additionals: {

}
return this.dappsCached[publicKey.toString()] || null;
return this.dappsCached[address] || null;
}

@@ -37,0 +36,0 @@ async resolveReverse(domainName) {

@@ -1,3 +0,2 @@

import type { Identity, IdentityResolver } from '@dialectlabs/sdk';
import { PublicKey } from '@solana/web3.js';
import type { AccountAddress, Identity, IdentityResolver } from '@dialectlabs/sdk';
import { Dapp } from './api';

@@ -10,5 +9,5 @@ export declare class DialectDappsIdentityResolver implements IdentityResolver {

get type(): string;
resolve(publicKey: PublicKey): Promise<Identity | null>;
resolve(address: AccountAddress): Promise<Identity | null>;
resolveReverse(domainName: string): Promise<Identity | null>;
}
//# sourceMappingURL=identity-dialect-dapps.d.ts.map
{
"name": "@dialectlabs/identity-dialect-dapps",
"version": "0.0.1",
"version": "1.0.0-beta.1",
"repository": "git@github.com:dialectlabs/sdk.git",

@@ -21,3 +21,4 @@ "author": "dialectlabs",

"build:esm:watch": "concurrently \"tsc --project tsconfig.esm.json --watch\"",
"dev": "yarn clean && concurrently \"npm:build:cjs:watch\" \"npm:build:esm:watch\""
"dev": "yarn clean && concurrently \"npm:build:cjs:watch\" \"npm:build:esm:watch\"",
"test": "jest --passWithNoTests"
},

@@ -24,0 +25,0 @@ "peerDependencies": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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