@based/cli
Advanced tools
Comparing version 6.0.2 to 6.1.0-alpha
@@ -14,2 +14,3 @@ import { readdir } from 'fs/promises'; | ||
import { requireFromString } from '../../utils/requireFromString.js'; | ||
import { bucketId } from '@based/ids'; | ||
const require = global.require || createRequire(import.meta.url); | ||
@@ -159,3 +160,9 @@ // const discover = require('@based/opts') | ||
? `http://localhost:1111/${envId}` | ||
: `https://based-files-${cluster}.based.dev/${envId}`; | ||
: `https://${bucketId({ | ||
cluster, | ||
env, | ||
org, | ||
project, | ||
type: 'files', | ||
})}.based.dev`; | ||
const opts = { | ||
@@ -210,3 +217,3 @@ publicPath, | ||
mimeType: mimeTypes.lookup(fileName.substring(fileName.lastIndexOf('.'))), | ||
payload: { id, fileKey: fileName }, | ||
payload: { id }, | ||
}); | ||
@@ -213,0 +220,0 @@ return { path, url }; |
@@ -0,3 +1,4 @@ | ||
/// <reference types="node" resolution-mode="require"/> | ||
import http from 'http'; | ||
declare const _default: (port: number) => http.Server<typeof http.IncomingMessage, typeof http.ServerResponse>; | ||
export default _default; |
@@ -22,3 +22,3 @@ import input from '@inquirer/input'; | ||
else { | ||
console.info(pc.dim(`Geting secret ${pc.blue(key)}`)); | ||
console.info(pc.dim(`Getting secret ${pc.blue(key)}`)); | ||
} | ||
@@ -25,0 +25,0 @@ const result = await getSecret({ cluster, org, project, env, apiKey, key }); |
{ | ||
"name": "@based/cli", | ||
"version": "6.0.2", | ||
"version": "6.1.0-alpha", | ||
"description": "", | ||
@@ -37,5 +37,5 @@ "bin": "bin/cmd.js", | ||
"dependencies": { | ||
"@based/client": "5.0.1", | ||
"@based/type-gen": "0.0.5", | ||
"@based/server": "7.0.2", | ||
"@based/client": "5.3.0", | ||
"@based/type-gen": "0.0.4", | ||
"@based/server": "7.1.0", | ||
"esbuild-plugin-polyfill-node": "0.3.0", | ||
@@ -42,0 +42,0 @@ "@inquirer/confirm": "1.0.11", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
224975
3464
2
6
+ Added@based/client@5.3.0(transitive)
+ Added@based/errors@1.4.0(transitive)
+ Added@based/functions@2.3.0(transitive)
+ Added@based/server@7.1.0(transitive)
+ Added@based/type-gen@0.0.4(transitive)
+ Added@saulx/hash@2.0.0(transitive)
+ Added@saulx/utils@3.5.3(transitive)
+ Addedis-plain-obj@3.0.0(transitive)
- Removed@based/client@5.0.1(transitive)
- Removed@based/server@7.0.2(transitive)
- Removed@based/type-gen@0.0.5(transitive)
Updated@based/client@5.3.0
Updated@based/server@7.1.0
Updated@based/type-gen@0.0.4