Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: bump dependencies including agent-js v0.20.2 #71

Merged
merged 1 commit into from
Dec 22, 2023
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,740 changes: 1,014 additions & 726 deletions package-lock.json

Large diffs are not rendered by default.

34 changes: 17 additions & 17 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,20 +23,20 @@
"lint": "eslint --max-warnings 0 src/**/*"
},
"dependencies": {
"@dfinity/agent": "^0.19.3",
"@dfinity/candid": "^0.19.3",
"@dfinity/identity": "^0.19.3",
"@dfinity/principal": "^0.19.3",
"@junobuild/admin": "^0.0.37",
"@junobuild/core-peer": "^0.0.2",
"@junobuild/utils": "^0.0.15",
"@dfinity/agent": "^0.20.2",
"@dfinity/candid": "^0.20.2",
"@dfinity/identity": "^0.20.2",
"@dfinity/principal": "^0.20.2",
"@junobuild/admin": "^0.0.38-next-2023-12-21",
"@junobuild/core-peer": "^0.0.3-next-2023-12-21",
"@junobuild/utils": "^0.0.16-next-2023-12-21",
"conf": "^12.0.0",
"file-type": "^18.7.0",
"listr": "^0.14.3",
"mime-types": "^2.1.35",
"minimatch": "^9.0.3",
"node-fetch": "^3.3.2",
"open": "^9.1.0",
"open": "^10.0.0",
"ora": "^7.0.1",
"portfinder": "^1.0.32",
"prompts": "^2.4.2",
Expand All @@ -49,17 +49,17 @@
"@types/minimatch": "^5.1.2",
"@types/prompts": "^2.4.9",
"@types/semver": "^7.5.6",
"@typescript-eslint/eslint-plugin": "^6.12.0",
"@typescript-eslint/eslint-plugin": "^6.15.0",
"dotenv": "^16.3.1",
"esbuild": "^0.19.7",
"eslint": "^8.54.0",
"eslint-config-prettier": "^9.0.0",
"eslint-config-standard-with-typescript": "^40.0.0",
"eslint-plugin-import": "^2.29.0",
"eslint-plugin-n": "^16.3.1",
"eslint-plugin-prettier": "^5.0.1",
"esbuild": "^0.19.10",
"eslint": "^8.56.0",
"eslint-config-prettier": "^9.1.0",
"eslint-config-standard-with-typescript": "^43.0.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-n": "^16.5.0",
"eslint-plugin-prettier": "^5.1.0",
"eslint-plugin-promise": "^6.1.1",
"prettier": "^3.1.0",
"prettier": "^3.1.1",
"prettier-plugin-organize-imports": "^3.2.4",
"typescript": "^5.2.2"
},
Expand Down
2 changes: 1 addition & 1 deletion src/commands/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export const login = async (args?: string[]) => {
`🔐 Your terminal is already a controller: ${green(identity.getPrincipal().toText())}.\n`
);

const {action} = await prompts({
const {action}: {action: string} = await prompts({
type: 'select',
name: 'action',
message: 'What would you like to do?',
Expand Down
8 changes: 4 additions & 4 deletions src/commands/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const initOrbiterConfig = async () => {
};

const promptSatellites = async (satellites: CliSatelliteConfig[]): Promise<string> => {
const {satellite} = await prompts({
const {satellite}: {satellite: string} = await prompts({
type: 'select',
name: 'satellite',
message: 'Which satellite should be linked with this dapp?',
Expand All @@ -71,7 +71,7 @@ const promptSatellites = async (satellites: CliSatelliteConfig[]): Promise<strin
};

const promptSatellite = async (): Promise<string> => {
const {satellite} = await prompts([
const {satellite}: {satellite: string} = await prompts([
{
type: 'text',
name: 'satellite',
Expand All @@ -85,7 +85,7 @@ const promptSatellite = async (): Promise<string> => {
};

const promptSource = async (): Promise<string> => {
const {source} = await prompts([
const {source}: {source: string} = await prompts([
{
type: 'text',
name: 'source',
Expand Down Expand Up @@ -117,7 +117,7 @@ export const assertAnswerCtrlC: (
};

const promptOrbiters = async (orbiters: CliOrbiterConfig[]): Promise<string> => {
const {orbiter} = await prompts({
const {orbiter}: {orbiter: string} = await prompts({
type: 'select',
name: 'orbiter',
message: 'Which orbiter do you use for the analytics in this dapp?',
Expand Down
2 changes: 1 addition & 1 deletion src/commands/open.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const promptSatellites = async ({
satelliteId: string;
domains: CustomDomain[];
}): Promise<string> => {
const {url} = await prompts({
const {url}: {url: string} = await prompts({
type: 'select',
name: 'url',
message: 'Which URL of your satellite should be opened?',
Expand Down
2 changes: 1 addition & 1 deletion src/commands/upgrade.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ const promptReleases = async ({
value: release
}));

const {version} = await prompts({
const {version}: {version: string} = await prompts({
type: 'select',
name: 'version',
message: `To which version should your ${assetKey.replace('_', ' ')} be upgraded?`,
Expand Down
8 changes: 4 additions & 4 deletions src/services/controllers.services.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export const reuseController = async (controller: Principal) => {

await setControllerManually({controller, segment});

const {segmentId} = await prompts({
const {segmentId}: {segmentId: string} = await prompts({
type: 'text',
name: 'segmentId',
message: `Good. So, what's the ${green(
Expand Down Expand Up @@ -55,14 +55,14 @@ const saveSatellite = async ({
profile: string | undefined;
segmentId: string;
}) => {
const {name} = await prompts({
const {name}: {name: string} = await prompts({
type: 'text',
name: 'name',
message: `Can you please provide a name for this satellite?`
});

if (name === undefined) {
console.log(`${red(`The ${name} is mandatory.`)}`);
console.log(`${red(`The name is mandatory.`)}`);
return;
}

Expand Down Expand Up @@ -95,7 +95,7 @@ const saveOrbiter = ({profile, segmentId}: {profile: string | undefined; segment
};

const selectSegment = async (): Promise<AssetKey> => {
const {segment} = await prompts({
const {segment}: {segment: string} = await prompts({
type: 'select',
name: 'segment',
message: 'Which new segment would you like to authorize with your controller?',
Expand Down
2 changes: 1 addition & 1 deletion src/utils/prompt.utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const onState = (state: PromptState) => {

// Source: https://github.com/terkelg/prompts/issues/252
export const promptConfirm = async (message: string): Promise<boolean> => {
const {answer} = await prompts([
const {answer}: {answer: boolean} = await prompts([
{
type: 'toggle',
name: 'answer',
Expand Down
Loading