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

@lbu/stdlib

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/stdlib - npm Package Compare versions

Comparing version 0.0.88 to 0.0.89

8

package.json
{
"name": "@lbu/stdlib",
"version": "0.0.88",
"version": "0.0.89",
"description": "All kinds of utility functions",

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

"dependencies": {
"@lbu/insight": "0.0.88",
"@types/node": "14.14.2",
"@lbu/insight": "0.0.89",
"@types/node": "14.14.5",
"dotenv": "8.2.0",

@@ -44,3 +44,3 @@ "lodash.merge": "4.6.2"

},
"gitHead": "f95775597389435d11e6ef713651a2d1d4816067"
"gitHead": "96683eacc77885317739cc1dc3a30d58c74324c7"
}

@@ -14,2 +14,3 @@ # @lbu/stdlib

- Script runner, can watch & reload almost anything
- Test and benchmark runner
- Flexible code generators supporting routers, validators, api clients, CRUD

@@ -39,4 +40,7 @@ queries and more in the future.

- Run user scripts (in watch mode)
- Run the linter or tests
- Run the linter
- A LBU based boilerplate
- Test runner
- Benchmark runner
- Necessary Docker container management

@@ -54,2 +58,3 @@ **@lbu/lint-config**:

- Various utilities to get insight in the running process
- A manual event system

@@ -60,3 +65,2 @@ **@lbu/stdlib**:

- Wrappers for child_process execution and spawning
- Basic templating system
- A `mainFn` wrapper that reads `.env` and calls the provided function if the

@@ -72,3 +76,3 @@ file is the process entrypoint

- Send file helper
- Re-exports koa-session and koa-compose
- Session support with safe browser readable cookies

@@ -83,4 +87,4 @@ **@lbu/store**:

- Caching files from S3 in memory or on local disk
- Postgres powered JobQueue implementation
- Supports priority, scheduling, multiple async workers
- Postgres powered queue implementation
- Supports priority, scheduling, multiple async workers and recurring jobs
- koa-session compatible SessionStore backed by Postgres

@@ -92,6 +96,7 @@

- router, with wildcard and path parameter support
- validators, with pre- and postValidate hooks
- queries, CRUD postgres queries
- validators, pure JavaScript implementation
- sql, CRUD postgres queries, graph traversal
- Axios based api client
- Typescript or JSDoc types
- TypeScript or JSDoc types
- react-query hooks
- An extendable set of types:

@@ -123,3 +128,4 @@ - boolean, number, string;

Although some parts heavily rely on conventions set by the packages, we
currently aim not to be a framework. However, the idea of being a bit more of
framework is not completely out of the door yet.
currently aim not to be a framework. We aim to provide a good developer
experience, useful abstractions around the basics, and a stable backend <->
client interface.

@@ -8,2 +8,3 @@ import { lstatSync, realpathSync } from "fs";

import dotenv from "dotenv";
import { AppError } from "./error.js";
import { isNil } from "./lodash.js";

@@ -64,12 +65,4 @@

unhandled({
reason: {
name: reason.name,
message: reason.message,
stack: reason.stack,
},
promise: {
name: promise.name,
message: promise.message,
stack: promise.stack,
},
reason: AppError.format(reason),
promise: AppError.format(promise),
}),

@@ -81,7 +74,3 @@ );

logger.error({
error: {
name: error.name,
message: error.message,
stack: error.stack,
},
error: AppError.format(error),
origin,

@@ -91,12 +80,8 @@ }),

// Log full warnings as well, no need for exiting
process.on("warning", (warn) =>
logger.error({
name: warn.name,
message: warn.message,
stack: warn.stack,
}),
);
process.on("warning", (warn) => logger.error(AppError.format(warn)));
// Handle async errors from the provided callback as `unhandledRejections`
Promise.resolve(cb(logger)).catch(unhandled);
Promise.resolve(cb(logger)).catch((e) => {
unhandled(AppError.format(e));
});
}

@@ -122,3 +107,4 @@ }

/**
* Checks if the provided meta.url is the process entrypoint and also returns the name of the entrypoint file
* Checks if the provided meta.url is the process entrypoint and also returns the name of
* the entrypoint file
* @param {ImportMeta} meta

@@ -125,0 +111,0 @@ * @returns {{ isMainFn: boolean, name?: string}}

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