Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,191 changes: 433 additions & 758 deletions package-lock.json

Large diffs are not rendered by default.

32 changes: 16 additions & 16 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,23 +23,23 @@
"prepublishOnly": "./scripts/prepublish.sh"
},
"dependencies": {
"@dfinity/agent": "^2.3.0",
"@dfinity/auth-client": "^2.3.0",
"@dfinity/candid": "^2.3.0",
"@dfinity/ic-management": "^6.2.0",
"@dfinity/identity": "^2.3.0",
"@dfinity/principal": "^2.3.0",
"@dfinity/agent": "^3.2.4",
"@dfinity/auth-client": "^3.2.4",
"@dfinity/candid": "^3.2.4",
"@dfinity/ic-management": "^7.0.2",
"@dfinity/identity": "^3.2.4",
"@dfinity/principal": "^3.2.4",
"@dfinity/zod-schemas": "^1.1.0",
"@junobuild/admin": "^2.1.1",
"@junobuild/cdn": "^1.2.2",
"@junobuild/cli-tools": "^0.6.6",
"@junobuild/admin": "^2.2.0",
"@junobuild/cdn": "^1.3.0",
"@junobuild/cli-tools": "^0.7.0",
"@junobuild/config": "^2.1.0",
"@junobuild/config-loader": "^0.4.2",
"@junobuild/core": "^2.0.0",
"@junobuild/did-tools": "^0.2.5",
"@junobuild/ic-client": "^3.0.0",
"@junobuild/storage": "^1.2.1",
"@junobuild/utils": "^0.1.4",
"@junobuild/config-loader": "^0.4.4",
"@junobuild/core": "^2.1.0",
"@junobuild/did-tools": "^0.3.2",
"@junobuild/ic-client": "^3.1.0",
"@junobuild/storage": "^1.3.0",
"@junobuild/utils": "^0.2.0",
"chokidar": "^4.0.3",
"conf": "^14.0.0",
"open": "^10.2.0",
Expand All @@ -52,7 +52,7 @@
"devDependencies": {
"@eslint/eslintrc": "^3.3.1",
"@eslint/js": "^9.34.0",
"@junobuild/functions": "^0.2.7",
"@junobuild/functions": "^0.3.0",
"@types/node": "^24.3.1",
"@types/prompts": "^2.4.9",
"@types/semver": "^7.7.1",
Expand Down
2 changes: 1 addition & 1 deletion src/api/actor.api.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {Ed25519KeyIdentity} from '@dfinity/identity/lib/cjs/identity/ed25519';
import {Ed25519KeyIdentity} from '@dfinity/identity';
import {isNullish, nonNullish, notEmptyString} from '@dfinity/utils';
import type {ActorParameters} from '@junobuild/ic-client/actor';
import {green, red, yellow} from 'kleur';
Expand Down
2 changes: 1 addition & 1 deletion src/configs/cli.config.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import type {JsonnableEd25519KeyIdentity} from '@dfinity/identity/lib/cjs/identity/ed25519';
import {assertNonNullish, nonNullish} from '@dfinity/utils';
import type Conf from 'conf';
import {red, yellow} from 'kleur';
import {askForPassword} from '../services/cli.settings.services';
import {getSettingsStore} from '../stores/settings.store';
import type {CliConfig, CliOrbiterConfig, CliSatelliteConfig} from '../types/cli.config';
import type {JsonnableEd25519KeyIdentity} from '../types/identity';
import {loadConfig} from '../utils/config.utils';

// Save in https://github.com/sindresorhus/env-paths#pathsconfig
Expand Down
2 changes: 1 addition & 1 deletion src/services/auth/login.services.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import type {JsonnableEd25519KeyIdentity} from '@dfinity/identity/lib/cjs/identity/ed25519';
import {nextArg} from '@junobuild/cli-tools';
import {bold, green, underline} from 'kleur';
import {randomBytes} from 'node:crypto';
Expand All @@ -9,6 +8,7 @@ import path, {dirname} from 'node:path';
import {fileURLToPath} from 'node:url';
import util from 'node:util';
import {saveCliConfig} from '../../configs/cli.config';
import type {JsonnableEd25519KeyIdentity} from '../../types/identity';
import {authUrl, generateToken, requestUrl} from '../../utils/auth.utils';
import {openUrl} from '../../utils/open.utils';
import {getPort} from '../../utils/port.utils';
Expand Down
2 changes: 1 addition & 1 deletion src/types/cli.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type {JsonnableEd25519KeyIdentity} from '@dfinity/identity/lib/cjs/identity/ed25519';
import type {PrincipalText} from '@dfinity/zod-schemas';
import type {JsonnableEd25519KeyIdentity} from './identity';

export interface CliConfig {
token: JsonnableEd25519KeyIdentity;
Expand Down
4 changes: 4 additions & 0 deletions src/types/identity.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// TODO: duplicate AgentJS type until https://github.com/dfinity/icp-js-core/issues/1140 is resolved.
type PublicKeyHex = string;
type SecretKeyHex = string;
export type JsonnableEd25519KeyIdentity = [PublicKeyHex, SecretKeyHex];
2 changes: 1 addition & 1 deletion src/utils/auth.utils.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import {Ed25519KeyIdentity} from '@dfinity/identity';
import type {JsonnableEd25519KeyIdentity} from '@dfinity/identity/lib/cjs/identity/ed25519';
import {nonNullish} from '@dfinity/utils';
import type {PrincipalText} from '@dfinity/zod-schemas';
import {REDIRECT_URL} from '../constants/constants';
import {ENV} from '../env';
import type {JsonnableEd25519KeyIdentity} from '../types/identity';

export const generateToken = (): {principal: PrincipalText; token: JsonnableEd25519KeyIdentity} => {
const key = Ed25519KeyIdentity.generate();
Expand Down
2 changes: 1 addition & 1 deletion src/utils/process.utils.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type {JsonnableEd25519KeyIdentity} from '@dfinity/identity/lib/cjs/identity/ed25519';
import {hasArgs} from '@junobuild/cli-tools';
import {type JsonnableEd25519KeyIdentity} from '../types/identity';

export const getProcessToken = (): JsonnableEd25519KeyIdentity | undefined => {
const envToken = process.env.JUNO_TOKEN;
Expand Down