lesca-node-bunnycdn 0.0.0

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/lib/index.d.ts ADDED
@@ -0,0 +1,42 @@
1
+ import { File, InstallParams, UploadParams } from './type';
2
+ export declare const install: ({ storageZone, password, region, folderName }: InstallParams) => void;
3
+ export declare const upload: ({ file, sharpConfig }: UploadParams) => Promise<{
4
+ res: boolean;
5
+ message: string;
6
+ url?: string;
7
+ error?: any;
8
+ }>;
9
+ export declare const list: () => Promise<{
10
+ res: boolean;
11
+ message: string;
12
+ files?: File[];
13
+ }>;
14
+ export declare const deleteFile: ({ ObjectName, href }: {
15
+ ObjectName?: string;
16
+ href?: string;
17
+ }) => Promise<{
18
+ res: boolean;
19
+ message: string;
20
+ }>;
21
+ declare const BunnyCDN: {
22
+ install: ({ storageZone, password, region, folderName }: InstallParams) => void;
23
+ upload: ({ file, sharpConfig }: UploadParams) => Promise<{
24
+ res: boolean;
25
+ message: string;
26
+ url?: string;
27
+ error?: any;
28
+ }>;
29
+ list: () => Promise<{
30
+ res: boolean;
31
+ message: string;
32
+ files?: File[];
33
+ }>;
34
+ deleteFile: ({ ObjectName, href }: {
35
+ ObjectName?: string;
36
+ href?: string;
37
+ }) => Promise<{
38
+ res: boolean;
39
+ message: string;
40
+ }>;
41
+ };
42
+ export default BunnyCDN;
package/lib/index.html ADDED
@@ -0,0 +1,19 @@
1
+ <!doctype html>
2
+ <html lang="zh-tw">
3
+ <head>
4
+ <meta charset="utf-8" />
5
+ <meta name="viewport" content="width=device-width,user-scalable=0" />
6
+ <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
7
+ <title></title>
8
+ <meta property="og:site_name" content="" />
9
+ <meta name="apple-mobile-web-app-capable" content="no" />
10
+ <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
11
+ </head>
12
+ <body>
13
+ <div id="app"></div>
14
+ <script type="module">
15
+ import YourClass from './index.js';
16
+ console.log(YourClass);
17
+ </script>
18
+ </body>
19
+ </html>