Skip to content

Commit

Permalink
Chore/change to non dir imports (#23)
Browse files Browse the repository at this point in the history
* chore: change to non dir imports

* chore: bump version
  • Loading branch information
coodos authored Jan 9, 2025
1 parent e75e8a1 commit 6ffcb72
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 10 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tanglelabs/iota-identity-adapter",
"version": "0.4.1",
"version": "0.4.2",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"type": "module",
Expand Down
10 changes: 5 additions & 5 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,20 @@ import Module from "node:module";
const require = Module.createRequire(import.meta.url);
import { getPublicKeyAsync } from "@noble/ed25519";
import { IotaJwkStore, IotaKidStore } from "./iota-store";
const { Client, SecretManager, Utils } = require("@iota/sdk-wasm/node");
const {
import { Client, SecretManager, Utils } from "@iota/sdk-wasm/node";
import {
IotaDID,
IotaDocument,
IotaIdentityClient,
JwsAlgorithm,
MethodScope,
MethodDigest,
VerificationMethod,
Storage,
} = require("@iota/identity-wasm/node");
} from "@iota/identity-wasm/node/index.js";
import * as didJWT from "did-jwt";
import { ensureAddressHasFunds } from "./utils";
import { Resolver } from "did-resolver";
import { MethodDigest, VerificationMethod } from "@iota/identity-wasm/node";


export class DidIotaAdapter<K extends StorageSpec<Record<string, any>, any>>
implements NetworkAdapter
Expand Down
2 changes: 1 addition & 1 deletion src/iota-resolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
IotaIdentityClient,
Resolver,
CoreDocument,
} from "@iota/identity-wasm/node";
} from "@iota/identity-wasm/node/index.js";

export class IotaResolver {
public static getResolver() {
Expand Down
5 changes: 2 additions & 3 deletions src/iota-store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,9 @@ import {
JwkStorage,
KeyIdStorage,
MethodDigest,
} from "@iota/identity-wasm/node";
import { bytesToString, StorageSpec } from "@tanglelabs/ssimon";
} from "@iota/identity-wasm/node/index.js";
import { StorageSpec } from "@tanglelabs/ssimon";
import { nanoid } from "nanoid";
import { bytesToHex } from "did-jwt";

type Ed25519PrivateKey = Uint8Array;
type Ed25519PublicKey = Uint8Array;
Expand Down

0 comments on commit 6ffcb72

Please sign in to comment.