mirror of
https://github.com/actions/setup-java.git
synced 2025-04-20 18:06:45 +00:00
Fix.
This commit is contained in:
parent
596a6da241
commit
c1a589c5b6
7078 changed files with 1882834 additions and 319 deletions
21
node_modules/copy-descriptor/LICENSE
generated
vendored
Normal file
21
node_modules/copy-descriptor/LICENSE
generated
vendored
Normal file
|
@ -0,0 +1,21 @@
|
|||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2015-2016, Jon Schlinkert
|
||||
|
||||
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.
|
81
node_modules/copy-descriptor/index.js
generated
vendored
Normal file
81
node_modules/copy-descriptor/index.js
generated
vendored
Normal file
|
@ -0,0 +1,81 @@
|
|||
/*!
|
||||
* copy-descriptor <https://github.com/jonschlinkert/copy-descriptor>
|
||||
*
|
||||
* Copyright (c) 2015, Jon Schlinkert.
|
||||
* Licensed under the MIT License.
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* Copy a descriptor from one object to another.
|
||||
*
|
||||
* ```js
|
||||
* function App() {
|
||||
* this.cache = {};
|
||||
* }
|
||||
* App.prototype.set = function(key, val) {
|
||||
* this.cache[key] = val;
|
||||
* return this;
|
||||
* };
|
||||
* Object.defineProperty(App.prototype, 'count', {
|
||||
* get: function() {
|
||||
* return Object.keys(this.cache).length;
|
||||
* }
|
||||
* });
|
||||
*
|
||||
* copy(App.prototype, 'count', 'len');
|
||||
*
|
||||
* // create an instance
|
||||
* var app = new App();
|
||||
*
|
||||
* app.set('a', true);
|
||||
* app.set('b', true);
|
||||
* app.set('c', true);
|
||||
*
|
||||
* console.log(app.count);
|
||||
* //=> 3
|
||||
* console.log(app.len);
|
||||
* //=> 3
|
||||
* ```
|
||||
* @name copy
|
||||
* @param {Object} `receiver` The target object
|
||||
* @param {Object} `provider` The provider object
|
||||
* @param {String} `from` The key to copy on provider.
|
||||
* @param {String} `to` Optionally specify a new key name to use.
|
||||
* @return {Object}
|
||||
* @api public
|
||||
*/
|
||||
|
||||
module.exports = function copyDescriptor(receiver, provider, from, to) {
|
||||
if (!isObject(provider) && typeof provider !== 'function') {
|
||||
to = from;
|
||||
from = provider;
|
||||
provider = receiver;
|
||||
}
|
||||
if (!isObject(receiver) && typeof receiver !== 'function') {
|
||||
throw new TypeError('expected the first argument to be an object');
|
||||
}
|
||||
if (!isObject(provider) && typeof provider !== 'function') {
|
||||
throw new TypeError('expected provider to be an object');
|
||||
}
|
||||
|
||||
if (typeof to !== 'string') {
|
||||
to = from;
|
||||
}
|
||||
if (typeof from !== 'string') {
|
||||
throw new TypeError('expected key to be a string');
|
||||
}
|
||||
|
||||
if (!(from in provider)) {
|
||||
throw new Error('property "' + from + '" does not exist');
|
||||
}
|
||||
|
||||
var val = Object.getOwnPropertyDescriptor(provider, from);
|
||||
if (val) Object.defineProperty(receiver, to, val);
|
||||
};
|
||||
|
||||
function isObject(val) {
|
||||
return {}.toString.call(val) === '[object Object]';
|
||||
}
|
||||
|
87
node_modules/copy-descriptor/package.json
generated
vendored
Normal file
87
node_modules/copy-descriptor/package.json
generated
vendored
Normal file
|
@ -0,0 +1,87 @@
|
|||
{
|
||||
"_from": "copy-descriptor@^0.1.0",
|
||||
"_id": "copy-descriptor@0.1.1",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha1-Z29us8OZl8LuGsOpJP1hJHSPV40=",
|
||||
"_location": "/copy-descriptor",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "range",
|
||||
"registry": true,
|
||||
"raw": "copy-descriptor@^0.1.0",
|
||||
"name": "copy-descriptor",
|
||||
"escapedName": "copy-descriptor",
|
||||
"rawSpec": "^0.1.0",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "^0.1.0"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/object-copy"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/copy-descriptor/-/copy-descriptor-0.1.1.tgz",
|
||||
"_shasum": "676f6eb3c39997c2ee1ac3a924fd6124748f578d",
|
||||
"_spec": "copy-descriptor@^0.1.0",
|
||||
"_where": "E:\\github\\setup-java\\node_modules\\object-copy",
|
||||
"author": {
|
||||
"name": "Jon Schlinkert",
|
||||
"url": "https://github.com/jonschlinkert"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/jonschlinkert/copy-descriptor/issues"
|
||||
},
|
||||
"bundleDependencies": false,
|
||||
"deprecated": false,
|
||||
"description": "Copy a descriptor from object A to object B",
|
||||
"devDependencies": {
|
||||
"gulp-format-md": "^0.1.9",
|
||||
"mocha": "^2.5.3"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=0.10.0"
|
||||
},
|
||||
"files": [
|
||||
"index.js"
|
||||
],
|
||||
"homepage": "https://github.com/jonschlinkert/copy-descriptor",
|
||||
"keywords": [
|
||||
"copy",
|
||||
"descriptor"
|
||||
],
|
||||
"license": "MIT",
|
||||
"main": "index.js",
|
||||
"name": "copy-descriptor",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/jonschlinkert/copy-descriptor.git"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "mocha"
|
||||
},
|
||||
"verb": {
|
||||
"toc": false,
|
||||
"layout": "default",
|
||||
"tasks": [
|
||||
"readme"
|
||||
],
|
||||
"plugins": [
|
||||
"gulp-format-md"
|
||||
],
|
||||
"related": {
|
||||
"list": [
|
||||
"is-accessor-descriptor",
|
||||
"is-data-descriptor",
|
||||
"is-descriptor",
|
||||
"is-plain-object",
|
||||
"isobject"
|
||||
]
|
||||
},
|
||||
"lint": {
|
||||
"reflinks": true
|
||||
},
|
||||
"reflinks": [
|
||||
"verb-readme-generator",
|
||||
"verb"
|
||||
]
|
||||
},
|
||||
"version": "0.1.1"
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue