@live-change/dao-message 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 +5 -6
  2. package/package.json +5 -4
package/index.js CHANGED
@@ -1,8 +1,8 @@
1
- const rd = require("@live-change/dao")
2
- const Connection = rd.ReactiveConnection
3
- const debug = require('debug')('dao-message')
1
+ import { ReactiveConnection } from "@live-change/dao"
2
+ import Debug from "debug"
3
+ const debug = Debug('dao-message')
4
4
 
5
- class MessageConnection extends Connection {
5
+ class MessageConnection extends ReactiveConnection {
6
6
 
7
7
  constructor(credentials, url, settings) {
8
8
  super(credentials, settings)
@@ -68,5 +68,4 @@ class MessageConnection extends Connection {
68
68
 
69
69
  }
70
70
 
71
- module.exports = MessageConnection
72
- module.exports.MessageConnection = MessageConnection
71
+ export default MessageConnection
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@live-change/dao-message",
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,9 +10,9 @@
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
- "supports-color": "^7.2.0"
15
+ "supports-color": "^9.4.0"
16
16
  },
17
17
  "devDependencies": {
18
18
  "babel-loader": "^6.2.5",
@@ -21,6 +21,7 @@
21
21
  "better-assert": "github:devinrhode2/better-assert-browser",
22
22
  "mocha": "^9.0.0"
23
23
  },
24
+ "type": "module",
24
25
  "description": "live-change dao sockjs transport",
25
26
  "directories": {},
26
27
  "homepage": "https://github.com/live-change/live-change-dao",
@@ -41,5 +42,5 @@
41
42
  "scripts": {
42
43
  "compileTests": "webpack test/*.js tests-bundle.js"
43
44
  },
44
- "gitHead": "c44369e98e27df9f5d09142e6c34d02510b018b1"
45
+ "gitHead": "a74891e96d33fc1f70f49423f3e560517890f067"
45
46
  }