johnagan / clean-webpack-plugin
Showing 1 of 2 files from the diff.
Other files ignored by Codecov
README.md has changed.

@@ -48,7 +48,7 @@
Loading
48 48
     *
49 49
     * Use !negative patterns to exclude files
50 50
     *
51 -
     * default: disabled
51 +
     * default: []
52 52
     */
53 53
    cleanAfterEveryBuildPatterns?: string[];
54 54
@@ -62,6 +62,16 @@
Loading
62 62
    dangerouslyAllowCleanPatternsOutsideProject?: boolean;
63 63
}
64 64
65 +
// Copied from https://github.com/sindresorhus/is-plain-obj/blob/97480673cf12145b32ec2ee924980d66572e8a86/index.js
66 +
function isPlainObject(value: unknown): boolean {
67 +
    if (Object.prototype.toString.call(value) !== '[object Object]') {
68 +
        return false;
69 +
    }
70 +
71 +
    const prototype = Object.getPrototypeOf(value);
72 +
    return prototype === null || prototype === Object.getPrototypeOf({});
73 +
}
74 +
65 75
class CleanWebpackPlugin {
66 76
    private readonly dry: boolean;
67 77
    private readonly verbose: boolean;
@@ -75,7 +85,7 @@
Loading
75 85
    private outputPath: string;
76 86
77 87
    constructor(options: Options = {}) {
78 -
        if (typeof options !== 'object' || Array.isArray(options) === true) {
88 +
        if (isPlainObject(options) === false) {
79 89
            throw new Error(`clean-webpack-plugin only accepts an options object. See:
80 90
            https://github.com/johnagan/clean-webpack-plugin#options-and-defaults-optional`);
81 91
        }
Files Coverage
src/clean-webpack-plugin.ts 98.78%
Project Totals (1 files) 98.78%
pup8cgrdm4ehmr61
3wpa2eb0sk72v0p0
s4n4x4tij1kcp22v
43qv3ks8da613wl4
43qv3ks8da613wl4
43qv3ks8da613wl4
a06jcnklnftyrqnt
s4n4x4tij1kcp22v
s4n4x4tij1kcp22v
s4n4x4tij1kcp22v
pup8cgrdm4ehmr61
43qv3ks8da613wl4
pup8cgrdm4ehmr61
d046t39m8q23esgh
pup8cgrdm4ehmr61
d046t39m8q23esgh
d046t39m8q23esgh
ufq8iaiyiyh8tslc
ufq8iaiyiyh8tslc
ufq8iaiyiyh8tslc
a06jcnklnftyrqnt
a06jcnklnftyrqnt
3wpa2eb0sk72v0p0
3wpa2eb0sk72v0p0
d046t39m8q23esgh
8wbfc2b7ox5i3uit
8wbfc2b7ox5i3uit
8wbfc2b7ox5i3uit
8wbfc2b7ox5i3uit
3wpa2eb0sk72v0p0

No yaml found.

Create your codecov.yml to customize your Codecov experience

Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading