Skip to content

Commit 6a5f8a8

Browse files
committedNov 21, 2024
deps: debug@4.3.7
1 parent 72df313 commit 6a5f8a8

File tree

8 files changed

+14
-237
lines changed

8 files changed

+14
-237
lines changed
 

‎node_modules/.gitignore

-3
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,6 @@
8787
!/cross-spawn/node_modules/which
8888
!/cssesc
8989
!/debug
90-
!/debug/node_modules/
91-
/debug/node_modules/*
92-
!/debug/node_modules/ms
9390
!/defaults
9491
!/delegates
9592
!/diff

‎node_modules/debug/node_modules/ms/index.js

-162
This file was deleted.

‎node_modules/debug/node_modules/ms/license.md

-21
This file was deleted.

‎node_modules/debug/node_modules/ms/package.json

-37
This file was deleted.

‎node_modules/debug/package.json

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "debug",
3-
"version": "4.3.4",
3+
"version": "4.3.7",
44
"repository": {
55
"type": "git",
66
"url": "git://github.com/debug-js/debug.git"
@@ -16,7 +16,7 @@
1616
"LICENSE",
1717
"README.md"
1818
],
19-
"author": "Josh Junon <josh.junon@protonmail.com>",
19+
"author": "Josh Junon (https://github.com/qix-)",
2020
"contributors": [
2121
"TJ Holowaychuk <tj@vision-media.ca>",
2222
"Nathan Rajlich <nathan@tootallnate.net> (http://n8.io)",
@@ -26,12 +26,12 @@
2626
"scripts": {
2727
"lint": "xo",
2828
"test": "npm run test:node && npm run test:browser && npm run lint",
29-
"test:node": "istanbul cover _mocha -- test.js",
29+
"test:node": "istanbul cover _mocha -- test.js test.node.js",
3030
"test:browser": "karma start --single-run",
3131
"test:coverage": "cat ./coverage/lcov.info | coveralls"
3232
},
3333
"dependencies": {
34-
"ms": "2.1.2"
34+
"ms": "^2.1.3"
3535
},
3636
"devDependencies": {
3737
"brfs": "^2.0.1",
@@ -44,6 +44,7 @@
4444
"karma-mocha": "^1.3.0",
4545
"mocha": "^5.2.0",
4646
"mocha-lcov-reporter": "^1.2.0",
47+
"sinon": "^14.0.0",
4748
"xo": "^0.23.0"
4849
},
4950
"peerDependenciesMeta": {

‎node_modules/debug/src/browser.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -125,14 +125,16 @@ function useColors() {
125125
return false;
126126
}
127127

128+
let m;
129+
128130
// Is webkit? http://stackoverflow.com/a/16459606/376773
129131
// document is undefined in react-native: https://github.com/facebook/react-native/pull/1632
130132
return (typeof document !== 'undefined' && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance) ||
131133
// Is firebug? http://stackoverflow.com/a/398120/376773
132134
(typeof window !== 'undefined' && window.console && (window.console.firebug || (window.console.exception && window.console.table))) ||
133135
// Is firefox >= v31?
134136
// https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages
135-
(typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/) && parseInt(RegExp.$1, 10) >= 31) ||
137+
(typeof navigator !== 'undefined' && navigator.userAgent && (m = navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)) && parseInt(m[1], 10) >= 31) ||
136138
// Double check webkit in userAgent just in case we are in a worker
137139
(typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/));
138140
}

‎node_modules/debug/src/node.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -187,11 +187,11 @@ function getDate() {
187187
}
188188

189189
/**
190-
* Invokes `util.format()` with the specified arguments and writes to stderr.
190+
* Invokes `util.formatWithOptions()` with the specified arguments and writes to stderr.
191191
*/
192192

193193
function log(...args) {
194-
return process.stderr.write(util.format(...args) + '\n');
194+
return process.stderr.write(util.formatWithOptions(exports.inspectOpts, ...args) + '\n');
195195
}
196196

197197
/**

‎package-lock.json

+4-7
Original file line numberDiff line numberDiff line change
@@ -4504,11 +4504,13 @@
45044504
}
45054505
},
45064506
"node_modules/debug": {
4507-
"version": "4.3.4",
4507+
"version": "4.3.7",
4508+
"resolved": "https://registry.npmjs.org/debug/-/debug-4.3.7.tgz",
4509+
"integrity": "sha512-Er2nc/H7RrMXZBFCEim6TCmMk02Z8vLC2Rbi1KEBggpo0fS6l0S1nnapwmIi3yW/+GOJap1Krg4w0Hg80oCqgQ==",
45084510
"inBundle": true,
45094511
"license": "MIT",
45104512
"dependencies": {
4511-
"ms": "2.1.2"
4513+
"ms": "^2.1.3"
45124514
},
45134515
"engines": {
45144516
"node": ">=6.0"
@@ -4519,11 +4521,6 @@
45194521
}
45204522
}
45214523
},
4522-
"node_modules/debug/node_modules/ms": {
4523-
"version": "2.1.2",
4524-
"inBundle": true,
4525-
"license": "MIT"
4526-
},
45274524
"node_modules/decamelize": {
45284525
"version": "1.2.0",
45294526
"resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz",

0 commit comments

Comments
 (0)
Please sign in to comment.