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
42
node_modules/latest-version/index.d.ts
generated
vendored
Normal file
42
node_modules/latest-version/index.d.ts
generated
vendored
Normal file
|
@ -0,0 +1,42 @@
|
|||
declare namespace latestVersion {
|
||||
interface Options {
|
||||
/**
|
||||
A semver range or [dist-tag](https://docs.npmjs.com/cli/dist-tag).
|
||||
*/
|
||||
readonly version?: string;
|
||||
}
|
||||
}
|
||||
|
||||
declare const latestVersion: {
|
||||
/**
|
||||
Get the latest version of an npm package.
|
||||
|
||||
@example
|
||||
```
|
||||
import latestVersion = require('latest-version');
|
||||
|
||||
(async () => {
|
||||
console.log(await latestVersion('ava'));
|
||||
//=> '0.18.0'
|
||||
|
||||
console.log(await latestVersion('@sindresorhus/df'));
|
||||
//=> '1.0.1'
|
||||
|
||||
// Also works with semver ranges and dist-tags
|
||||
console.log(await latestVersion('npm', {version: 'latest-5'}));
|
||||
//=> '5.5.1'
|
||||
})();
|
||||
```
|
||||
*/
|
||||
(packageName: string, options?: latestVersion.Options): Promise<string>;
|
||||
|
||||
// TODO: Remove this for the next major release, refactor the whole definition to:
|
||||
// declare function latestVersion(
|
||||
// packageName: string,
|
||||
// options?: latestVersion.Options
|
||||
// ): Promise<string>;
|
||||
// export = latestVersion;
|
||||
default: typeof latestVersion;
|
||||
};
|
||||
|
||||
export = latestVersion;
|
11
node_modules/latest-version/index.js
generated
vendored
Normal file
11
node_modules/latest-version/index.js
generated
vendored
Normal file
|
@ -0,0 +1,11 @@
|
|||
'use strict';
|
||||
const packageJson = require('package-json');
|
||||
|
||||
const lastestVersion = async (packageName, options) => {
|
||||
const {version} = await packageJson(packageName.toLowerCase(), options);
|
||||
return version;
|
||||
};
|
||||
|
||||
module.exports = lastestVersion;
|
||||
// TODO: Remove this for the next major release
|
||||
module.exports.default = lastestVersion;
|
9
node_modules/latest-version/license
generated
vendored
Normal file
9
node_modules/latest-version/license
generated
vendored
Normal file
|
@ -0,0 +1,9 @@
|
|||
MIT License
|
||||
|
||||
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.
|
74
node_modules/latest-version/package.json
generated
vendored
Normal file
74
node_modules/latest-version/package.json
generated
vendored
Normal file
|
@ -0,0 +1,74 @@
|
|||
{
|
||||
"_from": "latest-version@^5.0.0",
|
||||
"_id": "latest-version@5.1.0",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha512-weT+r0kTkRQdCdYCNtkMwWXQTMEswKrFBkm4ckQOMVhhqhIMI1UT2hMj+1iigIhgSZm5gTmrRXBNoGUgaTY1xA==",
|
||||
"_location": "/latest-version",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "range",
|
||||
"registry": true,
|
||||
"raw": "latest-version@^5.0.0",
|
||||
"name": "latest-version",
|
||||
"escapedName": "latest-version",
|
||||
"rawSpec": "^5.0.0",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "^5.0.0"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/update-notifier"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/latest-version/-/latest-version-5.1.0.tgz",
|
||||
"_shasum": "119dfe908fe38d15dfa43ecd13fa12ec8832face",
|
||||
"_spec": "latest-version@^5.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/latest-version/issues"
|
||||
},
|
||||
"bundleDependencies": false,
|
||||
"dependencies": {
|
||||
"package-json": "^6.3.0"
|
||||
},
|
||||
"deprecated": false,
|
||||
"description": "Get the latest version of an npm package",
|
||||
"devDependencies": {
|
||||
"ava": "^1.4.1",
|
||||
"semver": "^6.0.0",
|
||||
"semver-regex": "^2.0.0",
|
||||
"tsd": "^0.7.2",
|
||||
"xo": "^0.24.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=8"
|
||||
},
|
||||
"files": [
|
||||
"index.js",
|
||||
"index.d.ts"
|
||||
],
|
||||
"homepage": "https://github.com/sindresorhus/latest-version#readme",
|
||||
"keywords": [
|
||||
"latest",
|
||||
"version",
|
||||
"npm",
|
||||
"pkg",
|
||||
"package",
|
||||
"package.json",
|
||||
"current",
|
||||
"module"
|
||||
],
|
||||
"license": "MIT",
|
||||
"name": "latest-version",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/sindresorhus/latest-version.git"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "xo && ava && tsd"
|
||||
},
|
||||
"version": "5.1.0"
|
||||
}
|
42
node_modules/latest-version/readme.md
generated
vendored
Normal file
42
node_modules/latest-version/readme.md
generated
vendored
Normal file
|
@ -0,0 +1,42 @@
|
|||
# latest-version [](https://travis-ci.org/sindresorhus/latest-version)
|
||||
|
||||
> Get the latest version of an npm package
|
||||
|
||||
Fetches the version directly from the registry instead of depending on the massive [npm](https://github.com/npm/npm/blob/8b5e7b6ae5b4cd2d7d62eaf93b1428638b387072/package.json#L37-L85) module like the [latest](https://github.com/bahamas10/node-latest) module does.
|
||||
|
||||
|
||||
## Install
|
||||
|
||||
```
|
||||
$ npm install latest-version
|
||||
```
|
||||
|
||||
|
||||
## Usage
|
||||
|
||||
```js
|
||||
const latestVersion = require('latest-version');
|
||||
|
||||
(async () => {
|
||||
console.log(await latestVersion('ava'));
|
||||
//=> '0.18.0'
|
||||
|
||||
console.log(await latestVersion('@sindresorhus/df'));
|
||||
//=> '1.0.1'
|
||||
|
||||
// Also works with semver ranges and dist-tags
|
||||
console.log(await latestVersion('npm', {version: 'latest-5'}));
|
||||
//=> '5.5.1'
|
||||
})();
|
||||
```
|
||||
|
||||
|
||||
## Related
|
||||
|
||||
- [latest-version-cli](https://github.com/sindresorhus/latest-version-cli) - CLI for this module
|
||||
- [package-json](https://github.com/sindresorhus/package-json) - Get the package.json of a package from the npm registry
|
||||
|
||||
|
||||
## License
|
||||
|
||||
MIT © [Sindre Sorhus](https://sindresorhus.com)
|
Loading…
Add table
Add a link
Reference in a new issue