pusher-js 7.5.0 → 8.0.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/.github/workflows/run-tests.yml +27 -3
- package/CHANGELOG.md +898 -890
- package/Makefile +1 -0
- package/README.md +12 -4
- package/dist/node/pusher.js +111 -43
- package/dist/node/pusher.js.map +1 -1
- package/dist/react-native/pusher.js +5 -5
- package/dist/react-native/pusher.js.map +1 -1
- package/dist/web/pusher-with-encryption.js +55 -24
- package/dist/web/pusher-with-encryption.js.map +1 -1
- package/dist/web/pusher-with-encryption.min.js +2 -2
- package/dist/web/pusher-with-encryption.min.js.map +1 -1
- package/dist/web/pusher.js +53 -23
- package/dist/web/pusher.js.map +1 -1
- package/dist/web/pusher.min.js +2 -2
- package/dist/web/pusher.min.js.map +1 -1
- package/dist/worker/pusher-with-encryption.worker.js +53 -23
- package/dist/worker/pusher-with-encryption.worker.js.map +1 -1
- package/dist/worker/pusher-with-encryption.worker.min.js +2 -2
- package/dist/worker/pusher-with-encryption.worker.min.js.map +1 -1
- package/dist/worker/pusher.worker.js +51 -22
- package/dist/worker/pusher.worker.js.map +1 -1
- package/dist/worker/pusher.worker.min.js +2 -2
- package/dist/worker/pusher.worker.min.js.map +1 -1
- package/integration_tests_server/index.js +176 -0
- package/integration_tests_server/package-lock.json +1177 -0
- package/integration_tests_server/package.json +15 -0
- package/package.json +6 -5
- package/spec/config/karma/config.common.js +1 -2
- package/spec/javascripts/helpers/node/integration.js +2 -2
- package/spec/javascripts/helpers/web/integration.js +2 -2
- package/spec/javascripts/integration/core/cluster_config_spec.js +1 -1
- package/spec/javascripts/integration/core/falling_back_spec.js +2 -2
- package/spec/javascripts/integration/core/pusher_spec/test_builder.js +15 -43
- package/spec/javascripts/integration/core/timeout_configuration_spec.js +6 -3
- package/spec/javascripts/integration/core/transport_lists_spec.js +5 -1
- package/spec/javascripts/integration/web/dom/jsonp_spec.js +2 -2
- package/spec/javascripts/unit/core/config_spec.js +91 -3
- package/spec/javascripts/unit/core/connection/connection_manager_spec.js +11 -1
- package/spec/javascripts/unit/core/http/http_request_spec.js +0 -6
- package/spec/javascripts/unit/core/pusher_spec.js +40 -40
- package/spec/javascripts/unit/core/pusher_with_encryption_spec.js +2 -2
- package/spec/javascripts/unit/core/transports/hosts_and_ports_spec.js +4 -4
- package/spec/javascripts/unit/core/transports/transport_connection_spec.js +5 -0
- package/spec/javascripts/unit/core/user_spec.js +2 -1
- package/spec/javascripts/unit/core/utils/timers_spec.js +0 -4
- package/spec/javascripts/unit/core_with_runtime/auth/channel_authorizer_spec.js +82 -0
- package/spec/javascripts/unit/core_with_runtime/auth/user_authorizer_spec.js +76 -0
- package/spec/javascripts/unit/isomorphic/transports/hosts_and_ports_spec.js +6 -6
- package/spec/javascripts/unit/web/pusher_authorizer_spec.js +28 -0
- package/spec/javascripts/unit/web/transports/hosts_and_ports_spec.js +10 -10
- package/spec/javascripts/unit/worker/channel_authorizer_spec.js +46 -0
- package/src/core/auth/channel_authorizer.ts +14 -3
- package/src/core/auth/options.ts +4 -0
- package/src/core/auth/user_authenticator.ts +14 -3
- package/src/core/config.ts +2 -6
- package/src/core/defaults.ts +0 -2
- package/src/core/options.ts +16 -1
- package/src/core/pusher-with-encryption.ts +3 -3
- package/src/core/pusher.ts +3 -15
- package/src/runtimes/isomorphic/auth/xhr_auth.ts +6 -0
- package/src/runtimes/web/auth/jsonp_auth.ts +4 -1
- package/src/runtimes/worker/auth/fetch_auth.ts +7 -0
- package/types/src/core/auth/options.d.ts +4 -0
- package/types/src/core/defaults.d.ts +0 -1
- package/types/src/core/options.d.ts +2 -1
- package/types/src/core/pusher-with-encryption.d.ts +1 -1
- package/types/src/core/pusher.d.ts +1 -1
|
@@ -20,8 +20,20 @@ jobs:
|
|
|
20
20
|
- run: npm install
|
|
21
21
|
- run: npm run check-format
|
|
22
22
|
- run: make web_unit
|
|
23
|
-
-
|
|
23
|
+
- name: make web_integration
|
|
24
|
+
run: |
|
|
25
|
+
cd integration_tests_server
|
|
26
|
+
npm install
|
|
27
|
+
node index.js&
|
|
28
|
+
cd ..
|
|
29
|
+
make web_integration
|
|
24
30
|
env:
|
|
31
|
+
INTEGRATION_TESTS_APP_MT1_APP_ID: ${{ secrets.INTEGRATION_TESTS_APP_MT1_APP_ID }}
|
|
32
|
+
INTEGRATION_TESTS_APP_MT1_KEY: ${{ secrets.INTEGRATION_TESTS_APP_MT1_KEY }}
|
|
33
|
+
INTEGRATION_TESTS_APP_MT1_SECRET: ${{ secrets.INTEGRATION_TESTS_APP_MT1_SECRET }}
|
|
34
|
+
INTEGRATION_TESTS_APP_EU_APP_ID: ${{ secrets.INTEGRATION_TESTS_APP_EU_APP_ID }}
|
|
35
|
+
INTEGRATION_TESTS_APP_EU_KEY: ${{ secrets.INTEGRATION_TESTS_APP_EU_KEY }}
|
|
36
|
+
INTEGRATION_TESTS_APP_EU_SECRET: ${{ secrets.INTEGRATION_TESTS_APP_EU_SECRET }}
|
|
25
37
|
BROWSER_STACK_ACCESS_KEY: ${{ secrets.BROWSER_STACK_ACCESS_KEY }}
|
|
26
38
|
BROWSER_STACK_USERNAME: ${{ secrets.BROWSER_STACK_USERNAME }}
|
|
27
39
|
run-node-tests:
|
|
@@ -34,5 +46,17 @@ jobs:
|
|
|
34
46
|
- run: npm install
|
|
35
47
|
- run: npm run check-format
|
|
36
48
|
- run: make node_unit
|
|
37
|
-
-
|
|
38
|
-
|
|
49
|
+
- name: make node_integration
|
|
50
|
+
run: |
|
|
51
|
+
cd integration_tests_server
|
|
52
|
+
npm install
|
|
53
|
+
node index.js&
|
|
54
|
+
cd ..
|
|
55
|
+
make node_integration
|
|
56
|
+
env:
|
|
57
|
+
INTEGRATION_TESTS_APP_MT1_APP_ID: ${{ secrets.INTEGRATION_TESTS_APP_MT1_APP_ID }}
|
|
58
|
+
INTEGRATION_TESTS_APP_MT1_KEY: ${{ secrets.INTEGRATION_TESTS_APP_MT1_KEY }}
|
|
59
|
+
INTEGRATION_TESTS_APP_MT1_SECRET: ${{ secrets.INTEGRATION_TESTS_APP_MT1_SECRET }}
|
|
60
|
+
INTEGRATION_TESTS_APP_EU_APP_ID: ${{ secrets.INTEGRATION_TESTS_APP_EU_APP_ID }}
|
|
61
|
+
INTEGRATION_TESTS_APP_EU_KEY: ${{ secrets.INTEGRATION_TESTS_APP_EU_KEY }}
|
|
62
|
+
INTEGRATION_TESTS_APP_EU_SECRET: ${{ secrets.INTEGRATION_TESTS_APP_EU_SECRET }}
|