polfan-server-js-client 0.3.2 → 0.4.0
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/.gitmodules +3 -3
- package/.idea/shelf/Uncommitted_changes_before_Checkout_at_05_08_2026_17_28_[Changes]/shelved.patch +447 -0
- package/.idea/shelf/Uncommitted_changes_before_Checkout_at_05_08_2026_17_28_[Changes]1/shelved.patch +0 -0
- package/.idea/shelf/Uncommitted_changes_before_Checkout_at_05_08_2026_17_28__Changes_.xml +4 -0
- package/.idea/workspace.xml +228 -49
- package/CODE_OF_CONDUCT.md +76 -76
- package/README.md +44 -44
- package/babel.config.js +5 -5
- package/build/index.cjs.js +181 -15
- package/build/index.cjs.js.map +1 -1
- package/build/index.umd.js +1 -1
- package/build/index.umd.js.map +1 -1
- package/build/types/index.d.ts +2 -1
- package/build/types/types/src/index.d.ts +3 -3
- package/build/types/types/src/schemes/SessionData.d.ts +6 -0
- package/build/types/types/src/schemes/User.d.ts +15 -0
- package/build/types/types/src/schemes/UserData.d.ts +5 -0
- package/build/types/types/src/schemes/commands/SetSessionData.d.ts +9 -1
- package/build/types/types/src/schemes/commands/SetUserData.d.ts +1 -0
- package/jest.config.ts +199 -199
- package/package.json +43 -43
- package/scripts/getPackageJson.js +24 -24
- package/src/FilesClient.ts +42 -42
- package/src/index.ts +31 -29
- package/src/state-tracker/ChatStateTracker.ts +71 -71
- package/src/state-tracker/UsersManager.ts +51 -51
- package/src/state-tracker/functions.ts +28 -28
- package/src/types/src/index.ts +313 -311
- package/src/types/src/schemes/SessionData.ts +8 -1
- package/src/types/src/schemes/User.ts +17 -1
- package/src/types/src/schemes/UserData.ts +5 -0
- package/src/types/src/schemes/commands/SetSessionData.ts +11 -2
- package/src/types/src/schemes/commands/SetUserData.ts +1 -0
- package/tests/async-utils.test.ts +29 -29
- package/tests/space-roles.test.ts +42 -42
- package/.idea/shelf/Uncommitted_changes_before_Checkout_at_26_07_2026_21_26_[Changes]/shelved.patch +0 -174
- package/.idea/shelf/Uncommitted_changes_before_Checkout_at_26_07_2026_21_26__Changes_.xml +0 -4
- package/.idea/shelf/Uncommitted_changes_before_rebase_[Changes]/shelved.patch +0 -18
- package/.idea/shelf/Uncommitted_changes_before_rebase__Changes_.xml +0 -4
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
<changelist name="Uncommitted_changes_before_Checkout_at_26_07_2026_21_26_[Changes]" date="1785094034066" recycled="true" deleted="true">
|
|
2
|
-
<option name="PATH" value="$PROJECT_DIR$/.idea/shelf/Uncommitted_changes_before_Checkout_at_26_07_2026_21_26_[Changes]/shelved.patch" />
|
|
3
|
-
<option name="DESCRIPTION" value="Uncommitted changes before Checkout at 26.07.2026 21:26 [Changes]" />
|
|
4
|
-
</changelist>
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
Index: package.json
|
|
2
|
-
IDEA additional info:
|
|
3
|
-
Subsystem: com.intellij.openapi.diff.impl.patch.BaseRevisionTextPatchEP
|
|
4
|
-
<+>{\n \"name\": \"polfan-server-js-client\",\n \"version\": \"0.3.1\",\n \"description\": \"JavaScript client library for handling communication with Polfan chat server.\",\n \"author\": \"Jarosław Żak\",\n \"license\": \"MIT\",\n \"main\": \"build/index.cjs.js\",\n \"browser\": \"build/index.umd.js\",\n \"types\": \"build/types/index.d.ts\",\n \"exports\": {\n \".\": {\n \"types\": \"./build/types/index.d.ts\",\n \"require\": \"./build/index.cjs.js\",\n \"browser\": \"./build/index.umd.js\",\n \"default\": \"./build/index.cjs.js\"\n }\n },\n \"scripts\": {\n \"build\": \"npm run build:node && npm run build:browser && tsc\",\n \"build:node\": \"webpack --config webpack.config.node.js\",\n \"build:browser\": \"webpack --config webpack.config.browser.js\",\n \"test\": \"jest\",\n \"coverage\": \"npm run test -- --coverage\",\n \"trypublish\": \"npm publish || true\"\n },\n \"devDependencies\": {\n \"@babel/cli\": \"^7.28.3\",\n \"@babel/core\": \"^7.28.5\",\n \"@babel/preset-env\": \"^7.28.5\",\n \"@babel/preset-typescript\": \"^7.28.5\",\n \"@types/jest\": \"^29.5.14\",\n \"babel-loader\": \"^9.2.1\",\n \"file-loader\": \"^6.2.0\",\n \"jest\": \"^29.7.0\",\n \"ts-node\": \"^10.9.2\",\n \"typescript\": \"^4.9.5\",\n \"webpack\": \"^5.103.0\",\n \"webpack-cli\": \"^5.1.4\"\n },\n \"dependencies\": {\n \"terser-webpack-plugin\": \"^5.3.14\"\n }\n}\n
|
|
5
|
-
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
|
|
6
|
-
<+>UTF-8
|
|
7
|
-
===================================================================
|
|
8
|
-
diff --git a/package.json b/package.json
|
|
9
|
-
--- a/package.json (revision d974e79c5de0f1238eda4bf6d13f7e38ca819d90)
|
|
10
|
-
+++ b/package.json (date 1785593595442)
|
|
11
|
-
@@ -1,6 +1,6 @@
|
|
12
|
-
{
|
|
13
|
-
"name": "polfan-server-js-client",
|
|
14
|
-
- "version": "0.3.1",
|
|
15
|
-
+ "version": "0.3.2",
|
|
16
|
-
"description": "JavaScript client library for handling communication with Polfan chat server.",
|
|
17
|
-
"author": "Jarosław Żak",
|
|
18
|
-
"license": "MIT",
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
<changelist name="Uncommitted_changes_before_rebase_[Changes]" date="1785593598500" recycled="true" deleted="true">
|
|
2
|
-
<option name="PATH" value="$PROJECT_DIR$/.idea/shelf/Uncommitted_changes_before_rebase_[Changes]/shelved.patch" />
|
|
3
|
-
<option name="DESCRIPTION" value="Uncommitted changes before rebase [Changes]" />
|
|
4
|
-
</changelist>
|