@zenith-open/zenithcms-plugin-storage-azure 1.0.0-beta.8 → 1.0.0-beta.9

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.
@@ -0,0 +1,2 @@
1
+ import { ZenithPlugin } from '@zenith-open/zenithcms-types';
2
+ export declare const azureStoragePlugin: () => ZenithPlugin;
package/dist/index.js ADDED
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.azureStoragePlugin = void 0;
4
+ const azureStoragePlugin = () => {
5
+ return {
6
+ id: 'storage-azure',
7
+ name: 'Azure Storage Adapter',
8
+ description: 'Azure Blob Storage Adapter',
9
+ onReady: async (ctx) => {
10
+ ctx.logger.info('[Azure Plugin] Registering Azure Storage Provider...');
11
+ const core = require('@zenith-open/zenithcms-core');
12
+ if (core && core.registerStorageProvider) {
13
+ class AzureStorageProvider {
14
+ constructor(config) { }
15
+ async upload(file, options) { return { url: '', id: '' }; }
16
+ async delete(id) { }
17
+ }
18
+ core.registerStorageProvider('azure', AzureStorageProvider);
19
+ }
20
+ }
21
+ };
22
+ };
23
+ exports.azureStoragePlugin = azureStoragePlugin;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zenith-open/zenithcms-plugin-storage-azure",
3
- "version": "1.0.0-beta.8",
3
+ "version": "1.0.0-beta.9",
4
4
  "description": "Azure Blob Storage Adapter",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -11,8 +11,8 @@
11
11
  "typescript": "^5.4.5"
12
12
  },
13
13
  "peerDependencies": {
14
- "@zenith-open/zenithcms-core": "1.0.0-beta.8",
15
- "@zenith-open/zenithcms-types": "1.0.0-beta.8"
14
+ "@zenith-open/zenithcms-core": "1.0.0-beta.9",
15
+ "@zenith-open/zenithcms-types": "1.0.0-beta.9"
16
16
  },
17
17
  "publishConfig": {
18
18
  "access": "public"