forked from enviPath/enviPy
Current Dev State
This commit is contained in:
21
static/js/ketcher2/node_modules/unicode-length/LICENSE
generated
vendored
Normal file
21
static/js/ketcher2/node_modules/unicode-length/LICENSE
generated
vendored
Normal file
@ -0,0 +1,21 @@
|
||||
The MIT License
|
||||
|
||||
Copyright (c) 2014 Juan Cruz Viotti, Inc. https://jviotti.github.io
|
||||
|
||||
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.
|
||||
22
static/js/ketcher2/node_modules/unicode-length/build/unicode-length.js
generated
vendored
Normal file
22
static/js/ketcher2/node_modules/unicode-length/build/unicode-length.js
generated
vendored
Normal file
@ -0,0 +1,22 @@
|
||||
var REGEX_SYMBOLS, punycode, stripAnsi;
|
||||
|
||||
punycode = require('punycode');
|
||||
|
||||
stripAnsi = require('strip-ansi');
|
||||
|
||||
REGEX_SYMBOLS = /([\0-\u02FF\u0370-\u1DBF\u1E00-\u20CF\u2100-\uD7FF\uDC00-\uFE1F\uFE30-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF])([\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]+)/g;
|
||||
|
||||
exports.get = function(input) {
|
||||
var stripped;
|
||||
if (input == null) {
|
||||
throw new Error('Missing input');
|
||||
}
|
||||
if (typeof input !== 'string') {
|
||||
throw new Error("Invalid input: " + input);
|
||||
}
|
||||
input = stripAnsi(input);
|
||||
stripped = input.replace(REGEX_SYMBOLS, function($0, symbol, combiningMarks) {
|
||||
return symbol;
|
||||
});
|
||||
return punycode.ucs2.decode(stripped).length;
|
||||
};
|
||||
75
static/js/ketcher2/node_modules/unicode-length/package.json
generated
vendored
Normal file
75
static/js/ketcher2/node_modules/unicode-length/package.json
generated
vendored
Normal file
@ -0,0 +1,75 @@
|
||||
{
|
||||
"_from": "unicode-length@^1.0.0",
|
||||
"_id": "unicode-length@1.0.3",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha1-Wtp6f+1RhBpBijKM8UlHisg1irs=",
|
||||
"_location": "/unicode-length",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "range",
|
||||
"registry": true,
|
||||
"raw": "unicode-length@^1.0.0",
|
||||
"name": "unicode-length",
|
||||
"escapedName": "unicode-length",
|
||||
"rawSpec": "^1.0.0",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "^1.0.0"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/tap-mocha-reporter"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/unicode-length/-/unicode-length-1.0.3.tgz",
|
||||
"_shasum": "5ada7a7fed51841a418a328cf149478ac8358abb",
|
||||
"_spec": "unicode-length@^1.0.0",
|
||||
"_where": "/home/manfred/enviPath/ketcher2/ketcher/node_modules/tap-mocha-reporter",
|
||||
"author": {
|
||||
"name": "Juan Cruz Viotti",
|
||||
"email": "juanchiviotti@gmail.com"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/jviotti/unicode-length/issues"
|
||||
},
|
||||
"bundleDependencies": false,
|
||||
"dependencies": {
|
||||
"punycode": "^1.3.2",
|
||||
"strip-ansi": "^3.0.1"
|
||||
},
|
||||
"deprecated": false,
|
||||
"description": "Get the length of unicode strings",
|
||||
"devDependencies": {
|
||||
"chai": "~1.10.0",
|
||||
"coffee-script": "~1.8.0",
|
||||
"gulp": "~3.8.10",
|
||||
"gulp-coffee": "~2.2.0",
|
||||
"gulp-coffeelint": "~0.4.0",
|
||||
"gulp-mocha": "~2.0.0",
|
||||
"gulp-util": "~3.0.1",
|
||||
"mocha": "~2.0.1",
|
||||
"sinon": "~1.12.2",
|
||||
"sinon-chai": "~2.6.0"
|
||||
},
|
||||
"directories": {
|
||||
"test": "tests"
|
||||
},
|
||||
"files": [
|
||||
"build/unicode-length.js"
|
||||
],
|
||||
"homepage": "https://github.com/jviotti/unicode-length",
|
||||
"keywords": [
|
||||
"unicode",
|
||||
"string",
|
||||
"length"
|
||||
],
|
||||
"license": "MIT",
|
||||
"main": "build/unicode-length.js",
|
||||
"name": "unicode-length",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git://github.com/jviotti/unicode-length.git"
|
||||
},
|
||||
"scripts": {
|
||||
"prepublish": "gulp build",
|
||||
"test": "gulp test"
|
||||
},
|
||||
"version": "1.0.3"
|
||||
}
|
||||
Reference in New Issue
Block a user