From a0497bd46dacb701437f62cfc065dc72bf0952c7 Mon Sep 17 00:00:00 2001 From: Prabhat Dahal Date: Fri, 21 Mar 2025 10:44:33 -0500 Subject: [PATCH 1/4] Replace whitespaces in namespaces string with commas globally instead of just the first space occurrence. (#997) Co-authored-by: Prabhat Dahal --- src/common.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common.js b/src/common.js index 528c7ecf..141cb578 100644 --- a/src/common.js +++ b/src/common.js @@ -168,7 +168,7 @@ function setup(env) { const split = (typeof namespaces === 'string' ? namespaces : '') .trim() - .replace(' ', ',') + .replace(/\s+/g, ',') .split(',') .filter(Boolean); From bf2f574c3e588ce4b660bf4e392e7a5e788640c0 Mon Sep 17 00:00:00 2001 From: Luke Zilioli Date: Sun, 23 Mar 2025 18:28:01 -0400 Subject: [PATCH 2/4] fixes #987 fallback to localStorage.DEBUG if debug is not defined (#988) --- src/browser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/browser.js b/src/browser.js index df8e179e..5993451b 100644 --- a/src/browser.js +++ b/src/browser.js @@ -219,7 +219,7 @@ function save(namespaces) { function load() { let r; try { - r = exports.storage.getItem('debug'); + r = exports.storage.getItem('debug') || exports.storage.getItem('DEBUG') ; } catch (error) { // Swallow // XXX (@Qix-) should we be logging these? From 98df33ed9d5215c1d801b74e6ab00969759a6839 Mon Sep 17 00:00:00 2001 From: Josh Junon Date: Tue, 13 May 2025 22:53:29 +0200 Subject: [PATCH 3/4] remove istanbul --- package.json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/package.json b/package.json index 60dfcf57..20d2b670 100644 --- a/package.json +++ b/package.json @@ -26,7 +26,7 @@ "scripts": { "lint": "xo", "test": "npm run test:node && npm run test:browser && npm run lint", - "test:node": "istanbul cover _mocha -- test.js test.node.js", + "test:node": "mocha test.js test.node.js", "test:browser": "karma start --single-run", "test:coverage": "cat ./coverage/lcov.info | coveralls" }, @@ -37,7 +37,6 @@ "brfs": "^2.0.1", "browserify": "^16.2.3", "coveralls": "^3.0.2", - "istanbul": "^0.4.5", "karma": "^3.1.4", "karma-browserify": "^6.0.0", "karma-chrome-launcher": "^2.2.0", From 33330fa8616b9b33f29f7674747be77266878ba6 Mon Sep 17 00:00:00 2001 From: Josh Junon Date: Tue, 13 May 2025 22:55:39 +0200 Subject: [PATCH 4/4] 4.4.1 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 20d2b670..afc2f8b6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "debug", - "version": "4.4.0", + "version": "4.4.1", "repository": { "type": "git", "url": "git://github.com/debug-js/debug.git"