mirror of
https://github.com/gradle/wrapper-validation-action.git
synced 2025-04-21 22:59:19 +08:00
Dependencies
Signed-off-by: Paul Merlin <paul@gradle.com>
This commit is contained in:
parent
8aa7c79fa3
commit
0d659779b2
24
node_modules/unhomoglyph/CHANGELOG.md
generated
vendored
Normal file
24
node_modules/unhomoglyph/CHANGELOG.md
generated
vendored
Normal file
@ -0,0 +1,24 @@
|
||||
1.0.3 / 2019-11-04
|
||||
------------------
|
||||
|
||||
- Update mapping data to version 12.1.0
|
||||
http://www.unicode.org/Public/security/latest/confusables.txt
|
||||
- Dev deps bump.
|
||||
|
||||
1.0.2 / 2017-03-05
|
||||
------------------
|
||||
|
||||
- Update mapping data to version 9.0.0
|
||||
http://www.unicode.org/Public/security/latest/confusables.txt
|
||||
|
||||
|
||||
1.0.1 / 2016-12-09
|
||||
------------------
|
||||
|
||||
- Fix repo link.
|
||||
|
||||
|
||||
1.0.0 / 2016-12-09
|
||||
------------------
|
||||
|
||||
- First release.
|
22
node_modules/unhomoglyph/LICENSE
generated
vendored
Normal file
22
node_modules/unhomoglyph/LICENSE
generated
vendored
Normal file
@ -0,0 +1,22 @@
|
||||
Copyright (c) 2016 Vitaly Puzrin.
|
||||
|
||||
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.
|
54
node_modules/unhomoglyph/README.md
generated
vendored
Normal file
54
node_modules/unhomoglyph/README.md
generated
vendored
Normal file
@ -0,0 +1,54 @@
|
||||
# unhomoglyph
|
||||
|
||||
[](https://travis-ci.org/nodeca/unhomoglyph)
|
||||
[](https://www.npmjs.org/package/unhomoglyph)
|
||||
|
||||
> Replace all homoglyphs with base characters. Useful to detect similar strings.
|
||||
For example, to prohibit register similar looking nicknames at websites.
|
||||
|
||||
Data source - [Recommended confusable mapping for IDN](http://www.unicode.org/Public/security/latest/confusables.txt), v12.1.0.
|
||||
|
||||
__Note!__ Text after transform is NOT intended be read by humans. For example,
|
||||
`m` will be transformed to `r` + `n`. Goal is to compare 2 strings after
|
||||
transform, to check if sources looks similar or not. If sources look similar,
|
||||
then transformed strings are equal.
|
||||
|
||||
|
||||
## Install
|
||||
|
||||
```bash
|
||||
npm install unhomoglyph --save
|
||||
```
|
||||
|
||||
|
||||
## Example
|
||||
|
||||
```js
|
||||
const unhomoglyph = require('unhomoglyph');
|
||||
|
||||
console.log(unhomoglyph('AΑАᎪᗅᴀꓮ')); // => AAAAAAA
|
||||
console.log(unhomoglyph('m')); // => rn (r + n)
|
||||
|
||||
//
|
||||
// Compare nicknames
|
||||
//
|
||||
|
||||
const username1 = 'm';
|
||||
const username2 = 'rn';
|
||||
|
||||
if (unhomoglyph(username1) === unhomoglyph(username2)) {
|
||||
console.log(`"${username1}" and "${username2} look similar`);
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
## Update
|
||||
|
||||
```bash
|
||||
npm run update
|
||||
```
|
||||
|
||||
|
||||
## License
|
||||
|
||||
[MIT](https://github.com/nodeca/unhomoglyph/blob/master/LICENSE)
|
6298
node_modules/unhomoglyph/data.json
generated
vendored
Normal file
6298
node_modules/unhomoglyph/data.json
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
20
node_modules/unhomoglyph/index.js
generated
vendored
Normal file
20
node_modules/unhomoglyph/index.js
generated
vendored
Normal file
@ -0,0 +1,20 @@
|
||||
'use strict';
|
||||
|
||||
|
||||
var data = require('./data.json');
|
||||
|
||||
function escapeRegexp(str) {
|
||||
return str.replace(/([.?*+^$[\]\\(){}|-])/g, '\\$1');
|
||||
}
|
||||
|
||||
var REPLACE_RE = RegExp(Object.keys(data).map(escapeRegexp).join('|'), 'g');
|
||||
|
||||
function replace_fn(match) {
|
||||
return data[match];
|
||||
}
|
||||
|
||||
function unhomoglyph(str) {
|
||||
return str.replace(REPLACE_RE, replace_fn);
|
||||
}
|
||||
|
||||
module.exports = unhomoglyph;
|
59
node_modules/unhomoglyph/package.json
generated
vendored
Normal file
59
node_modules/unhomoglyph/package.json
generated
vendored
Normal file
@ -0,0 +1,59 @@
|
||||
{
|
||||
"_args": [
|
||||
[
|
||||
"unhomoglyph@1.0.3",
|
||||
"/Users/paul/src/gradle-related/wrapper-validation-action"
|
||||
]
|
||||
],
|
||||
"_from": "unhomoglyph@1.0.3",
|
||||
"_id": "unhomoglyph@1.0.3",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha512-PC/OAHE8aiTK0Gfmy0PxOlePazRn+BeCM1r4kFtkHgEnkJZgJoI7yD2yUEjsfSdLXKU1FSt/EcIZvNoKazYUTw==",
|
||||
"_location": "/unhomoglyph",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "version",
|
||||
"registry": true,
|
||||
"raw": "unhomoglyph@1.0.3",
|
||||
"name": "unhomoglyph",
|
||||
"escapedName": "unhomoglyph",
|
||||
"rawSpec": "1.0.3",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "1.0.3"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/unhomoglyph/-/unhomoglyph-1.0.3.tgz",
|
||||
"_spec": "1.0.3",
|
||||
"_where": "/Users/paul/src/gradle-related/wrapper-validation-action",
|
||||
"bugs": {
|
||||
"url": "https://github.com/nodeca/unhomoglyph/issues"
|
||||
},
|
||||
"description": "Replace all homoglyphs with base characters.",
|
||||
"devDependencies": {
|
||||
"eslint": "^6.6.0",
|
||||
"mocha": "^6.2.2"
|
||||
},
|
||||
"files": [
|
||||
"index.js",
|
||||
"data.json"
|
||||
],
|
||||
"homepage": "https://github.com/nodeca/unhomoglyph#readme",
|
||||
"keywords": [
|
||||
"homoglyph",
|
||||
"homoglyphs"
|
||||
],
|
||||
"license": "MIT",
|
||||
"name": "unhomoglyph",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/nodeca/unhomoglyph.git"
|
||||
},
|
||||
"scripts": {
|
||||
"lint": "eslint .",
|
||||
"test": "npm run lint && mocha",
|
||||
"update": "node update.js && npm test"
|
||||
},
|
||||
"version": "1.0.3"
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user