webpack-log
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -28,6 +28,13 @@ 'use strict'; | ||
const opts = Object.assign({}, defaults, options); | ||
const { id } = options; | ||
delete opts.id; | ||
Object.defineProperty(opts, 'id', { | ||
get() { | ||
return this.name + (opts.unique ? `-${uuid()}` : ''); | ||
if (!id) { | ||
return this.name + (opts.unique ? `-${uuid()}` : ''); | ||
} | ||
return id; | ||
} | ||
@@ -34,0 +41,0 @@ }); |
{ | ||
"name": "webpack-log", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "A common logging module for the Webpack ecosystem", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
7224
55