File: 0005-Reexport-default.patch

package info (click to toggle)
node-glob 10.3.6%2B~cs0.4.15-5
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 2,028 kB
  • sloc: javascript: 1,348; sh: 191; makefile: 16
file content (27 lines) | stat: -rw-r--r-- 599 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
From: =?utf-8?q?Bastien_Roucari=C3=A8s?= <rouca@debian.org>
Date: Mon, 21 Apr 2025 00:44:27 +0200
Subject: Reexport default

Allow smooth upgrade

Forwarded: not-needed
---
 src/index.ts | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/src/index.ts b/src/index.ts
index f04a240..983b699 100644
--- a/src/index.ts
+++ b/src/index.ts
@@ -224,3 +224,11 @@ export const glob = Object.assign(glob_, {
   unescape,
 })
 glob.glob = glob
+
+export default glob
+
+// CJS compatibility
+if (typeof module !== 'undefined' && typeof module.exports !== 'undefined') {
+  module.exports = glob;
+}
+