1
0
Fork 0
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:
shimataro 2019-09-18 20:39:54 +09:00 committed by GitHub
parent 8deacc95b1
commit ace1e6a69a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3750 changed files with 1155519 additions and 0 deletions

28
node_modules/xdg-basedir/index.js generated vendored Normal file
View file

@ -0,0 +1,28 @@
'use strict';
const os = require('os');
const path = require('path');
const home = os.homedir();
const env = process.env;
exports.data = env.XDG_DATA_HOME ||
(home ? path.join(home, '.local', 'share') : null);
exports.config = env.XDG_CONFIG_HOME ||
(home ? path.join(home, '.config') : null);
exports.cache = env.XDG_CACHE_HOME || (home ? path.join(home, '.cache') : null);
exports.runtime = env.XDG_RUNTIME_DIR || null;
exports.dataDirs = (env.XDG_DATA_DIRS || '/usr/local/share/:/usr/share/').split(':');
if (exports.data) {
exports.dataDirs.unshift(exports.data);
}
exports.configDirs = (env.XDG_CONFIG_DIRS || '/etc/xdg').split(':');
if (exports.config) {
exports.configDirs.unshift(exports.config);
}

21
node_modules/xdg-basedir/license generated vendored Normal file
View file

@ -0,0 +1,21 @@
The MIT License (MIT)
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
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.

73
node_modules/xdg-basedir/package.json generated vendored Normal file
View file

@ -0,0 +1,73 @@
{
"_from": "xdg-basedir@^3.0.0",
"_id": "xdg-basedir@3.0.0",
"_inBundle": false,
"_integrity": "sha1-SWsswQnsqNus/i3HK2A8F8WHCtQ=",
"_location": "/xdg-basedir",
"_phantomChildren": {},
"_requested": {
"type": "range",
"registry": true,
"raw": "xdg-basedir@^3.0.0",
"name": "xdg-basedir",
"escapedName": "xdg-basedir",
"rawSpec": "^3.0.0",
"saveSpec": null,
"fetchSpec": "^3.0.0"
},
"_requiredBy": [
"/configstore",
"/update-notifier"
],
"_resolved": "https://registry.npmjs.org/xdg-basedir/-/xdg-basedir-3.0.0.tgz",
"_shasum": "496b2cc109eca8dbacfe2dc72b603c17c5870ad4",
"_spec": "xdg-basedir@^3.0.0",
"_where": "/home/shimataro/projects/actions/ssh-key-action/node_modules/update-notifier",
"author": {
"name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com",
"url": "sindresorhus.com"
},
"bugs": {
"url": "https://github.com/sindresorhus/xdg-basedir/issues"
},
"bundleDependencies": false,
"deprecated": false,
"description": "Get XDG Base Directory paths",
"devDependencies": {
"ava": "*",
"require-uncached": "^1.0.2",
"xo": "*"
},
"engines": {
"node": ">=4"
},
"files": [
"index.js"
],
"homepage": "https://github.com/sindresorhus/xdg-basedir#readme",
"keywords": [
"xdg",
"base",
"directory",
"dir",
"basedir",
"path",
"data",
"config",
"cache",
"linux",
"unix",
"spec"
],
"license": "MIT",
"name": "xdg-basedir",
"repository": {
"type": "git",
"url": "git+https://github.com/sindresorhus/xdg-basedir.git"
},
"scripts": {
"test": "xo && ava"
},
"version": "3.0.0"
}

60
node_modules/xdg-basedir/readme.md generated vendored Normal file
View file

@ -0,0 +1,60 @@
# xdg-basedir [![Build Status](https://travis-ci.org/sindresorhus/xdg-basedir.svg?branch=master)](https://travis-ci.org/sindresorhus/xdg-basedir)
> Get [XDG Base Directory](https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html) paths
## Install
```
$ npm install --save xdg-basedir
```
## Usage
```js
const xdgBasedir = require('xdg-basedir');
xdgBasedir.data;
//=> '/home/sindresorhus/.local/share'
xdgBasedir.config;
//=> '/home/sindresorhus/.config'
xdgBasedir.dataDirs
//=> ['/home/sindresorhus/.local/share', '/usr/local/share/', '/usr/share/']
```
## API
The properties `.data`, `.config`, `.cache`, `.runtime` will return `null` in the uncommon case that both the XDG environment variable is not set and the users home directory can't be found. You need to handle this case. A common solution is to [fall back to a temp directory](https://github.com/yeoman/configstore/blob/b82690fc401318ad18dcd7d151a0003a4898a314/index.js#L15).
### .data
Directory for user specific data files.
### .config
Directory for user specific configuration files.
### .cache
Directory for user specific non-essential data files.
### .runtime
Directory for user-specific non-essential runtime files and other file objects (such as sockets, named pipes, etc).
### .dataDirs
Preference-ordered array of base directories to search for data files in addition to `.data`.
### .configDirs
Preference-ordered array of base directories to search for configuration files in addition to `.config`.
## License
MIT © [Sindre Sorhus](https://sindresorhus.com)