ddan-js 2.9.5 → 2.9.7

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.
@@ -5,7 +5,7 @@ export default class Aliyun {
5
5
  accessKeyId: string;
6
6
  accessKeySecret: string;
7
7
  region: string;
8
- __oss: OSS;
8
+ __oss?: OSS;
9
9
  __cdn: any;
10
10
  constructor({ bucket, accessKeyId, accessKeySecret, region }: {
11
11
  bucket: any;
@@ -1,7 +1,6 @@
1
1
  import Ecdh from './ecdh';
2
2
  import { Socks5 } from './socks5';
3
3
  import EcdhWeb from './ecdh-web';
4
- import Aliyun from './aliyun';
5
4
  declare const _default: {
6
5
  Ecdh: typeof Ecdh;
7
6
  EcdhWeb: typeof EcdhWeb;
@@ -18,7 +17,6 @@ declare const _default: {
18
17
  encode: (data: string) => Promise<string>;
19
18
  decode: (encryptedBase64: string) => Promise<string>;
20
19
  };
21
- Aliyun: typeof Aliyun;
22
20
  getSystemProxy: () => Promise<{
23
21
  ipaddress: string;
24
22
  port: number;
@@ -0,0 +1,2 @@
1
+ import Aliyun from './modules/node/aliyun';
2
+ export { Aliyun };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ddan-js",
3
- "version": "2.9.5",
3
+ "version": "2.9.7",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "ddan-js",
@@ -21,6 +21,11 @@
21
21
  "module": "bin/ddan-js.esm.js",
22
22
  "browser": "bin/ddan-js.browser.js",
23
23
  "typings": "bin/types/index.d.ts",
24
+ "upload": {
25
+ "main": "bin/ddan-upload.js",
26
+ "module": "bin/ddan-upload.esm.js",
27
+ "typings": "bin/types/upload.d.ts"
28
+ },
24
29
  "files": [
25
30
  "bin"
26
31
  ],