r2-explorer 1.1.12 → 1.1.13

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/dist/index.js CHANGED
@@ -1795,7 +1795,7 @@ async function readOnlyMiddleware(c, next) {
1795
1795
  }
1796
1796
 
1797
1797
  // package.json
1798
- var version = "1.1.12";
1798
+ var version = "1.1.13";
1799
1799
 
1800
1800
  // src/foundation/settings.ts
1801
1801
  var settings = {
@@ -2838,7 +2838,7 @@ var GetInfo = class extends import_chanfana17.OpenAPIRoute {
2838
2838
  const { basicAuth: basicAuth2, ...config } = c.get("config");
2839
2839
  const buckets = [];
2840
2840
  for (const [key, value] of Object.entries(c.env)) {
2841
- if (value && typeof value === "object" && "get" in value && "put" in value && "list" in value && typeof value.get === "function" && typeof value.put === "function" && typeof value.list === "function") {
2841
+ if (value.constructor.name === "R2Bucket") {
2842
2842
  buckets.push({ name: key });
2843
2843
  }
2844
2844
  }
package/dist/index.mjs CHANGED
@@ -1764,7 +1764,7 @@ async function readOnlyMiddleware(c, next) {
1764
1764
  }
1765
1765
 
1766
1766
  // package.json
1767
- var version = "1.1.12";
1767
+ var version = "1.1.13";
1768
1768
 
1769
1769
  // src/foundation/settings.ts
1770
1770
  var settings = {
@@ -2807,7 +2807,7 @@ var GetInfo = class extends OpenAPIRoute17 {
2807
2807
  const { basicAuth: basicAuth2, ...config } = c.get("config");
2808
2808
  const buckets = [];
2809
2809
  for (const [key, value] of Object.entries(c.env)) {
2810
- if (value && typeof value === "object" && "get" in value && "put" in value && "list" in value && typeof value.get === "function" && typeof value.put === "function" && typeof value.list === "function") {
2810
+ if (value.constructor.name === "R2Bucket") {
2811
2811
  buckets.push({ name: key });
2812
2812
  }
2813
2813
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "r2-explorer",
3
- "version": "1.1.12",
3
+ "version": "1.1.13",
4
4
  "description": "A Google Drive Interface for your Cloudflare R2 Buckets",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",