@pryv/socket.io 1.0.2 → 1.0.6

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/package.json CHANGED
@@ -1,11 +1,12 @@
1
1
  {
2
2
  "name": "@pryv/socket.io",
3
- "version": "1.0.2",
3
+ "version": "1.0.6",
4
4
  "description": "Extends `pryv` package with socket.io transport",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
7
7
  "test": "mocha --reporter spec --exit test/*.test.js",
8
8
  "setup": "./scripts/setup-environment-dev.sh",
9
+ "example": "npx rec-la ./examples",
9
10
  "build": "webpack"
10
11
  },
11
12
  "repository": {
@@ -24,13 +25,13 @@
24
25
  "author": "Pryv S.A.",
25
26
  "license": "BSD-3-Clause",
26
27
  "devDependencies": {
27
- "@pryv/lib-js-common": "git+https://github.com/pryv/lib-js-common.git#1.0.2",
28
- "chai": "^4.2.0",
28
+ "@pryv/lib-js-common": "github:pryv/lib-js-common#1.0.6",
29
+ "chai": "^4.3.4",
29
30
  "cuid": "^2.1.8",
30
- "mocha": "^8.2.1",
31
- "pryv": "^2.1.2"
31
+ "mocha": "^9.1.3",
32
+ "pryv": "^2.1.9"
32
33
  },
33
34
  "dependencies": {
34
- "socket.io-client": "^2.3.1"
35
+ "socket.io-client": "^4.4.0"
35
36
  }
36
37
  }
package/src/SocketIO.js CHANGED
@@ -1,5 +1,4 @@
1
1
  const io = require('socket.io-client');
2
- const { resolve } = require('path');
3
2
  const { EventEmitter } = require('events');
4
3
 
5
4
  const EVENTS = ['eventsChanged', 'streamsChanged', 'accessesChanged', 'disconnect', 'error'];
package/webpack.config.js CHANGED
@@ -17,7 +17,7 @@ module.exports = [
17
17
  { // es5
18
18
  mode: 'production',
19
19
  entry: {
20
- 'pryv-socket.io': ['core-js/stable','./src/browser-index.js']
20
+ 'pryv-socket.io': ['./src/browser-index.js']
21
21
  },
22
22
  output: {
23
23
  filename: '[name].js',