Fixed tests and Node version to work with modules
This commit is contained in:
parent
a4aee761c2
commit
6af82680f1
@ -12,7 +12,7 @@ import CharEnc from "../../operations/CharEnc.js";
|
|||||||
* @copyright Crown Copyright 2017
|
* @copyright Crown Copyright 2017
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
let OpModules = self.OpModules || {};
|
let OpModules = typeof self === "undefined" ? {} : self.OpModules || {};
|
||||||
|
|
||||||
OpModules.CharEnc = {
|
OpModules.CharEnc = {
|
||||||
"Encode text": CharEnc.runEncode,
|
"Encode text": CharEnc.runEncode,
|
||||||
|
@ -12,7 +12,7 @@ import Cipher from "../../operations/Cipher.js";
|
|||||||
* @copyright Crown Copyright 2017
|
* @copyright Crown Copyright 2017
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
let OpModules = self.OpModules || {};
|
let OpModules = typeof self === "undefined" ? {} : self.OpModules || {};
|
||||||
|
|
||||||
OpModules.Ciphers = {
|
OpModules.Ciphers = {
|
||||||
"AES Encrypt": Cipher.runAesEnc,
|
"AES Encrypt": Cipher.runAesEnc,
|
||||||
|
@ -16,7 +16,7 @@ import Code from "../../operations/Code.js";
|
|||||||
* @copyright Crown Copyright 2017
|
* @copyright Crown Copyright 2017
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
let OpModules = self.OpModules || {};
|
let OpModules = typeof self === "undefined" ? {} : self.OpModules || {};
|
||||||
|
|
||||||
OpModules.Code = {
|
OpModules.Code = {
|
||||||
"JavaScript Parser": JS.runParse,
|
"JavaScript Parser": JS.runParse,
|
||||||
|
@ -12,7 +12,7 @@ import Compress from "../../operations/Compress.js";
|
|||||||
* @copyright Crown Copyright 2017
|
* @copyright Crown Copyright 2017
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
let OpModules = self.OpModules || {};
|
let OpModules = typeof self === "undefined" ? {} : self.OpModules || {};
|
||||||
|
|
||||||
OpModules.Compression = {
|
OpModules.Compression = {
|
||||||
"Raw Deflate": Compress.runRawDeflate,
|
"Raw Deflate": Compress.runRawDeflate,
|
||||||
|
@ -42,7 +42,7 @@ import UUID from "../../operations/UUID.js";
|
|||||||
* @copyright Crown Copyright 2017
|
* @copyright Crown Copyright 2017
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
let OpModules = self.OpModules || {};
|
let OpModules = typeof self === "undefined" ? {} : self.OpModules || {};
|
||||||
|
|
||||||
OpModules.Default = {
|
OpModules.Default = {
|
||||||
"To Hexdump": Hexdump.runTo,
|
"To Hexdump": Hexdump.runTo,
|
||||||
|
@ -11,7 +11,7 @@ import Diff from "../../operations/Diff.js";
|
|||||||
* @copyright Crown Copyright 2017
|
* @copyright Crown Copyright 2017
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
let OpModules = self.OpModules || {};
|
let OpModules = typeof self === "undefined" ? {} : self.OpModules || {};
|
||||||
|
|
||||||
OpModules.Diff = {
|
OpModules.Diff = {
|
||||||
"Diff": Diff.runDiff,
|
"Diff": Diff.runDiff,
|
||||||
|
@ -11,7 +11,7 @@ import Punycode from "../../operations/Punycode.js";
|
|||||||
* @copyright Crown Copyright 2017
|
* @copyright Crown Copyright 2017
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
let OpModules = self.OpModules || {};
|
let OpModules = typeof self === "undefined" ? {} : self.OpModules || {};
|
||||||
|
|
||||||
OpModules.Encodings = {
|
OpModules.Encodings = {
|
||||||
"To Punycode": Punycode.runToAscii,
|
"To Punycode": Punycode.runToAscii,
|
||||||
|
@ -11,7 +11,7 @@ import HTTP from "../../operations/HTTP.js";
|
|||||||
* @copyright Crown Copyright 2017
|
* @copyright Crown Copyright 2017
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
let OpModules = self.OpModules || {};
|
let OpModules = typeof self === "undefined" ? {} : self.OpModules || {};
|
||||||
|
|
||||||
OpModules.HTTP = {
|
OpModules.HTTP = {
|
||||||
"HTTP request": HTTP.runHTTPRequest,
|
"HTTP request": HTTP.runHTTPRequest,
|
||||||
|
@ -14,7 +14,7 @@ import Hash from "../../operations/Hash.js";
|
|||||||
* @copyright Crown Copyright 2017
|
* @copyright Crown Copyright 2017
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
let OpModules = self.OpModules || {};
|
let OpModules = typeof self === "undefined" ? {} : self.OpModules || {};
|
||||||
|
|
||||||
OpModules.Hashing = {
|
OpModules.Hashing = {
|
||||||
"Analyse hash": Hash.runAnalyse,
|
"Analyse hash": Hash.runAnalyse,
|
||||||
|
@ -13,7 +13,7 @@ import Image from "../../operations/Image.js";
|
|||||||
* @copyright Crown Copyright 2017
|
* @copyright Crown Copyright 2017
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
let OpModules = self.OpModules || {};
|
let OpModules = typeof self === "undefined" ? {} : self.OpModules || {};
|
||||||
|
|
||||||
OpModules.Image = {
|
OpModules.Image = {
|
||||||
"Extract EXIF": Image.runExtractEXIF,
|
"Extract EXIF": Image.runExtractEXIF,
|
||||||
|
@ -13,7 +13,7 @@ import Filetime from "../../operations/Filetime.js";
|
|||||||
* @copyright Crown Copyright 2017
|
* @copyright Crown Copyright 2017
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
let OpModules = self.OpModules || {};
|
let OpModules = typeof self === "undefined" ? {} : self.OpModules || {};
|
||||||
|
|
||||||
OpModules.JSBN = {
|
OpModules.JSBN = {
|
||||||
"Parse IP range": IP.runParseIpRange,
|
"Parse IP range": IP.runParseIpRange,
|
||||||
|
@ -11,7 +11,7 @@ import PublicKey from "../../operations/PublicKey.js";
|
|||||||
* @copyright Crown Copyright 2017
|
* @copyright Crown Copyright 2017
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
let OpModules = self.OpModules || {};
|
let OpModules = typeof self === "undefined" ? {} : self.OpModules || {};
|
||||||
|
|
||||||
OpModules.PublicKey = {
|
OpModules.PublicKey = {
|
||||||
"Parse X.509 certificate": PublicKey.runParseX509,
|
"Parse X.509 certificate": PublicKey.runParseX509,
|
||||||
|
Loading…
Reference in New Issue
Block a user