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.45 to 0.0.46

24

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

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

"dependencies": {
"@lbu/insight": "0.0.45",
"@types/node": "14.0.23",
"@lbu/insight": "0.0.46",
"@types/node": "14.0.26",
"dotenv": "8.2.0",
"lodash.merge": "4.6.2"
},
"author": {
"name": "Dirk de Visser",
"email": "dirkdev98@gmail.com"
},
"maintainers": [
{
"name": "Dirk de Visser",
"email": "dirkdev98@gmail.com"
},
{
"name": "Daniël Hansen"
}
],
"homepage": "https://lbu.lightbase.nl",
"repository": {
"type": "git",
"url": "ssh://git@github.com/lightbasenl/lbu.git",
"url": "https://github.com/lightbasenl/lbu.git",
"directory": "packages/stdlib"

@@ -38,3 +44,3 @@ },

},
"gitHead": "2a7bd7e726fc2f6b5709d5b4f3edfc676bb36407"
"gitHead": "6b9827983e55ade8f018d8d0c306a2fdbe6b94cb"
}

@@ -14,4 +14,4 @@ # @lbu/stdlib

- Script runner, can watch & reload almost anything (via nodemon)
- Flexible code generators supporting routers, validators, api clients, mocks,
CRUD queries and more in the future.
- Flexible code generators supporting routers, validators, api clients, CRUD
queries and more in the future.
- Opinionated structured logging

@@ -91,3 +91,2 @@ - Common Koa middleware wrapped in a single function

- Typescript or JSDoc types
- Generated mocks
- An extendable set of types:

@@ -112,4 +111,14 @@ - boolean, number, string;

## Development
## New features
See [CONTRIBUTING.md](/contributing.md).
New features added should fall under the following categories:
- It improves the interface between api and client in some way. An example may
be to support websockets in @lbu/code-gen
- It improves the developer experience one way or another while developing an
api For example the `lbu docker` commands or various utilities provided by
@lbu/stdlib
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.

@@ -39,3 +39,3 @@ import lodashMerge from "lodash.merge";

for (const key of Object.keys(data)) {
let resultPath = path + "." + key;
let resultPath = `${path}.${key}`;
if (path === "") {

@@ -42,0 +42,0 @@ resultPath = key;

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

setupProcessListeners(logger);
let result = cb(logger);
const result = cb(logger);
Promise.resolve(result).catch((e) => logger.error(e));

@@ -54,0 +54,0 @@ }

@@ -50,24 +50,9 @@ /*

// and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434
return (
bth[buf[i + 0]] +
bth[buf[i + 1]] +
bth[buf[i + 2]] +
bth[buf[i + 3]] +
"-" +
bth[buf[i + 4]] +
bth[buf[i + 5]] +
"-" +
bth[buf[i + 6]] +
bth[buf[i + 7]] +
"-" +
bth[buf[i + 8]] +
bth[buf[i + 9]] +
"-" +
bth[buf[i + 10]] +
bth[buf[i + 11]] +
bth[buf[i + 12]] +
bth[buf[i + 13]] +
bth[buf[i + 14]] +
bth[buf[i + 15]]
).toLowerCase();
return `${
bth[buf[i + 0]] + bth[buf[i + 1]] + bth[buf[i + 2]] + bth[buf[i + 3]]
}-${bth[buf[i + 4]]}${bth[buf[i + 5]]}-${bth[buf[i + 6]]}${bth[buf[i + 7]]}-${
bth[buf[i + 8]]
}${bth[buf[i + 9]]}-${bth[buf[i + 10]]}${bth[buf[i + 11]]}${
bth[buf[i + 12]]
}${bth[buf[i + 13]]}${bth[buf[i + 14]]}${bth[buf[i + 15]]}`.toLowerCase();
}

@@ -74,0 +59,0 @@

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