New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@lbu/cli

Package Overview
Dependencies
Maintainers
2
Versions
102
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lbu/cli - npm Package Compare versions

Comparing version 0.0.91 to 0.0.92

8

package.json
{
"name": "@lbu/cli",
"version": "0.0.91",
"version": "0.0.92",
"description": "CLI containing utilities and simple script runner",

@@ -30,4 +30,4 @@ "main": "./index.js",

"dependencies": {
"@lbu/insight": "0.0.91",
"@lbu/stdlib": "0.0.91",
"@lbu/insight": "0.0.92",
"@lbu/stdlib": "0.0.92",
"c8": "7.3.5",

@@ -59,3 +59,3 @@ "chokidar": "3.4.3",

},
"gitHead": "241012842c62b2eb255e9a503da837e32bbef548"
"gitHead": "68be0c5c1f7177797820b1cf2ef061542004dfd3"
}

@@ -1,2 +0,2 @@

import { mainFn, spawn } from "@lbu/stdlib";
import { mainFn, spawn, environment } from "@lbu/stdlib";

@@ -12,3 +12,3 @@ mainFn(import.meta, async () => {

const prettierCommand =
process.env.CI === "true" ? ["--check"] : ["--write", "--list-different"];
environment.CI === "true" ? ["--check"] : ["--write", "--list-different"];

@@ -15,0 +15,0 @@ const { exitCode: pretty } = await spawn("./node_modules/.bin/prettier", [

import { writeFileSync } from "fs";
import { inspect } from "util";
import { AppError, isNil, pathJoin } from "@lbu/stdlib";
import { AppError, environment, isNil, pathJoin } from "@lbu/stdlib";
import { benchLogger, state } from "./state.js";

@@ -43,3 +43,3 @@

if (process.env.CI === "true") {
if (environment.CI === "true") {
// Write output to a file so it can be used in other actions

@@ -46,0 +46,0 @@ // Add some point we may want to do some pretty printing to format as a table or

@@ -1,2 +0,2 @@

import { exec, spawn } from "@lbu/stdlib";
import { environment, exec, spawn } from "@lbu/stdlib";

@@ -203,3 +203,3 @@ const SUB_COMMANDS = ["up", "down", "clean", "reset"];

const name = process.env.APP_NAME;
const name = environment.APP_NAME;

@@ -257,3 +257,3 @@ logger.info(`Resetting ${name} database`);

function getPostgresVersion() {
return Number(process.env.POSTGRES_VERSION ?? "12");
return Number(environment.POSTGRES_VERSION ?? "12");
}
import { createServer } from "http";
import { isNil } from "@lbu/stdlib";
import { environment, isNil } from "@lbu/stdlib";
import proxy from "http-proxy";

@@ -11,3 +11,3 @@

const port = parseInt(
(process.env.API_URL ?? process.env.NEXT_PUBLIC_API_URL ?? "")
(environment.API_URL ?? environment.NEXT_PUBLIC_API_URL ?? "")
.split(":")

@@ -23,3 +23,3 @@ .pop(),

}
if ((process.env.PROXY_URL ?? "").length === 0) {
if ((environment.PROXY_URL ?? "").length === 0) {
logger.error("Please set the `PROXY_URL` environment variable");

@@ -44,3 +44,3 @@ process.exit(1);

const options = {
target: process.env.PROXY_URL,
target: environment.PROXY_URL,
changeOrigin: true,

@@ -47,0 +47,0 @@ cookieDomainRewrite: "",

@@ -1,2 +0,2 @@

import { mainFn, isProduction, isStaging } from "@lbu/stdlib";
import { mainFn, isProduction, isStaging, environment } from "@lbu/stdlib";
import { constructApp } from "../src/api.js";

@@ -15,3 +15,3 @@ import { injectServices } from "../src/service.js";

const port = process.env.PORT || 3000;
const port = environment.PORT || 3000;
app.listen(port, () => {

@@ -18,0 +18,0 @@ logger.info({

import { newLogger } from "@lbu/insight";
import { createBodyParsers, session } from "@lbu/server";
import { isStaging } from "@lbu/stdlib";
import { environment, isStaging } from "@lbu/stdlib";
import {

@@ -43,3 +43,3 @@ FileCache,

);
setAppBucket(process.env.APP_NAME);
setAppBucket(environment.APP_NAME);
setMinio(newMinioClient({}));

@@ -46,0 +46,0 @@ setSessionStore(newSessionStore(sql));

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