mirror of
				https://github.com/softprops/action-gh-release.git
				synced 2025-11-03 21:29:24 +00:00 
			
		
		
		
	node_modules
This commit is contained in:
		
							
								
								
									
										20
									
								
								node_modules/path-is-absolute/index.js
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								node_modules/path-is-absolute/index.js
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,20 @@
 | 
			
		||||
'use strict';
 | 
			
		||||
 | 
			
		||||
function posix(path) {
 | 
			
		||||
	return path.charAt(0) === '/';
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
function win32(path) {
 | 
			
		||||
	// https://github.com/nodejs/node/blob/b3fcc245fb25539909ef1d5eaa01dbf92e168633/lib/path.js#L56
 | 
			
		||||
	var splitDeviceRe = /^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/;
 | 
			
		||||
	var result = splitDeviceRe.exec(path);
 | 
			
		||||
	var device = result[1] || '';
 | 
			
		||||
	var isUnc = Boolean(device && device.charAt(1) !== ':');
 | 
			
		||||
 | 
			
		||||
	// UNC paths are always absolute
 | 
			
		||||
	return Boolean(result[2] || isUnc);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
module.exports = process.platform === 'win32' ? win32 : posix;
 | 
			
		||||
module.exports.posix = posix;
 | 
			
		||||
module.exports.win32 = win32;
 | 
			
		||||
							
								
								
									
										21
									
								
								node_modules/path-is-absolute/license
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										21
									
								
								node_modules/path-is-absolute/license
									
									
									
										generated
									
									
										vendored
									
									
										Normal 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.
 | 
			
		||||
							
								
								
									
										78
									
								
								node_modules/path-is-absolute/package.json
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										78
									
								
								node_modules/path-is-absolute/package.json
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,78 @@
 | 
			
		||||
{
 | 
			
		||||
  "_args": [
 | 
			
		||||
    [
 | 
			
		||||
      "path-is-absolute@1.0.1",
 | 
			
		||||
      "/Users/dougtangren/code/rust/action-gh-release"
 | 
			
		||||
    ]
 | 
			
		||||
  ],
 | 
			
		||||
  "_from": "path-is-absolute@1.0.1",
 | 
			
		||||
  "_id": "path-is-absolute@1.0.1",
 | 
			
		||||
  "_inBundle": false,
 | 
			
		||||
  "_integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=",
 | 
			
		||||
  "_location": "/path-is-absolute",
 | 
			
		||||
  "_phantomChildren": {},
 | 
			
		||||
  "_requested": {
 | 
			
		||||
    "type": "version",
 | 
			
		||||
    "registry": true,
 | 
			
		||||
    "raw": "path-is-absolute@1.0.1",
 | 
			
		||||
    "name": "path-is-absolute",
 | 
			
		||||
    "escapedName": "path-is-absolute",
 | 
			
		||||
    "rawSpec": "1.0.1",
 | 
			
		||||
    "saveSpec": null,
 | 
			
		||||
    "fetchSpec": "1.0.1"
 | 
			
		||||
  },
 | 
			
		||||
  "_requiredBy": [
 | 
			
		||||
    "/glob"
 | 
			
		||||
  ],
 | 
			
		||||
  "_resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz",
 | 
			
		||||
  "_spec": "1.0.1",
 | 
			
		||||
  "_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/path-is-absolute/issues"
 | 
			
		||||
  },
 | 
			
		||||
  "description": "Node.js 0.12 path.isAbsolute() ponyfill",
 | 
			
		||||
  "devDependencies": {
 | 
			
		||||
    "xo": "^0.16.0"
 | 
			
		||||
  },
 | 
			
		||||
  "engines": {
 | 
			
		||||
    "node": ">=0.10.0"
 | 
			
		||||
  },
 | 
			
		||||
  "files": [
 | 
			
		||||
    "index.js"
 | 
			
		||||
  ],
 | 
			
		||||
  "homepage": "https://github.com/sindresorhus/path-is-absolute#readme",
 | 
			
		||||
  "keywords": [
 | 
			
		||||
    "path",
 | 
			
		||||
    "paths",
 | 
			
		||||
    "file",
 | 
			
		||||
    "dir",
 | 
			
		||||
    "absolute",
 | 
			
		||||
    "isabsolute",
 | 
			
		||||
    "is-absolute",
 | 
			
		||||
    "built-in",
 | 
			
		||||
    "util",
 | 
			
		||||
    "utils",
 | 
			
		||||
    "core",
 | 
			
		||||
    "ponyfill",
 | 
			
		||||
    "polyfill",
 | 
			
		||||
    "shim",
 | 
			
		||||
    "is",
 | 
			
		||||
    "detect",
 | 
			
		||||
    "check"
 | 
			
		||||
  ],
 | 
			
		||||
  "license": "MIT",
 | 
			
		||||
  "name": "path-is-absolute",
 | 
			
		||||
  "repository": {
 | 
			
		||||
    "type": "git",
 | 
			
		||||
    "url": "git+https://github.com/sindresorhus/path-is-absolute.git"
 | 
			
		||||
  },
 | 
			
		||||
  "scripts": {
 | 
			
		||||
    "test": "xo && node test.js"
 | 
			
		||||
  },
 | 
			
		||||
  "version": "1.0.1"
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										59
									
								
								node_modules/path-is-absolute/readme.md
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										59
									
								
								node_modules/path-is-absolute/readme.md
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,59 @@
 | 
			
		||||
# path-is-absolute [](https://travis-ci.org/sindresorhus/path-is-absolute)
 | 
			
		||||
 | 
			
		||||
> Node.js 0.12 [`path.isAbsolute()`](http://nodejs.org/api/path.html#path_path_isabsolute_path) [ponyfill](https://ponyfill.com)
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
## Install
 | 
			
		||||
 | 
			
		||||
```
 | 
			
		||||
$ npm install --save path-is-absolute
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
## Usage
 | 
			
		||||
 | 
			
		||||
```js
 | 
			
		||||
const pathIsAbsolute = require('path-is-absolute');
 | 
			
		||||
 | 
			
		||||
// Running on Linux
 | 
			
		||||
pathIsAbsolute('/home/foo');
 | 
			
		||||
//=> true
 | 
			
		||||
pathIsAbsolute('C:/Users/foo');
 | 
			
		||||
//=> false
 | 
			
		||||
 | 
			
		||||
// Running on Windows
 | 
			
		||||
pathIsAbsolute('C:/Users/foo');
 | 
			
		||||
//=> true
 | 
			
		||||
pathIsAbsolute('/home/foo');
 | 
			
		||||
//=> false
 | 
			
		||||
 | 
			
		||||
// Running on any OS
 | 
			
		||||
pathIsAbsolute.posix('/home/foo');
 | 
			
		||||
//=> true
 | 
			
		||||
pathIsAbsolute.posix('C:/Users/foo');
 | 
			
		||||
//=> false
 | 
			
		||||
pathIsAbsolute.win32('C:/Users/foo');
 | 
			
		||||
//=> true
 | 
			
		||||
pathIsAbsolute.win32('/home/foo');
 | 
			
		||||
//=> false
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
## API
 | 
			
		||||
 | 
			
		||||
See the [`path.isAbsolute()` docs](http://nodejs.org/api/path.html#path_path_isabsolute_path).
 | 
			
		||||
 | 
			
		||||
### pathIsAbsolute(path)
 | 
			
		||||
 | 
			
		||||
### pathIsAbsolute.posix(path)
 | 
			
		||||
 | 
			
		||||
POSIX specific version.
 | 
			
		||||
 | 
			
		||||
### pathIsAbsolute.win32(path)
 | 
			
		||||
 | 
			
		||||
Windows specific version.
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
## License
 | 
			
		||||
 | 
			
		||||
MIT © [Sindre Sorhus](https://sindresorhus.com)
 | 
			
		||||
		Reference in New Issue
	
	Block a user