@lbu/stdlib
Advanced tools
Comparing version 0.0.45 to 0.0.46
{ | ||
"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 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No contributors or author data
MaintenancePackage does not specify a list of contributors or an author in package.json.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
30512
122
953
2
+ Added@lbu/insight@0.0.46(transitive)
+ Added@types/node@14.0.26(transitive)
- Removed@lbu/insight@0.0.45(transitive)
- Removed@types/node@14.0.23(transitive)
Updated@lbu/insight@0.0.46
Updated@types/node@14.0.26