Skip to content

Commit 39682de

Browse files
committed
Rename boxenOpts option to boxenOptions
1 parent bc1721a commit 39682de

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -151,15 +151,15 @@ class UpdateNotifier {
151151
options.message = options.message || 'Update available ' + chalk().dim(this.update.current) + chalk().reset(' → ') +
152152
chalk().green(this.update.latest) + ' \nRun ' + chalk().cyan(installCommand) + ' to update';
153153

154-
options.boxenOpts = options.boxenOpts || {
154+
options.boxenOptions = options.boxenOptions || {
155155
padding: 1,
156156
margin: 1,
157157
align: 'center',
158158
borderColor: 'yellow',
159159
borderStyle: 'round'
160160
};
161161

162-
const message = '\n' + boxen()(options.message, options.boxenOpts);
162+
const message = '\n' + boxen()(options.message, options.boxenOptions);
163163

164164
if (options.defer === false) {
165165
console.error(message);

readme.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ Default: Auto-detect
158158

159159
Include the `-g` argument in the default message's `npm i` recommendation. You may want to change this if your CLI package can be installed as a dependency of another project, and don't want to recommend a global installation. This option is ignored if you supply your own `message` (see above).
160160

161-
##### boxenOpts
161+
##### boxenOptions
162162

163163
Type: `object`\
164164
Default: `{padding: 1, margin: 1, align: 'center', borderColor: 'yellow', borderStyle: 'round'}` *(See screenshot)*

0 commit comments

Comments
 (0)