Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More ā†’
Socket
Sign inDemoInstall
Socket

@fleekxyz/cli

Package Overview
Dependencies
Maintainers
10
Versions
153
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fleekxyz/cli - npm Package Compare versions

Comparing version 1.3.91 to 2.1.0-dev.1

dist/commands/functions/create.js

18

dist/cli.js

@@ -12,9 +12,10 @@ "use strict";

const index_4 = __importDefault(require("./commands/ens/index"));
const index_5 = __importDefault(require("./commands/gateways/index"));
const index_6 = __importDefault(require("./commands/ipfs/index"));
const index_7 = __importDefault(require("./commands/ipns/index"));
const index_8 = __importDefault(require("./commands/pat/index"));
const index_9 = __importDefault(require("./commands/projects/index"));
const index_10 = __importDefault(require("./commands/sites/index"));
const index_11 = __importDefault(require("./commands/storage/index"));
const index_5 = __importDefault(require("./commands/functions/index"));
const index_6 = __importDefault(require("./commands/gateways/index"));
const index_7 = __importDefault(require("./commands/ipfs/index"));
const index_8 = __importDefault(require("./commands/ipns/index"));
const index_9 = __importDefault(require("./commands/pat/index"));
const index_10 = __importDefault(require("./commands/projects/index"));
const index_11 = __importDefault(require("./commands/sites/index"));
const index_12 = __importDefault(require("./commands/storage/index"));
const Output_1 = require("./output/Output");

@@ -59,3 +60,2 @@ const translation_1 = require("./utils/translation");

index_4.default,
index_5.default,
index_6.default,

@@ -67,2 +67,4 @@ index_7.default,

index_11.default,
index_12.default,
index_5.default,
cmdVersion,

@@ -69,0 +71,0 @@ ];

@@ -41,2 +41,3 @@ "use strict";

siteId: site.id,
slug: site.slug,
hostname: site.primaryDomain?.hostname,

@@ -43,0 +44,0 @@ hash,

@@ -8,3 +8,3 @@ "use strict";

const returnDeploymentWhenFinished_1 = require("./returnDeploymentWhenFinished");
const waitUntilDeploymentFinishedAndInformUser = async ({ sdk, siteId, hostname, deploymentId, hash, output, }) => {
const waitUntilDeploymentFinishedAndInformUser = async ({ sdk, siteId, slug, hostname, deploymentId, hash, output, }) => {
const deploymentStatus = await (0, checkPeriodicallyUntil_1.checkPeriodicallyUntil)({

@@ -31,5 +31,5 @@ conditionFn: (0, returnDeploymentWhenFinished_1.returnDeploymentWhenFinished)({ sdk, deploymentId }),

output.hint(`${(0, translation_1.t)('visitViaGateway')}:`);
output.link(hostname ? `https://${hostname}` : (0, utils_1.getIpfsGatewayUrl)(hash));
output.link(hostname ? `https://${hostname}` : (0, utils_1.getFleekDefaultGatewayBySlug)({ slug }));
};
exports.waitUntilDeploymentFinishedAndInformUser = waitUntilDeploymentFinishedAndInformUser;
//# sourceMappingURL=waitUntilDeploymentFinishedAndInformUser.js.map

@@ -7,4 +7,4 @@ "use strict";

exports.defined = {
UI__APP_URL: "https://app.fleek.xyz",
SDK__GRAPHQL_API_URL: "https://graphql.service.fleek.xyz/graphql",
UI__APP_URL: "https://app.fleeksandbox.xyz",
SDK__GRAPHQL_API_URL: "https://graphql.service.fleeksandbox.xyz/graphql",
};

@@ -11,0 +11,0 @@ // The variables are parsed at build time, in order to ensure

@@ -253,2 +253,3 @@ {

"commonNameCreateSuccess": "The {name} has been successfully created.",
"commonNameDeleteSuccess": "The {name} has been successfully deleted.",
"commonNameOfSubjectToAction": "The {name} of the {subject} you wish to {action}",

@@ -285,3 +286,26 @@ "commonPressAnyKeyOnceConfig": "Press any key once you have configured your {subject}...",

"whyUpdate": "Why Update?",
"howToUpdate": "How to Update?"
"howToUpdate": "How to Update?",
"createNewFunction": "create a new function",
"deployNewFunction": "create a new deployment",
"listFunctionsDesc": "Display a list of all functions",
"functionsDescription": "Create and deploy functions",
"functionsCreateDescription": "Create a new function",
"deployFunction": "Deploy a function",
"functionCodePath": "Path to file containing function code",
"functionName": "Name of the function",
"functionSlug": "The slug for the function (a short, memorable label)",
"functionStatus": "The function status, either ACTIVE or INACTIVE",
"typeNewFunctionName": "Enter the name of your new function",
"function": "function",
"invokeFunction": "create a new function invocation",
"followLinkToInvokeFunction": "Make a request to the following URL",
"functionsDeleteDescription": "Delete a function",
"deploymentsListForSelectedFunction": "Show deployments for the selected function",
"uploadFunctionCodeToIpfs": "Uploading function code to IPFS: [{bar}] {percentage}% | ETA: {eta}s | {value}/{total}",
"filePathValidWarning": "Please ensure the file path exists and points to a valid javascript file",
"commonFunctionActionFailure": "Failed to {action} function, {message} {tryAgain}. ",
"tryAgain": "please try again or contact support",
"functionsUpdateDescription": "Update a function",
"functionUpdateArgsNotValid": "One of --{param1}, --{param2} and --{param3} must be specified",
"selectFunctionStatus": "Select an function status from the options provided"
}
{
"name": "@fleekxyz/cli",
"version": "1.3.91",
"version": "2.1.0-dev.1",
"bin": {

@@ -52,10 +52,10 @@ "fleek": "bin/index.js"

"vitest-mock-process": "^1.0.4",
"@fleekxyz/gql-client-utils": "1.2.6",
"@fleekxyz/auth": "1.1.2",
"@fleekxyz/errors": "1.4.0",
"@fleekxyz/env-guards": "1.2.1",
"@fleekxyz/sdk": "1.4.2",
"@fleekxyz/tester": "1.3.1",
"@fleekxyz/utils": "0.1.4",
"@fleekxyz/validation": "1.4.0",
"@fleekxyz/auth": "2.0.0",
"@fleekxyz/errors": "2.0.0",
"@fleekxyz/gql-client-utils": "1.3.1",
"@fleekxyz/sdk": "2.0.0",
"@fleekxyz/env-guards": "1.3.0",
"@fleekxyz/utils": "0.3.0",
"@fleekxyz/tester": "2.0.0",
"@fleekxyz/validation": "2.0.0",
"eslint-config-fleek-custom": "1.0.0"

@@ -62,0 +62,0 @@ },

@@ -47,3 +47,3 @@ # Fleek CLI

4. Prepare your changes.
5. `CLI_COMMAND="<command> <subcommand> [options and parameters]" pnpm dev`, and happy testing!
5. `pnpm link -g`, `pnpm build`, `fleek -v` and happy testing!

@@ -50,0 +50,0 @@ ## Contributing

@@ -7,2 +7,3 @@ import { Command } from 'commander';

import cmdEns from './commands/ens/index';
import cmdFunctions from './commands/functions/index';
import cmdGateways from './commands/gateways/index';

@@ -77,2 +78,3 @@ import cmdIPFS from './commands/ipfs/index';

cmdStorage,
cmdFunctions,
cmdVersion,

@@ -79,0 +81,0 @@ ];

@@ -88,5 +88,5 @@ import { FleekSdk, PersonalAccessTokenService } from '@fleekxyz/sdk';

expect(output.success).toHaveBeenCalledWith(
'Your project "second project" has been created and you\'ve been automatically switched to it.'
'The project "second project" has been successfully created with the project ID "secondProjectId", and you\'ve automatically been switched to it.'
);
});
});

@@ -57,2 +57,3 @@ import { output } from '../../cli';

siteId: site.id,
slug: site.slug,
hostname: site.primaryDomain?.hostname,

@@ -59,0 +60,0 @@ hash,

import { FleekSdk } from '@fleekxyz/sdk';
import { getIpfsGatewayUrl } from '@fleekxyz/utils';
import { getFleekDefaultGatewayBySlug } from '@fleekxyz/utils';

@@ -13,2 +13,3 @@ import { Output } from '../../../output/Output';

siteId: string;
slug: string;
hostname?: string;

@@ -22,2 +23,3 @@ hash: string;

siteId,
slug,
hostname,

@@ -56,3 +58,3 @@ deploymentId,

output.hint(`${t('visitViaGateway')}:`);
output.link(hostname ? `https://${hostname}` : getIpfsGatewayUrl(hash));
output.link(hostname ? `https://${hostname}` : getFleekDefaultGatewayBySlug({ slug }));
};

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 too big to display

Sorry, the diff of this file is too big to display

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

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with āš”ļø by Socket Inc