@logtape/logtape 0.7.0-dev.90 → 0.7.0-dev.95
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.
- package/esm/fs.cjs +4 -2
- package/esm/nodeUtil.cjs +4 -2
- package/package.json +1 -1
- package/script/fs.js +4 -2
- package/script/nodeUtil.js +4 -2
package/esm/fs.cjs
CHANGED
|
@@ -7,8 +7,10 @@ if (
|
|
|
7
7
|
"Bun" in globalThis
|
|
8
8
|
) {
|
|
9
9
|
try {
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
// Intentionally confuse static analysis of bundlers:
|
|
11
|
+
const $require = [require];
|
|
12
|
+
fs = $require[0](`${["node", "fs"].join(":")}`);
|
|
13
|
+
} catch {
|
|
12
14
|
fs = null;
|
|
13
15
|
}
|
|
14
16
|
}
|
package/esm/nodeUtil.cjs
CHANGED
|
@@ -7,8 +7,10 @@ if (
|
|
|
7
7
|
"Bun" in globalThis
|
|
8
8
|
) {
|
|
9
9
|
try {
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
// Intentionally confuse static analysis of bundlers:
|
|
11
|
+
const $require = [require];
|
|
12
|
+
util = $require[0](`${["node", "util"].join(":")}`);
|
|
13
|
+
} catch {
|
|
12
14
|
util = null;
|
|
13
15
|
}
|
|
14
16
|
}
|
package/package.json
CHANGED
package/script/fs.js
CHANGED
|
@@ -7,8 +7,10 @@ if (
|
|
|
7
7
|
"Bun" in globalThis
|
|
8
8
|
) {
|
|
9
9
|
try {
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
// Intentionally confuse static analysis of bundlers:
|
|
11
|
+
const $require = [require];
|
|
12
|
+
fs = $require[0](`${["node", "fs"].join(":")}`);
|
|
13
|
+
} catch {
|
|
12
14
|
fs = null;
|
|
13
15
|
}
|
|
14
16
|
}
|
package/script/nodeUtil.js
CHANGED
|
@@ -7,8 +7,10 @@ if (
|
|
|
7
7
|
"Bun" in globalThis
|
|
8
8
|
) {
|
|
9
9
|
try {
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
// Intentionally confuse static analysis of bundlers:
|
|
11
|
+
const $require = [require];
|
|
12
|
+
util = $require[0](`${["node", "util"].join(":")}`);
|
|
13
|
+
} catch {
|
|
12
14
|
util = null;
|
|
13
15
|
}
|
|
14
16
|
}
|