@h3ravel/filesystem 1.29.0-alpha.13 → 1.29.0-alpha.15

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 (2) hide show
  1. package/dist/index.js +2 -0
  2. package/package.json +4 -4
package/dist/index.js CHANGED
@@ -266,9 +266,11 @@ var Driver = class Driver extends IFilesystemDriver {
266
266
  visibility: config.visibility ?? "public",
267
267
  urlBuilder: {
268
268
  async generateURL(key, _path) {
269
+ if (config.url) return `${config.url}/key`.replace(/^(https?:\/)\/+/, "$1/").replace(/([^:]\/)\/+/g, "$1");
269
270
  return url(key);
270
271
  },
271
272
  async generateSignedURL(key, _path, _opts) {
273
+ if (config.url) return `${config.url}/key`.replace(/^(https?:\/)\/+/, "$1/").replace(/([^:]\/)\/+/g, "$1");
272
274
  return url(key);
273
275
  }
274
276
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@h3ravel/filesystem",
3
- "version": "1.29.0-alpha.13",
3
+ "version": "1.29.0-alpha.15",
4
4
  "description": "Filesystem manager for H3ravel, providing shared file storage and filesystem utitlities for the framework.",
5
5
  "h3ravel": {
6
6
  "providers": [
@@ -50,13 +50,13 @@
50
50
  "@aws-sdk/s3-request-presigner": "^3.1011.0",
51
51
  "@google-cloud/storage": "^7.21.0",
52
52
  "@h3ravel/musket": "^1.29.0-alpha.11",
53
- "@h3ravel/shared": "^1.29.0-alpha.13",
54
- "@h3ravel/support": "^1.29.0-alpha.13",
53
+ "@h3ravel/shared": "^1.29.0-alpha.15",
54
+ "@h3ravel/support": "^1.29.0-alpha.15",
55
55
  "flydrive": "^2.0.0",
56
56
  "ssh2-sftp-client": "^12.1.0"
57
57
  },
58
58
  "peerDependencies": {
59
- "@h3ravel/core": "^1.29.0-alpha.13"
59
+ "@h3ravel/core": "^1.29.0-alpha.15"
60
60
  },
61
61
  "devDependencies": {
62
62
  "@types/ssh2-sftp-client": "^9.0.6",