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';
function bootstrap() {
const validationError = Config.registerSync({
templates: [StorageOptions, NetworkOptions],
adapter: new PlainConfigAdapter({}),
});
if (validationError) {
console.error(toTable(validationError));
process.exit(1);
}
}
bootstrap();
┌──────────────────┬─────────────┬────────┬─────────────┬───────────────┬────────────────────┐
│ Template │ Property │ Type │ Source │ Current Value │ Failed constraints │
├──────────────────┼─────────────┼────────┼─────────────┼───────────────┼────────────────────┤
│ │ port │ Number │ PORT │ "not-a-port" │ isInt │
│ ├─────────────┼────────┼─────────────┼───────────────┼────────────────────┤
│ TemplateMock │ db.url │ String │ DB_URL │ undefined │ isString │
│ ├─────────────┼────────┼─────────────┼───────────────┼────────────────────┤
│ │ db.password │ String │ DB_PASSWORD │ undefined │ isString │
└──────────────────┴─────────────┴────────┴─────────────┴───────────────┴────────────────────┘
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
The npm package @unifig/validation-presenter-table receives a total of 510 weekly downloads. As such, @unifig/validation-presenter-table popularity was classified as not popular.
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.