webs-sdk 0.1.2 → 0.1.4

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/index.ts CHANGED
@@ -1,5 +1,2 @@
1
- import {WebsSDK} from './src/index';
2
-
3
- export default {
4
- WebsSDK: WebsSDK
5
- }
1
+ export * from './src';
2
+ export { default } from './src';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "webs-sdk",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "dev": "next dev --turbopack",
package/src/index.ts CHANGED
@@ -1,5 +1,7 @@
1
1
  import * as Libraries from './libraries';
2
2
 
3
- export const WebsSDK = {
4
- Libraries: Libraries
3
+ const WebsSDK = {
4
+ Libraries
5
5
  };
6
+
7
+ export default WebsSDK;
@@ -1,3 +1,5 @@
1
1
  export class Andromeda {
2
2
 
3
3
  }
4
+
5
+ export default Andromeda;
@@ -1,3 +1,5 @@
1
1
  export class AuthManager {
2
2
 
3
3
  }
4
+
5
+ export default AuthManager;
@@ -1,3 +1,5 @@
1
1
  export class I18nManager {
2
2
 
3
3
  }
4
+
5
+ export default I18nManager;
@@ -1,15 +1,6 @@
1
- import * as Networking from './networking';
2
- import * as Andromeda from './andromeda';
3
- import * as AuthManager from './auth';
4
- import * as I18nManager from './i18n';
5
- import * as Storage from './storage';
6
- import * as Utils from './utils';
7
-
8
- export const Libraries = {
9
- networking: Networking,
10
- andromeda: Andromeda,
11
- authManager: AuthManager,
12
- i18nManager: I18nManager,
13
- storage: Storage,
14
- utils: Utils
15
- };
1
+ export { default as Networking } from './networking';
2
+ export { default as AuthManager } from './auth';
3
+ export { default as I18nManager } from './i18n';
4
+ export { default as Storage } from './storage';
5
+ export { default as Utils } from './utils';
6
+ export { default as Andromeda } from './andromeda';
@@ -3,3 +3,5 @@ export class Networking {
3
3
  console.log(`Requesting ${url} with data`, data);
4
4
  }
5
5
  }
6
+
7
+ export default Networking;
@@ -1,3 +1,5 @@
1
1
  export class Storage {
2
2
 
3
3
  }
4
+
5
+ export default Storage;
@@ -1,3 +1,5 @@
1
1
  export class Utils {
2
2
 
3
3
  }
4
+
5
+ export default Utils;
package/types/index.d.ts CHANGED
@@ -1,12 +1,16 @@
1
1
  declare module 'webs-sdk' {
2
- export class Networking {
3
- request(url: string, data?: object): Promise<object>;
2
+ namespace WebsSDK {
3
+ namespace Libraries {
4
+ class Networking {
5
+ request(url: string, data?: object): Promise<object>;
6
+ }
7
+ class AuthManager {}
8
+ class I18nManager {}
9
+ class Storage {}
10
+ class Utils {}
11
+ class Andromeda {}
12
+ }
4
13
  }
5
-
6
- export interface WebsSDK {
7
- networking: Networking;
8
- }
9
-
10
- const Core: WebsSDK;
11
- export default Core;
14
+ const WebsSDK: typeof WebsSDK;
15
+ export = WebsSDK;
12
16
  }