mirror of
https://github.com/actions/setup-java.git
synced 2025-04-20 09:56:46 +00:00
Fix.
This commit is contained in:
parent
596a6da241
commit
c1a589c5b6
7078 changed files with 1882834 additions and 319 deletions
22
node_modules/realpath-native/LICENSE
generated
vendored
Normal file
22
node_modules/realpath-native/LICENSE
generated
vendored
Normal file
|
@ -0,0 +1,22 @@
|
|||
MIT License
|
||||
|
||||
Copyright (c) 2017 Simen Bekkhus
|
||||
|
||||
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.
|
60
node_modules/realpath-native/README.md
generated
vendored
Normal file
60
node_modules/realpath-native/README.md
generated
vendored
Normal file
|
@ -0,0 +1,60 @@
|
|||
# realpath-native
|
||||
|
||||
> Use the system's native `realpath`
|
||||
|
||||
[![NPM Version][npm-image]][npm-url]
|
||||
[![Linux & Mac Build Status][travis-image]][travis-url]
|
||||
|
||||
[![Greenkeeper Dependency Status][greenkeeper-image]][greenkeeper-url]
|
||||
|
||||
Node 9.3 added `fs.realpath(Sync).native`. On older Nodes you have to use
|
||||
`process.binding` to access the same function. This module does that check for
|
||||
you.
|
||||
|
||||
The advantage of the native `realpath` over `fs.realpath` is that the native one
|
||||
better supports paths on Windows.
|
||||
|
||||
On node 4 the function uses the old `fs.realpath` function.
|
||||
|
||||
## Install
|
||||
|
||||
Install the module with `npm`:
|
||||
|
||||
```sh
|
||||
$ npm install realpath-native
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
```js
|
||||
const realpath = require('realpath-native');
|
||||
|
||||
realpath('some-path'); // returns a promise
|
||||
|
||||
realpath.sync('some-path');
|
||||
```
|
||||
|
||||
## API
|
||||
|
||||
### realpath(path)
|
||||
|
||||
Returns a promise for the resolved path of the input.
|
||||
|
||||
#### path
|
||||
|
||||
Type: `string`
|
||||
|
||||
### realpath.sync(path)
|
||||
|
||||
Returns the resolved path of the input synchronously.
|
||||
|
||||
#### path
|
||||
|
||||
Type: `string`
|
||||
|
||||
[npm-url]: https://npmjs.org/package/realpath-native
|
||||
[npm-image]: https://img.shields.io/npm/v/realpath-native.svg
|
||||
[travis-url]: https://travis-ci.org/SimenB/realpath-native
|
||||
[travis-image]: https://img.shields.io/travis/SimenB/realpath-native/master.svg
|
||||
[greenkeeper-url]: https://greenkeeper.io/
|
||||
[greenkeeper-image]: https://badges.greenkeeper.io/SimenB/realpath-native.svg
|
6
node_modules/realpath-native/index.d.ts
generated
vendored
Normal file
6
node_modules/realpath-native/index.d.ts
generated
vendored
Normal file
|
@ -0,0 +1,6 @@
|
|||
declare function realpath(filepath: string): string;
|
||||
declare namespace realpath {
|
||||
var sync: typeof realpathSync;
|
||||
}
|
||||
declare function realpathSync(filepath: string): string;
|
||||
export = realpath;
|
46
node_modules/realpath-native/index.js
generated
vendored
Normal file
46
node_modules/realpath-native/index.js
generated
vendored
Normal file
|
@ -0,0 +1,46 @@
|
|||
'use strict';
|
||||
|
||||
const fs = require('fs');
|
||||
const promisify = require('util.promisify');
|
||||
|
||||
const promisiedFsRealpath = promisify(fs.realpath);
|
||||
|
||||
function realpath(filepath) {
|
||||
if (typeof fs.realpath.native === 'function') {
|
||||
return promisify(fs.realpath.native)(filepath);
|
||||
}
|
||||
const fsBinding = process.binding('fs');
|
||||
|
||||
if (fsBinding.realpath) {
|
||||
return new Promise((resolve, reject) => {
|
||||
try {
|
||||
resolve(fsBinding.realpath(filepath, 'utf8'));
|
||||
} catch (e) {
|
||||
reject(e);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
return promisiedFsRealpath(filepath);
|
||||
}
|
||||
|
||||
function realpathSync(filepath) {
|
||||
if (typeof fs.realpathSync.native === 'function') {
|
||||
return fs.realpathSync.native(filepath);
|
||||
}
|
||||
|
||||
const fsBinding = process.binding('fs');
|
||||
|
||||
if (fsBinding.realpath) {
|
||||
try {
|
||||
return fsBinding.realpath(filepath, 'utf8');
|
||||
} catch (err) {
|
||||
/* Probably RAM-disk on windows. */
|
||||
}
|
||||
}
|
||||
|
||||
return fs.realpathSync(filepath);
|
||||
}
|
||||
|
||||
module.exports = realpath;
|
||||
module.exports.sync = realpathSync;
|
98
node_modules/realpath-native/package.json
generated
vendored
Normal file
98
node_modules/realpath-native/package.json
generated
vendored
Normal file
|
@ -0,0 +1,98 @@
|
|||
{
|
||||
"_from": "realpath-native@^1.1.0",
|
||||
"_id": "realpath-native@1.1.0",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha512-wlgPA6cCIIg9gKz0fgAPjnzh4yR/LnXovwuo9hvyGvx3h8nX4+/iLZplfUWasXpqD8BdnGnP5njOFjkUwPzvjA==",
|
||||
"_location": "/realpath-native",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "range",
|
||||
"registry": true,
|
||||
"raw": "realpath-native@^1.1.0",
|
||||
"name": "realpath-native",
|
||||
"escapedName": "realpath-native",
|
||||
"rawSpec": "^1.1.0",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "^1.1.0"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/@jest/core",
|
||||
"/@jest/transform",
|
||||
"/jest-config",
|
||||
"/jest-resolve",
|
||||
"/jest-runtime",
|
||||
"/jest/jest-cli"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/realpath-native/-/realpath-native-1.1.0.tgz",
|
||||
"_shasum": "2003294fea23fb0672f2476ebe22fcf498a2d65c",
|
||||
"_spec": "realpath-native@^1.1.0",
|
||||
"_where": "E:\\github\\setup-java\\node_modules\\jest\\node_modules\\jest-cli",
|
||||
"author": {
|
||||
"name": "Simen Bekkhus",
|
||||
"email": "sbekkhus91@gmail.com"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/SimenB/realpath-native/issues"
|
||||
},
|
||||
"bundleDependencies": false,
|
||||
"commitlint": {
|
||||
"extends": [
|
||||
"@commitlint/config-conventional"
|
||||
]
|
||||
},
|
||||
"dependencies": {
|
||||
"util.promisify": "^1.0.0"
|
||||
},
|
||||
"deprecated": false,
|
||||
"description": "Use the system's native `realpath`",
|
||||
"devDependencies": {
|
||||
"@commitlint/cli": "^6.0.2",
|
||||
"@commitlint/config-conventional": "^6.0.2",
|
||||
"ava": "^0.25.0",
|
||||
"eslint": "^4.13.1",
|
||||
"eslint-config-simenb-base": "^14.0.0",
|
||||
"eslint-config-simenb-node": "^0.4.11",
|
||||
"husky": "^0.14.3",
|
||||
"lint-staged": "^6.0.0",
|
||||
"prettier": "^1.16.4"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=4"
|
||||
},
|
||||
"files": [
|
||||
"index.js",
|
||||
"index.d.ts"
|
||||
],
|
||||
"homepage": "https://github.com/SimenB/realpath-native#readme",
|
||||
"keywords": [
|
||||
"realpath"
|
||||
],
|
||||
"license": "MIT",
|
||||
"lint-staged": {
|
||||
"*.js": [
|
||||
"eslint --fix",
|
||||
"git add"
|
||||
],
|
||||
"*.{md,json,ts}": [
|
||||
"prettier --write",
|
||||
"git add"
|
||||
]
|
||||
},
|
||||
"main": "index.js",
|
||||
"name": "realpath-native",
|
||||
"prettier": {
|
||||
"proseWrap": "always",
|
||||
"singleQuote": true,
|
||||
"trailingComma": "es5"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/SimenB/realpath-native.git"
|
||||
},
|
||||
"scripts": {
|
||||
"lint": "eslint .",
|
||||
"test": "eslint . && ava"
|
||||
},
|
||||
"types": "index.d.ts",
|
||||
"version": "1.1.0"
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue