Current Dev State

This commit is contained in:
Tim Lorsbach
2025-06-23 20:13:54 +02:00
parent b4f9bb277d
commit ded50edaa2
22617 changed files with 4345095 additions and 174 deletions

22
static/js/ketcher2/node_modules/shasum/LICENSE generated vendored Normal file
View File

@ -0,0 +1,22 @@
Copyright (c) 2012 'Dominic Tarr'
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.

15
static/js/ketcher2/node_modules/shasum/README.md generated vendored Normal file
View File

@ -0,0 +1,15 @@
# shasum
Single function that return the sha1sum.
Installing this is just a little bit quicker than reading the crypto documentation.
``` js
var shasum = require('shasum')
shasum(string || buffer || object)
```
Oh yeah, it works in the browser too, with [browserify](https://npmjs.org/package/browserify)
## License
MIT

13
static/js/ketcher2/node_modules/shasum/browser.js generated vendored Normal file
View File

@ -0,0 +1,13 @@
var createHash = require('sha.js')
var Buffer = require('buffer').Buffer
var stringify = require('json-stable-stringify')
module.exports = function hash (str, alg, format) {
str = 'string' === typeof str ? str
: Buffer.isBuffer(str) ? str
: stringify(str)
return createHash(alg || 'sha1')
.update(str, Buffer.isBuffer(str) ? null : 'utf8').digest(format || 'hex')
}

13
static/js/ketcher2/node_modules/shasum/index.js generated vendored Normal file
View File

@ -0,0 +1,13 @@
var createHash = require('crypto').createHash
var Buffer = require('buffer').Buffer
var stringify = require('json-stable-stringify')
module.exports = function hash (str, alg, format) {
str = 'string' === typeof str ? str
: Buffer.isBuffer(str) ? str
: stringify(str)
return createHash(alg || 'sha1')
.update(str, Buffer.isBuffer(str) ? null : 'utf8').digest(format || 'hex')
}

56
static/js/ketcher2/node_modules/shasum/package.json generated vendored Normal file
View File

@ -0,0 +1,56 @@
{
"_from": "shasum@^1.0.0",
"_id": "shasum@1.0.2",
"_inBundle": false,
"_integrity": "sha1-5wEjENj0F/TetXEhUOVni4euVl8=",
"_location": "/shasum",
"_phantomChildren": {},
"_requested": {
"type": "range",
"registry": true,
"raw": "shasum@^1.0.0",
"name": "shasum",
"escapedName": "shasum",
"rawSpec": "^1.0.0",
"saveSpec": null,
"fetchSpec": "^1.0.0"
},
"_requiredBy": [
"/browserify",
"/deps-sort"
],
"_resolved": "https://registry.npmjs.org/shasum/-/shasum-1.0.2.tgz",
"_shasum": "e7012310d8f417f4deb5712150e5678b87ae565f",
"_spec": "shasum@^1.0.0",
"_where": "/home/manfred/enviPath/ketcher2/ketcher/node_modules/browserify",
"author": {
"name": "'Dominic Tarr'",
"email": "dominic.tarr@gmail.com",
"url": "http://dominictarr.com"
},
"browser": {
"./index.js": "./browser.js"
},
"bugs": {
"url": "https://github.com/dominictarr/shasum/issues"
},
"bundleDependencies": false,
"dependencies": {
"json-stable-stringify": "~0.0.0",
"sha.js": "~2.4.4"
},
"deprecated": false,
"description": "Single function that return the sha1sum. Installing this is just a little bit quicker than reading the crypto documentation.",
"devDependencies": {},
"homepage": "https://github.com/dominictarr/shasum",
"license": "MIT",
"name": "shasum",
"repository": {
"type": "git",
"url": "git://github.com/dominictarr/shasum.git"
},
"scripts": {
"test": "node test/index.js && node test/index.js browser"
},
"version": "1.0.2"
}

18
static/js/ketcher2/node_modules/shasum/test/index.js generated vendored Normal file
View File

@ -0,0 +1,18 @@
var equal = require('assert').equal
var hash = require(process.argv[2] === 'browser' ? '../browser.js' : '..')
equal(hash('abc'), 'a9993e364706816aba3e25717850c26c9cd0d89d')
equal(hash('abce'), '0a431a7631cabf6b11b984a943127b5e0aa9d687')
equal(hash({}), 'bf21a9e8fbc5a3846fb05b4fa0859e0917b2202f')
equal(hash([]), '97d170e1550eee4afc0af065b78cda302a97674c')
equal(hash(new Buffer('abc')),
'a9993e364706816aba3e25717850c26c9cd0d89d')
equal(hash('ab\xff'),'ba5142a8207bd61baddf325088732e71cbfe8eb6')
equal(hash(new Buffer('ab\xff').toString()),
'ba5142a8207bd61baddf325088732e71cbfe8eb6')
equal(hash({a:1,b:2,c:3}), hash({c:3,b:2,a:1}))
equal(hash({a:1,b:2,c:3}), hash({c:3,b:2,a:1}))
equal(hash({a:1,b:[2,3],c:4}), hash({c:4,b:[2,3],a:1}))
equal(hash({a:1,b:[2,{c:3,d:4}],e:5}), hash({e:5,b:[2,{d:4,c:3}],a:1}))