1
0
mirror of https://github.com/S2-/gitlit synced 2025-08-03 12:50:04 +02:00
This commit is contained in:
s2
2018-05-18 17:26:33 +02:00
parent 0ea0853165
commit 2c5b23c10e
1125 changed files with 118732 additions and 1 deletions

21
app/node_modules/parse-author/LICENSE generated vendored Normal file
View File

@@ -0,0 +1,21 @@
The MIT License (MIT)
Copyright (c) 2014-2017, 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.

115
app/node_modules/parse-author/README.md generated vendored Normal file
View File

@@ -0,0 +1,115 @@
# parse-author [![NPM version](https://img.shields.io/npm/v/parse-author.svg?style=flat)](https://www.npmjs.com/package/parse-author) [![NPM monthly downloads](https://img.shields.io/npm/dm/parse-author.svg?style=flat)](https://npmjs.org/package/parse-author) [![NPM total downloads](https://img.shields.io/npm/dt/parse-author.svg?style=flat)](https://npmjs.org/package/parse-author) [![Linux Build Status](https://img.shields.io/travis/jonschlinkert/parse-author.svg?style=flat&label=Travis)](https://travis-ci.org/jonschlinkert/parse-author)
> Parse a string into an object with `name`, `email` and `url` properties following npm conventions. Useful for the `authors` property in package.json or for parsing an AUTHORS file into an array of authors objects.
## Install
Install with [npm](https://www.npmjs.com/):
```sh
$ npm install --save parse-author
```
## Usage
```js
var parse = require('parse-author');
```
## Supported formats
Works with a flexible range of formats, any of the properties can be used or missing:
```
Name
Name <email> (url)
Name <email>(url)
Name<email> (url)
Name<email>(url)
Name (url) <email>
Name (url)<email>
Name(url) <email>
Name(url)<email>
Name (url)
Name(url)
Name <email>
Name<email>
<email> (url)
<email>(url)
(url) <email>
(url)<email>
<email>
(url)
```
## Examples
```js
var author = parse('Jon Schlinkert <jon.schlinkert@sellside.com> (https://github.com/jonschlinkert)');
console.log(author);
//=> {name: 'Jon Schlinkert', email: 'jon.schlinkert@sellside.com', url: 'https://github.com/jonschlinkert'}
console.log(parse('Jon Schlinkert (https://github.com/jonschlinkert)'));
//=> {name: 'Jon Schlinkert', url: 'https://github.com/jonschlinkert'}
console.log(parse('Jon Schlinkert <jon.schlinkert@sellside.com>'));
//=> {name: 'Jon Schlinkert', email: 'jon.schlinkert@sellside.com'}
console.log(parse(''));
//=> {}
```
## About
### Related projects
* [author-regex](https://www.npmjs.com/package/author-regex): Regular expression for parsing an `author` string into an object following npm conventions. | [homepage](https://github.com/jonschlinkert/author-regex "Regular expression for parsing an `author` string into an object following npm conventions.")
* [parse-authors](https://www.npmjs.com/package/parse-authors): Parse a string into an array of objects with `name`, `email` and `url` properties following… [more](https://github.com/jonschlinkert/parse-authors) | [homepage](https://github.com/jonschlinkert/parse-authors "Parse a string into an array of objects with `name`, `email` and `url` properties following npm conventions. Useful for the `authors` property in package.json or for parsing an AUTHORS file into an array of authors objects.")
* [stringify-author](https://www.npmjs.com/package/stringify-author): Stringify an authors object to `name <email> (url)`. | [homepage](https://github.com/jonschlinkert/stringify-author "Stringify an authors object to `name <email> (url)`.")
* [stringify-authors](https://www.npmjs.com/package/stringify-authors): Converts an author object or array of author objects into an array of strings. Useful… [more](https://github.com/jonschlinkert/stringify-authors) | [homepage](https://github.com/jonschlinkert/stringify-authors "Converts an author object or array of author objects into an array of strings. Useful for adding authors, maintainers or contributors to documentation, package.json or a readme.")
### Contributing
Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).
### Contributors
| **Commits** | **Contributor** |
| --- | --- |
| 14 | [slang800](https://github.com/slang800) |
| 12 | [jonschlinkert](https://github.com/jonschlinkert) |
| 1 | [MitMaro](https://github.com/MitMaro) |
### Building docs
_(This project's readme.md is generated by [verb](https://github.com/verbose/verb-generate-readme), please don't edit the readme directly. Any changes to the readme must be made in the [.verb.md](.verb.md) readme template.)_
To generate the readme, run the following command:
```sh
$ npm install -g verbose/verb#dev verb-generate-readme && verb
```
### Running tests
Running and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command:
```sh
$ npm install && npm test
```
### Author
**Jon Schlinkert**
* [github/jonschlinkert](https://github.com/jonschlinkert)
* [twitter/jonschlinkert](https://twitter.com/jonschlinkert)
### License
Copyright © 2017, [Jon Schlinkert](https://github.com/jonschlinkert).
Released under the [MIT License](LICENSE).
***
_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.4.3, on March 08, 2017._

43
app/node_modules/parse-author/index.js generated vendored Normal file
View File

@@ -0,0 +1,43 @@
/*!
* parse-author <https://github.com/jonschlinkert/parse-author>
*
* Copyright (c) 2014-2017, Jon Schlinkert.
* Released under the MIT License.
*/
'use strict';
var regex = require('author-regex');
module.exports = function(str) {
if (typeof str !== 'string') {
throw new TypeError('expected author to be a string');
}
if (!str || !/\w/.test(str)) {
return {};
}
var match = [].concat.apply([], regex().exec(str));
var author = {};
if (match[1]) {
author.name = match[1];
}
for (var i = 2; i < match.length; i++) {
var val = match[i];
if (i % 2 === 0 && val && match[i + 1]) {
if (val.charAt(0) === '<') {
author.email = match[i + 1];
i++;
} else if (val.charAt(0) === '(') {
author.url = match[i + 1];
i++;
}
}
}
return author;
};

121
app/node_modules/parse-author/package.json generated vendored Normal file
View File

@@ -0,0 +1,121 @@
{
"_from": "parse-author@^2.0.0",
"_id": "parse-author@2.0.0",
"_inBundle": false,
"_integrity": "sha1-00YL8d3Q367tQtp1QkLmX7aEqB8=",
"_location": "/parse-author",
"_phantomChildren": {},
"_requested": {
"type": "range",
"registry": true,
"raw": "parse-author@^2.0.0",
"name": "parse-author",
"escapedName": "parse-author",
"rawSpec": "^2.0.0",
"saveSpec": null,
"fetchSpec": "^2.0.0"
},
"_requiredBy": [
"/electron-packager"
],
"_resolved": "https://registry.npmjs.org/parse-author/-/parse-author-2.0.0.tgz",
"_shasum": "d3460bf1ddd0dfaeed42da754242e65fb684a81f",
"_spec": "parse-author@^2.0.0",
"_where": "E:\\projects\\p\\gitlit\\app\\node_modules\\electron-packager",
"author": {
"name": "Jon Schlinkert",
"url": "https://github.com/jonschlinkert"
},
"bugs": {
"url": "https://github.com/jonschlinkert/parse-author/issues"
},
"bundleDependencies": false,
"contributors": [
{
"name": "Jon Schlinkert",
"email": "jon.schlinkert@sellside.com",
"url": "http://twitter.com/jonschlinkert"
},
{
"name": "Sean Lang",
"email": "slang800@gmail.com",
"url": "http://slang.cx"
},
{
"name": "Tim Oram",
"email": "mitmaro@gmail.com",
"url": "http://www.mitmaro.ca"
}
],
"dependencies": {
"author-regex": "^1.0.0"
},
"deprecated": false,
"description": "Parse an author, contributor, maintainer or other 'person' string into an object with name, email and url properties following npm conventions.",
"devDependencies": {
"mocha": "^3.2.0"
},
"engines": {
"node": ">=0.10.0"
},
"files": [
"index.js"
],
"homepage": "https://github.com/jonschlinkert/parse-author",
"keywords": [
"author",
"authors",
"contributor",
"exec",
"expression",
"extract",
"maintainer",
"maintainers",
"match",
"package",
"parse",
"person",
"pkg",
"re",
"regex",
"regexp",
"regular",
"somebody"
],
"license": "MIT",
"main": "index.js",
"name": "parse-author",
"repository": {
"type": "git",
"url": "git+https://github.com/jonschlinkert/parse-author.git"
},
"scripts": {
"test": "mocha"
},
"verb": {
"run": true,
"toc": false,
"layout": "default",
"tasks": [
"readme"
],
"plugins": [
"gulp-format-md"
],
"related": {
"list": [
"author-regex",
"parse-authors",
"stringify-author",
"stringify-authors"
]
},
"reflinks": [
"verb"
],
"lint": {
"reflinks": true
}
},
"version": "2.0.0"
}