Skip to content

Commit

Permalink
modify: es6 import
Browse files Browse the repository at this point in the history
  • Loading branch information
yuda-lyu committed Mar 25, 2024
1 parent c2dc1dd commit 4ca8a7a
Show file tree
Hide file tree
Showing 18 changed files with 138 additions and 126 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci-test.yml
Expand Up @@ -9,7 +9,7 @@ jobs:

strategy:
matrix:
node-version: [18.x]
node-version: [20.x]

steps:
- uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -155,7 +155,7 @@ wo.on('broadcast', function(data) {
[Necessary] Add script for w-converws-client.
```alias
<script src="https://cdn.jsdelivr.net/npm/w-converws@1.0.33/dist/w-converws-client.umd.js"></script>
<script src="https://cdn.jsdelivr.net/npm/w-converws@1.0.34/dist/w-converws-client.umd.js"></script>
```
#### Example for w-converws-client:
> **Link:** [[dev source code](https://github.com/yuda-lyu/w-converws/blob/master/web.html)]
Expand Down
2 changes: 1 addition & 1 deletion dist/w-converws-client.umd.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/w-converws-client.umd.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/w-converws-server.umd.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/w-converws-server.umd.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/WConverwsClient.html
Expand Up @@ -1669,7 +1669,7 @@ <h5 class="h5-examples">Example</h5>
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Wed Mar 20 2024 23:56:09 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Mon Mar 25 2024 11:10:45 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
</footer>

<script>prettyPrint();</script>
Expand Down
20 changes: 10 additions & 10 deletions docs/WConverwsClient.mjs.html
Expand Up @@ -46,7 +46,7 @@ <h1 class="page-title">WConverwsClient.mjs</h1>
<section>
<article>
<pre class="prettyprint source linenums"><code>import WSC from 'w-websocket-client/src/WWebsocketClient.mjs'
import get from 'lodash-es/get'
import get from 'lodash-es/get.js'
import genPm from 'wsemi/src/genPm.mjs'
import genID from 'wsemi/src/genID.mjs'
import Evem from 'wsemi/src/evem.mjs'
Expand Down Expand Up @@ -175,7 +175,7 @@ <h1 class="page-title">WConverwsClient.mjs</h1>
wsc = new WSC(optt)
}
catch (err) {
eeEmit('error', { msg: 'can not create websocket', err: err })
eeEmit('error', { msg: 'can not create websocket', err })
reconn()
return
}
Expand Down Expand Up @@ -250,7 +250,7 @@ <h1 class="page-title">WConverwsClient.mjs</h1>
*/
function onError() {} onError()
function error(err) {
eeEmit('error', { msg: 'websocket error', err: err })
eeEmit('error', { msg: 'websocket error', err })
wsc.close()
}

Expand Down Expand Up @@ -316,7 +316,7 @@ <h1 class="page-title">WConverwsClient.mjs</h1>

//sendSplitData
sendSplitData(wsc, opt.strSplitLength, data, cbProgress, function (err) {
eeEmit('error', { msg: 'can not send message', err: err })
eeEmit('error', { msg: 'can not send message', err })
})

}
Expand All @@ -331,9 +331,9 @@ <h1 class="page-title">WConverwsClient.mjs</h1>
//msg
let msg = {
_mode: 'execute',
_id: _id,
func: func,
input: input,
_id,
func,
input,
}

//sendData
Expand All @@ -358,7 +358,7 @@ <h1 class="page-title">WConverwsClient.mjs</h1>
//msg
let msg = {
_mode: 'broadcast',
data: data,
data,
}

//sendData
Expand All @@ -372,7 +372,7 @@ <h1 class="page-title">WConverwsClient.mjs</h1>
//msg
let msg = {
_mode: 'deliver',
data: data,
data,
}

//sendData
Expand Down Expand Up @@ -520,7 +520,7 @@ <h1 class="page-title">WConverwsClient.mjs</h1>
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Wed Mar 20 2024 23:56:09 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Mon Mar 25 2024 11:10:45 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
</footer>

<script>prettyPrint();</script>
Expand Down
2 changes: 1 addition & 1 deletion docs/WConverwsServer.html
Expand Up @@ -1345,7 +1345,7 @@ <h5 class="h5-examples">Example</h5>
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Wed Mar 20 2024 23:56:09 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Mon Mar 25 2024 11:10:45 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
</footer>

<script>prettyPrint();</script>
Expand Down
10 changes: 5 additions & 5 deletions docs/WConverwsServer.mjs.html
Expand Up @@ -46,7 +46,7 @@ <h1 class="page-title">WConverwsServer.mjs</h1>
<section>
<article>
<pre class="prettyprint source linenums"><code>import WebSocket, { WebSocketServer } from 'ws'
import get from 'lodash-es/get'
import get from 'lodash-es/get.js'
// import genPm from 'wsemi/src/genPm.mjs'
// import urlParse from 'wsemi/src/urlParse.mjs'
import evem from 'wsemi/src/evem.mjs'
Expand Down Expand Up @@ -168,7 +168,7 @@ <h1 class="page-title">WConverwsServer.mjs</h1>
wss = new WebSocketServer(serverSettings)
}
catch (err) {
error({ msg: 'can not create websocket', err: err })
error({ msg: 'can not create websocket', err })
}


Expand Down Expand Up @@ -255,7 +255,7 @@ <h1 class="page-title">WConverwsServer.mjs</h1>

//sendSplitData
sendSplitData(wsc, opt.strSplitLength, data, cbProgress, function (err) {
error({ msg: 'can not send message', err: err })
error({ msg: 'can not send message', err })
})

}
Expand Down Expand Up @@ -333,7 +333,7 @@ <h1 class="page-title">WConverwsServer.mjs</h1>
//msg
let msg = {
_mode: 'broadcast',
data: data,
data,
}

//sendData
Expand Down Expand Up @@ -425,7 +425,7 @@ <h1 class="page-title">WConverwsServer.mjs</h1>
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Wed Mar 20 2024 23:56:09 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Mon Mar 25 2024 11:10:45 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
</footer>

<script>prettyPrint();</script>
Expand Down
2 changes: 1 addition & 1 deletion docs/index.html
Expand Up @@ -71,7 +71,7 @@ <h3> </h3>
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Wed Mar 20 2024 23:56:09 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Mon Mar 25 2024 11:10:45 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
</footer>

<script>prettyPrint();</script>
Expand Down

0 comments on commit 4ca8a7a

Please sign in to comment.