w-comor-mqtt 1.0.35 → 1.0.36
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/ci-test.yml +1 -1
- package/README.md +1 -1
- package/dist/w-comor-mqtt-client.umd.js +1 -1
- package/dist/w-comor-mqtt-server.umd.js +1 -1
- package/docs/WComorMqttClient.mjs.html +5 -5
- package/docs/WComorMqttServer.mjs.html +3 -3
- package/docs/global.html +1 -1
- package/docs/index.html +1 -1
- package/package.json +3 -3
- package/script.txt +18 -0
- package/src/WComorMqttClient.mjs +4 -4
- package/src/WComorMqttServer.mjs +2 -2
package/README.md
CHANGED
|
@@ -186,7 +186,7 @@ new WComorMqttClient(opt)
|
|
|
186
186
|
```
|
|
187
187
|
[Necessary] Add script for w-comor-mqtt-client.
|
|
188
188
|
```alias
|
|
189
|
-
<script src="https://cdn.jsdelivr.net/npm/w-comor-mqtt@1.0.
|
|
189
|
+
<script src="https://cdn.jsdelivr.net/npm/w-comor-mqtt@1.0.36/dist/w-comor-mqtt-client.umd.js"></script>
|
|
190
190
|
```
|
|
191
191
|
#### Example for `w-comor-mqtt-client`:
|
|
192
192
|
> **Link:** [[dev source code](https://github.com/yuda-lyu/w-comor-mqtt/blob/master/web.html)]
|
|
@@ -46,10 +46,10 @@
|
|
|
46
46
|
<section>
|
|
47
47
|
<article>
|
|
48
48
|
<pre class="prettyprint source linenums"><code>import mqtt from 'mqtt'
|
|
49
|
-
import get from 'lodash-es/get'
|
|
50
|
-
import set from 'lodash-es/set'
|
|
51
|
-
import each from 'lodash-es/each'
|
|
52
|
-
import keys from 'lodash-es/keys'
|
|
49
|
+
import get from 'lodash-es/get.js'
|
|
50
|
+
import set from 'lodash-es/set.js'
|
|
51
|
+
import each from 'lodash-es/each.js'
|
|
52
|
+
import keys from 'lodash-es/keys.js'
|
|
53
53
|
import genPm from 'wsemi/src/genPm.mjs'
|
|
54
54
|
import genID from 'wsemi/src/genID.mjs'
|
|
55
55
|
import evem from 'wsemi/src/evem.mjs'
|
|
@@ -500,7 +500,7 @@ export default WComorMqttClient
|
|
|
500
500
|
<br class="clear">
|
|
501
501
|
|
|
502
502
|
<footer>
|
|
503
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on
|
|
503
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Sun Mar 24 2024 22:20:17 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
|
|
504
504
|
</footer>
|
|
505
505
|
|
|
506
506
|
<script>prettyPrint();</script>
|
|
@@ -48,8 +48,8 @@
|
|
|
48
48
|
<pre class="prettyprint source linenums"><code>import Aedes from 'aedes'
|
|
49
49
|
import AedesServerFactory from 'aedes-server-factory'
|
|
50
50
|
import net from 'net'
|
|
51
|
-
import keys from 'lodash-es/keys'
|
|
52
|
-
import get from 'lodash-es/get'
|
|
51
|
+
import keys from 'lodash-es/keys.js'
|
|
52
|
+
import get from 'lodash-es/get.js'
|
|
53
53
|
import genPm from 'wsemi/src/genPm.mjs'
|
|
54
54
|
import haskey from 'wsemi/src/haskey.mjs'
|
|
55
55
|
import j2o from 'wsemi/src/j2o.mjs'
|
|
@@ -417,7 +417,7 @@ export default WComorMqttServer
|
|
|
417
417
|
<br class="clear">
|
|
418
418
|
|
|
419
419
|
<footer>
|
|
420
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on
|
|
420
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Sun Mar 24 2024 22:20:17 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
|
|
421
421
|
</footer>
|
|
422
422
|
|
|
423
423
|
<script>prettyPrint();</script>
|
package/docs/global.html
CHANGED
|
@@ -888,7 +888,7 @@
|
|
|
888
888
|
<br class="clear">
|
|
889
889
|
|
|
890
890
|
<footer>
|
|
891
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on
|
|
891
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Sun Mar 24 2024 22:20:17 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
|
|
892
892
|
</footer>
|
|
893
893
|
|
|
894
894
|
<script>prettyPrint();</script>
|
package/docs/index.html
CHANGED
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
<br class="clear">
|
|
72
72
|
|
|
73
73
|
<footer>
|
|
74
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on
|
|
74
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Sun Mar 24 2024 22:20:17 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
|
|
75
75
|
</footer>
|
|
76
76
|
|
|
77
77
|
<script>prettyPrint();</script>
|
package/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "w-comor-mqtt",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.36",
|
|
4
4
|
"main": "dist/w-comor-mqtt-server.umd.js",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"aedes": "^0.51.0",
|
|
7
7
|
"aedes-server-factory": "^0.2.1",
|
|
8
8
|
"lodash-es": "^4.17.21",
|
|
9
9
|
"mqtt": "^5.5.0",
|
|
10
|
-
"wsemi": "^1.7.
|
|
10
|
+
"wsemi": "^1.7.49"
|
|
11
11
|
},
|
|
12
12
|
"devDependencies": {
|
|
13
|
-
"w-package-tools": "^1.0.
|
|
13
|
+
"w-package-tools": "^1.0.75"
|
|
14
14
|
},
|
|
15
15
|
"scripts": {
|
|
16
16
|
"test": "mocha --parallel --timeout 60000 --experimental-modules --es-module-specifier-resolution=node",
|
package/script.txt
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
#node --experimental-modules --es-module-specifier-resolution=node toolg/addVersion.mjs
|
|
2
|
+
node --experimental-modules --es-module-specifier-resolution=node toolg/modifyReadme.mjs
|
|
3
|
+
|
|
4
|
+
node --experimental-modules --es-module-specifier-resolution=node toolg/cleanFolder.mjs
|
|
5
|
+
./node_modules/.bin/jsdoc -c .jsdoc
|
|
6
|
+
|
|
7
|
+
node --experimental-modules --es-module-specifier-resolution=node toolg/gDistRollup.mjs
|
|
8
|
+
|
|
9
|
+
git add . -A
|
|
10
|
+
git commit -m 'modify: '
|
|
11
|
+
git push origin master:master
|
|
12
|
+
|
|
13
|
+
npm run deploy
|
|
14
|
+
|
|
15
|
+
#npm test
|
|
16
|
+
|
|
17
|
+
#npm publish
|
|
18
|
+
|
package/src/WComorMqttClient.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import mqtt from 'mqtt'
|
|
2
|
-
import get from 'lodash-es/get'
|
|
3
|
-
import set from 'lodash-es/set'
|
|
4
|
-
import each from 'lodash-es/each'
|
|
5
|
-
import keys from 'lodash-es/keys'
|
|
2
|
+
import get from 'lodash-es/get.js'
|
|
3
|
+
import set from 'lodash-es/set.js'
|
|
4
|
+
import each from 'lodash-es/each.js'
|
|
5
|
+
import keys from 'lodash-es/keys.js'
|
|
6
6
|
import genPm from 'wsemi/src/genPm.mjs'
|
|
7
7
|
import genID from 'wsemi/src/genID.mjs'
|
|
8
8
|
import evem from 'wsemi/src/evem.mjs'
|
package/src/WComorMqttServer.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import Aedes from 'aedes'
|
|
2
2
|
import AedesServerFactory from 'aedes-server-factory'
|
|
3
3
|
import net from 'net'
|
|
4
|
-
import keys from 'lodash-es/keys'
|
|
5
|
-
import get from 'lodash-es/get'
|
|
4
|
+
import keys from 'lodash-es/keys.js'
|
|
5
|
+
import get from 'lodash-es/get.js'
|
|
6
6
|
import genPm from 'wsemi/src/genPm.mjs'
|
|
7
7
|
import haskey from 'wsemi/src/haskey.mjs'
|
|
8
8
|
import j2o from 'wsemi/src/j2o.mjs'
|