num-client
Advanced tools
Comparing version 2.0.7 to 2.0.8
/*! https://mths.be/punycode v1.3.2 by @mathias */ | ||
/** @license URI.js v4.4.1 (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js */ | ||
/** @preserve | ||
* Counter block mode compatible with Dr Brian Gladman fileenc.c | ||
* derived from CryptoJS.mode.CTR | ||
* Jan Hruby jhruby.web@gmail.com | ||
*/ | ||
/** @preserve | ||
(c) 2012 by Cédric Mesnil. All rights reserved. | ||
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: | ||
- Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. | ||
- Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. | ||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
*/ |
@@ -7,7 +7,7 @@ "use strict"; | ||
exports.hashByDepth = void 0; | ||
var crypto_js_1 = __importDefault(require("crypto-js")); | ||
var sha1_1 = __importDefault(require("sha1")); | ||
var anyBase = require('any-base'); | ||
var hexToBase36 = anyBase(anyBase.HEX, '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ'); | ||
exports.hashByDepth = function (normalisedDomain, depth) { | ||
var hashed = crypto_js_1.default.SHA1(normalisedDomain).toString(); | ||
var hashed = sha1_1.default(normalisedDomain).toString(); | ||
var converted = hexToBase36(hashed).toLowerCase(); | ||
@@ -14,0 +14,0 @@ return generateHash(depth - 1, converted); |
{ | ||
"name": "num-client", | ||
"version": "2.0.7", | ||
"version": "2.0.8", | ||
"description": "A NUM Protocol Client in TypeScript", | ||
@@ -8,3 +8,2 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"@types/crypto-js": "^4.0.1", | ||
"ajv": "^8.0.3", | ||
@@ -14,3 +13,2 @@ "ajv-formats": "^2.1.1", | ||
"axios": "^0.21.1", | ||
"crypto-js": "^4.0.0", | ||
"delay": "^4.4.0", | ||
@@ -21,2 +19,3 @@ "modl-interpreter": "0.0.20", | ||
"punycode": "^2.1.1", | ||
"sha1": "^1.1.1", | ||
"url": "^0.11.0" | ||
@@ -49,2 +48,3 @@ }, | ||
"webpack": "^5.23.0", | ||
"webpack-bundle-analyzer": "^4.5.0", | ||
"webpack-cli": "^4.7.0" | ||
@@ -51,0 +51,0 @@ }, |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
834248
11
182
7391
26
80
+ Addedsha1@^1.1.1
+ Addedcharenc@0.0.2(transitive)
+ Addedcrypt@0.0.2(transitive)
+ Addedsha1@1.1.1(transitive)
- Removed@types/crypto-js@^4.0.1
- Removedcrypto-js@^4.0.0
- Removed@types/crypto-js@4.2.2(transitive)
- Removedcrypto-js@4.2.0(transitive)