Skip to content

Commit b9863da

Browse files
authored
chore: adapt frontend library package.json to be better suitable for publishing (#95)
1 parent 348d245 commit b9863da

25 files changed

Lines changed: 84 additions & 44 deletions

File tree

examples/basic_ibe/frontend/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,6 @@
1111
"preview": "vite preview",
1212
"lint": "eslint"
1313
},
14-
"peerDependencies": {
15-
"ic_vetkeys": "^0.1.0"
16-
},
1714
"devDependencies": {
1815
"@eslint/js": "^9.24.0",
1916
"@rollup/plugin-typescript": "^12.1.2",
@@ -25,5 +22,8 @@
2522
"dependencies": {
2623
"@dfinity/auth-client": "^2.4.1",
2724
"@dfinity/principal": "^2.4.1"
25+
},
26+
"peerDependencies": {
27+
"@dfinity/vetkeys": "^0.1.0"
2828
}
2929
}

examples/basic_ibe/frontend/src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import {
77
EncryptedVetKey,
88
VetKey,
99
IdentityBasedEncryptionCiphertext,
10-
} from "ic_vetkeys";
10+
} from "@dfinity/vetkeys";
1111
import {
1212
Inbox,
1313
_SERVICE,

examples/basic_timelock_ibe/frontend/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,6 @@
1111
"preview": "vite preview",
1212
"lint": "eslint"
1313
},
14-
"peerDependencies": {
15-
"ic_vetkeys": "^0.1.0"
16-
},
1714
"devDependencies": {
1815
"@eslint/js": "^9.24.0",
1916
"@rollup/plugin-typescript": "^12.1.2",
@@ -25,5 +22,8 @@
2522
"dependencies": {
2623
"@dfinity/auth-client": "^2.4.1",
2724
"@dfinity/principal": "^2.4.1"
25+
},
26+
"peerDependencies": {
27+
"@dfinity/vetkeys": "^0.1.0"
2828
}
2929
}

examples/basic_timelock_ibe/frontend/src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { Principal } from "@dfinity/principal";
44
import {
55
DerivedPublicKey,
66
IdentityBasedEncryptionCiphertext,
7-
} from "ic_vetkeys";
7+
} from "@dfinity/vetkeys";
88
import {
99
_SERVICE,
1010
LotInformation,

examples/password_manager/frontend/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,6 @@
1111
"prettier-check": "prettier --check .",
1212
"preview": "vite preview"
1313
},
14-
"peerDependencies": {
15-
"ic_vetkeys": "^0.1.0"
16-
},
1714
"devDependencies": {
1815
"@rollup/plugin-typescript": "^12.1.2",
1916
"@tsconfig/svelte": "^5.0.4",
@@ -40,5 +37,8 @@
4037
"svelte-spa-router": "^4.0.1",
4138
"tailwindcss": "^3.0.17",
4239
"typewriter-editor": "^0.9.4"
40+
},
41+
"peerDependencies": {
42+
"@dfinity/vetkeys": "^0.1.0"
4343
}
4444
}

examples/password_manager/frontend/src/components/EditPassword.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
import Spinner from "./Spinner.svelte";
1717
import { onDestroy } from "svelte";
1818
import { Principal } from "@dfinity/principal";
19-
import type { AccessRights } from "ic_vetkeys/tools";
19+
import type { AccessRights } from "@dfinity/vetkeys/tools";
2020
2121
export let currentRoute = "";
2222
const unsubscribe = location.subscribe((value) => {

examples/password_manager/frontend/src/components/SharingEditor.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
} from "../store/vaults";
1010
import { addNotification, showError } from "../store/notifications";
1111
import { Principal } from "@dfinity/principal";
12-
import type { AccessRights } from "ic_vetkeys/tools";
12+
import type { AccessRights } from "@dfinity/vetkeys/tools";
1313
1414
export let editedVault: VaultModel;
1515
export let canManage = false;

examples/password_manager/frontend/src/components/Vault.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
import GiOpenTreasureChest from "svelte-icons/gi/GiOpenTreasureChest.svelte";
1111
import { auth } from "../store/auth";
1212
import SharingEditor from "./SharingEditor.svelte";
13-
import type { AccessRights } from "ic_vetkeys/tools";
13+
import type { AccessRights } from "@dfinity/vetkeys/tools";
1414
1515
export let vault: VaultModel = {
1616
name: "",

examples/password_manager/frontend/src/lib/encrypted_maps.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import "./init.ts";
22
import { HttpAgent, type HttpAgentOptions } from "@dfinity/agent";
3-
import { DefaultEncryptedMapsClient } from "ic_vetkeys/tools";
4-
import { EncryptedMaps } from "ic_vetkeys/tools";
3+
import { DefaultEncryptedMapsClient } from "@dfinity/vetkeys/tools";
4+
import { EncryptedMaps } from "@dfinity/vetkeys/tools";
55

66
export async function createEncryptedMaps(
77
agentOptions?: HttpAgentOptions,

examples/password_manager/frontend/src/lib/vault.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type { Principal } from "@dfinity/principal";
22
import type { PasswordModel } from "./password";
3-
import type { AccessRights } from "ic_vetkeys/tools";
3+
import type { AccessRights } from "@dfinity/vetkeys/tools";
44

55
export interface VaultModel {
66
owner: Principal;

0 commit comments

Comments
 (0)