mirror of
https://code.forgejo.org/actions/setup-node.git
synced 2025-05-20 21:14:45 +00:00
.
This commit is contained in:
parent
9fff29ba6c
commit
00c3b50fca
7278 changed files with 0 additions and 1778943 deletions
21
node_modules/static-extend/LICENSE
generated
vendored
21
node_modules/static-extend/LICENSE
generated
vendored
|
@ -1,21 +0,0 @@
|
|||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 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.
|
90
node_modules/static-extend/index.js
generated
vendored
90
node_modules/static-extend/index.js
generated
vendored
|
@ -1,90 +0,0 @@
|
|||
/*!
|
||||
* static-extend <https://github.com/jonschlinkert/static-extend>
|
||||
*
|
||||
* Copyright (c) 2016, Jon Schlinkert.
|
||||
* Licensed under the MIT License.
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
var copy = require('object-copy');
|
||||
var define = require('define-property');
|
||||
var util = require('util');
|
||||
|
||||
/**
|
||||
* Returns a function for extending the static properties,
|
||||
* prototype properties, and descriptors from the `Parent`
|
||||
* constructor onto `Child` constructors.
|
||||
*
|
||||
* ```js
|
||||
* var extend = require('static-extend');
|
||||
* Parent.extend = extend(Parent);
|
||||
*
|
||||
* // optionally pass a custom merge function as the second arg
|
||||
* Parent.extend = extend(Parent, function(Child) {
|
||||
* Child.prototype.mixin = function(key, val) {
|
||||
* Child.prototype[key] = val;
|
||||
* };
|
||||
* });
|
||||
*
|
||||
* // extend "child" constructors
|
||||
* Parent.extend(Child);
|
||||
*
|
||||
* // optionally define prototype methods as the second arg
|
||||
* Parent.extend(Child, {
|
||||
* foo: function() {},
|
||||
* bar: function() {}
|
||||
* });
|
||||
* ```
|
||||
* @param {Function} `Parent` Parent ctor
|
||||
* @param {Function} `extendFn` Optional extend function for handling any necessary custom merging. Useful when updating methods that require a specific prototype.
|
||||
* @param {Function} `Child` Child ctor
|
||||
* @param {Object} `proto` Optionally pass additional prototype properties to inherit.
|
||||
* @return {Object}
|
||||
* @api public
|
||||
*/
|
||||
|
||||
function extend(Parent, extendFn) {
|
||||
if (typeof Parent !== 'function') {
|
||||
throw new TypeError('expected Parent to be a function.');
|
||||
}
|
||||
|
||||
return function(Ctor, proto) {
|
||||
if (typeof Ctor !== 'function') {
|
||||
throw new TypeError('expected Ctor to be a function.');
|
||||
}
|
||||
|
||||
util.inherits(Ctor, Parent);
|
||||
copy(Ctor, Parent);
|
||||
|
||||
// proto can be null or a plain object
|
||||
if (typeof proto === 'object') {
|
||||
var obj = Object.create(proto);
|
||||
|
||||
for (var k in obj) {
|
||||
Ctor.prototype[k] = obj[k];
|
||||
}
|
||||
}
|
||||
|
||||
// keep a reference to the parent prototype
|
||||
define(Ctor.prototype, '_parent_', {
|
||||
configurable: true,
|
||||
set: function() {},
|
||||
get: function() {
|
||||
return Parent.prototype;
|
||||
}
|
||||
});
|
||||
|
||||
if (typeof extendFn === 'function') {
|
||||
extendFn(Ctor, Parent);
|
||||
}
|
||||
|
||||
Ctor.extend = extend(Ctor, extendFn);
|
||||
};
|
||||
};
|
||||
|
||||
/**
|
||||
* Expose `extend`
|
||||
*/
|
||||
|
||||
module.exports = extend;
|
21
node_modules/static-extend/node_modules/define-property/LICENSE
generated
vendored
21
node_modules/static-extend/node_modules/define-property/LICENSE
generated
vendored
|
@ -1,21 +0,0 @@
|
|||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2015, 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.
|
77
node_modules/static-extend/node_modules/define-property/README.md
generated
vendored
77
node_modules/static-extend/node_modules/define-property/README.md
generated
vendored
|
@ -1,77 +0,0 @@
|
|||
# define-property [](http://badge.fury.io/js/define-property)
|
||||
|
||||
> Define a non-enumerable property on an object.
|
||||
|
||||
## Install
|
||||
|
||||
Install with [npm](https://www.npmjs.com/)
|
||||
|
||||
```sh
|
||||
$ npm i define-property --save
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
**Params**
|
||||
|
||||
* `obj`: The object on which to define the property.
|
||||
* `prop`: The name of the property to be defined or modified.
|
||||
* `descriptor`: The descriptor for the property being defined or modified.
|
||||
|
||||
```js
|
||||
var define = require('define-property');
|
||||
var obj = {};
|
||||
define(obj, 'foo', function(val) {
|
||||
return val.toUpperCase();
|
||||
});
|
||||
|
||||
console.log(obj);
|
||||
//=> {}
|
||||
|
||||
console.log(obj.foo('bar'));
|
||||
//=> 'BAR'
|
||||
```
|
||||
|
||||
**get/set**
|
||||
|
||||
```js
|
||||
define(obj, 'foo', {
|
||||
get: function() {},
|
||||
set: function() {}
|
||||
});
|
||||
```
|
||||
|
||||
## Related projects
|
||||
|
||||
* [delegate-object](https://www.npmjs.com/package/delegate-object): Copy properties from an object to another object, where properties with function values will be… [more](https://www.npmjs.com/package/delegate-object) | [homepage](https://github.com/doowb/delegate-object)
|
||||
* [forward-object](https://www.npmjs.com/package/forward-object): Copy properties from an object to another object, where properties with function values will be… [more](https://www.npmjs.com/package/forward-object) | [homepage](https://github.com/doowb/forward-object)
|
||||
* [mixin-deep](https://www.npmjs.com/package/mixin-deep): Deeply mix the properties of objects into the first object. Like merge-deep, but doesn't clone. | [homepage](https://github.com/jonschlinkert/mixin-deep)
|
||||
* [mixin-object](https://www.npmjs.com/package/mixin-object): Mixin the own and inherited properties of other objects onto the first object. Pass an… [more](https://www.npmjs.com/package/mixin-object) | [homepage](https://github.com/jonschlinkert/mixin-object)
|
||||
|
||||
## Running tests
|
||||
|
||||
Install dev dependencies:
|
||||
|
||||
```sh
|
||||
$ npm i -d && npm test
|
||||
```
|
||||
|
||||
## Contributing
|
||||
|
||||
Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/jonschlinkert/define-property/issues/new).
|
||||
|
||||
## Author
|
||||
|
||||
**Jon Schlinkert**
|
||||
|
||||
+ [github/jonschlinkert](https://github.com/jonschlinkert)
|
||||
+ [twitter/jonschlinkert](http://twitter.com/jonschlinkert)
|
||||
|
||||
## License
|
||||
|
||||
Copyright © 2015 Jon Schlinkert
|
||||
Released under the MIT license.
|
||||
|
||||
***
|
||||
|
||||
_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on August 31, 2015._
|
31
node_modules/static-extend/node_modules/define-property/index.js
generated
vendored
31
node_modules/static-extend/node_modules/define-property/index.js
generated
vendored
|
@ -1,31 +0,0 @@
|
|||
/*!
|
||||
* define-property <https://github.com/jonschlinkert/define-property>
|
||||
*
|
||||
* Copyright (c) 2015, Jon Schlinkert.
|
||||
* Licensed under the MIT License.
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
var isDescriptor = require('is-descriptor');
|
||||
|
||||
module.exports = function defineProperty(obj, prop, val) {
|
||||
if (typeof obj !== 'object' && typeof obj !== 'function') {
|
||||
throw new TypeError('expected an object or function.');
|
||||
}
|
||||
|
||||
if (typeof prop !== 'string') {
|
||||
throw new TypeError('expected `prop` to be a string.');
|
||||
}
|
||||
|
||||
if (isDescriptor(val) && ('set' in val || 'get' in val)) {
|
||||
return Object.defineProperty(obj, prop, val);
|
||||
}
|
||||
|
||||
return Object.defineProperty(obj, prop, {
|
||||
configurable: true,
|
||||
enumerable: false,
|
||||
writable: true,
|
||||
value: val
|
||||
});
|
||||
};
|
55
node_modules/static-extend/node_modules/define-property/package.json
generated
vendored
55
node_modules/static-extend/node_modules/define-property/package.json
generated
vendored
|
@ -1,55 +0,0 @@
|
|||
{
|
||||
"name": "define-property",
|
||||
"description": "Define a non-enumerable property on an object.",
|
||||
"version": "0.2.5",
|
||||
"homepage": "https://github.com/jonschlinkert/define-property",
|
||||
"author": "Jon Schlinkert (https://github.com/jonschlinkert)",
|
||||
"repository": "jonschlinkert/define-property",
|
||||
"bugs": {
|
||||
"url": "https://github.com/jonschlinkert/define-property/issues"
|
||||
},
|
||||
"license": "MIT",
|
||||
"files": [
|
||||
"index.js"
|
||||
],
|
||||
"main": "index.js",
|
||||
"engines": {
|
||||
"node": ">=0.10.0"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "mocha"
|
||||
},
|
||||
"devDependencies": {
|
||||
"mocha": "*",
|
||||
"should": "^7.0.4"
|
||||
},
|
||||
"keywords": [
|
||||
"define",
|
||||
"define-property",
|
||||
"enumerable",
|
||||
"key",
|
||||
"non",
|
||||
"non-enumerable",
|
||||
"object",
|
||||
"prop",
|
||||
"property",
|
||||
"value"
|
||||
],
|
||||
"verb": {
|
||||
"related": {
|
||||
"list": [
|
||||
"mixin-deep",
|
||||
"mixin-object",
|
||||
"delegate-object",
|
||||
"forward-object"
|
||||
]
|
||||
}
|
||||
},
|
||||
"dependencies": {
|
||||
"is-descriptor": "^0.1.0"
|
||||
}
|
||||
|
||||
,"_resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz"
|
||||
,"_integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY="
|
||||
,"_from": "define-property@0.2.5"
|
||||
}
|
67
node_modules/static-extend/package.json
generated
vendored
67
node_modules/static-extend/package.json
generated
vendored
|
@ -1,67 +0,0 @@
|
|||
{
|
||||
"name": "static-extend",
|
||||
"description": "Adds a static `extend` method to a class, to simplify inheritance. Extends the static properties, prototype properties, and descriptors from a `Parent` constructor onto `Child` constructors.",
|
||||
"version": "0.1.2",
|
||||
"homepage": "https://github.com/jonschlinkert/static-extend",
|
||||
"author": "Jon Schlinkert (https://github.com/jonschlinkert)",
|
||||
"repository": "jonschlinkert/static-extend",
|
||||
"bugs": {
|
||||
"url": "https://github.com/jonschlinkert/static-extend/issues"
|
||||
},
|
||||
"license": "MIT",
|
||||
"files": [
|
||||
"index.js"
|
||||
],
|
||||
"main": "index.js",
|
||||
"engines": {
|
||||
"node": ">=0.10.0"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "mocha"
|
||||
},
|
||||
"dependencies": {
|
||||
"define-property": "^0.2.5",
|
||||
"object-copy": "^0.1.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"gulp-format-md": "^0.1.9",
|
||||
"mocha": "^2.5.3"
|
||||
},
|
||||
"keywords": [
|
||||
"class",
|
||||
"ctor",
|
||||
"descriptor",
|
||||
"extend",
|
||||
"extends",
|
||||
"inherit",
|
||||
"inheritance",
|
||||
"merge",
|
||||
"method",
|
||||
"prop",
|
||||
"properties",
|
||||
"property",
|
||||
"prototype"
|
||||
],
|
||||
"verb": {
|
||||
"run": true,
|
||||
"toc": false,
|
||||
"layout": "default",
|
||||
"tasks": [
|
||||
"readme"
|
||||
],
|
||||
"plugins": [
|
||||
"gulp-format-md"
|
||||
],
|
||||
"reflinks": [
|
||||
"verb",
|
||||
"verb-readme-generator"
|
||||
],
|
||||
"lint": {
|
||||
"reflinks": true
|
||||
}
|
||||
}
|
||||
|
||||
,"_resolved": "https://registry.npmjs.org/static-extend/-/static-extend-0.1.2.tgz"
|
||||
,"_integrity": "sha1-YICcOcv/VTNyJv1eC1IPNB8ftcY="
|
||||
,"_from": "static-extend@0.1.2"
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue