@wix/realtime 1.0.15 → 1.0.17

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.
Files changed (45) hide show
  1. package/cjs/build/constants.d.ts +1 -0
  2. package/cjs/build/constants.js +4 -0
  3. package/cjs/build/index.d.ts +3 -0
  4. package/{build/cjs → cjs/build}/index.js +3 -1
  5. package/cjs/build/publisher/publisher.context.d.ts +37 -0
  6. package/cjs/build/publisher/publisher.context.js +40 -0
  7. package/cjs/build/publisher/publisher.public.d.ts +12 -0
  8. package/cjs/build/publisher/publisher.public.js +74 -0
  9. package/cjs/build/subscriber/errors.d.ts +16 -0
  10. package/cjs/build/subscriber/errors.js +70 -0
  11. package/cjs/build/subscriber/subscriber.context.d.ts +4 -0
  12. package/cjs/build/subscriber/subscriber.context.js +7 -0
  13. package/cjs/build/subscriber/subscriber.public.d.ts +21 -0
  14. package/cjs/build/subscriber/subscriber.public.js +234 -0
  15. package/cjs/build/subscriber/subscription-manager.d.ts +26 -0
  16. package/cjs/build/subscriber/subscription-manager.js +75 -0
  17. package/cjs/build/types.d.ts +1 -0
  18. package/cjs/build/types.js +6 -0
  19. package/cjs/package.json +3 -0
  20. package/dist/statics/docs-ts-model.json +1136 -0
  21. package/es/build/constants.d.ts +1 -0
  22. package/es/build/constants.js +1 -0
  23. package/es/build/index.d.ts +3 -0
  24. package/es/build/index.js +3 -0
  25. package/es/build/publisher/publisher.context.d.ts +37 -0
  26. package/es/build/publisher/publisher.context.js +37 -0
  27. package/es/build/publisher/publisher.public.d.ts +12 -0
  28. package/es/build/publisher/publisher.public.js +38 -0
  29. package/es/build/subscriber/errors.d.ts +16 -0
  30. package/es/build/subscriber/errors.js +59 -0
  31. package/es/build/subscriber/subscriber.context.d.ts +4 -0
  32. package/es/build/subscriber/subscriber.context.js +4 -0
  33. package/es/build/subscriber/subscriber.public.d.ts +21 -0
  34. package/es/build/subscriber/subscriber.public.js +229 -0
  35. package/es/build/subscriber/subscription-manager.d.ts +26 -0
  36. package/es/build/subscriber/subscription-manager.js +71 -0
  37. package/es/build/types.d.ts +1 -0
  38. package/es/build/types.js +1 -0
  39. package/package.json +34 -30
  40. package/types/package.json +7 -0
  41. package/build/cjs/index.d.ts +0 -1
  42. package/build/es/index.d.ts +0 -1
  43. package/build/es/index.js +0 -37
  44. package/build/tsconfig.cjs.tsbuildinfo +0 -1
  45. package/build/tsconfig.tsbuildinfo +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/realtime",
3
- "version": "1.0.15",
3
+ "version": "1.0.17",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org/",
6
6
  "access": "public"
@@ -11,55 +11,59 @@
11
11
  "wixSdkPublicModule"
12
12
  ],
13
13
  "sideEffects": false,
14
- "main": "./build/cjs/index.js",
15
- "types": "./build/es/index.d.ts",
14
+ "type": "module",
15
+ "main": "./cjs/build/index.js",
16
+ "module": "./es/build/index.js",
17
+ "types": "./cjs/build/index.d.ts",
16
18
  "exports": {
17
19
  ".": {
18
- "import": "./build/es/index.js",
19
- "require": "./build/cjs/index.js",
20
- "types": "./build/es/index.d.ts"
20
+ "types": "./cjs/build/index.d.ts",
21
+ "require": "./cjs/build/index.js",
22
+ "import": "./es/build/index.js"
21
23
  },
22
24
  "./package.json": "./package.json",
23
- "./meta": {
24
- "import": "./build/es/meta.js",
25
- "require": "./build/cjs/meta.js",
26
- "types": "./build/es/meta.d.ts"
27
- },
28
- "./service-plugins": {
29
- "import": "./build/es/service-plugins.js",
30
- "require": "./build/cjs/service-plugins.js",
31
- "types": "./build/es/service-plugins.d.ts"
32
- },
33
- "./dashboard": {
34
- "import": "./build/es/dashboard.js",
35
- "require": "./build/cjs/dashboard.js",
36
- "types": "./build/es/dashboard.d.ts"
25
+ "./types": {
26
+ "types": "./cjs/build/types.d.ts",
27
+ "require": "./cjs/build/types.js",
28
+ "import": "./es/build/types.js"
37
29
  }
38
30
  },
39
31
  "files": [
40
- "build",
32
+ "es",
33
+ "dist",
34
+ "types",
41
35
  "cjs"
42
36
  ],
43
37
  "dependencies": {
44
- "@wix/sdk_realtime_site": "1.0.15"
38
+ "@wix/auto_sdk_duplexer_publisher": "^1.0.10",
39
+ "@wix/duplexer-js": "^2.0.6",
40
+ "@wix/realtime-common": "1.0.0",
41
+ "@wix/sdk": "^1.21.4",
42
+ "@wix/sdk-runtime": "^1.0.9",
43
+ "@wix/sdk-types": "^1.17.5",
44
+ "@wix/sdk_realtime_site": "1.0.16",
45
+ "uuid": "^11.1.0"
45
46
  },
46
47
  "devDependencies": {
47
- "typescript": "^5.7.3"
48
+ "@wix/docs-ts-model": "^1.54.0",
49
+ "typescript": "^5.7.3",
50
+ "vitest": "^3.0.5"
48
51
  },
49
52
  "scripts": {
50
- "build": "tsc -b tsconfig.json tsconfig.cjs.json",
51
- "test": ":"
53
+ "build": "tsc -p tsconfig.json && tsc -p tsconfig.cjs.json && npm run docs",
54
+ "docs": "docs-ts-model --disableSources --entryPoint src/index.ts",
55
+ "test": "vitest run"
52
56
  },
53
57
  "wix": {
54
58
  "artifact": {
55
59
  "groupId": "com.wixpress.sdk",
56
60
  "artifactId": "realtime",
61
+ "targets": {
62
+ "static": true,
63
+ "build-docs": true
64
+ },
57
65
  "isRootPublicSdk": true
58
- },
59
- "sdkDependency": {
60
- "fqdnNamespace": "",
61
- "fqdn": ""
62
66
  }
63
67
  },
64
- "falconPackageHash": "fd5d4f81e6f6855470ba64bdeba22e069c1a458e5dd18d31a9c459cf"
68
+ "falconPackageHash": "81914dd350cf929362cd768817ec3d4a9f6370728a02d38283d6cdb4"
65
69
  }
@@ -0,0 +1,7 @@
1
+ {
2
+ "private": true,
3
+ "main": "../cjs/build/types.js",
4
+ "types": "../cjs/build/types.d.ts",
5
+ "sideEffects": false,
6
+ "module": "../es/build/types.js"
7
+ }
@@ -1 +0,0 @@
1
- export * as site from '@wix/sdk_realtime_site';
@@ -1 +0,0 @@
1
- export * as site from '@wix/sdk_realtime_site';
package/build/es/index.js DELETED
@@ -1,37 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || (function () {
19
- var ownKeys = function(o) {
20
- ownKeys = Object.getOwnPropertyNames || function (o) {
21
- var ar = [];
22
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
- return ar;
24
- };
25
- return ownKeys(o);
26
- };
27
- return function (mod) {
28
- if (mod && mod.__esModule) return mod;
29
- var result = {};
30
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
- __setModuleDefault(result, mod);
32
- return result;
33
- };
34
- })();
35
- Object.defineProperty(exports, "__esModule", { value: true });
36
- exports.site = void 0;
37
- exports.site = __importStar(require("@wix/sdk_realtime_site"));
@@ -1 +0,0 @@
1
- {"root":["../src/index.ts"],"version":"5.7.3"}
@@ -1 +0,0 @@
1
- {"root":["../src/index.ts"],"version":"5.7.3"}