Add minimalistic-assert

This commit is contained in:
CrazyMax 2020-05-05 21:11:19 +02:00
parent b75e8b33a2
commit 3f16d09b79
No known key found for this signature in database
GPG key ID: 3248E46B6BB8C7F7
5 changed files with 76 additions and 1 deletions

2
.gitignore vendored
View file

@ -7,7 +7,7 @@
!/node_modules/bn.js/
!/node_modules/inherits/
!/node_modules/safe-buffer/
!/node_modules/minimalistic-assert.js/
!/node_modules/minimalistic-assert/
# Jetbrains
/.idea

13
node_modules/minimalistic-assert/LICENSE generated vendored Normal file
View file

@ -0,0 +1,13 @@
Copyright 2015 Calvin Metcalf
Permission to use, copy, modify, and/or distribute this software for any purpose
with or without fee is hereby granted, provided that the above copyright notice
and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.

11
node_modules/minimalistic-assert/index.js generated vendored Normal file
View file

@ -0,0 +1,11 @@
module.exports = assert;
function assert(val, msg) {
if (!val)
throw new Error(msg || 'Assertion failed');
}
assert.equal = function assertEqual(l, r, msg) {
if (l != r)
throw new Error(msg || ('Assertion failed: ' + l + ' != ' + r));
};

47
node_modules/minimalistic-assert/package.json generated vendored Normal file
View file

@ -0,0 +1,47 @@
{
"_args": [
[
"minimalistic-assert@1.0.1",
"X:\\dev\\neard\\www\\github\\ghaction\\ghaction-import-gpg"
]
],
"_from": "minimalistic-assert@1.0.1",
"_id": "minimalistic-assert@1.0.1",
"_inBundle": false,
"_integrity": "sha512-UtJcAD4yEaGtjPezWuO9wC4nwUnVH/8/Im3yEHQP4b67cXlD/Qr9hdITCU1xDbSEXg2XKNaP8jsReV7vQd00/A==",
"_location": "/minimalistic-assert",
"_phantomChildren": {},
"_requested": {
"type": "version",
"registry": true,
"raw": "minimalistic-assert@1.0.1",
"name": "minimalistic-assert",
"escapedName": "minimalistic-assert",
"rawSpec": "1.0.1",
"saveSpec": null,
"fetchSpec": "1.0.1"
},
"_requiredBy": [
"/asn1.js"
],
"_resolved": "https://registry.npmjs.org/minimalistic-assert/-/minimalistic-assert-1.0.1.tgz",
"_spec": "1.0.1",
"_where": "X:\\dev\\neard\\www\\github\\ghaction\\ghaction-import-gpg",
"author": "",
"bugs": {
"url": "https://github.com/calvinmetcalf/minimalistic-assert/issues"
},
"description": "minimalistic-assert ===",
"homepage": "https://github.com/calvinmetcalf/minimalistic-assert",
"license": "ISC",
"main": "index.js",
"name": "minimalistic-assert",
"repository": {
"type": "git",
"url": "git+https://github.com/calvinmetcalf/minimalistic-assert.git"
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"version": "1.0.1"
}

4
node_modules/minimalistic-assert/readme.md generated vendored Normal file
View file

@ -0,0 +1,4 @@
minimalistic-assert
===
very minimalistic assert module.