@cubbit/enigma
Advanced tools
Comparing version 1.2.2 to 1.3.0
@@ -0,0 +0,0 @@ /// <reference types="node" /> |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ declare const defaults: { |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import {Duplex, Transform} from 'stream'; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ /// <reference types="node" /> |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ export * from './modules/Random'; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ /// <reference types="node" /> |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ export declare class DiffieHellman { |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ /// <reference types="node" /> |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ /// <reference types="node" /> |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ /// <reference types="node" /> |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ /// <reference types="node" /> |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ /// <reference types="node" /> |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ /// <reference types="node" /> |
@@ -15,3 +15,3 @@ "use strict"; | ||
const AES_1 = require("./AES"); | ||
const X25519_key_exchange = require('js-x25519'); | ||
const X25519_key_exchange = require('../../common/x25519.js'); | ||
class X25519 { | ||
@@ -18,0 +18,0 @@ init(options) { |
{ | ||
"name": "@cubbit/enigma", | ||
"version": "1.2.2", | ||
"version": "1.3.0", | ||
"description": "A fast, native, cryptographic engine for the web", | ||
@@ -38,3 +38,2 @@ "main": "index.js", | ||
"fs-extra": "^9.0.1", | ||
"js-x25519": "git+https://github.com/CryptoEsel/js-x25519.git", | ||
"node-addon-api": "^3.0.2", | ||
@@ -41,0 +40,0 @@ "pem-jwk": "^2.0.0", |
@@ -0,0 +0,0 @@ # enigma [![Build Status](https://travis-ci.org/cubbit/enigma.svg?branch=master)](https://travis-ci.org/cubbit/enigma) |
@@ -64,2 +64,3 @@ "use strict"; | ||
case 'arm': | ||
case 'armv7': | ||
env.OPENSSL_COMPILER = 'linux-generic32'; | ||
@@ -66,0 +67,0 @@ break; |
@@ -31,3 +31,3 @@ 'use strict'; | ||
{ | ||
if(process.env.CI) | ||
if(process.env.ENIGMA_FORCE_BUILD) | ||
{ | ||
@@ -78,2 +78,28 @@ if(_build()) | ||
module.exports = {install}; | ||
function source() | ||
{ | ||
return new Promise((resolve, reject) => | ||
{ | ||
const url = `https://raw.githubusercontent.com/CryptoEsel/js-x25519/master/lib/x25519.js.min.js`; | ||
https.get(url, (response) => | ||
{ | ||
if(response.statusCode === 200) | ||
{ | ||
const common_path = path.resolve(module_path, 'src', 'common'); | ||
const file = path.resolve(common_path, 'x25519.js'); | ||
fs.ensureDirSync(common_path); | ||
const stream = fs.createWriteStream(file) | ||
stream.on('close', resolve); | ||
stream.on('error', reject); | ||
response.pipe(stream); | ||
} | ||
else | ||
throw new Error('Cannot download source dependencies'); | ||
}); | ||
}); | ||
} | ||
module.exports = {install, source}; |
@@ -0,0 +0,0 @@ /// <reference types="node" /> |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ export * from './modules/Random'; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ /// <reference types="node" /> |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ /// <reference types="node" /> |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ /// <reference types="node" /> |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ /// <reference types="node" /> |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ /// <reference types="node" /> |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ /// <reference types="node" /> |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ /// <reference types="node" /> |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ /// <reference types="node" /> |
@@ -15,3 +15,3 @@ "use strict"; | ||
const AES_1 = require("./AES"); | ||
const X25519_key_exchange = require('js-x25519'); | ||
const X25519_key_exchange = require('../../common/x25519.js'); | ||
class X25519 { | ||
@@ -18,0 +18,0 @@ init(options) { |
@@ -0,0 +0,0 @@ /// <reference types="node" /> |
@@ -0,0 +0,0 @@ "use strict"; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Git dependency
Supply chain riskContains a dependency which resolves to a remote git URL. Dependencies fetched from git URLs are not immutable can be used to inject untrusted code or reduce the likelihood of a reproducible install.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
2729035
7
63
12258
0