@chatinfra/client 0.0.1 → 0.0.3

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,4 @@
1
+ export * from '@chatinfra/sdk';
2
+ import '@chatinfra/realtime-pusher-rn';
3
+ import '@chatinfra/realtime-pusher-web';
4
+ import '@chatinfra/storage-web';
@@ -0,0 +1,4 @@
1
+ export * from '@chatinfra/sdk';
2
+ import '@chatinfra/realtime-pusher-rn';
3
+ import '@chatinfra/realtime-pusher-web';
4
+ import '@chatinfra/storage-web';
package/dist/index.js ADDED
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __copyProps = (to, from, except, desc) => {
7
+ if (from && typeof from === "object" || typeof from === "function") {
8
+ for (let key of __getOwnPropNames(from))
9
+ if (!__hasOwnProp.call(to, key) && key !== except)
10
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
11
+ }
12
+ return to;
13
+ };
14
+ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
15
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
16
+
17
+ // src/index.ts
18
+ var index_exports = {};
19
+ module.exports = __toCommonJS(index_exports);
20
+ __reExport(index_exports, require("@chatinfra/sdk"), module.exports);
21
+ // Annotate the CommonJS export names for ESM import in node:
22
+ 0 && (module.exports = {
23
+ ...require("@chatinfra/sdk")
24
+ });
25
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/index.ts"],"sourcesContent":["export * from \"@chatinfra/sdk\";\n"],"mappings":";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA,0BAAc,2BAAd;","names":[]}
package/dist/index.mjs ADDED
@@ -0,0 +1,3 @@
1
+ // src/index.ts
2
+ export * from "@chatinfra/sdk";
3
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/index.ts"],"sourcesContent":["export * from \"@chatinfra/sdk\";\n"],"mappings":";AAAA,cAAc;","names":[]}
@@ -0,0 +1,2 @@
1
+ export * from '@chatinfra/sdk';
2
+ export * from '@chatinfra/realtime-pusher-rn';
@@ -0,0 +1,2 @@
1
+ export * from '@chatinfra/sdk';
2
+ export * from '@chatinfra/realtime-pusher-rn';
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __copyProps = (to, from, except, desc) => {
7
+ if (from && typeof from === "object" || typeof from === "function") {
8
+ for (let key of __getOwnPropNames(from))
9
+ if (!__hasOwnProp.call(to, key) && key !== except)
10
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
11
+ }
12
+ return to;
13
+ };
14
+ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
15
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
16
+
17
+ // src/react-native.ts
18
+ var react_native_exports = {};
19
+ module.exports = __toCommonJS(react_native_exports);
20
+ __reExport(react_native_exports, require("@chatinfra/sdk"), module.exports);
21
+ __reExport(react_native_exports, require("@chatinfra/realtime-pusher-rn"), module.exports);
22
+ // Annotate the CommonJS export names for ESM import in node:
23
+ 0 && (module.exports = {
24
+ ...require("@chatinfra/sdk"),
25
+ ...require("@chatinfra/realtime-pusher-rn")
26
+ });
27
+ //# sourceMappingURL=react-native.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/react-native.ts"],"sourcesContent":["export * from \"@chatinfra/sdk\";\nexport * from \"@chatinfra/realtime-pusher-rn\";\n"],"mappings":";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA,iCAAc,2BAAd;AACA,iCAAc,0CADd;","names":[]}
@@ -0,0 +1,4 @@
1
+ // src/react-native.ts
2
+ export * from "@chatinfra/sdk";
3
+ export * from "@chatinfra/realtime-pusher-rn";
4
+ //# sourceMappingURL=react-native.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/react-native.ts"],"sourcesContent":["export * from \"@chatinfra/sdk\";\nexport * from \"@chatinfra/realtime-pusher-rn\";\n"],"mappings":";AAAA,cAAc;AACd,cAAc;","names":[]}
package/dist/web.d.mts ADDED
@@ -0,0 +1,3 @@
1
+ export * from '@chatinfra/sdk';
2
+ export * from '@chatinfra/realtime-pusher-web';
3
+ export * from '@chatinfra/storage-web';
package/dist/web.d.ts ADDED
@@ -0,0 +1,3 @@
1
+ export * from '@chatinfra/sdk';
2
+ export * from '@chatinfra/realtime-pusher-web';
3
+ export * from '@chatinfra/storage-web';
package/dist/web.js ADDED
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __copyProps = (to, from, except, desc) => {
7
+ if (from && typeof from === "object" || typeof from === "function") {
8
+ for (let key of __getOwnPropNames(from))
9
+ if (!__hasOwnProp.call(to, key) && key !== except)
10
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
11
+ }
12
+ return to;
13
+ };
14
+ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
15
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
16
+
17
+ // src/web.ts
18
+ var web_exports = {};
19
+ module.exports = __toCommonJS(web_exports);
20
+ __reExport(web_exports, require("@chatinfra/sdk"), module.exports);
21
+ __reExport(web_exports, require("@chatinfra/realtime-pusher-web"), module.exports);
22
+ __reExport(web_exports, require("@chatinfra/storage-web"), module.exports);
23
+ // Annotate the CommonJS export names for ESM import in node:
24
+ 0 && (module.exports = {
25
+ ...require("@chatinfra/sdk"),
26
+ ...require("@chatinfra/realtime-pusher-web"),
27
+ ...require("@chatinfra/storage-web")
28
+ });
29
+ //# sourceMappingURL=web.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/web.ts"],"sourcesContent":["export * from \"@chatinfra/sdk\";\nexport * from \"@chatinfra/realtime-pusher-web\";\nexport * from \"@chatinfra/storage-web\";\n"],"mappings":";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA,wBAAc,2BAAd;AACA,wBAAc,2CADd;AAEA,wBAAc,mCAFd;","names":[]}
package/dist/web.mjs ADDED
@@ -0,0 +1,5 @@
1
+ // src/web.ts
2
+ export * from "@chatinfra/sdk";
3
+ export * from "@chatinfra/realtime-pusher-web";
4
+ export * from "@chatinfra/storage-web";
5
+ //# sourceMappingURL=web.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/web.ts"],"sourcesContent":["export * from \"@chatinfra/sdk\";\nexport * from \"@chatinfra/realtime-pusher-web\";\nexport * from \"@chatinfra/storage-web\";\n"],"mappings":";AAAA,cAAc;AACd,cAAc;AACd,cAAc;","names":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chatinfra/client",
3
- "version": "0.0.1",
3
+ "version": "0.0.3",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dist/index.d.ts",
@@ -9,13 +9,35 @@
9
9
  "types": "./dist/index.d.ts",
10
10
  "require": "./dist/index.js",
11
11
  "import": "./dist/index.mjs"
12
+ },
13
+ "./react-native": {
14
+ "types": "./dist/react-native.d.ts",
15
+ "require": "./dist/react-native.js",
16
+ "import": "./dist/react-native.mjs"
17
+ },
18
+ "./web": {
19
+ "types": "./dist/web.d.ts",
20
+ "require": "./dist/web.js",
21
+ "import": "./dist/web.mjs"
12
22
  }
13
23
  },
14
24
  "files": [
15
25
  "dist"
16
26
  ],
27
+ "dependencies": {
28
+ "@chatinfra/sdk": "0.0.1"
29
+ },
30
+ "optionalDependencies": {
31
+ "@chatinfra/realtime-pusher-web": "0.0.1",
32
+ "@chatinfra/realtime-pusher-rn": "0.0.1",
33
+ "@chatinfra/storage-web": "0.0.1"
34
+ },
35
+ "peerDependencies": {
36
+ "expo-secure-store": "*",
37
+ "@pusher/pusher-websocket-react-native": "*",
38
+ "pusher-js": "*"
39
+ },
17
40
  "scripts": {
18
- "build": "pnpm exec tsup src/index.ts --format cjs,esm --dts",
19
- "dev": "tsup src/index.ts --watch --format cjs,esm --dts"
41
+ "build": "pnpm exec tsup"
20
42
  }
21
43
  }