@zenith-open/zenithcms-plugin-storage-s3 1.0.0-beta.10 → 1.0.0-beta.8
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/package.json +3 -3
- package/dist/index.d.ts +0 -2
- package/dist/index.js +0 -24
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zenith-open/zenithcms-plugin-storage-s3",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.8",
|
|
4
4
|
"description": "AWS S3 & Cloudflare R2 Storage Adapter",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
"typescript": "^5.4.5"
|
|
13
13
|
},
|
|
14
14
|
"peerDependencies": {
|
|
15
|
-
"@zenith-open/zenithcms-core": "1.0.0-beta.
|
|
16
|
-
"@zenith-open/zenithcms-types": "1.0.0-beta.
|
|
15
|
+
"@zenith-open/zenithcms-core": "1.0.0-beta.8",
|
|
16
|
+
"@zenith-open/zenithcms-types": "1.0.0-beta.8"
|
|
17
17
|
},
|
|
18
18
|
"publishConfig": {
|
|
19
19
|
"access": "public"
|
package/dist/index.d.ts
DELETED
package/dist/index.js
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.s3StoragePlugin = void 0;
|
|
4
|
-
const s3StoragePlugin = () => {
|
|
5
|
-
return {
|
|
6
|
-
id: 'storage-s3',
|
|
7
|
-
name: 'S3 Storage Adapter',
|
|
8
|
-
description: 'AWS S3 & Cloudflare R2 Storage Adapter',
|
|
9
|
-
onReady: async (ctx) => {
|
|
10
|
-
ctx.logger.info('[S3 Plugin] Registering S3 Storage Provider...');
|
|
11
|
-
const core = require('@zenith-open/zenithcms-core');
|
|
12
|
-
if (core && core.registerStorageProvider) {
|
|
13
|
-
// Here you would define the class that implements StorageProvider
|
|
14
|
-
class S3StorageProvider {
|
|
15
|
-
constructor(config) { }
|
|
16
|
-
async upload(file, options) { return { url: '', id: '' }; }
|
|
17
|
-
async delete(id) { }
|
|
18
|
-
}
|
|
19
|
-
core.registerStorageProvider('s3', S3StorageProvider);
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
|
-
exports.s3StoragePlugin = s3StoragePlugin;
|