From 22927403b93d28319cd08181c721450f73565857 Mon Sep 17 00:00:00 2001 From: Steven Date: Fri, 3 Feb 2023 12:39:39 -0500 Subject: [PATCH] BREAKING CHANGE: bump minimum node version to 4 --- index.js | 3 +-- package.json | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/index.js b/index.js index 48cbb60..84822a4 100644 --- a/index.js +++ b/index.js @@ -1,6 +1,5 @@ "use strict" -var defaults = require('defaults') var combining = require('./combining') var DEFAULTS = { @@ -13,7 +12,7 @@ module.exports = function wcwidth(str) { } module.exports.config = function(opts) { - opts = defaults(opts || {}, DEFAULTS) + opts = Object.assign({}, DEFAULTS, opts) return function wcwidth(str) { return wcswidth(str, opts) } diff --git a/package.json b/package.json index eb2df9d..8c8ab6d 100644 --- a/package.json +++ b/package.json @@ -7,8 +7,8 @@ "Woong Jun (http://code.woong.org/)" ], "main": "index.js", - "dependencies": { - "defaults": "^1.0.3" + "engines": { + "node": ">=4" }, "devDependencies": { "tape": "^4.5.1"