update
This commit is contained in:
		
							parent
							
								
									d9becc67b6
								
							
						
					
					
						commit
						9308795b8b
					
				
					 964 changed files with 104265 additions and 16 deletions
				
			
		
							
								
								
									
										63
									
								
								node_modules/camelcase/index.d.ts
									
										
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										63
									
								
								node_modules/camelcase/index.d.ts
									
										
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,63 @@
 | 
			
		|||
declare namespace camelcase {
 | 
			
		||||
	interface Options {
 | 
			
		||||
		/**
 | 
			
		||||
		Uppercase the first character: `foo-bar` → `FooBar`.
 | 
			
		||||
 | 
			
		||||
		@default false
 | 
			
		||||
		*/
 | 
			
		||||
		readonly pascalCase?: boolean;
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
declare const camelcase: {
 | 
			
		||||
	/**
 | 
			
		||||
	Convert a dash/dot/underscore/space separated string to camelCase or PascalCase: `foo-bar` → `fooBar`.
 | 
			
		||||
 | 
			
		||||
	@param input - String to convert to camel case.
 | 
			
		||||
 | 
			
		||||
	@example
 | 
			
		||||
	```
 | 
			
		||||
	import camelCase = require('camelcase');
 | 
			
		||||
 | 
			
		||||
	camelCase('foo-bar');
 | 
			
		||||
	//=> 'fooBar'
 | 
			
		||||
 | 
			
		||||
	camelCase('foo_bar');
 | 
			
		||||
	//=> 'fooBar'
 | 
			
		||||
 | 
			
		||||
	camelCase('Foo-Bar');
 | 
			
		||||
	//=> 'fooBar'
 | 
			
		||||
 | 
			
		||||
	camelCase('Foo-Bar', {pascalCase: true});
 | 
			
		||||
	//=> 'FooBar'
 | 
			
		||||
 | 
			
		||||
	camelCase('--foo.bar', {pascalCase: false});
 | 
			
		||||
	//=> 'fooBar'
 | 
			
		||||
 | 
			
		||||
	camelCase('foo bar');
 | 
			
		||||
	//=> 'fooBar'
 | 
			
		||||
 | 
			
		||||
	console.log(process.argv[3]);
 | 
			
		||||
	//=> '--foo-bar'
 | 
			
		||||
	camelCase(process.argv[3]);
 | 
			
		||||
	//=> 'fooBar'
 | 
			
		||||
 | 
			
		||||
	camelCase(['foo', 'bar']);
 | 
			
		||||
	//=> 'fooBar'
 | 
			
		||||
 | 
			
		||||
	camelCase(['__foo__', '--bar'], {pascalCase: true});
 | 
			
		||||
	//=> 'FooBar'
 | 
			
		||||
	```
 | 
			
		||||
	*/
 | 
			
		||||
	(input: string | ReadonlyArray<string>, options?: camelcase.Options): string;
 | 
			
		||||
 | 
			
		||||
	// TODO: Remove this for the next major release, refactor the whole definition to:
 | 
			
		||||
	// declare function camelcase(
 | 
			
		||||
	// 	input: string | ReadonlyArray<string>,
 | 
			
		||||
	// 	options?: camelcase.Options
 | 
			
		||||
	// ): string;
 | 
			
		||||
	// export = camelcase;
 | 
			
		||||
	default: typeof camelcase;
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
export = camelcase;
 | 
			
		||||
							
								
								
									
										76
									
								
								node_modules/camelcase/index.js
									
										
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										76
									
								
								node_modules/camelcase/index.js
									
										
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,76 @@
 | 
			
		|||
'use strict';
 | 
			
		||||
 | 
			
		||||
const preserveCamelCase = string => {
 | 
			
		||||
	let isLastCharLower = false;
 | 
			
		||||
	let isLastCharUpper = false;
 | 
			
		||||
	let isLastLastCharUpper = false;
 | 
			
		||||
 | 
			
		||||
	for (let i = 0; i < string.length; i++) {
 | 
			
		||||
		const character = string[i];
 | 
			
		||||
 | 
			
		||||
		if (isLastCharLower && /[a-zA-Z]/.test(character) && character.toUpperCase() === character) {
 | 
			
		||||
			string = string.slice(0, i) + '-' + string.slice(i);
 | 
			
		||||
			isLastCharLower = false;
 | 
			
		||||
			isLastLastCharUpper = isLastCharUpper;
 | 
			
		||||
			isLastCharUpper = true;
 | 
			
		||||
			i++;
 | 
			
		||||
		} else if (isLastCharUpper && isLastLastCharUpper && /[a-zA-Z]/.test(character) && character.toLowerCase() === character) {
 | 
			
		||||
			string = string.slice(0, i - 1) + '-' + string.slice(i - 1);
 | 
			
		||||
			isLastLastCharUpper = isLastCharUpper;
 | 
			
		||||
			isLastCharUpper = false;
 | 
			
		||||
			isLastCharLower = true;
 | 
			
		||||
		} else {
 | 
			
		||||
			isLastCharLower = character.toLowerCase() === character && character.toUpperCase() !== character;
 | 
			
		||||
			isLastLastCharUpper = isLastCharUpper;
 | 
			
		||||
			isLastCharUpper = character.toUpperCase() === character && character.toLowerCase() !== character;
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	return string;
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
const camelCase = (input, options) => {
 | 
			
		||||
	if (!(typeof input === 'string' || Array.isArray(input))) {
 | 
			
		||||
		throw new TypeError('Expected the input to be `string | string[]`');
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	options = Object.assign({
 | 
			
		||||
		pascalCase: false
 | 
			
		||||
	}, options);
 | 
			
		||||
 | 
			
		||||
	const postProcess = x => options.pascalCase ? x.charAt(0).toUpperCase() + x.slice(1) : x;
 | 
			
		||||
 | 
			
		||||
	if (Array.isArray(input)) {
 | 
			
		||||
		input = input.map(x => x.trim())
 | 
			
		||||
			.filter(x => x.length)
 | 
			
		||||
			.join('-');
 | 
			
		||||
	} else {
 | 
			
		||||
		input = input.trim();
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	if (input.length === 0) {
 | 
			
		||||
		return '';
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	if (input.length === 1) {
 | 
			
		||||
		return options.pascalCase ? input.toUpperCase() : input.toLowerCase();
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	const hasUpperCase = input !== input.toLowerCase();
 | 
			
		||||
 | 
			
		||||
	if (hasUpperCase) {
 | 
			
		||||
		input = preserveCamelCase(input);
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	input = input
 | 
			
		||||
		.replace(/^[_.\- ]+/, '')
 | 
			
		||||
		.toLowerCase()
 | 
			
		||||
		.replace(/[_.\- ]+(\w|$)/g, (_, p1) => p1.toUpperCase())
 | 
			
		||||
		.replace(/\d+(\w|$)/g, m => m.toUpperCase());
 | 
			
		||||
 | 
			
		||||
	return postProcess(input);
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
module.exports = camelCase;
 | 
			
		||||
// TODO: Remove this for the next major release
 | 
			
		||||
module.exports.default = camelCase;
 | 
			
		||||
							
								
								
									
										9
									
								
								node_modules/camelcase/license
									
										
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								node_modules/camelcase/license
									
										
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,9 @@
 | 
			
		|||
MIT License
 | 
			
		||||
 | 
			
		||||
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.
 | 
			
		||||
							
								
								
									
										75
									
								
								node_modules/camelcase/package.json
									
										
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										75
									
								
								node_modules/camelcase/package.json
									
										
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,75 @@
 | 
			
		|||
{
 | 
			
		||||
  "_from": "camelcase@^5.3.1",
 | 
			
		||||
  "_id": "camelcase@5.3.1",
 | 
			
		||||
  "_inBundle": false,
 | 
			
		||||
  "_integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==",
 | 
			
		||||
  "_location": "/camelcase",
 | 
			
		||||
  "_phantomChildren": {},
 | 
			
		||||
  "_requested": {
 | 
			
		||||
    "type": "range",
 | 
			
		||||
    "registry": true,
 | 
			
		||||
    "raw": "camelcase@^5.3.1",
 | 
			
		||||
    "name": "camelcase",
 | 
			
		||||
    "escapedName": "camelcase",
 | 
			
		||||
    "rawSpec": "^5.3.1",
 | 
			
		||||
    "saveSpec": null,
 | 
			
		||||
    "fetchSpec": "^5.3.1"
 | 
			
		||||
  },
 | 
			
		||||
  "_requiredBy": [
 | 
			
		||||
    "/camelcase-keys"
 | 
			
		||||
  ],
 | 
			
		||||
  "_resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz",
 | 
			
		||||
  "_shasum": "e3c9b31569e106811df242f715725a1f4c494320",
 | 
			
		||||
  "_spec": "camelcase@^5.3.1",
 | 
			
		||||
  "_where": "/home/dawidd6/github/dawidd6/action-debian-package/node_modules/camelcase-keys",
 | 
			
		||||
  "author": {
 | 
			
		||||
    "name": "Sindre Sorhus",
 | 
			
		||||
    "email": "sindresorhus@gmail.com",
 | 
			
		||||
    "url": "sindresorhus.com"
 | 
			
		||||
  },
 | 
			
		||||
  "bugs": {
 | 
			
		||||
    "url": "https://github.com/sindresorhus/camelcase/issues"
 | 
			
		||||
  },
 | 
			
		||||
  "bundleDependencies": false,
 | 
			
		||||
  "deprecated": false,
 | 
			
		||||
  "description": "Convert a dash/dot/underscore/space separated string to camelCase or PascalCase: `foo-bar` → `fooBar`",
 | 
			
		||||
  "devDependencies": {
 | 
			
		||||
    "ava": "^1.4.1",
 | 
			
		||||
    "tsd": "^0.7.1",
 | 
			
		||||
    "xo": "^0.24.0"
 | 
			
		||||
  },
 | 
			
		||||
  "engines": {
 | 
			
		||||
    "node": ">=6"
 | 
			
		||||
  },
 | 
			
		||||
  "files": [
 | 
			
		||||
    "index.js",
 | 
			
		||||
    "index.d.ts"
 | 
			
		||||
  ],
 | 
			
		||||
  "homepage": "https://github.com/sindresorhus/camelcase#readme",
 | 
			
		||||
  "keywords": [
 | 
			
		||||
    "camelcase",
 | 
			
		||||
    "camel-case",
 | 
			
		||||
    "camel",
 | 
			
		||||
    "case",
 | 
			
		||||
    "dash",
 | 
			
		||||
    "hyphen",
 | 
			
		||||
    "dot",
 | 
			
		||||
    "underscore",
 | 
			
		||||
    "separator",
 | 
			
		||||
    "string",
 | 
			
		||||
    "text",
 | 
			
		||||
    "convert",
 | 
			
		||||
    "pascalcase",
 | 
			
		||||
    "pascal-case"
 | 
			
		||||
  ],
 | 
			
		||||
  "license": "MIT",
 | 
			
		||||
  "name": "camelcase",
 | 
			
		||||
  "repository": {
 | 
			
		||||
    "type": "git",
 | 
			
		||||
    "url": "git+https://github.com/sindresorhus/camelcase.git"
 | 
			
		||||
  },
 | 
			
		||||
  "scripts": {
 | 
			
		||||
    "test": "xo && ava && tsd"
 | 
			
		||||
  },
 | 
			
		||||
  "version": "5.3.1"
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										99
									
								
								node_modules/camelcase/readme.md
									
										
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										99
									
								
								node_modules/camelcase/readme.md
									
										
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,99 @@
 | 
			
		|||
# camelcase [](https://travis-ci.org/sindresorhus/camelcase)
 | 
			
		||||
 | 
			
		||||
> Convert a dash/dot/underscore/space separated string to camelCase or PascalCase: `foo-bar` → `fooBar`
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
<div align="center">
 | 
			
		||||
	<b>
 | 
			
		||||
		<a href="https://tidelift.com/subscription/pkg/npm-camelcase?utm_source=npm-camelcase&utm_medium=referral&utm_campaign=readme">Get professional support for 'camelcase' with a Tidelift subscription</a>
 | 
			
		||||
	</b>
 | 
			
		||||
	<br>
 | 
			
		||||
	<sub>
 | 
			
		||||
		Tidelift helps make open source sustainable for maintainers while giving companies<br>assurances about security, maintenance, and licensing for their dependencies.
 | 
			
		||||
	</sub>
 | 
			
		||||
</div>
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
## Install
 | 
			
		||||
 | 
			
		||||
```
 | 
			
		||||
$ npm install camelcase
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
## Usage
 | 
			
		||||
 | 
			
		||||
```js
 | 
			
		||||
const camelCase = require('camelcase');
 | 
			
		||||
 | 
			
		||||
camelCase('foo-bar');
 | 
			
		||||
//=> 'fooBar'
 | 
			
		||||
 | 
			
		||||
camelCase('foo_bar');
 | 
			
		||||
//=> 'fooBar'
 | 
			
		||||
 | 
			
		||||
camelCase('Foo-Bar');
 | 
			
		||||
//=> 'fooBar'
 | 
			
		||||
 | 
			
		||||
camelCase('Foo-Bar', {pascalCase: true});
 | 
			
		||||
//=> 'FooBar'
 | 
			
		||||
 | 
			
		||||
camelCase('--foo.bar', {pascalCase: false});
 | 
			
		||||
//=> 'fooBar'
 | 
			
		||||
 | 
			
		||||
camelCase('foo bar');
 | 
			
		||||
//=> 'fooBar'
 | 
			
		||||
 | 
			
		||||
console.log(process.argv[3]);
 | 
			
		||||
//=> '--foo-bar'
 | 
			
		||||
camelCase(process.argv[3]);
 | 
			
		||||
//=> 'fooBar'
 | 
			
		||||
 | 
			
		||||
camelCase(['foo', 'bar']);
 | 
			
		||||
//=> 'fooBar'
 | 
			
		||||
 | 
			
		||||
camelCase(['__foo__', '--bar'], {pascalCase: true});
 | 
			
		||||
//=> 'FooBar'
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
## API
 | 
			
		||||
 | 
			
		||||
### camelCase(input, [options])
 | 
			
		||||
 | 
			
		||||
#### input
 | 
			
		||||
 | 
			
		||||
Type: `string` `string[]`
 | 
			
		||||
 | 
			
		||||
String to convert to camel case.
 | 
			
		||||
 | 
			
		||||
#### options
 | 
			
		||||
 | 
			
		||||
Type: `Object`
 | 
			
		||||
 | 
			
		||||
##### pascalCase
 | 
			
		||||
 | 
			
		||||
Type: `boolean`<br>
 | 
			
		||||
Default: `false`
 | 
			
		||||
 | 
			
		||||
Uppercase the first character: `foo-bar` → `FooBar`
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
## Security
 | 
			
		||||
 | 
			
		||||
To report a security vulnerability, please use the [Tidelift security contact](https://tidelift.com/security). Tidelift will coordinate the fix and disclosure.
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
## Related
 | 
			
		||||
 | 
			
		||||
- [decamelize](https://github.com/sindresorhus/decamelize) - The inverse of this module
 | 
			
		||||
- [uppercamelcase](https://github.com/SamVerschueren/uppercamelcase) - Like this module, but to PascalCase instead of camelCase
 | 
			
		||||
- [titleize](https://github.com/sindresorhus/titleize) - Capitalize every word in string
 | 
			
		||||
- [humanize-string](https://github.com/sindresorhus/humanize-string) - Convert a camelized/dasherized/underscored string into a humanized one
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
## License
 | 
			
		||||
 | 
			
		||||
MIT © [Sindre Sorhus](https://sindresorhus.com)
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue