ncloudchat 1.0.35 → 1.0.36

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 (108) hide show
  1. package/LICENSE.md +2 -2
  2. package/README.md +17 -39
  3. package/deploy.sh.bak +20 -0
  4. package/{ncloudchat.d.ts → dist/ncloudchat.d.ts} +0 -0
  5. package/{ncloudchat.min.js → dist/ncloudchat.min.js} +0 -0
  6. package/esm/CloudChat.d.ts +482 -0
  7. package/esm/CloudChat.js +1746 -0
  8. package/esm/CloudChat.js.map +1 -0
  9. package/esm/CoreManager.d.ts +11 -0
  10. package/esm/CoreManager.js +38 -0
  11. package/esm/CoreManager.js.map +1 -0
  12. package/esm/Dispatcher.d.ts +37 -0
  13. package/esm/Dispatcher.js +95 -0
  14. package/esm/Dispatcher.js.map +1 -0
  15. package/esm/Network.d.ts +7 -0
  16. package/esm/Network.js +103 -0
  17. package/esm/Network.js.map +1 -0
  18. package/esm/Type.d.ts +79 -0
  19. package/esm/Type.js +31 -0
  20. package/esm/Type.js.map +1 -0
  21. package/esm/Util.d.ts +15 -0
  22. package/esm/Util.js +23 -0
  23. package/esm/Util.js.map +1 -0
  24. package/esm/graphql/channel.d.ts +13 -0
  25. package/esm/graphql/channel.js +19 -0
  26. package/esm/graphql/channel.js.map +1 -0
  27. package/esm/graphql/friend.d.ts +11 -0
  28. package/esm/graphql/friend.js +16 -0
  29. package/esm/graphql/friend.js.map +1 -0
  30. package/esm/graphql/invite.d.ts +7 -0
  31. package/esm/graphql/invite.js +11 -0
  32. package/esm/graphql/invite.js.map +1 -0
  33. package/esm/graphql/member.d.ts +11 -0
  34. package/esm/graphql/member.js +16 -0
  35. package/esm/graphql/member.js.map +1 -0
  36. package/esm/graphql/message.d.ts +11 -0
  37. package/esm/graphql/message.js +16 -0
  38. package/esm/graphql/message.js.map +1 -0
  39. package/esm/graphql/pin.d.ts +10 -0
  40. package/esm/graphql/pin.js +15 -0
  41. package/esm/graphql/pin.js.map +1 -0
  42. package/esm/graphql/project.d.ts +6 -0
  43. package/esm/graphql/project.js +8 -0
  44. package/esm/graphql/project.js.map +1 -0
  45. package/esm/graphql/subscription.d.ts +11 -0
  46. package/esm/graphql/subscription.js +16 -0
  47. package/esm/graphql/subscription.js.map +1 -0
  48. package/esm/index.d.ts +8 -0
  49. package/esm/index.js +15 -0
  50. package/esm/index.js.map +1 -0
  51. package/esm/logger.d.ts +10 -0
  52. package/esm/logger.js +22 -0
  53. package/esm/logger.js.map +1 -0
  54. package/esm/mutations/channel.d.ts +56 -0
  55. package/esm/mutations/channel.js +181 -0
  56. package/esm/mutations/channel.js.map +1 -0
  57. package/esm/mutations/friend.d.ts +42 -0
  58. package/esm/mutations/friend.js +132 -0
  59. package/esm/mutations/friend.js.map +1 -0
  60. package/esm/mutations/index.d.ts +13 -0
  61. package/esm/mutations/index.js +30 -0
  62. package/esm/mutations/index.js.map +1 -0
  63. package/esm/mutations/invite.d.ts +16 -0
  64. package/esm/mutations/invite.js +74 -0
  65. package/esm/mutations/invite.js.map +1 -0
  66. package/esm/mutations/member.d.ts +41 -0
  67. package/esm/mutations/member.js +138 -0
  68. package/esm/mutations/member.js.map +1 -0
  69. package/esm/mutations/message.d.ts +37 -0
  70. package/esm/mutations/message.js +141 -0
  71. package/esm/mutations/message.js.map +1 -0
  72. package/esm/mutations/pin.d.ts +28 -0
  73. package/esm/mutations/pin.js +96 -0
  74. package/esm/mutations/pin.js.map +1 -0
  75. package/esm/mutations/subscription.d.ts +37 -0
  76. package/esm/mutations/subscription.js +124 -0
  77. package/esm/mutations/subscription.js.map +1 -0
  78. package/esm/queries/channel.d.ts +26 -0
  79. package/esm/queries/channel.js +96 -0
  80. package/esm/queries/channel.js.map +1 -0
  81. package/esm/queries/friend.d.ts +17 -0
  82. package/esm/queries/friend.js +76 -0
  83. package/esm/queries/friend.js.map +1 -0
  84. package/esm/queries/index.d.ts +14 -0
  85. package/esm/queries/index.js +31 -0
  86. package/esm/queries/index.js.map +1 -0
  87. package/esm/queries/member.d.ts +17 -0
  88. package/esm/queries/member.js +76 -0
  89. package/esm/queries/member.js.map +1 -0
  90. package/esm/queries/memberblocks.d.ts +17 -0
  91. package/esm/queries/memberblocks.js +76 -0
  92. package/esm/queries/memberblocks.js.map +1 -0
  93. package/esm/queries/message.d.ts +36 -0
  94. package/esm/queries/message.js +118 -0
  95. package/esm/queries/message.js.map +1 -0
  96. package/esm/queries/pin.d.ts +28 -0
  97. package/esm/queries/pin.js +100 -0
  98. package/esm/queries/pin.js.map +1 -0
  99. package/esm/queries/project.d.ts +14 -0
  100. package/esm/queries/project.js +23 -0
  101. package/esm/queries/project.js.map +1 -0
  102. package/esm/queries/subscription.d.ts +27 -0
  103. package/esm/queries/subscription.js +98 -0
  104. package/esm/queries/subscription.js.map +1 -0
  105. package/package.json +38 -19
  106. package/tsconfig.json +32 -0
  107. package/types/exif.d.ts +10 -0
  108. package/types/window.d.ts +5 -0
package/package.json CHANGED
@@ -1,31 +1,50 @@
1
1
  {
2
2
  "name": "ncloudchat",
3
- "version" : "1.0.35",
4
- "main" : "ncloudchat.min.js",
5
- "description": "The JavaScript SDK for NAVER Cloud ChatPlatform",
3
+ "jsName": "ncloudchat",
4
+ "version": "1.0.36",
5
+ "private": false,
6
+ "description": "",
6
7
  "keywords": [
7
8
  "cloudchat",
8
9
  "ncloudchat",
9
10
  "navercloud",
10
11
  "ncloud",
11
- "chat",
12
- "sdk",
13
- "messaging",
14
- "pro",
15
- "naver"
12
+ "chat"
16
13
  ],
17
- "dependencies": {
18
- "graphql": "^16.6.0",
19
- "socket.io-client": "^4.5.4"
14
+ "homepage": "https://www.ncloud.com/product/ncloudchat",
15
+ "main": "dist/ncloudchat.min.js",
16
+ "scripts": {
17
+ "clean": "rm -rf \"./(lib|dist|esm)\"",
18
+ "test": "jest --coverage",
19
+ "build": "npm run clean && tsc && babel esm --out-dir lib && webpack --config webpack.prod.js",
20
+ "start": "webpack-dev-server --open --config webpack.dev.js",
21
+ "server": "node test/server.js",
22
+ "deploy": "./deploy.sh dev",
23
+ "deploy-release": "./deploy.sh release"
20
24
  },
21
- "author": "NAVER Cloud",
22
- "license": "LICENSE.md",
23
25
  "repository": {
24
- "type": "git",
25
- "url": "git+https://github.com/nbase-io/NcloudChat-SDK-JS.git"
26
+ "type": "git"
26
27
  },
27
- "bugs": {
28
- "url": "https://github.com/nbase-io/NcloudChat-SDK-JS/issues"
28
+ "author": "NAVER Cloud",
29
+ "devDependencies": {
30
+ "@babel/cli": "^7.19.3",
31
+ "@babel/core": "^7.19.3",
32
+ "@babel/plugin-transform-runtime": "^7.19.1",
33
+ "@babel/preset-env": "^7.19.3",
34
+ "@babel/runtime": "^7.19.4",
35
+ "@babel/runtime-corejs2": "^7.10.2",
36
+ "ts-loader": "^9.4.1",
37
+ "typescript": "^4.8.4",
38
+ "webpack": "^5.74.0",
39
+ "webpack-cli": "^4.10.0",
40
+ "webpack-dev-server": "^4.11.1",
41
+ "webpack-merge": "^5.8.0"
29
42
  },
30
- "homepage": "https://guide.ncloud-docs.com/docs/bizapp-ncloudchat-javascriptsdk"
31
- }
43
+ "license": "MIT",
44
+ "dependencies": {
45
+ "core-js": "^2.6.12",
46
+ "graphql": "^16.6.0",
47
+ "ncloudchat": "^1.0.31",
48
+ "socket.io-client": "^4.5.2"
49
+ }
50
+ }
package/tsconfig.json ADDED
@@ -0,0 +1,32 @@
1
+ {
2
+ "compileOnSave": true,
3
+ "compilerOptions": {
4
+ "outDir": "./esm",
5
+ "module": "commonjs",
6
+ "lib": ["dom", "es2015", "es2016", "es2017"],
7
+ "moduleResolution": "node",
8
+ "allowJs": false,
9
+ "declaration": true,
10
+ "downlevelIteration": true,
11
+ "strict": true,
12
+ "strictNullChecks": true,
13
+ "sourceMap": true,
14
+ "strictPropertyInitialization": false,
15
+ "noImplicitThis": true,
16
+ "baseUrl": "./src",
17
+ "esModuleInterop": true,
18
+ "suppressImplicitAnyIndexErrors": true,
19
+ "typeRoots": [
20
+ "./types",
21
+ "./node_modules/@types"
22
+ ]
23
+ },
24
+ "exclude": [
25
+ "node_modules",
26
+ "coverage",
27
+ "esm",
28
+ "test",
29
+ "dist",
30
+ "lib"
31
+ ]
32
+ }
@@ -0,0 +1,10 @@
1
+ // 原类型有问题,这里覆盖下
2
+ declare module 'exif-js' {
3
+ interface EXIFStatic {
4
+ getData(img: HTMLImageElement, callback: () => void): void
5
+ getTag(img: HTMLImageElement, tag: string): number
6
+ }
7
+
8
+ const EXIF: EXIFStatic
9
+ export { EXIF }
10
+ }
@@ -0,0 +1,5 @@
1
+ interface Window {
2
+ webkitURL?: typeof URL
3
+ mozURL?: typeof URL
4
+ ActiveXObject?: any
5
+ }