@live-change/dao-sockjs 0.5.22 → 0.6.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.
Files changed (2) hide show
  1. package/index.js +6 -7
  2. package/package.json +5 -4
package/index.js CHANGED
@@ -1,9 +1,9 @@
1
- const SockJS = require("sockjs-client")
2
- const rd = require("@live-change/dao")
3
- const Connection = rd.ReactiveConnection
4
- const debug = require('debug')('dao:sockjs')
1
+ import SockJS from "sockjs-client"
2
+ import { ReactiveConnection } from "@live-change/dao"
3
+ import Debug from "debug"
4
+ const debug = Debug('dao:sockjs')
5
5
 
6
- class SockJsConnection extends Connection {
6
+ class SockJsConnection extends ReactiveConnection {
7
7
  constructor(credentials, url, settings) {
8
8
  super(credentials, settings)
9
9
  this.url = url
@@ -61,5 +61,4 @@ class SockJsConnection extends Connection {
61
61
 
62
62
  }
63
63
 
64
- module.exports = SockJsConnection
65
- module.exports.SockJsConnection = SockJsConnection
64
+ export default SockJsConnection
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@live-change/dao-sockjs",
3
- "version": "0.5.22",
3
+ "version": "0.6.0",
4
4
  "author": {
5
5
  "email": "m8@em8.pl",
6
6
  "name": "Michał Łaszczewski",
@@ -10,11 +10,12 @@
10
10
  "url": "https://github.com/live-change/live-change-dao/issues"
11
11
  },
12
12
  "dependencies": {
13
- "@live-change/dao": "^0.5.22",
13
+ "@live-change/dao": "^0.6.0",
14
14
  "debug": "^4.3.4",
15
15
  "sockjs-client": "git+https://github.com/sockjs/sockjs-client.git",
16
- "supports-color": "^7.2.0"
16
+ "supports-color": "^9.4.0"
17
17
  },
18
+ "type": "module",
18
19
  "devDependencies": {
19
20
  "babel-loader": "^6.2.5",
20
21
  "babel-plugin-transform-react-jsx": "*",
@@ -42,5 +43,5 @@
42
43
  "scripts": {
43
44
  "compileTests": "webpack test/*.js tests-bundle.js"
44
45
  },
45
- "gitHead": "c44369e98e27df9f5d09142e6c34d02510b018b1"
46
+ "gitHead": "a74891e96d33fc1f70f49423f3e560517890f067"
46
47
  }