muhammara 2.0.0 → 2.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (111) hide show
  1. package/CHANGELOG.md +28 -1
  2. package/README.md +2 -2
  3. package/node_modules/@mapbox/node-pre-gyp/CHANGELOG.md +10 -0
  4. package/node_modules/@mapbox/node-pre-gyp/lib/util/abi_crosswalk.json +16 -0
  5. package/node_modules/@mapbox/node-pre-gyp/lib/util/versioning.js +1 -1
  6. package/node_modules/@mapbox/node-pre-gyp/package.json +10 -11
  7. package/node_modules/ansi-regex/index.d.ts +37 -0
  8. package/node_modules/ansi-regex/index.js +4 -4
  9. package/node_modules/ansi-regex/package.json +17 -15
  10. package/node_modules/ansi-regex/readme.md +35 -3
  11. package/node_modules/brace-expansion/package.json +2 -1
  12. package/node_modules/debug/LICENSE +10 -9
  13. package/node_modules/debug/README.md +27 -1
  14. package/node_modules/debug/package.json +15 -15
  15. package/node_modules/debug/src/common.js +2 -2
  16. package/node_modules/detect-libc/README.md +124 -42
  17. package/node_modules/detect-libc/index.d.ts +11 -0
  18. package/node_modules/detect-libc/lib/detect-libc.js +166 -80
  19. package/node_modules/detect-libc/lib/process.js +16 -0
  20. package/node_modules/detect-libc/package.json +20 -19
  21. package/node_modules/emoji-regex/LICENSE-MIT.txt +20 -0
  22. package/node_modules/emoji-regex/README.md +73 -0
  23. package/node_modules/emoji-regex/es2015/index.js +6 -0
  24. package/node_modules/emoji-regex/es2015/text.js +6 -0
  25. package/node_modules/emoji-regex/index.d.ts +23 -0
  26. package/node_modules/emoji-regex/index.js +6 -0
  27. package/node_modules/emoji-regex/package.json +77 -0
  28. package/node_modules/emoji-regex/text.js +6 -0
  29. package/node_modules/gauge/package.json +7 -7
  30. package/node_modules/https-proxy-agent/dist/agent.js +2 -5
  31. package/node_modules/https-proxy-agent/dist/agent.js.map +1 -1
  32. package/node_modules/https-proxy-agent/package.json +5 -5
  33. package/node_modules/is-fullwidth-code-point/index.d.ts +17 -0
  34. package/node_modules/is-fullwidth-code-point/index.js +25 -21
  35. package/node_modules/is-fullwidth-code-point/license +4 -16
  36. package/node_modules/is-fullwidth-code-point/package.json +18 -24
  37. package/node_modules/is-fullwidth-code-point/readme.md +6 -6
  38. package/node_modules/minimatch/README.md +22 -1
  39. package/node_modules/minimatch/minimatch.js +93 -69
  40. package/node_modules/minimatch/package.json +11 -10
  41. package/node_modules/minipass/index.js +6 -1
  42. package/node_modules/minipass/package.json +5 -5
  43. package/node_modules/node-fetch/lib/index.es.js +29 -3
  44. package/node_modules/node-fetch/lib/index.js +29 -3
  45. package/node_modules/node-fetch/lib/index.mjs +29 -3
  46. package/node_modules/node-fetch/package.json +18 -10
  47. package/node_modules/semver/README.md +3 -1
  48. package/node_modules/semver/bin/semver.js +19 -9
  49. package/node_modules/semver/classes/comparator.js +3 -2
  50. package/node_modules/semver/classes/index.js +1 -1
  51. package/node_modules/semver/classes/range.js +31 -22
  52. package/node_modules/semver/classes/semver.js +1 -1
  53. package/node_modules/semver/functions/cmp.js +8 -4
  54. package/node_modules/semver/functions/coerce.js +3 -2
  55. package/node_modules/semver/functions/inc.js +4 -1
  56. package/node_modules/semver/functions/parse.js +1 -1
  57. package/node_modules/semver/internal/constants.js +2 -2
  58. package/node_modules/semver/internal/identifiers.js +1 -1
  59. package/node_modules/semver/internal/parse-options.js +3 -3
  60. package/node_modules/semver/internal/re.js +3 -3
  61. package/node_modules/semver/package.json +46 -13
  62. package/node_modules/semver/ranges/min-version.js +2 -1
  63. package/node_modules/semver/ranges/outside.js +1 -1
  64. package/node_modules/semver/ranges/simplify.js +15 -12
  65. package/node_modules/semver/ranges/subset.js +53 -31
  66. package/node_modules/signal-exit/index.js +34 -10
  67. package/node_modules/signal-exit/package.json +11 -9
  68. package/node_modules/string-width/index.d.ts +29 -0
  69. package/node_modules/string-width/index.js +16 -5
  70. package/node_modules/string-width/package.json +20 -20
  71. package/node_modules/string-width/readme.md +15 -7
  72. package/node_modules/strip-ansi/index.d.ts +17 -0
  73. package/node_modules/strip-ansi/index.js +1 -1
  74. package/node_modules/strip-ansi/package.json +19 -17
  75. package/node_modules/strip-ansi/readme.md +12 -5
  76. package/package.json +1 -1
  77. package/src/DocumentCopyingContextDriver.cpp +6 -6
  78. package/src/deps/PDFWriter/CMakeLists.txt +8 -0
  79. package/src/deps/PDFWriter/DecryptionHelper.cpp +10 -8
  80. package/src/deps/PDFWriter/Deletable.h +46 -0
  81. package/src/deps/PDFWriter/DocumentContext.h +3 -3
  82. package/src/deps/PDFWriter/IDeletable.h +6 -0
  83. package/src/deps/PDFWriter/InputLZWDecodeStream.cpp +208 -0
  84. package/src/deps/PDFWriter/InputLZWDecodeStream.h +77 -0
  85. package/src/deps/PDFWriter/InputStreamSkipperStream.cpp +1 -1
  86. package/src/deps/PDFWriter/JPEGImageHandler.h +2 -2
  87. package/src/deps/PDFWriter/ObjectsContext.cpp +5 -0
  88. package/src/deps/PDFWriter/ObjectsContext.h +1 -0
  89. package/src/deps/PDFWriter/PDFDocumentHandler.cpp +19 -3
  90. package/src/deps/PDFWriter/PDFObject.cpp +13 -11
  91. package/src/deps/PDFWriter/PDFObject.h +7 -5
  92. package/src/deps/PDFWriter/PDFObjectParser.cpp +8 -0
  93. package/src/deps/PDFWriter/PDFObjectParser.h +6 -0
  94. package/src/deps/PDFWriter/PDFParser.cpp +25 -13
  95. package/src/deps/PDFWriter/PDFParserTokenizer.cpp +25 -24
  96. package/src/deps/PDFWriter/PDFParserTokenizer.h +1 -0
  97. package/src/deps/PDFWriter/PDFWriter.h +2 -2
  98. package/src/deps/PDFWriter/binding.gyp +2 -0
  99. package/node_modules/detect-libc/.npmignore +0 -7
  100. package/node_modules/detect-libc/bin/detect-libc.js +0 -18
  101. package/node_modules/semver/CHANGELOG.md +0 -111
  102. package/src/deps/PDFWriter/InputPredictorPNGAverageStream.cpp +0 -120
  103. package/src/deps/PDFWriter/InputPredictorPNGAverageStream.h +0 -49
  104. package/src/deps/PDFWriter/InputPredictorPNGNoneStream.cpp +0 -109
  105. package/src/deps/PDFWriter/InputPredictorPNGNoneStream.h +0 -47
  106. package/src/deps/PDFWriter/InputPredictorPNGPaethStream.cpp +0 -136
  107. package/src/deps/PDFWriter/InputPredictorPNGPaethStream.h +0 -51
  108. package/src/deps/PDFWriter/InputPredictorPNGSubStream.cpp +0 -113
  109. package/src/deps/PDFWriter/InputPredictorPNGSubStream.h +0 -47
  110. package/src/deps/PDFWriter/InputPredictorPNGUpStream.cpp +0 -120
  111. package/src/deps/PDFWriter/InputPredictorPNGUpStream.h +0 -49
package/CHANGELOG.md CHANGED
@@ -7,6 +7,30 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [2.3.0] - 2022-05-04
11
+
12
+ ### Added
13
+
14
+ - Builds for node and electron with arm64 on darwin (Apple M1)
15
+ - Add electron 18
16
+
17
+ ## [2.2.0] - 2022-03-05
18
+
19
+ ### Changed
20
+
21
+ - Update PDFWriter dependency to the newest available versoin
22
+
23
+ ### Added
24
+
25
+ - Electron version: 17.0, 17.1
26
+ - NodeJs 17.6.0
27
+
28
+ ## [2.1.0] - 2021-12-03
29
+
30
+ ### Added
31
+
32
+ - Electron versions: 16.0, 15.3, 15.2, 14.2, 13.6, 13.3
33
+
10
34
  ## [2.0.0] - 2021-10-22
11
35
 
12
36
  ### Removed
@@ -189,7 +213,10 @@ with the following changes.
189
213
 
190
214
  * Initial release
191
215
 
192
- [Unreleased]: https://github.com/julianhille/MuhammaraJS/compare/2.0.0...HEAD
216
+ [Unreleased]: https://github.com/julianhille/MuhammaraJS/compare/2.3.0...HEAD
217
+ [2.3.0]: https://github.com/julianhille/MuhammaraJS/compare/2.2.0...2.3.0
218
+ [2.2.0]: https://github.com/julianhille/MuhammaraJS/compare/2.1.0...2.2.0
219
+ [2.1.0]: https://github.com/julianhille/MuhammaraJS/compare/2.0.0...2.1.0
193
220
  [2.0.0]: https://github.com/julianhille/MuhammaraJS/compare/1.10.0...2.0.0
194
221
  [1.10.0]: https://github.com/julianhille/MuhammaraJS/compare/1.9.0...1.10.0
195
222
  [1.9.0]: https://github.com/julianhille/MuhammaraJS/compare/1.8.0...1.9.0
package/README.md CHANGED
@@ -25,7 +25,7 @@ electron versions because we needed to upgrade node-pre-gyp.
25
25
  # Installation
26
26
 
27
27
  ```
28
- npm install
28
+ npm install muhammara
29
29
 
30
30
  ```
31
31
 
@@ -34,7 +34,7 @@ npm install
34
34
  Replace:
35
35
 
36
36
  ```
37
- let hummus = require('humms')
37
+ let hummus = require('hummus')
38
38
  ```
39
39
 
40
40
  With:
@@ -1,5 +1,15 @@
1
1
  # node-pre-gyp changelog
2
2
 
3
+ ## 1.0.9
4
+ - Upgraded node-fetch to 2.6.7 to address [CVE-2022-0235](https://www.cve.org/CVERecord?id=CVE-2022-0235)
5
+ - Upgraded detect-libc to 2.0.0 to use non-blocking NodeJS(>=12) Report API
6
+
7
+ ## 1.0.8
8
+ - Downgraded npmlog to maintain node v10 and v8 support (https://github.com/mapbox/node-pre-gyp/pull/624)
9
+
10
+ ## 1.0.7
11
+ - Upgraded nyc and npmlog to address https://github.com/advisories/GHSA-93q8-gq69-wqmw
12
+
3
13
  ## 1.0.6
4
14
  - Added node v17 to the internal node releases listing
5
15
  - Upgraded various dependencies declared in package.json to latest major versions (node-fetch from 2.6.1 to 2.6.5, npmlog from 4.1.2 to 5.01, semver from 7.3.4 to 7.3.5, and tar from 6.1.0 to 6.1.11)
@@ -2579,8 +2579,24 @@
2579
2579
  "node_abi": 93,
2580
2580
  "v8": "9.4"
2581
2581
  },
2582
+ "16.12.0": {
2583
+ "node_abi": 93,
2584
+ "v8": "9.4"
2585
+ },
2586
+ "16.13.0": {
2587
+ "node_abi": 93,
2588
+ "v8": "9.4"
2589
+ },
2582
2590
  "17.0.0": {
2583
2591
  "node_abi": 102,
2584
2592
  "v8": "9.5"
2593
+ },
2594
+ "17.0.1": {
2595
+ "node_abi": 102,
2596
+ "v8": "9.5"
2597
+ },
2598
+ "17.1.0": {
2599
+ "node_abi": 102,
2600
+ "v8": "9.5"
2585
2601
  }
2586
2602
  }
@@ -302,7 +302,7 @@ module.exports.evaluate = function(package_json, options, napi_build_version) {
302
302
  target_platform: options.target_platform || process.platform,
303
303
  arch: options.target_arch || process.arch,
304
304
  target_arch: options.target_arch || process.arch,
305
- libc: options.target_libc || detect_libc.family || 'unknown',
305
+ libc: options.target_libc || detect_libc.familySync() || 'unknown',
306
306
  module_main: package_json.main,
307
307
  toolset: options.toolset || '', // address https://github.com/mapbox/node-pre-gyp/issues/119
308
308
  bucket: package_json.binary.bucket,
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "_from": "@mapbox/node-pre-gyp@^1.0.5",
3
- "_id": "@mapbox/node-pre-gyp@1.0.6",
3
+ "_id": "@mapbox/node-pre-gyp@1.0.9",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-qK1ECws8UxuPqOA8F5LFD90vyVU33W7N3hGfgsOVfrJaRVc8McC3JClTDHpeSbL9CBrOHly/4GsNPAvIgNZE+g==",
5
+ "_integrity": "sha512-aDF3S3rK9Q2gey/WAttUlISduDItz5BU3306M9Eyv6/oS40aMprnopshtlKTykxRNIBEZuRMaZAnbrQ4QtKGyw==",
6
6
  "_location": "/@mapbox/node-pre-gyp",
7
7
  "_phantomChildren": {},
8
8
  "_requested": {
@@ -19,8 +19,8 @@
19
19
  "_requiredBy": [
20
20
  "/"
21
21
  ],
22
- "_resolved": "https://registry.npmjs.org/@mapbox/node-pre-gyp/-/node-pre-gyp-1.0.6.tgz",
23
- "_shasum": "f859d601a210537e27530f363028cde56e0cf962",
22
+ "_resolved": "https://registry.npmjs.org/@mapbox/node-pre-gyp/-/node-pre-gyp-1.0.9.tgz",
23
+ "_shasum": "09a8781a3a036151cdebbe8719d6f8b25d4058bc",
24
24
  "_spec": "@mapbox/node-pre-gyp@^1.0.5",
25
25
  "_where": "/home/runner/work/MuhammaraJS/MuhammaraJS",
26
26
  "author": {
@@ -35,10 +35,10 @@
35
35
  },
36
36
  "bundleDependencies": false,
37
37
  "dependencies": {
38
- "detect-libc": "^1.0.3",
38
+ "detect-libc": "^2.0.0",
39
39
  "https-proxy-agent": "^5.0.0",
40
40
  "make-dir": "^3.1.0",
41
- "node-fetch": "^2.6.5",
41
+ "node-fetch": "^2.6.7",
42
42
  "nopt": "^5.0.0",
43
43
  "npmlog": "^5.0.1",
44
44
  "rimraf": "^3.0.2",
@@ -50,16 +50,15 @@
50
50
  "devDependencies": {
51
51
  "@mapbox/cloudfriend": "^5.1.0",
52
52
  "@mapbox/eslint-config-mapbox": "^3.0.0",
53
- "action-walk": "^2.2.0",
54
- "aws-sdk": "^2.1012.0",
53
+ "aws-sdk": "^2.1087.0",
55
54
  "codecov": "^3.8.3",
56
55
  "eslint": "^7.32.0",
57
56
  "eslint-plugin-node": "^11.1.0",
58
57
  "mock-aws-s3": "^4.0.2",
59
58
  "nock": "^12.0.3",
60
- "node-addon-api": "^4.2.0",
59
+ "node-addon-api": "^4.3.0",
61
60
  "nyc": "^15.1.0",
62
- "tape": "^5.3.1",
61
+ "tape": "^5.5.2",
63
62
  "tar-fs": "^2.1.1"
64
63
  },
65
64
  "homepage": "https://github.com/mapbox/node-pre-gyp#readme",
@@ -94,5 +93,5 @@
94
93
  "update-crosswalk": "node scripts/abi_crosswalk.js",
95
94
  "upload-coverage": "nyc report --reporter json && codecov --clear --flags=unit --file=./coverage/coverage-final.json"
96
95
  },
97
- "version": "1.0.6"
96
+ "version": "1.0.9"
98
97
  }
@@ -0,0 +1,37 @@
1
+ declare namespace ansiRegex {
2
+ interface Options {
3
+ /**
4
+ Match only the first ANSI escape.
5
+
6
+ @default false
7
+ */
8
+ onlyFirst: boolean;
9
+ }
10
+ }
11
+
12
+ /**
13
+ Regular expression for matching ANSI escape codes.
14
+
15
+ @example
16
+ ```
17
+ import ansiRegex = require('ansi-regex');
18
+
19
+ ansiRegex().test('\u001B[4mcake\u001B[0m');
20
+ //=> true
21
+
22
+ ansiRegex().test('cake');
23
+ //=> false
24
+
25
+ '\u001B[4mcake\u001B[0m'.match(ansiRegex());
26
+ //=> ['\u001B[4m', '\u001B[0m']
27
+
28
+ '\u001B[4mcake\u001B[0m'.match(ansiRegex({onlyFirst: true}));
29
+ //=> ['\u001B[4m']
30
+
31
+ '\u001B]8;;https://github.com\u0007click\u001B]8;;\u0007'.match(ansiRegex());
32
+ //=> ['\u001B]8;;https://github.com\u0007', '\u001B]8;;\u0007']
33
+ ```
34
+ */
35
+ declare function ansiRegex(options?: ansiRegex.Options): RegExp;
36
+
37
+ export = ansiRegex;
@@ -1,10 +1,10 @@
1
1
  'use strict';
2
2
 
3
- module.exports = () => {
3
+ module.exports = ({onlyFirst = false} = {}) => {
4
4
  const pattern = [
5
- '[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[a-zA-Z\\d]*)*)?\\u0007)',
6
- '(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PRZcf-ntqry=><~]))'
5
+ '[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)',
6
+ '(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))'
7
7
  ].join('|');
8
8
 
9
- return new RegExp(pattern, 'g');
9
+ return new RegExp(pattern, onlyFirst ? undefined : 'g');
10
10
  };
@@ -1,26 +1,26 @@
1
1
  {
2
- "_from": "ansi-regex@^3.0.0",
3
- "_id": "ansi-regex@3.0.0",
2
+ "_from": "ansi-regex@^5.0.1",
3
+ "_id": "ansi-regex@5.0.1",
4
4
  "_inBundle": false,
5
- "_integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=",
5
+ "_integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",
6
6
  "_location": "/ansi-regex",
7
7
  "_phantomChildren": {},
8
8
  "_requested": {
9
9
  "type": "range",
10
10
  "registry": true,
11
- "raw": "ansi-regex@^3.0.0",
11
+ "raw": "ansi-regex@^5.0.1",
12
12
  "name": "ansi-regex",
13
13
  "escapedName": "ansi-regex",
14
- "rawSpec": "^3.0.0",
14
+ "rawSpec": "^5.0.1",
15
15
  "saveSpec": null,
16
- "fetchSpec": "^3.0.0"
16
+ "fetchSpec": "^5.0.1"
17
17
  },
18
18
  "_requiredBy": [
19
19
  "/strip-ansi"
20
20
  ],
21
- "_resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.0.tgz",
22
- "_shasum": "ed0317c322064f79466c02966bddb605ab37d998",
23
- "_spec": "ansi-regex@^3.0.0",
21
+ "_resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",
22
+ "_shasum": "082cb2c89c9fe8659a311a53bd6a4dc5301db304",
23
+ "_spec": "ansi-regex@^5.0.1",
24
24
  "_where": "/home/runner/work/MuhammaraJS/MuhammaraJS/node_modules/strip-ansi",
25
25
  "author": {
26
26
  "name": "Sindre Sorhus",
@@ -34,14 +34,16 @@
34
34
  "deprecated": false,
35
35
  "description": "Regular expression for matching ANSI escape codes",
36
36
  "devDependencies": {
37
- "ava": "*",
38
- "xo": "*"
37
+ "ava": "^2.4.0",
38
+ "tsd": "^0.9.0",
39
+ "xo": "^0.25.3"
39
40
  },
40
41
  "engines": {
41
- "node": ">=4"
42
+ "node": ">=8"
42
43
  },
43
44
  "files": [
44
- "index.js"
45
+ "index.js",
46
+ "index.d.ts"
45
47
  ],
46
48
  "homepage": "https://github.com/chalk/ansi-regex#readme",
47
49
  "keywords": [
@@ -78,8 +80,8 @@
78
80
  "url": "git+https://github.com/chalk/ansi-regex.git"
79
81
  },
80
82
  "scripts": {
81
- "test": "xo && ava",
83
+ "test": "xo && ava && tsd",
82
84
  "view-supported": "node fixtures/view-codes.js"
83
85
  },
84
- "version": "3.0.0"
86
+ "version": "5.0.1"
85
87
  }
@@ -1,4 +1,4 @@
1
- # ansi-regex [![Build Status](https://travis-ci.org/chalk/ansi-regex.svg?branch=master)](https://travis-ci.org/chalk/ansi-regex)
1
+ # ansi-regex
2
2
 
3
3
  > Regular expression for matching [ANSI escape codes](https://en.wikipedia.org/wiki/ANSI_escape_code)
4
4
 
@@ -23,9 +23,33 @@ ansiRegex().test('cake');
23
23
 
24
24
  '\u001B[4mcake\u001B[0m'.match(ansiRegex());
25
25
  //=> ['\u001B[4m', '\u001B[0m']
26
+
27
+ '\u001B[4mcake\u001B[0m'.match(ansiRegex({onlyFirst: true}));
28
+ //=> ['\u001B[4m']
29
+
30
+ '\u001B]8;;https://github.com\u0007click\u001B]8;;\u0007'.match(ansiRegex());
31
+ //=> ['\u001B]8;;https://github.com\u0007', '\u001B]8;;\u0007']
26
32
  ```
27
33
 
28
34
 
35
+ ## API
36
+
37
+ ### ansiRegex(options?)
38
+
39
+ Returns a regex for matching ANSI escape codes.
40
+
41
+ #### options
42
+
43
+ Type: `object`
44
+
45
+ ##### onlyFirst
46
+
47
+ Type: `boolean`<br>
48
+ Default: `false` *(Matches any ANSI escape codes in a string)*
49
+
50
+ Match only the first ANSI escape.
51
+
52
+
29
53
  ## FAQ
30
54
 
31
55
  ### Why do you test for codes not in the ECMA 48 standard?
@@ -41,6 +65,14 @@ On the historical side, those ECMA standards were established in the early 90's
41
65
  - [Josh Junon](https://github.com/qix-)
42
66
 
43
67
 
44
- ## License
68
+ ---
45
69
 
46
- MIT
70
+ <div align="center">
71
+ <b>
72
+ <a href="https://tidelift.com/subscription/pkg/npm-ansi-regex?utm_source=npm-ansi-regex&utm_medium=referral&utm_campaign=readme">Get professional support for this package with a Tidelift subscription</a>
73
+ </b>
74
+ <br>
75
+ <sub>
76
+ Tidelift helps make open source sustainable for maintainers while giving companies<br>assurances about security, maintenance, and licensing for their dependencies.
77
+ </sub>
78
+ </div>
@@ -16,7 +16,8 @@
16
16
  "fetchSpec": "^1.1.7"
17
17
  },
18
18
  "_requiredBy": [
19
- "/minimatch"
19
+ "/minimatch",
20
+ "/mocha/minimatch"
20
21
  ],
21
22
  "_resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz",
22
23
  "_shasum": "3c7fcbf529d87226f3d2f52b966ff5271eb441dd",
@@ -1,19 +1,20 @@
1
1
  (The MIT License)
2
2
 
3
- Copyright (c) 2014 TJ Holowaychuk <tj@vision-media.ca>
3
+ Copyright (c) 2014-2017 TJ Holowaychuk <tj@vision-media.ca>
4
+ Copyright (c) 2018-2021 Josh Junon
4
5
 
5
- Permission is hereby granted, free of charge, to any person obtaining a copy of this software
6
- and associated documentation files (the 'Software'), to deal in the Software without restriction,
7
- including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
6
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software
7
+ and associated documentation files (the 'Software'), to deal in the Software without restriction,
8
+ including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
8
9
  and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so,
9
10
  subject to the following conditions:
10
11
 
11
- The above copyright notice and this permission notice shall be included in all copies or substantial
12
+ The above copyright notice and this permission notice shall be included in all copies or substantial
12
13
  portions of the Software.
13
14
 
14
- THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
15
- LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
16
- IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
17
- WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
15
+ THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
16
+ LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
17
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
18
+ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
18
19
  SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
19
20
 
@@ -1,5 +1,5 @@
1
1
  # debug
2
- [![Build Status](https://travis-ci.org/visionmedia/debug.svg?branch=master)](https://travis-ci.org/visionmedia/debug) [![Coverage Status](https://coveralls.io/repos/github/visionmedia/debug/badge.svg?branch=master)](https://coveralls.io/github/visionmedia/debug?branch=master) [![Slack](https://visionmedia-community-slackin.now.sh/badge.svg)](https://visionmedia-community-slackin.now.sh/) [![OpenCollective](https://opencollective.com/debug/backers/badge.svg)](#backers)
2
+ [![Build Status](https://travis-ci.org/debug-js/debug.svg?branch=master)](https://travis-ci.org/debug-js/debug) [![Coverage Status](https://coveralls.io/repos/github/debug-js/debug/badge.svg?branch=master)](https://coveralls.io/github/debug-js/debug?branch=master) [![Slack](https://visionmedia-community-slackin.now.sh/badge.svg)](https://visionmedia-community-slackin.now.sh/) [![OpenCollective](https://opencollective.com/debug/backers/badge.svg)](#backers)
3
3
  [![OpenCollective](https://opencollective.com/debug/sponsors/badge.svg)](#sponsors)
4
4
 
5
5
  <img width="647" src="https://user-images.githubusercontent.com/71256/29091486-fa38524c-7c37-11e7-895f-e7ec8e1039b6.png">
@@ -241,6 +241,9 @@ setInterval(function(){
241
241
  }, 1200);
242
242
  ```
243
243
 
244
+ In Chromium-based web browsers (e.g. Brave, Chrome, and Electron), the JavaScript console will—by default—only show messages logged by `debug` if the "Verbose" log level is _enabled_.
245
+
246
+ <img width="647" src="https://user-images.githubusercontent.com/7143133/152083257-29034707-c42c-4959-8add-3cee850e6fcf.png">
244
247
 
245
248
  ## Output streams
246
249
 
@@ -351,12 +354,34 @@ if (debug.enabled) {
351
354
  You can also manually toggle this property to force the debug instance to be
352
355
  enabled or disabled.
353
356
 
357
+ ## Usage in child processes
358
+
359
+ Due to the way `debug` detects if the output is a TTY or not, colors are not shown in child processes when `stderr` is piped. A solution is to pass the `DEBUG_COLORS=1` environment variable to the child process.
360
+ For example:
361
+
362
+ ```javascript
363
+ worker = fork(WORKER_WRAP_PATH, [workerPath], {
364
+ stdio: [
365
+ /* stdin: */ 0,
366
+ /* stdout: */ 'pipe',
367
+ /* stderr: */ 'pipe',
368
+ 'ipc',
369
+ ],
370
+ env: Object.assign({}, process.env, {
371
+ DEBUG_COLORS: 1 // without this settings, colors won't be shown
372
+ }),
373
+ });
374
+
375
+ worker.stderr.pipe(process.stderr, { end: false });
376
+ ```
377
+
354
378
 
355
379
  ## Authors
356
380
 
357
381
  - TJ Holowaychuk
358
382
  - Nathan Rajlich
359
383
  - Andrew Rhyne
384
+ - Josh Junon
360
385
 
361
386
  ## Backers
362
387
 
@@ -434,6 +459,7 @@ Become a sponsor and get your logo on our README on Github with a link to your s
434
459
  (The MIT License)
435
460
 
436
461
  Copyright (c) 2014-2017 TJ Holowaychuk &lt;tj@vision-media.ca&gt;
462
+ Copyright (c) 2018-2021 Josh Junon
437
463
 
438
464
  Permission is hereby granted, free of charge, to any person obtaining
439
465
  a copy of this software and associated documentation files (the
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "_from": "debug@4",
3
- "_id": "debug@4.3.2",
3
+ "_id": "debug@4.3.4",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-mOp8wKcvj7XxC78zLgw/ZA+6TSgkoE2C/ienthhRD298T7UNwAg9diBpLRxC0mOezLl4B0xV7M0cCO6P/O0Xhw==",
5
+ "_integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==",
6
6
  "_location": "/debug",
7
7
  "_phantomChildren": {},
8
8
  "_requested": {
@@ -19,20 +19,24 @@
19
19
  "/agent-base",
20
20
  "/https-proxy-agent"
21
21
  ],
22
- "_resolved": "https://registry.npmjs.org/debug/-/debug-4.3.2.tgz",
23
- "_shasum": "f0a49c18ac8779e31d4a0c6029dfb76873c7428b",
22
+ "_resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz",
23
+ "_shasum": "1319f6579357f2338d3337d2cdd4914bb5dcc865",
24
24
  "_spec": "debug@4",
25
25
  "_where": "/home/runner/work/MuhammaraJS/MuhammaraJS/node_modules/https-proxy-agent",
26
26
  "author": {
27
- "name": "TJ Holowaychuk",
28
- "email": "tj@vision-media.ca"
27
+ "name": "Josh Junon",
28
+ "email": "josh.junon@protonmail.com"
29
29
  },
30
30
  "browser": "./src/browser.js",
31
31
  "bugs": {
32
- "url": "https://github.com/visionmedia/debug/issues"
32
+ "url": "https://github.com/debug-js/debug/issues"
33
33
  },
34
34
  "bundleDependencies": false,
35
35
  "contributors": [
36
+ {
37
+ "name": "TJ Holowaychuk",
38
+ "email": "tj@vision-media.ca"
39
+ },
36
40
  {
37
41
  "name": "Nathan Rajlich",
38
42
  "email": "nathan@tootallnate.net",
@@ -41,17 +45,13 @@
41
45
  {
42
46
  "name": "Andrew Rhyne",
43
47
  "email": "rhyneandrew@gmail.com"
44
- },
45
- {
46
- "name": "Josh Junon",
47
- "email": "josh@junon.me"
48
48
  }
49
49
  ],
50
50
  "dependencies": {
51
51
  "ms": "2.1.2"
52
52
  },
53
53
  "deprecated": false,
54
- "description": "small debugging utility",
54
+ "description": "Lightweight debugging utility for Node.js and the browser",
55
55
  "devDependencies": {
56
56
  "brfs": "^2.0.1",
57
57
  "browserify": "^16.2.3",
@@ -73,7 +73,7 @@
73
73
  "LICENSE",
74
74
  "README.md"
75
75
  ],
76
- "homepage": "https://github.com/visionmedia/debug#readme",
76
+ "homepage": "https://github.com/debug-js/debug#readme",
77
77
  "keywords": [
78
78
  "debug",
79
79
  "log",
@@ -89,7 +89,7 @@
89
89
  },
90
90
  "repository": {
91
91
  "type": "git",
92
- "url": "git://github.com/visionmedia/debug.git"
92
+ "url": "git://github.com/debug-js/debug.git"
93
93
  },
94
94
  "scripts": {
95
95
  "lint": "xo",
@@ -98,5 +98,5 @@
98
98
  "test:coverage": "cat ./coverage/lcov.info | coveralls",
99
99
  "test:node": "istanbul cover _mocha -- test.js"
100
100
  },
101
- "version": "4.3.2"
101
+ "version": "4.3.4"
102
102
  }
@@ -34,7 +34,7 @@ function setup(env) {
34
34
 
35
35
  /**
36
36
  * Selects a color for a debug namespace
37
- * @param {String} namespace The namespace string for the for the debug instance to be colored
37
+ * @param {String} namespace The namespace string for the debug instance to be colored
38
38
  * @return {Number|String} An ANSI color code for the given namespace
39
39
  * @api private
40
40
  */
@@ -179,7 +179,7 @@ function setup(env) {
179
179
  namespaces = split[i].replace(/\*/g, '.*?');
180
180
 
181
181
  if (namespaces[0] === '-') {
182
- createDebug.skips.push(new RegExp('^' + namespaces.substr(1) + '$'));
182
+ createDebug.skips.push(new RegExp('^' + namespaces.slice(1) + '$'));
183
183
  } else {
184
184
  createDebug.names.push(new RegExp('^' + namespaces + '$'));
185
185
  }