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

@boost/common

Package Overview
Dependencies
Maintainers
1
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@boost/common - npm Package Compare versions

Comparing version 4.0.0 to 4.1.0

./cjs/index.cjs

2

dts/CommonError.d.ts

@@ -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

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