@logtape/logtape 0.6.3 → 0.6.4-dev.96

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 CHANGED
@@ -1,10 +1,12 @@
1
1
  let fs = null;
2
2
  if (
3
- "process" in globalThis && "versions" in globalThis.process &&
4
- "node" in globalThis.process.versions &&
5
- typeof globalThis.caches === "undefined" &&
6
- typeof globalThis.addEventListener !== "function" ||
7
- "Bun" in globalThis
3
+ typeof window === "undefined" && (
4
+ "process" in globalThis && "versions" in globalThis.process &&
5
+ "node" in globalThis.process.versions &&
6
+ typeof globalThis.caches === "undefined" &&
7
+ typeof globalThis.addEventListener !== "function" ||
8
+ "Bun" in globalThis
9
+ )
8
10
  ) {
9
11
  try {
10
12
  // Intentionally confuse static analysis of bundlers:
package/esm/nodeUtil.cjs CHANGED
@@ -1,10 +1,12 @@
1
1
  let util = null;
2
2
  if (
3
- "process" in globalThis && "versions" in globalThis.process &&
4
- "node" in globalThis.process.versions &&
5
- typeof globalThis.caches === "undefined" &&
6
- typeof globalThis.addEventListener !== "function" ||
7
- "Bun" in globalThis
3
+ typeof window === "undefined" && (
4
+ "process" in globalThis && "versions" in globalThis.process &&
5
+ "node" in globalThis.process.versions &&
6
+ typeof globalThis.caches === "undefined" &&
7
+ typeof globalThis.addEventListener !== "function" ||
8
+ "Bun" in globalThis
9
+ )
8
10
  ) {
9
11
  try {
10
12
  // Intentionally confuse static analysis of bundlers:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@logtape/logtape",
3
- "version": "0.6.3",
3
+ "version": "0.6.4-dev.96+ebc4eb12",
4
4
  "description": "Simple logging library with zero dependencies for Deno/Node.js/Bun/browsers",
5
5
  "keywords": [
6
6
  "logging",
package/script/fs.js CHANGED
@@ -1,10 +1,12 @@
1
1
  let fs = null;
2
2
  if (
3
- "process" in globalThis && "versions" in globalThis.process &&
4
- "node" in globalThis.process.versions &&
5
- typeof globalThis.caches === "undefined" &&
6
- typeof globalThis.addEventListener !== "function" ||
7
- "Bun" in globalThis
3
+ typeof window === "undefined" && (
4
+ "process" in globalThis && "versions" in globalThis.process &&
5
+ "node" in globalThis.process.versions &&
6
+ typeof globalThis.caches === "undefined" &&
7
+ typeof globalThis.addEventListener !== "function" ||
8
+ "Bun" in globalThis
9
+ )
8
10
  ) {
9
11
  try {
10
12
  // Intentionally confuse static analysis of bundlers:
@@ -1,10 +1,12 @@
1
1
  let util = null;
2
2
  if (
3
- "process" in globalThis && "versions" in globalThis.process &&
4
- "node" in globalThis.process.versions &&
5
- typeof globalThis.caches === "undefined" &&
6
- typeof globalThis.addEventListener !== "function" ||
7
- "Bun" in globalThis
3
+ typeof window === "undefined" && (
4
+ "process" in globalThis && "versions" in globalThis.process &&
5
+ "node" in globalThis.process.versions &&
6
+ typeof globalThis.caches === "undefined" &&
7
+ typeof globalThis.addEventListener !== "function" ||
8
+ "Bun" in globalThis
9
+ )
8
10
  ) {
9
11
  try {
10
12
  // Intentionally confuse static analysis of bundlers: