Security News
RubyGems.org Adds New Maintainer Role
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
@unifig/validation-presenter-table
Advanced tools
Transforms configuration validation errors into clear table.
npm i @unifig/validation-presenter-table
# or
yarn add @unifig/validation-presenter-table
// main.ts
import { Config, PlainConfigAdapter } from '@unifig/core';
import { toTable } from '@unifig/validation-presenter-table';
async function bootstrap() {
const validationError = await Config.register({
templates: [StorageOptions, NetworkOptions],
adapter: new PlainConfigAdapter({}),
});
if (validationError) {
console.error(toTable(validationError));
process.exit(1);
}
}
bootstrap();
┌──────────────────┬─────────────┬─────────────┬───────────────┬────────────────────┐
│ Template │ Property │ Source │ Current Value │ Failed constraints │
├──────────────────┼─────────────┼─────────────┼───────────────┼────────────────────┤
│ │ port │ PORT │ not-a-port │ isInt │
│ ├─────────────┼─────────────┼───────────────┼────────────────────┤
│ StorageOptions │ db.url │ DB_URL │ undefined │ isString │
│ ├─────────────┼─────────────┼───────────────┼────────────────────┤
│ │ db.password │ DB_PASSWORD │ undefined │ isString │
├──────────────────┼─────────────┼─────────────┼───────────────┼────────────────────┤
│ NetworkOptions │ ipRange │ IP_RANGE │ undefined │ isDefined │
└──────────────────┴─────────────┴─────────────┴───────────────┴────────────────────┘
Source
column presents where property value was taken from.
Example: from env variables in case of Env Adapter.
This project is licensed under the MIT License - see the LICENSE file for details.
FAQs
Table validation presenter for unifig
We found that @unifig/validation-presenter-table demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.
Security News
Research
Socket's threat research team has detected five malicious npm packages targeting Roblox developers, deploying malware to steal credentials and personal data.