@live-change/dao-message 0.5.22 → 0.8.2

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 (3) hide show
  1. package/LICENSE.md +1 -1
  2. package/index.js +5 -6
  3. package/package.json +5 -4
package/LICENSE.md CHANGED
@@ -1,4 +1,4 @@
1
- Copyright 2019-2022 Michał Łaszczewski
1
+ Copyright 2019-2024 Michał Łaszczewski
2
2
 
3
3
  Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
4
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.8.2",
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": "53b8efc8ec7f5c1c4af33077d8fb4a8a5580f1d9"
45
46
  }