1
0
mirror of https://github.com/S2-/minifyfromhtml.git synced 2025-08-03 04:10:04 +02:00

update node modules

This commit is contained in:
s2
2019-03-29 15:56:41 +01:00
parent f114871153
commit 89c32fb4e6
8347 changed files with 390123 additions and 159877 deletions

15
node_modules/ecc-jsbn/.npmignore generated vendored
View File

@@ -1,15 +0,0 @@
lib-cov
*.seed
*.log
*.csv
*.dat
*.out
*.pid
*.gz
pids
logs
results
npm-debug.log
node_modules

9
node_modules/ecc-jsbn/index.js generated vendored
View File

@@ -1,6 +1,7 @@
var crypto = require("crypto");
var BigInteger = require("jsbn").BigInteger;
var ECPointFp = require("./lib/ec.js").ECPointFp;
var Buffer = require("safer-buffer").Buffer;
exports.ECCurves = require("./lib/sec.js");
// zero prepad
@@ -40,17 +41,17 @@ exports.ECKey = function(curve, key, isPublic)
if(this.P)
{
// var pubhex = unstupid(this.P.getX().toBigInteger().toString(16),bytes*2)+unstupid(this.P.getY().toBigInteger().toString(16),bytes*2);
// this.PublicKey = new Buffer("04"+pubhex,"hex");
this.PublicKey = new Buffer(c.getCurve().encodeCompressedPointHex(this.P),"hex");
// this.PublicKey = Buffer.from("04"+pubhex,"hex");
this.PublicKey = Buffer.from(c.getCurve().encodeCompressedPointHex(this.P),"hex");
}
if(priv)
{
this.PrivateKey = new Buffer(unstupid(priv.toString(16),bytes*2),"hex");
this.PrivateKey = Buffer.from(unstupid(priv.toString(16),bytes*2),"hex");
this.deriveSharedSecret = function(key)
{
if(!key || !key.P) return false;
var S = key.P.multiply(priv);
return new Buffer(unstupid(S.getX().toBigInteger().toString(16),bytes*2),"hex");
return Buffer.from(unstupid(S.getX().toBigInteger().toString(16),bytes*2),"hex");
}
}
}

15
node_modules/ecc-jsbn/package.json generated vendored
View File

@@ -1,8 +1,8 @@
{
"_from": "ecc-jsbn@~0.1.1",
"_id": "ecc-jsbn@0.1.1",
"_id": "ecc-jsbn@0.1.2",
"_inBundle": false,
"_integrity": "sha1-D8c6ntXw1Tw4GTOYUj735UN3dQU=",
"_integrity": "sha1-OoOpBOVDUyh4dMVkt1SThoSamMk=",
"_location": "/ecc-jsbn",
"_phantomChildren": {},
"_requested": {
@@ -18,10 +18,10 @@
"_requiredBy": [
"/sshpk"
],
"_resolved": "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.1.tgz",
"_shasum": "0fc73a9ed5f0d53c38193398523ef7e543777505",
"_resolved": "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz",
"_shasum": "3a83a904e54353287874c564b7549386849a98c9",
"_spec": "ecc-jsbn@~0.1.1",
"_where": "/home/s2/Documents/Code/minifyfromhtml/node_modules/sshpk",
"_where": "E:\\projects\\p\\minifyfromhtml\\node_modules\\sshpk",
"author": {
"name": "Jeremie Miller",
"email": "jeremie@jabber.org",
@@ -32,7 +32,8 @@
},
"bundleDependencies": false,
"dependencies": {
"jsbn": "~0.1.0"
"jsbn": "~0.1.0",
"safer-buffer": "^2.1.0"
},
"deprecated": false,
"description": "ECC JS code based on JSBN",
@@ -60,5 +61,5 @@
"type": "git",
"url": "git+https://github.com/quartzjer/ecc-jsbn.git"
},
"version": "0.1.1"
"version": "0.1.2"
}