podchat-browser 12.7.2-snapshot.8 → 12.7.2

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.
@@ -41,6 +41,18 @@
41
41
  serverName: CONFIG[env].serverName,
42
42
  callServerName: CONFIG[env].callServerName,
43
43
 
44
+ // protocol: "webrtc",
45
+ webrtcConfig: {
46
+ baseUrl: "https://async-chat.fanapsoft.ir/webrtc/",//"https://172.16.110.26/webrtc/",//"http://localhost:3000/webrtc/",//"http://109.201.0.97/webrtc/",//"https://172.16.110.26:443/webrtc/",
47
+ configuration: {
48
+ bundlePolicy: "balanced",
49
+ iceTransportPolicy: "relay",
50
+ iceServers: [{
51
+ "urls": "turn:turnsandbox.podstream.ir:3478", "username": "mkhorrami", "credential": "mkh_123456"
52
+ }]
53
+ }
54
+ },
55
+
44
56
  token: CONFIG.token,
45
57
  grantDeviceIdFromSSO: false,
46
58
  enableCache: false,
@@ -1764,20 +1776,24 @@ Thread: <input type="text" id="threadInput" autocomplete="on" width="500">
1764
1776
  <br>
1765
1777
  <a class="btn" href="#" onclick="getContacts({
1766
1778
  count:document.getElementById('g-p2p-count').value,
1767
- offset: document.getElementById('g-p2p-off').value
1779
+ offset: document.getElementById('g-p2p-off').value,
1780
+ // coreUserId: 179267
1768
1781
  })">Get Contacts</a>
1769
1782
  <a class="btn" href="#" onclick="getThreads({
1770
1783
  count:document.getElementById('g-p2p-count').value,
1771
1784
  offset: document.getElementById('g-p2p-off').value,
1772
1785
  // fromTime: 1651918475566 ,
1773
1786
  // toTime: new Date().getTime(),
1774
- // new: true
1787
+ // new: true,
1788
+ // isGroup: true,
1789
+ // type: 0//undefined OR integer: NORMAL: 0x0, OWNER_GROUP: 0x1, PUBLIC_GROUP: 0x2, CHANNEL_GROUP: 0x4, CHANNEL: 0x8, NOTIFICATION_CHANNEL: 0x10, PUBLIC_THREAD: 0x20, PUBLIC_CHANNEL: 0x40, SELF: 0x80
1775
1790
  })">Get Threads</a>
1776
1791
  <a class="btn" href="#" onclick="getHistory({
1777
1792
  // fromTimeFull: 1557830885624256000,
1778
1793
  // toTimeFull: 1558247572310448000,
1779
1794
  count:document.getElementById('g-p2p-count').value,
1780
1795
  offset: document.getElementById('g-p2p-off').value,
1796
+ // onlyNewMessages: true,
1781
1797
  threadId: document.getElementById('g-p2p').value});">Get History</a>
1782
1798
  <a class="btn" href="#" onclick="getThreadParticipants(document.getElementById('g-p2p').value)">Get Thread
1783
1799
  Participants</a>
package/package.json CHANGED
@@ -1,17 +1,19 @@
1
1
  {
2
2
  "name": "podchat-browser",
3
- "version": "12.7.2-snapshot.8",
3
+ "version": "12.7.2",
4
4
  "description": "Javascript SDK to use POD's Chat Service - Browser Only",
5
5
  "main": "./dist/node/chat.js",
6
6
  "scripts": {
7
7
  "test": "mocha --reporter spec --exit",
8
- "publish:snapshot": "npm run version:snapshot && npm publish --tag snapshot",
8
+ "publish:snapshot": "npm run version:snapshot && npm run build && npm run commitVersionChanges && npm publish --tag snapshot",
9
9
  "version:snapshot": "npm version prerelease --preid snapshot",
10
10
  "publish:release": "npm run version:release && npm publish",
11
- "version:release": "npm version 12.7.1",
11
+ "version:release": "npm version 12.7.2",
12
12
  "build:browser": "browserify -t [ babelify ] src/chat.js > dist/podchat-browser-bundle.js",
13
13
  "build:npm": "babel src -d dist/node --copy-files",
14
- "build": "npm run build:browser && npm run build:npm",
14
+ "commitVersionChanges": "git add . && git commit -m \"Version\" && npm run wait",
15
+ "wait": "node -e \"setTimeout(() => process.exit(0), 500)\"",
16
+ "build": "node _buildInfo.js && npm run wait && npm run build:browser && npm run build:npm",
15
17
  "watch": "npm-watch build"
16
18
  },
17
19
  "watch": {
@@ -43,27 +45,24 @@
43
45
  },
44
46
  "homepage": "https://github.com/FanapSoft/pod-chat-browser-js-sdk#readme",
45
47
  "dependencies": {
46
- "@sentry/browser": "^6.11.0",
47
- "@sentry/tracing": "^6.11.0",
48
48
  "crypto-js": "^4.0.0",
49
49
  "dexie": "^2.0.4",
50
50
  "dompurify": "^2.3.3",
51
51
  "faker": "^5.5.3",
52
52
  "kurento-utils": "^6.16.0",
53
53
  "node-rsa": "^1.1.1",
54
- "podasync-ws-only": "^2.7.10-snapshot.6",
55
- "query-string": "^6.8.1",
54
+ "podasync-ws-only": "2.9.0-snapshot.7",
56
55
  "webrtc-adapter": "^8.0.0"
57
56
  },
58
57
  "devDependencies": {
59
- "mocha": "^8.1.1",
60
58
  "@babel/cli": "^7.17.6",
61
59
  "@babel/core": "^7.17.9",
62
60
  "@babel/plugin-transform-runtime": "^7.17.10",
63
61
  "@babel/preset-env": "^7.16.11",
64
62
  "babelify": "^10.0.0",
65
- "watchify": "^4.0.0",
66
- "npm-watch": "^0.11.0"
63
+ "mocha": "^8.1.1",
64
+ "npm-watch": "^0.11.0",
65
+ "watchify": "^4.0.0"
67
66
  },
68
67
  "directories": {
69
68
  "example": "examples",
@@ -0,0 +1 @@
1
+ {"version":"12.7.2-snapshot.35","date":"۱۴۰۲/۳/۲۱","VersionInfo":"Release: false, Snapshot: true, Is For Test: true"}