forked from mirrors/action-gh-release
remove node_modules
This commit is contained in:
parent
c7638c8893
commit
60358a145c
444 changed files with 0 additions and 83958 deletions
36
node_modules/macos-release/index.d.ts
generated
vendored
36
node_modules/macos-release/index.d.ts
generated
vendored
|
@ -1,36 +0,0 @@
|
|||
declare const macosRelease: {
|
||||
/**
|
||||
Get the name and version of a macOS release from the Darwin version.
|
||||
|
||||
@param release - By default, the current operating system is used, but you can supply a custom [Darwin kernel version](http://en.wikipedia.org/wiki/Darwin_%28operating_system%29#Release_history), which is the output of [`os.release()`](https://nodejs.org/api/os.html#os_os_release).
|
||||
|
||||
@example
|
||||
```
|
||||
import * as os from 'os';
|
||||
import macosRelease = require('macos-release');
|
||||
|
||||
// On a macOS Sierra system
|
||||
|
||||
macosRelease();
|
||||
//=> {name: 'Sierra', version: '10.12'}
|
||||
|
||||
os.release();
|
||||
//=> 13.2.0
|
||||
// This is the Darwin kernel version
|
||||
|
||||
macosRelease(os.release());
|
||||
//=> {name: 'Sierra', version: '10.12'}
|
||||
|
||||
macosRelease('14.0.0');
|
||||
//=> {name: 'Yosemite', version: '10.10'}
|
||||
```
|
||||
*/
|
||||
(release?: string): string;
|
||||
|
||||
// TODO: remove this in the next major version, refactor the whole definition to:
|
||||
// declare function macosRelease(release?: string): string;
|
||||
// export = macosRelease;
|
||||
default: typeof macosRelease;
|
||||
};
|
||||
|
||||
export = macosRelease;
|
32
node_modules/macos-release/index.js
generated
vendored
32
node_modules/macos-release/index.js
generated
vendored
|
@ -1,32 +0,0 @@
|
|||
'use strict';
|
||||
const os = require('os');
|
||||
|
||||
const nameMap = new Map([
|
||||
[19, 'Catalina'],
|
||||
[18, 'Mojave'],
|
||||
[17, 'High Sierra'],
|
||||
[16, 'Sierra'],
|
||||
[15, 'El Capitan'],
|
||||
[14, 'Yosemite'],
|
||||
[13, 'Mavericks'],
|
||||
[12, 'Mountain Lion'],
|
||||
[11, 'Lion'],
|
||||
[10, 'Snow Leopard'],
|
||||
[9, 'Leopard'],
|
||||
[8, 'Tiger'],
|
||||
[7, 'Panther'],
|
||||
[6, 'Jaguar'],
|
||||
[5, 'Puma']
|
||||
]);
|
||||
|
||||
const macosRelease = release => {
|
||||
release = Number((release || os.release()).split('.')[0]);
|
||||
return {
|
||||
name: nameMap.get(release),
|
||||
version: '10.' + (release - 4)
|
||||
};
|
||||
};
|
||||
|
||||
module.exports = macosRelease;
|
||||
// TODO: remove this in the next major version
|
||||
module.exports.default = macosRelease;
|
9
node_modules/macos-release/license
generated
vendored
9
node_modules/macos-release/license
generated
vendored
|
@ -1,9 +0,0 @@
|
|||
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/macos-release/package.json
generated
vendored
74
node_modules/macos-release/package.json
generated
vendored
|
@ -1,74 +0,0 @@
|
|||
{
|
||||
"_args": [
|
||||
[
|
||||
"macos-release@2.3.0",
|
||||
"/Users/dougtangren/code/rust/action-gh-release"
|
||||
]
|
||||
],
|
||||
"_from": "macos-release@2.3.0",
|
||||
"_id": "macos-release@2.3.0",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha512-OHhSbtcviqMPt7yfw5ef5aghS2jzFVKEFyCJndQt2YpSQ9qRVSEv2axSJI1paVThEu+FFGs584h/1YhxjVqajA==",
|
||||
"_location": "/macos-release",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "version",
|
||||
"registry": true,
|
||||
"raw": "macos-release@2.3.0",
|
||||
"name": "macos-release",
|
||||
"escapedName": "macos-release",
|
||||
"rawSpec": "2.3.0",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "2.3.0"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/os-name"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/macos-release/-/macos-release-2.3.0.tgz",
|
||||
"_spec": "2.3.0",
|
||||
"_where": "/Users/dougtangren/code/rust/action-gh-release",
|
||||
"author": {
|
||||
"name": "Sindre Sorhus",
|
||||
"email": "sindresorhus@gmail.com",
|
||||
"url": "sindresorhus.com"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/sindresorhus/macos-release/issues"
|
||||
},
|
||||
"description": "Get the name and version of a macOS release from the Darwin version",
|
||||
"devDependencies": {
|
||||
"ava": "^1.4.1",
|
||||
"tsd": "^0.7.1",
|
||||
"xo": "^0.24.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=6"
|
||||
},
|
||||
"files": [
|
||||
"index.js",
|
||||
"index.d.ts"
|
||||
],
|
||||
"homepage": "https://github.com/sindresorhus/macos-release#readme",
|
||||
"keywords": [
|
||||
"macos",
|
||||
"os",
|
||||
"darwin",
|
||||
"operating",
|
||||
"system",
|
||||
"platform",
|
||||
"name",
|
||||
"title",
|
||||
"release",
|
||||
"version"
|
||||
],
|
||||
"license": "MIT",
|
||||
"name": "macos-release",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/sindresorhus/macos-release.git"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "xo && ava && tsd"
|
||||
},
|
||||
"version": "2.3.0"
|
||||
}
|
57
node_modules/macos-release/readme.md
generated
vendored
57
node_modules/macos-release/readme.md
generated
vendored
|
@ -1,57 +0,0 @@
|
|||
# macos-release [](https://travis-ci.org/sindresorhus/macos-release)
|
||||
|
||||
> Get the name and version of a macOS release from the Darwin version<br>
|
||||
> Example: `13.2.0` → `{name: 'Mavericks', version: '10.9'}`
|
||||
|
||||
|
||||
## Install
|
||||
|
||||
```
|
||||
$ npm install macos-release
|
||||
```
|
||||
|
||||
|
||||
## Usage
|
||||
|
||||
```js
|
||||
const os = require('os');
|
||||
const macosRelease = require('macos-release');
|
||||
|
||||
// On a macOS Sierra system
|
||||
|
||||
macosRelease();
|
||||
//=> {name: 'Sierra', version: '10.12'}
|
||||
|
||||
os.release();
|
||||
//=> 13.2.0
|
||||
// This is the Darwin kernel version
|
||||
|
||||
macosRelease(os.release());
|
||||
//=> {name: 'Sierra', version: '10.12'}
|
||||
|
||||
macosRelease('14.0.0');
|
||||
//=> {name: 'Yosemite', version: '10.10'}
|
||||
```
|
||||
|
||||
|
||||
## API
|
||||
|
||||
### macosRelease([release])
|
||||
|
||||
#### release
|
||||
|
||||
Type: `string`
|
||||
|
||||
By default, the current operating system is used, but you can supply a custom [Darwin kernel version](http://en.wikipedia.org/wiki/Darwin_%28operating_system%29#Release_history), which is the output of [`os.release()`](http://nodejs.org/api/os.html#os_os_release).
|
||||
|
||||
|
||||
## Related
|
||||
|
||||
- [os-name](https://github.com/sindresorhus/os-name) - Get the name of the current operating system. Example: `macOS Sierra`
|
||||
- [macos-version](https://github.com/sindresorhus/macos-version) - Get the macOS version of the current system. Example: `10.9.3`
|
||||
- [win-release](https://github.com/sindresorhus/win-release) - Get the name of a Windows version from the release number: `5.1.2600` → `XP`
|
||||
|
||||
|
||||
## License
|
||||
|
||||
MIT © [Sindre Sorhus](https://sindresorhus.com)
|
Loading…
Add table
Add a link
Reference in a new issue