@dialectlabs/identity-dialect-dapps
Advanced tools
Comparing version 0.0.1 to 1.0.0-beta.1
@@ -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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
15293
25
214
3