UNPKG

@cyclonedx/webpack-plugin

Version:

Creates CycloneDX Software Bill of Materials (SBoM) from webpack projects

36 lines (31 loc) 1.56 kB
/*! This file is part of CycloneDX Webpack plugin. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. SPDX-License-Identifier: Apache-2.0 Copyright (c) OWASP Foundation. All Rights Reserved. */ import normalizePackageData from 'normalize-package-data'; export declare function isNonNullable<T>(value: T): value is NonNullable<T>; export declare const structuredClonePolyfill: <T>(value: T) => T; export interface ValidPackageJSON { name: string; version: string; } export interface PackageDescription { path: string; packageJson: NonNullable<any>; } export declare function getPackageDescription(path: string): PackageDescription | undefined; export declare function isValidPackageJSON(pkg: any): pkg is ValidPackageJSON; export declare function loadJsonFile(path: string): any; export declare function iterableSome<T>(i: Iterable<T>, t: (v: T) => boolean): boolean; export declare function isString(v: any): v is string; export declare function normalizePackageManifest(data: any, warn?: normalizePackageData.WarnFn): asserts data is normalizePackageData.Package;