@boost/common
Advanced tools
Comparing version 4.0.0 to 4.1.0
@@ -7,5 +7,5 @@ declare const errors: { | ||
}; | ||
export declare type CommonErrorCode = keyof typeof errors; | ||
export type CommonErrorCode = keyof typeof errors; | ||
export declare const CommonError: new (code: "PARSE_INVALID_EXT" | "PATH_REQUIRE_ABSOLUTE" | "PATH_RESOLVE_LOOKUPS" | "PROJECT_NO_PACKAGE", params?: unknown[] | undefined) => Error & import("@boost/internal").ScopedError<"PARSE_INVALID_EXT" | "PATH_REQUIRE_ABSOLUTE" | "PATH_RESOLVE_LOOKUPS" | "PROJECT_NO_PACKAGE">; | ||
export {}; | ||
//# sourceMappingURL=CommonError.d.ts.map |
@@ -32,4 +32,4 @@ import { Blueprint, Schemas } from 'optimal'; | ||
*/ | ||
abstract blueprint(schemas: Schemas, onConstruction?: boolean): Blueprint<object>; | ||
abstract blueprint(_schemas: Schemas, onConstruction?: boolean): Blueprint<object>; | ||
} | ||
//# sourceMappingURL=Contract.d.ts.map |
@@ -1,5 +0,5 @@ | ||
export declare type MergableArray = unknown[]; | ||
export declare type MergableObject = Record<string, unknown>; | ||
export declare type Mergeable = MergableArray | MergableObject; | ||
export declare type InferMergeable<T> = T extends unknown[] ? MergableArray : T extends object ? MergableObject : never; | ||
export type MergableArray = unknown[]; | ||
export type MergableObject = Record<string, unknown>; | ||
export type Mergeable = MergableArray | MergableObject; | ||
export type InferMergeable<T> = T extends unknown[] ? MergableArray : T extends object ? MergableObject : never; | ||
/** | ||
@@ -6,0 +6,0 @@ * Can be used to recursively merge objects and arrays, where values on the |
import { PortablePath } from '../types'; | ||
export declare type JSONReviver = (key: string, value: unknown) => unknown; | ||
export type JSONReviver = (key: string, value: unknown) => unknown; | ||
export interface JSONStringifyOptions { | ||
@@ -4,0 +4,0 @@ space?: number | string | null; |
@@ -7,7 +7,7 @@ import type { Blueprint, Schemas } from 'optimal'; | ||
} | ||
export declare type PortablePath = FilePath | ModuleID | Pathable; | ||
export declare type ModuleID = string; | ||
export declare type ModuleResolver = (id: ModuleID, startDir?: FilePath) => FilePath | Promise<FilePath>; | ||
export declare type FilePath = string; | ||
export declare type LookupType = 'file-system' | 'node-module'; | ||
export type PortablePath = FilePath | ModuleID | Pathable; | ||
export type ModuleID = string; | ||
export type ModuleResolver = (id: ModuleID, startDir?: FilePath) => FilePath | Promise<FilePath>; | ||
export type FilePath = string; | ||
export type LookupType = 'file-system' | 'node-module'; | ||
export interface Lookup { | ||
@@ -26,6 +26,6 @@ path: Pathable; | ||
} | ||
export declare type AbstractConstructor<T> = abstract new (...args: any[]) => T; | ||
export declare type ConcreteConstructor<T> = new (...args: any[]) => T; | ||
export declare type Constructor<T> = AbstractConstructor<T> | ConcreteConstructor<T>; | ||
export declare type BlueprintFactory<T extends object> = (schemas: Schemas, onConstruction?: boolean) => Blueprint<T>; | ||
export type AbstractConstructor<T> = abstract new (...args: any[]) => T; | ||
export type ConcreteConstructor<T> = new (...args: any[]) => T; | ||
export type Constructor<T> = AbstractConstructor<T> | ConcreteConstructor<T>; | ||
export type BlueprintFactory<T extends object> = (schemas: Schemas, onConstruction?: boolean) => Blueprint<T>; | ||
export interface Optionable<T extends object = {}> { | ||
@@ -43,4 +43,4 @@ /** Validated and configured options. */ | ||
} | ||
export declare type SettingMap<T extends string = string> = Record<T, string>; | ||
export declare type ConfigSetting = Record<string, boolean | number | string | null>; | ||
export type SettingMap<T extends string = string> = Record<T, string>; | ||
export type ConfigSetting = Record<string, boolean | number | string | null>; | ||
export interface BugSetting { | ||
@@ -50,3 +50,3 @@ url?: string; | ||
} | ||
export declare type DependencyMap = SettingMap; | ||
export type DependencyMap = SettingMap; | ||
export interface DependencyMetaSetting { | ||
@@ -53,0 +53,0 @@ built?: boolean; |
{ | ||
"name": "@boost/common", | ||
"version": "4.0.0", | ||
"version": "4.1.0", | ||
"type": "commonjs", | ||
@@ -36,16 +36,16 @@ "release": "1651512176767", | ||
"@boost/decorators": "^4.0.0", | ||
"@boost/internal": "^4.0.0", | ||
"fast-glob": "^3.2.11", | ||
"json5": "^2.2.1", | ||
"@boost/internal": "^4.0.1", | ||
"fast-glob": "^3.2.12", | ||
"json5": "^2.2.3", | ||
"optimal": "^5.1.1", | ||
"pretty-ms": "^7.0.1", | ||
"resolve": "^1.22.1", | ||
"yaml": "^2.1.1" | ||
"yaml": "^2.2.2" | ||
}, | ||
"devDependencies": { | ||
"@boost/test-utils": "^4.0.0", | ||
"@boost/test-utils": "^4.0.1", | ||
"@types/resolve": "^1.20.2" | ||
}, | ||
"peerDependencies": { | ||
"typescript": "^4.0.0" | ||
"typescript": "^4.0.0 || ^5.0.0" | ||
}, | ||
@@ -95,3 +95,3 @@ "peerDependenciesMeta": { | ||
}, | ||
"gitHead": "07f3182e14af6b7637b23f69fbe3c735835312a9" | ||
"gitHead": "fd64842195c9e1c72e726800f004bdc80fa682f8" | ||
} |
@@ -51,3 +51,3 @@ import { Blueprint, DeepPartial, optimal, Schemas, schemas } from 'optimal'; | ||
*/ | ||
abstract blueprint(schemas: Schemas, onConstruction?: boolean): Blueprint<object>; | ||
abstract blueprint(_schemas: Schemas, onConstruction?: boolean): Blueprint<object>; | ||
} |
@@ -24,7 +24,3 @@ import { isPlainObject } from './isPlainObject'; | ||
// Only freeze plain objects | ||
if (isPlainObject(value, true)) { | ||
nextObj[key] = deepFreeze(value); | ||
} else { | ||
nextObj[key] = value; | ||
} | ||
nextObj[key] = isPlainObject(value, true) ? deepFreeze(value) : value; | ||
}); | ||
@@ -31,0 +27,0 @@ |
@@ -15,3 +15,3 @@ /** | ||
export function toArray<T = unknown>(value?: T | T[]): T[] { | ||
if (typeof value === 'undefined') { | ||
if (value === undefined) { | ||
return []; | ||
@@ -18,0 +18,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
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
267891
121
6281
+ Addedtypescript@5.7.2(transitive)
- Removedtypescript@4.9.5(transitive)
Updated@boost/internal@^4.0.1
Updatedfast-glob@^3.2.12
Updatedjson5@^2.2.3
Updatedyaml@^2.2.2