mirror of
https://github.com/shimataro/ssh-key-action.git
synced 2025-06-19 22:52:10 +10:00
* first action! (#1)
This commit is contained in:
parent
8deacc95b1
commit
ace1e6a69a
3750 changed files with 1155519 additions and 0 deletions
21
node_modules/defer-to-connect/LICENSE
generated
vendored
Normal file
21
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.
|
26
node_modules/defer-to-connect/README.md
generated
vendored
Normal file
26
node_modules/defer-to-connect/README.md
generated
vendored
Normal file
|
@ -0,0 +1,26 @@
|
|||
# defer-to-connect
|
||||
|
||||
> The safe way to handle the `connect` socket event
|
||||
|
||||
Once you receive the socket, it may be already connected.<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, fn)
|
||||
|
||||
Calls `fn()` when connected.
|
||||
|
||||
## License
|
||||
|
||||
MIT
|
9
node_modules/defer-to-connect/index.js
generated
vendored
Normal file
9
node_modules/defer-to-connect/index.js
generated
vendored
Normal file
|
@ -0,0 +1,9 @@
|
|||
'use strict';
|
||||
|
||||
module.exports = (socket, callback) => {
|
||||
if (socket.writable && !socket.connecting) {
|
||||
callback();
|
||||
} else {
|
||||
socket.once('connect', callback);
|
||||
}
|
||||
};
|
51
node_modules/defer-to-connect/package.json
generated
vendored
Normal file
51
node_modules/defer-to-connect/package.json
generated
vendored
Normal file
|
@ -0,0 +1,51 @@
|
|||
{
|
||||
"_from": "defer-to-connect@^1.0.1",
|
||||
"_id": "defer-to-connect@1.0.2",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha512-k09hcQcTDY+cwgiwa6PYKLm3jlagNzQ+RSvhjzESOGOx+MNOuXkxTfEvPrO1IOQ81tArCFYQgi631clB70RpQw==",
|
||||
"_location": "/defer-to-connect",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "range",
|
||||
"registry": true,
|
||||
"raw": "defer-to-connect@^1.0.1",
|
||||
"name": "defer-to-connect",
|
||||
"escapedName": "defer-to-connect",
|
||||
"rawSpec": "^1.0.1",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "^1.0.1"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/@szmarczak/http-timer"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/defer-to-connect/-/defer-to-connect-1.0.2.tgz",
|
||||
"_shasum": "4bae758a314b034ae33902b5aac25a8dd6a8633e",
|
||||
"_spec": "defer-to-connect@^1.0.1",
|
||||
"_where": "/home/shimataro/projects/actions/ssh-key-action/node_modules/@szmarczak/http-timer",
|
||||
"author": {
|
||||
"name": "Szymon Marczak"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/szmarczak/defer-to-connect/issues"
|
||||
},
|
||||
"bundleDependencies": false,
|
||||
"deprecated": false,
|
||||
"description": "The safe way to handle the `connect` socket event",
|
||||
"homepage": "https://github.com/szmarczak/defer-to-connect#readme",
|
||||
"keywords": [
|
||||
"socket",
|
||||
"connect",
|
||||
"event"
|
||||
],
|
||||
"license": "MIT",
|
||||
"main": "index.js",
|
||||
"name": "defer-to-connect",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/szmarczak/defer-to-connect.git"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
},
|
||||
"version": "1.0.2"
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue