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

@based/cli

Package Overview
Dependencies
Maintainers
1
Versions
189
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@based/cli - npm Package Compare versions

Comparing version 5.9.1-alpha4 to 5.10.0

41

dist/commands/deploy/cmd.js

@@ -39,19 +39,32 @@ "use strict";

if (functions.length || schema) {
return (0, _1.deploy)({
cluster,
org,
project,
env,
watch,
functions,
schema,
fnNames,
deploySchema,
force,
apiKey,
update,
});
try {
await (0, _1.deploy)({
cluster,
org,
project,
env,
watch,
functions,
schema,
fnNames,
deploySchema,
force,
apiKey,
update,
});
}
catch (error) {
if (/^No index file found/.test(error.message) ||
error.message === 'No config file found') {
console.info('⚠️ ' + error.message);
}
else {
throw error;
}
process.exit(1);
}
}
else {
console.info('No functions or schema found');
process.exit(1);
}

@@ -58,0 +71,0 @@ };

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

if (!index) {
throw new Error('no index file found');
throw new Error(`No index file found in folder ${fnDir}`);
}
if (!config) {
throw new Error('no config file found');
throw new Error('No config file found');
}
const configEntry = `${fnDir}/${config}`;
await (0, utils_2.bundle)({
entryPoints: [`${fnDir}/${index}`, `${fnDir}/${config}`],
entryPoints: [`${fnDir}/${index}`, configEntry],
watch,

@@ -123,3 +124,5 @@ sourcemap: 'external',

const sourcemap = outputFiles.find(({ path }) => (0, node_path_1.basename)(path) === 'index.js.map');
let configObj = (0, utils_2.requireFromString)(config.text, config.path);
let configObj = configEntry.endsWith('.json')
? require(configEntry)
: (0, utils_2.requireFromString)(config.text, config.path);
configObj = configObj.default || configObj;

@@ -126,0 +129,0 @@ if (fnNames && !fnNames.includes(configObj.name)) {

{
"name": "@based/cli",
"version": "5.9.1-alpha4",
"version": "5.10.0",
"description": "",

@@ -5,0 +5,0 @@ "bin": "bin/cmd.js",

@@ -12,2 +12,3 @@ # @based/cli

-e, --env <env> env
--api-key <api-key> API key for service account
```

@@ -22,3 +23,3 @@

-l, --language <language> language
--editor <editor> editor (default: "vi")
--editor <editor> editor (default: "nvim")
-c, --cluster <cluster> cluster (default: "production")

@@ -28,2 +29,3 @@ -o, --org <org> org

-e, --env <env> env
--api-key <api-key> API key for service account
```

@@ -34,9 +36,11 @@

```
Options:
-f, --functions <functions...> Only deploy functions, optionally list which functions
-w, --watch watch for changes (default: false)
-c, --cluster <cluster> cluster (default: "production")
-o, --org <org> org
-p, --project <project> project
-e, --env <env> env
-f, --function <functions...> function names to deploy (variadic)
--schema deploy schemas (default: false)
-w, --watch watch for changes (default: false)
-f, --force force deploy unchanged (default: false)
-c, --cluster <cluster> cluster (default: "production")
-o, --org <org> org
-p, --project <project> project
-e, --env <env> env
--api-key <api-key> API key for service account
```

@@ -47,3 +51,3 @@

```
Options:
-s, --skip-auth skip auth (default: false)
-c, --cluster <cluster> cluster (default: "production")

@@ -53,2 +57,3 @@ -o, --org <org> org

-e, --env <env> env
--api-key <api-key> API key for service account
```

@@ -183,1 +188,27 @@

```
### make
```
-c, --cluster <cluster> cluster (default: "production")
-o, --org <org> org
-p, --project <project> project
-e, --env <env> env
--api-key <api-key> API key for service account
```
## init
```
Options:
--path <path> path where to install boilerplate app
--lib <lib> frontend library to use (choices: "react")
--debug show debug info if available
-c, --cluster <cluster> cluster (default: "production")
-o, --org <org> org
-p, --project <project> project
-e, --env <env> env
--size <size> size of env to create (choices: "small", "large")
```
##

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