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

@unifig/core

Package Overview
Dependencies
Maintainers
1
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@unifig/core - npm Package Compare versions

Comparing version 0.9.0 to 0.10.0

dist/validator/errors/validation.error.d.ts

4

dist/manager/manager.d.ts
import { DeepReadonly } from '../utils';
import { ClassConstructor } from '../utils/class-constructor.interface';
import { ConfigValidationException } from '../validator';
import { ConfigValidationError } from '../validator';
import { ConfigManagerRegisterOptions } from './manager.options';
import { ConfigContainer } from './container';
export interface ConfigManager {
register(...configs: ConfigManagerRegisterOptions[]): Promise<ConfigValidationException | undefined>;
register(...configs: ConfigManagerRegisterOptions[]): Promise<ConfigValidationError | undefined>;
registerOrReject(...configs: ConfigManagerRegisterOptions[]): Promise<void>;

@@ -9,0 +9,0 @@ /**

@@ -13,3 +13,3 @@ import 'reflect-metadata';

constructor(_validator: Validator, _sourceGroupFactory: typeof sourceGroupFactory);
register(...configs: ConfigManagerRegisterOptions[]): Promise<import("..").ConfigValidationException | undefined>;
register(...configs: ConfigManagerRegisterOptions[]): Promise<import("..").ConfigValidationError | undefined>;
registerOrReject(...configs: ConfigManagerRegisterOptions[]): Promise<void>;

@@ -16,0 +16,0 @@ private initSourceGroups;

@@ -5,2 +5,2 @@ export * from './failed-constraint';

export * from './template.validation.error';
export * from './validation.exception';
export * from './validation.error';

@@ -21,2 +21,2 @@ "use strict";

__exportStar(require("./template.validation.error"), exports);
__exportStar(require("./validation.exception"), exports);
__exportStar(require("./validation.error"), exports);

@@ -1,4 +0,4 @@

import { ConfigValidationException } from './errors/validation.exception';
import { ConfigValidationError } from './errors/validation.error';
export interface Validator {
validate(configs: object[]): ConfigValidationException | undefined;
validate(configs: object[]): ConfigValidationError | undefined;
}

@@ -1,5 +0,5 @@

import { ConfigValidationException } from './errors/validation.exception';
import { ConfigValidationError } from './errors/validation.error';
import { Validator } from './validator';
export declare class ClassValidator implements Validator {
validate(configs: object[]): ConfigValidationException | undefined;
validate(configs: object[]): ConfigValidationError | undefined;
private validateTemplate;

@@ -6,0 +6,0 @@ private toPropertyError;

@@ -9,3 +9,3 @@ "use strict";

const template_validation_error_1 = require("./errors/template.validation.error");
const validation_exception_1 = require("./errors/validation.exception");
const validation_error_1 = require("./errors/validation.error");
class ClassValidator {

@@ -17,3 +17,3 @@ validate(configs) {

if (failedValidations.length > 0) {
return new validation_exception_1.ConfigValidationException(failedValidations);
return new validation_error_1.ConfigValidationError(failedValidations);
}

@@ -20,0 +20,0 @@ }

{
"name": "@unifig/core",
"version": "0.9.0",
"version": "0.10.0",
"description": "Universal, typed and validated configuration manager",

@@ -43,3 +43,3 @@ "keywords": [

},
"gitHead": "96e86841d0ba989689aca84b570ab63415b99b1a"
"gitHead": "b195b87eb87e091f5845fa9e9e2c874ca32c2ab4"
}
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