update
This commit is contained in:
21
APP/nexus-remote/node_modules/defer-to-connect/LICENSE
generated
vendored
Normal file
21
APP/nexus-remote/node_modules/defer-to-connect/LICENSE
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2018 Szymon Marczak
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
38
APP/nexus-remote/node_modules/defer-to-connect/README.md
generated
vendored
Normal file
38
APP/nexus-remote/node_modules/defer-to-connect/README.md
generated
vendored
Normal file
@@ -0,0 +1,38 @@
|
||||
# defer-to-connect
|
||||
|
||||
> The safe way to handle the `connect` socket event
|
||||
|
||||
[](https://coveralls.io/github/szmarczak/defer-to-connect?branch=master)
|
||||
|
||||
Once you receive the socket, it may be already connected (or disconnected).<br>
|
||||
To avoid checking that, use `defer-to-connect`. It'll do that for you.
|
||||
|
||||
## Usage
|
||||
|
||||
```js
|
||||
const deferToConnect = require('defer-to-connect');
|
||||
|
||||
deferToConnect(socket, () => {
|
||||
console.log('Connected!');
|
||||
});
|
||||
```
|
||||
|
||||
## API
|
||||
|
||||
### deferToConnect(socket, connectListener)
|
||||
|
||||
Calls `connectListener()` when connected.
|
||||
|
||||
### deferToConnect(socket, listeners)
|
||||
|
||||
#### listeners
|
||||
|
||||
An object representing `connect`, `secureConnect` and `close` properties.
|
||||
|
||||
Calls `connect()` when the socket is connected.<br>
|
||||
Calls `secureConnect()` when the socket is securely connected.<br>
|
||||
Calls `close()` when the socket is destroyed.
|
||||
|
||||
## License
|
||||
|
||||
MIT
|
||||
71
APP/nexus-remote/node_modules/defer-to-connect/package.json
generated
vendored
Normal file
71
APP/nexus-remote/node_modules/defer-to-connect/package.json
generated
vendored
Normal file
@@ -0,0 +1,71 @@
|
||||
{
|
||||
"name": "defer-to-connect",
|
||||
"version": "2.0.1",
|
||||
"description": "The safe way to handle the `connect` socket event",
|
||||
"main": "dist/source",
|
||||
"files": [
|
||||
"dist/source"
|
||||
],
|
||||
"engines": {
|
||||
"node": ">=10"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "del-cli dist && tsc",
|
||||
"prepare": "npm run build",
|
||||
"test": "xo && tsc --noEmit && nyc ava",
|
||||
"coveralls": "nyc report --reporter=text-lcov | coveralls"
|
||||
},
|
||||
"keywords": [
|
||||
"socket",
|
||||
"connect",
|
||||
"event"
|
||||
],
|
||||
"author": "Szymon Marczak",
|
||||
"license": "MIT",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/szmarczak/defer-to-connect.git"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/szmarczak/defer-to-connect/issues"
|
||||
},
|
||||
"homepage": "https://github.com/szmarczak/defer-to-connect#readme",
|
||||
"xo": {
|
||||
"extends": "xo-typescript",
|
||||
"extensions": [
|
||||
"ts"
|
||||
]
|
||||
},
|
||||
"devDependencies": {
|
||||
"@ava/typescript": "^1.1.0",
|
||||
"@sindresorhus/tsconfig": "^0.7.0",
|
||||
"@types/node": "^13.5.0",
|
||||
"@typescript-eslint/eslint-plugin": "^2.18.0",
|
||||
"@typescript-eslint/parser": "^2.18.0",
|
||||
"ava": "^3.2.0",
|
||||
"coveralls": "^3.0.9",
|
||||
"create-cert": "^1.0.6",
|
||||
"del-cli": "^3.0.0",
|
||||
"eslint-config-xo-typescript": "^0.24.1",
|
||||
"nyc": "^15.0.0",
|
||||
"p-event": "^4.1.0",
|
||||
"typescript": "^3.7.5",
|
||||
"xo": "^0.25.3"
|
||||
},
|
||||
"nyc": {
|
||||
"include": [
|
||||
"dist/source"
|
||||
],
|
||||
"extension": [
|
||||
".ts"
|
||||
]
|
||||
},
|
||||
"ava": {
|
||||
"typescript": {
|
||||
"rewritePaths": {
|
||||
"tests/": "dist/tests/"
|
||||
}
|
||||
}
|
||||
},
|
||||
"types": "dist/source/index.d.ts"
|
||||
}
|
||||
Reference in New Issue
Block a user