Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@hyperledger/cactus-common

Package Overview
Dependencies
Maintainers
7
Versions
60
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hyperledger/cactus-common - npm Package Compare versions

Comparing version 0.10.1-fix-quorum-no-keychain-endpoints.bf5e0403.1 to 1.0.0-main.334593a7.46

3

dist/lib/main/typescript/strings.d.ts
export declare class Strings {
static replaceAll(source: string, searchValue: string, replaceValue: string): string;
static isString(val: any): boolean;
static isString(val: any): val is string;
static isNonBlank(val: unknown): val is string;
static dropNonPrintable(val: string): string;
}

@@ -12,2 +12,8 @@ "use strict";

}
static isNonBlank(val) {
if (!Strings.isString(val)) {
return false;
}
return val.trim().length > 0;
}
static dropNonPrintable(val) {

@@ -20,2 +26,2 @@ const fnTag = "Strings#dropNonPrintable()";

exports.Strings = Strings;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3RyaW5ncy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9tYWluL3R5cGVzY3JpcHQvc3RyaW5ncy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBQSxxQ0FBa0M7QUFFbEMsTUFBYSxPQUFPO0lBQ1gsTUFBTSxDQUFDLFVBQVUsQ0FDdEIsTUFBYyxFQUNkLFdBQW1CLEVBQ25CLFlBQW9CO1FBRXBCLE9BQU8sTUFBTSxDQUFDLE9BQU8sQ0FBQyxJQUFJLE1BQU0sQ0FBQyxXQUFXLEVBQUUsSUFBSSxDQUFDLEVBQUUsWUFBWSxDQUFDLENBQUM7SUFDckUsQ0FBQztJQUVNLE1BQU0sQ0FBQyxRQUFRLENBQUMsR0FBUTtRQUM3QixPQUFPLE9BQU8sR0FBRyxLQUFLLFFBQVEsSUFBSSxHQUFHLFlBQVksTUFBTSxDQUFD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FDZDtRQUNELE9BQU8sR0FBRyxDQUFDLElBQUksRUFBRSxDQUFDLE1BQU0sR0FBRyxDQUFDLENBQUM7SUFDL0IsQ0FBQztJQUVNLE1BQU0sQ0FBQyxnQkFBZ0IsQ0FBQyxHQUFXO1FBQ3hDLE1BQU0sS0FBSyxHQUFHLDRCQUE0QixDQUFDO1FBQzNDLGVBQU0sQ0FBQyxNQUFNLENBQUMsT0FBTyxDQUFDLFFBQVEsQ0FBQyxHQUFHLENBQUMsRUFBRSxHQUFHLEtBQUssd0JBQXdCLENBQUMsQ0FBQztRQUN2RSxPQUFPLEdBQUcsQ0FBQyxPQUFPLENBQUMsVUFBVSxFQUFFLEVBQUUsQ0FBQyxDQUFDO0lBQ3JDLENBQUM7Q0FDRjtBQXpCRCwwQkF5QkMifQ==

@@ -1,1 +0,1 @@

export {};
import "jest-extended";

@@ -21,12 +21,8 @@ "use strict";

};
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const tape_1 = __importDefault(require("tape-promise/tape"));
const apiSurface = __importStar(require("../../../main/typescript/public-api"));
tape_1.default("Library can be loaded", (t) => {
t.ok(apiSurface, "apiSurface truthy OK");
t.end();
require("jest-extended");
test("Library can be loaded", async () => {
expect(apiSurface).toBeTruthy();
});
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXBpLXN1cmZhY2UudGVzdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3NyYy90ZXN0L3R5cGVzY3JpcHQvaW50ZWdyYXRpb24vYXBpLXN1cmZhY2UudGVzdC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFBQSw2REFBK0M7QUFFL0MsZ0ZBQWtFO0FBRWxFLGNBQUksQ0FBQyx1QkFBdUIsRUFBRSxDQUFDLENBQU8sRUFBRSxFQUFFO0lBQ3hDLENBQUMsQ0FBQyxFQUFFLENBQUMsVUFBVSxFQUFFLHNCQUFzQixDQUFDLENBQUM7SUFDekMsQ0FBQyxDQUFDLEdBQUcsRUFBRSxDQUFDO0FBQ1YsQ0FBQyxDQUFDLENBQUMifQ==
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXBpLXN1cmZhY2UudGVzdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3NyYy90ZXN0L3R5cGVzY3JpcHQvaW50ZWdyYXRpb24vYXBpLXN1cmZhY2UudGVzdC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFBQSxnRkFBa0U7QUFDbEUseUJBQXVCO0FBRXZCLElBQUksQ0FBQyx1QkFBdUIsRUFBRSxLQUFLLElBQUksRUFBRTtJQUN2QyxNQUFNLENBQUMsVUFBVSxDQUFDLENBQUMsVUFBVSxFQUFFLENBQUM7QUFDbEMsQ0FBQyxDQUFDLENBQUMifQ==

@@ -1,1 +0,1 @@

export {};
import "jest-extended";
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
const tape_1 = __importDefault(require("tape-promise/tape"));
const public_api_1 = require("../../../main/typescript/public-api");
tape_1.default("Library can be loaded", (assert) => {
assert.ok(public_api_1.Logger);
assert.ok(public_api_1.LoggerProvider);
assert.end();
const apiSurface = __importStar(require("../../../main/typescript/public-api"));
require("jest-extended");
test("Library can be loaded", async () => {
expect(apiSurface).toBeTruthy();
});
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXBpLXN1cmZhY2UudGVzdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3NyYy90ZXN0L3R5cGVzY3JpcHQvdW5pdC9hcGktc3VyZmFjZS50ZXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7O0FBQUEsNkRBQStDO0FBQy9DLG9FQUE2RTtBQUU3RSxjQUFJLENBQUMsdUJBQXVCLEVBQUUsQ0FBQyxNQUFZLEVBQUUsRUFBRTtJQUM3QyxNQUFNLENBQUMsRUFBRSxDQUFDLG1CQUFNLENBQUMsQ0FBQztJQUNsQixNQUFNLENBQUMsRUFBRSxDQUFDLDJCQUFjLENBQUMsQ0FBQztJQUMxQixNQUFNLENBQUMsR0FBRyxFQUFFLENBQUM7QUFDZixDQUFDLENBQUMsQ0FBQyJ9
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXBpLXN1cmZhY2UudGVzdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3NyYy90ZXN0L3R5cGVzY3JpcHQvdW5pdC9hcGktc3VyZmFjZS50ZXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztBQUFBLGdGQUFrRTtBQUNsRSx5QkFBdUI7QUFFdkIsSUFBSSxDQUFDLHVCQUF1QixFQUFFLEtBQUssSUFBSSxFQUFFO0lBQ3ZDLE1BQU0sQ0FBQyxVQUFVLENBQUMsQ0FBQyxVQUFVLEVBQUUsQ0FBQztBQUNsQyxDQUFDLENBQUMsQ0FBQyJ9

@@ -1,1 +0,1 @@

export {};
import "jest-extended";
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const tape_1 = __importDefault(require("tape"));
require("jest-extended");
const public_api_1 = require("../../../main/typescript/public-api");
tape_1.default("Bools", (tParent) => {
tape_1.default("Checks#isBooleanStrict()", (t) => {
t.true(public_api_1.Bools.isBooleanStrict(true), "Strictly true recognized OK");
t.true(public_api_1.Bools.isBooleanStrict(false), "Strictly false recognized OK");
t.false(public_api_1.Bools.isBooleanStrict(0), "0 not strictly bool OK");
t.false(public_api_1.Bools.isBooleanStrict(null), "null not strictly bool OK");
t.false(public_api_1.Bools.isBooleanStrict(undefined), "undefined not strictly bool OK");
t.false(public_api_1.Bools.isBooleanStrict([]), "array not strictly bool OK");
t.false(public_api_1.Bools.isBooleanStrict({}), "object literal not strictly bool OK");
t.false(public_api_1.Bools.isBooleanStrict(+0), "+0 not strictly bool OK");
t.false(public_api_1.Bools.isBooleanStrict(-0), "-0 not strictly bool OK");
t.end();
describe("Bools", () => {
test("Checks#isBooleanStrict()", () => {
expect(public_api_1.Bools.isBooleanStrict(true)).toBe(true);
expect(public_api_1.Bools.isBooleanStrict(false)).toBe(true);
expect(public_api_1.Bools.isBooleanStrict(0)).not.toBe(true);
expect(public_api_1.Bools.isBooleanStrict(null)).not.toBe(true);
expect(public_api_1.Bools.isBooleanStrict(undefined)).not.toBe(true);
expect(public_api_1.Bools.isBooleanStrict([])).not.toBe(true);
expect(public_api_1.Bools.isBooleanStrict({})).not.toBe(true);
expect(public_api_1.Bools.isBooleanStrict(+0)).not.toBe(true);
expect(public_api_1.Bools.isBooleanStrict(-0)).not.toBe(true);
});
tape_1.default("isBooleanStrict()", async (t) => {
t.true(public_api_1.Bools.isBooleanStrict(true));
t.true(public_api_1.Bools.isBooleanStrict(false));
t.false(public_api_1.Bools.isBooleanStrict(0));
t.false(public_api_1.Bools.isBooleanStrict({}));
t.false(public_api_1.Bools.isBooleanStrict([]));
t.false(public_api_1.Bools.isBooleanStrict(null));
t.false(public_api_1.Bools.isBooleanStrict(undefined));
t.false(public_api_1.Bools.isBooleanStrict(-0));
t.false(public_api_1.Bools.isBooleanStrict(+0));
t.false(public_api_1.Bools.isBooleanStrict(new Date()));
t.false(public_api_1.Bools.isBooleanStrict(""));
t.false(public_api_1.Bools.isBooleanStrict(String("")));
t.false(public_api_1.Bools.isBooleanStrict(Number("")));
t.false(public_api_1.Bools.isBooleanStrict(Number(0)));
t.false(public_api_1.Bools.isBooleanStrict(Infinity));
t.false(public_api_1.Bools.isBooleanStrict(NaN));
t.end();
test("isBooleanStrict()", async () => {
expect(public_api_1.Bools.isBooleanStrict(true)).toBe(true);
expect(public_api_1.Bools.isBooleanStrict(false)).toBe(true);
expect(public_api_1.Bools.isBooleanStrict(0));
expect(public_api_1.Bools.isBooleanStrict({}));
expect(public_api_1.Bools.isBooleanStrict([]));
expect(public_api_1.Bools.isBooleanStrict(null));
expect(public_api_1.Bools.isBooleanStrict(undefined));
expect(public_api_1.Bools.isBooleanStrict(-0));
expect(public_api_1.Bools.isBooleanStrict(+0));
expect(public_api_1.Bools.isBooleanStrict(new Date()));
expect(public_api_1.Bools.isBooleanStrict(""));
expect(public_api_1.Bools.isBooleanStrict(String("")));
expect(public_api_1.Bools.isBooleanStrict(Number("")));
expect(public_api_1.Bools.isBooleanStrict(Number(0)));
expect(public_api_1.Bools.isBooleanStrict(Infinity));
expect(public_api_1.Bools.isBooleanStrict(NaN));
});
tParent.end();
});
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJ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0FBQztRQUN6QyxNQUFNLENBQUMsa0JBQUssQ0FBQyxlQUFlLENBQUMsQ0FBQyxDQUFDLENBQUMsQ0FBQyxDQUFDO1FBQ2xDLE1BQU0sQ0FBQyxrQkFBSyxDQUFDLGVBQWUsQ0FBQyxDQUFDLENBQUMsQ0FBQyxDQUFDLENBQUM7UUFDbEMsTUFBTSxDQUFDLGtCQUFLLENBQUMsZUFBZSxDQUFDLElBQUksSUFBSSxFQUFFLENBQUMsQ0FBQyxDQUFDO1FBQzFDLE1BQU0sQ0FBQyxrQkFBSyxDQUFDLGVBQWUsQ0FBQyxFQUFFLENBQUMsQ0FBQyxDQUFDO1FBQ2xDLE1BQU0sQ0FBQyxrQkFBSyxDQUFDLGVBQWUsQ0FBQyxNQUFNLENBQUMsRUFBRSxDQUFDLENBQUMsQ0FBQyxDQUFDO1FBQzFDLE1BQU0sQ0FBQyxrQkFBSyxDQUFDLGVBQWUsQ0FBQyxNQUFNLENBQUMsRUFBRSxDQUFDLENBQUMsQ0FBQyxDQUFDO1FBQzFDLE1BQU0sQ0FBQyxrQkFBSyxDQUFDLGVBQWUsQ0FBQyxNQUFNLENBQUMsQ0FBQyxDQUFDLENBQUMsQ0FBQyxDQUFDO1FBQ3pDLE1BQU0sQ0FBQyxrQkFBSyxDQUFDLGVBQWUsQ0FBQyxRQUFRLENBQUMsQ0FBQyxDQUFDO1FBQ3hDLE1BQU0sQ0FBQyxrQkFBSyxDQUFDLGVBQWUsQ0FBQyxHQUFHLENBQUMsQ0FBQyxDQUFDO0lBQ3JDLENBQUMsQ0FBQyxDQUFDO0FBQ0wsQ0FBQyxDQUFDLENBQUMifQ==

@@ -1,1 +0,1 @@

export {};
import "jest-extended";
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const tape_1 = __importDefault(require("tape"));
require("jest-extended");
const uuid_1 = require("uuid");
const typescript_1 = require("../../../main/typescript");
tape_1.default("Checks", (tParent) => {
tape_1.default("Checks#nonBlankString()", (t) => {
describe("Checks", () => {
test("Checks#nonBlankString()", () => {
const subject = uuid_1.v4();
const pattern = new RegExp(`${subject}`);
t.throws(() => typescript_1.Checks.nonBlankString("", subject), pattern);
t.throws(() => typescript_1.Checks.nonBlankString(" ", subject), pattern);
t.throws(() => typescript_1.Checks.nonBlankString("\n", subject), pattern);
t.throws(() => typescript_1.Checks.nonBlankString("\t", subject), pattern);
t.throws(() => typescript_1.Checks.nonBlankString("\t\n", subject), pattern);
t.throws(() => typescript_1.Checks.nonBlankString("\n\r", subject), pattern);
t.doesNotThrow(() => typescript_1.Checks.nonBlankString("-"));
t.doesNotThrow(() => typescript_1.Checks.nonBlankString(" a "));
t.doesNotThrow(() => typescript_1.Checks.nonBlankString("\na\t"));
t.end();
expect(() => typescript_1.Checks.nonBlankString("", subject)).toThrowWithMessage(typescript_1.CodedError, pattern);
expect(() => typescript_1.Checks.nonBlankString(" ", subject)).toThrowWithMessage(typescript_1.CodedError, pattern);
expect(() => typescript_1.Checks.nonBlankString("\n", subject)).toThrowWithMessage(typescript_1.CodedError, pattern);
expect(() => typescript_1.Checks.nonBlankString("\t", subject)).toThrowWithMessage(typescript_1.CodedError, pattern);
expect(() => typescript_1.Checks.nonBlankString("\t\n", subject)).toThrowWithMessage(typescript_1.CodedError, pattern);
expect(() => typescript_1.Checks.nonBlankString("\n\r", subject)).toThrowWithMessage(typescript_1.CodedError, pattern);
expect(() => typescript_1.Checks.nonBlankString("-")).not.toThrow();
expect(() => typescript_1.Checks.nonBlankString(" a ")).not.toThrow();
expect(() => typescript_1.Checks.nonBlankString("\na\t")).not.toThrow();
});
tape_1.default("#truthy()", (t) => {
t.throws(() => typescript_1.Checks.truthy(false));
t.throws(() => typescript_1.Checks.truthy(NaN));
t.throws(() => typescript_1.Checks.truthy(null));
t.throws(() => typescript_1.Checks.truthy(undefined));
t.throws(() => typescript_1.Checks.truthy(0));
t.throws(() => typescript_1.Checks.truthy(""));
t.doesNotThrow(() => typescript_1.Checks.truthy({}));
t.doesNotThrow(() => typescript_1.Checks.truthy([]));
t.doesNotThrow(() => typescript_1.Checks.truthy("OK"));
t.end();
test("#truthy()", () => {
expect(() => typescript_1.Checks.truthy(false)).toThrow();
expect(() => typescript_1.Checks.truthy(NaN)).toThrow();
expect(() => typescript_1.Checks.truthy(null)).toThrow();
expect(() => typescript_1.Checks.truthy(undefined)).toThrow();
expect(() => typescript_1.Checks.truthy(0)).toThrow();
expect(() => typescript_1.Checks.truthy("")).toThrow();
expect(() => typescript_1.Checks.truthy({})).not.toThrow();
expect(() => typescript_1.Checks.truthy([])).not.toThrow();
expect(() => typescript_1.Checks.truthy("OK")).not.toThrow();
});
tParent.end();
});
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2hlY2tzLnRlc3QuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9zcmMvdGVzdC90eXBlc2NyaXB0L3VuaXQvY2hlY2tzLnRlc3QudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7QUFBQSxnREFBa0M7QUFFbEMsK0JBQW9DO0FBRXBDLHlEQUFrRDtBQUVsRCxjQUFJLENBQUMsUUFBUSxFQUFFLENBQUMsT0FBYSxFQUFFLEVBQUU7SUFDL0IsY0FBSSxDQUFDLHlCQUF5QixFQUFFLENBQUMsQ0FBTyxFQUFFLEVBQUU7UUFDMUMsTUFBTSxPQUFPLEdBQUcsU0FBTSxFQUFFLENBQUM7UUFDekIsTUFBTSxPQUFPLEdBQUcsSUFBSSxNQUFNLENBQUMsR0FBRyxPQUFPLEVBQUUsQ0FBQyxDQUFDO1FBRXpDLENBQUMsQ0FBQyxNQUFNLENBQUMsR0FBRyxFQUFFLENBQUMsbUJBQU0sQ0FBQyxjQUFjLENBQUMsRUFBRSxFQUFFLE9BQU8sQ0FBQyxFQUFFLE9BQU8sQ0FBQ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BTSxDQUFDLEdBQUcsRUFBRSxDQUFDLG1CQUFNLENBQUMsTUFBTSxDQUFDLElBQUksQ0FBQyxDQUFDLENBQUMsR0FBRyxDQUFDLE9BQU8sRUFBRSxDQUFDO0lBQ2xELENBQUMsQ0FBQyxDQUFDO0FBQ0wsQ0FBQyxDQUFDLENBQUMifQ==

@@ -1,1 +0,1 @@

export {};
import "jest-extended";
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const tape_1 = __importDefault(require("tape"));
const coded_error_1 = require("../../../main/typescript/coded-error");
tape_1.default("Error test", async (assert) => {
const oneMessage = "This is a error...";
require("jest-extended");
test("Error test", async () => {
const oneMessage = "This is an error...";
const oneCode = 1;

@@ -15,5 +12,4 @@ const err = (message, code) => {

};
assert.true(err(oneMessage, `${oneCode}`));
assert.end();
expect(err(oneMessage, `${oneCode}`)).toBe(true);
});
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29kZWQtZXJyb3IudGVzdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3NyYy90ZXN0L3R5cGVzY3JpcHQvdW5pdC9jb2RlZC1lcnJvci50ZXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7O0FBQUEsZ0RBQWtDO0FBQ2xDLHNFQUFrRTtBQUVsRSxjQUFJLENBQUMsWUFBWSxFQUFFLEtBQUssRUFBRSxNQUFZLEVBQUUsRUFBRTtJQUN4QyxNQUFNLFVBQVUsR0FBRyxvQkFBb0IsQ0FBQztJQUN4QyxNQUFNLE9BQU8sR0FBRyxDQUFDLENBQUM7SUFFbEIsTUFBTSxHQUFHLEdBQUcsQ0FBQyxPQUFlLEVBQUUsSUFBWSxFQUFXLEVBQUU7UUFDckQsTUFBTSxDQUFDLEdBQUcsSUFBSSx3QkF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xDQUFDLENBQUM7QUFDbkQsQ0FBQyxDQUFDLENBQUMifQ==

@@ -1,1 +0,1 @@

export {};
import "jest-extended";
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const tape_1 = __importDefault(require("tape"));
const public_api_1 = require("../../../../main/typescript/public-api");
tape_1.default("tests for get the properties of object", async (assert) => {
require("jest-extended");
test("tests for get the properties of object", async () => {
const student = {

@@ -26,9 +23,8 @@ name: "Jack",

];
assert.ok(Array.isArray(fieldNames), "expect an array of strings returned");
assert.ok(fieldNames.length === arrayResultExpected.length, "Arrays have same length");
assert.ok(Object.prototype.hasOwnProperty.call(student, "course"), '"course" property present in object');
assert.ok(fieldNames.includes("course"), '"course" element present in array');
assert.deepEqual(fieldNames, arrayResultExpected);
assert.end();
expect(Array.isArray(fieldNames)).toBeTruthy();
expect(fieldNames.length).toBe(arrayResultExpected.length);
expect(Object.prototype.hasOwnProperty.call(student, "course")).toBeTruthy();
expect(fieldNames.includes("course")).toBeTruthy();
expect(fieldNames).toStrictEqual(arrayResultExpected);
});
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ2V0LWFsbC1maWVsZC1uYW1lcy50ZXN0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vc3JjL3Rlc3QvdHlwZXNjcmlwdC91bml0L29iamVjdHMvZ2V0LWFsbC1maWVsZC1uYW1lcy50ZXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7O0FBQUEsZ0RBQWtDO0FBQ2xDLHVFQUFpRTtBQUVqRSxjQUFJLENBQUMsd0NBQXdDLEVBQUUsS0FBSyxFQUFFLE1BQVksRUFBRSxFQUFFO0lBQ3BFLE1BQU0sT0FBTyxHQUFHO1FBQ2QsSUFBSSxFQUFFLE1BQU07UUFDWixTQU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BQU0sQ0FBQyxVQUFVLENBQUMsUUFBUSxDQUFDLFFBQVEsQ0FBQyxDQUFDLENBQUMsVUFBVSxFQUFFLENBQUM7SUFDbkQsTUFBTSxDQUFDLFVBQVUsQ0FBQyxDQUFDLGFBQWEsQ0FBQyxtQkFBbUIsQ0FBQyxDQUFDO0FBQ3hELENBQUMsQ0FBQyxDQUFDIn0=

@@ -1,1 +0,1 @@

export {};
import "jest-extended";
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const tape_1 = __importDefault(require("tape"));
require("jest-extended");
const public_api_1 = require("../../../../main/typescript/public-api");
const dummy_classes_1 = require("../../fixtures/dummy-classes");
tape_1.default("handles inheritance correctly", async (assert) => {
test("handles inheritance correctly", async () => {
const a = new dummy_classes_1.A();
const methodNames = public_api_1.Objects.getAllMethodNames(a);
assert.ok(Array.isArray(methodNames), "expect an array of strings returned");
assert.ok(methodNames.length === 2, "method count equals 2");
assert.ok(methodNames.includes("getX"), '"getX" method present');
assert.ok(methodNames.includes("getA"), '"getA" method present');
assert.end();
expect(Array.isArray(methodNames)).toBeTruthy();
expect(methodNames.length).toBe(2);
expect(methodNames.includes("getX")).toBeTruthy();
expect(methodNames.includes("getA")).toBeTruthy();
});
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ2V0LWFsbC1tZXRob2QtbmFtZXMudGVzdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy90ZXN0L3R5cGVzY3JpcHQvdW5pdC9vYmplY3RzL2dldC1hbGwtbWV0aG9kLW5hbWVzLnRlc3QudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7QUFBQSxnREFBa0M7QUFFbEMsdUVBQWlFO0FBQ2pFLGdFQUFpRDtBQUVqRCxjQUFJLENBQUMsK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LEVBQUU7SUFDL0MsTUFBTSxDQUFDLEdBQUcsSUFBSSxpQkFBQyxFQUFFLENBQUM7SUFDbEIsTUFBTSxXQUFXLEdBQUcsb0JBQU8sQ0FBQyxpQkFBaUIsQ0FBQyxDQUFDLENBQUMsQ0FBQztJQUNqRCxNQUFNLENBQUMsS0FBSyxDQUFDLE9BQU8sQ0FBQyxXQUFXLENBQUMsQ0FBQyxDQUFDLFVBQVUsRUFBRSxDQUFDO0lBQ2hELE1BQU0sQ0FBQyxXQUFXLENBQUMsTUFBTSxDQUFDLENBQUMsSUFBSSxDQUFDLENBQUMsQ0FBQyxDQUFDO0lBQ25DLE1BQU0sQ0FBQyxXQUFXLENBQUMsUUFBUSxDQUFDLE1BQU0sQ0FBQyxDQUFDLENBQUMsVUFBVSxFQUFFLENBQUM7SUFDbEQsTUFBTSxDQUFDLFdBQVcsQ0FBQyxRQUFRLENBQUMsTUFBTSxDQUFDLENBQUMsQ0FBQyxVQUFVLEVBQUUsQ0FBQztBQUNwRCxDQUFDLENBQUMsQ0FBQyJ9

@@ -13,7 +13,15 @@ "use strict";

const server = http_1.createServer();
await t.rejects(index_1.Servers.listen({ hostname: "x", port: "", server }), /options\.port/, "Rejects when port specified as empty string OK");
await t.rejects(index_1.Servers.listen({
hostname: "x",
port: "",
server,
}), /options\.port/, "Rejects when port specified as empty string OK");
}
{
const server = http_1.createServer();
await t.rejects(index_1.Servers.listen({ hostname: "localhost", port: false, server }), /options\.port/, "Rejects when port specified as literal false boolean OK");
await t.rejects(index_1.Servers.listen({
hostname: "localhost",
port: false,
server,
}), /options\.port/, "Rejects when port specified as literal false boolean OK");
// await Servers.shutdown(server);

@@ -52,2 +60,2 @@ }

});
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VydmVycy50ZXN0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vc3JjL3Rlc3QvdHlwZXNjcmlwdC91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Q2QsSUFBSSxFQUFFLFFBQVE7U0FDZixDQUFDO1FBQ0YsTUFBTSxlQUFPLENBQUMsTUFBTSxDQUFDLG9CQUFvQixDQUFDLENBQUM7UUFFM0MsTUFBTSxDQUFDLENBQUMsYUFBYSxDQUFDLEtBQUssSUFBSSxFQUFFO1lBQy9CLE1BQU0sTUFBTSxHQUFHLE1BQU0sZUFBTyxDQUFDLG9CQUFvQixDQUFDLFFBQVEsRUFBRSxJQUFJLENBQUMsQ0FBQztZQUNsRSxjQUFJLENBQUMsUUFBUSxDQUFDLEdBQUcsRUFBRSxDQUFDLE1BQU0sQ0FBQyxLQUFLLEVBQUUsQ0FBQyxDQUFDO1lBQ3BDLENBQUMsQ0FBQyxFQUFFLENBQUMsTUFBTSxFQUFFLDJCQUEyQixDQUFDLENBQUM7WUFDMUMsTUFBTSxXQUFXLEdBQUcsTUFBTSxDQUFDLE9BQU8sRUFBaUIsQ0FBQztZQUNwRCxDQUFDLENBQUMsRUFBRSxDQUFDLFdBQVcsRUFBRSxnQ0FBZ0MsQ0FBQyxDQUFDO1lBQ3BELENBQUMsQ0FBQyxFQUFFLENBQUMsV0FBVyxDQUFDLElBQUksRUFBRSxxQ0FBcUMsQ0FBQyxDQUFDO1lBQzlELENBQUMsQ0FBQyxZQUFZLENBQ1osV0FBVyxDQUFDLElBQUksRUFDaEIsUUFBUSxFQUNSLHNHQUFzRyxDQUN2RyxDQUFDO1FBQ0osQ0FBQyxFQUFFLDZEQUE2RCxDQUFDLENBQUM7UUFFbEUsQ0FBQyxDQUFDLEdBQUcsRUFBRSxDQUFDO0lBQ1YsQ0FBQyxDQUFDLENBQUM7SUFFSCxPQUFPLENBQUMsR0FBRyxFQUFFLENBQUM7QUFDaEIsQ0FBQyxDQUFDLENBQUMifQ==

@@ -1,1 +0,1 @@

export {};
import "jest-extended";
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const tape_1 = __importDefault(require("tape"));
const strings_1 = require("../../../../main/typescript/strings");
tape_1.default("Strings#dropNonPrintable()", async (assert) => {
require("jest-extended");
test("Strings#dropNonPrintable()", async () => {
const thisIsAString = "This is a phrase.";
const nonDrop = strings_1.Strings.dropNonPrintable(thisIsAString);
const drop = strings_1.Strings.dropNonPrintable("");
assert.equal(nonDrop, thisIsAString);
assert.equal(drop, "");
assert.end();
expect(nonDrop).toEqual(thisIsAString);
expect(drop).toEqual("");
});
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZHJvcC1ub24tcHJpbnRhYmxlLnRlc3QuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9zcmMvdGVzdC90eXBlc2NyaXB0L3VuaXQvc3RyaW5ncy9kcm9wLW5vbi1wcmludGFibGUudGVzdC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7OztBQUFBLGdEQUFrQztBQUNsQyxpRUFBOEQ7QUFFOUQsY0FBSSxDQUFDLDRCQUE0QixFQUFFLEtBQUssRUFBRSxNQUFZLEVBQUUsRUFBRTtJQUN4RCxNQUFNLGFBQWEsR0FBRyxtQkFBbUIsQ0FBQztJQUUxQyxNQUFNLE9BQU8sR0FBRyxpQkFBTyxDQUFDLGdCQUFnQixDQUFDLGFBQWEsQ0FBQyxDQUFDO0lBQ3hELE1BQU0sSUFBSSxHQUFHLGlCQUFPLENBQUMsZ0JBQWdCLENBQUMsRUFBRSxDQUFDLENBQUM7SUFFMUMsTUFBTSxDQUFDLEtBQUssQ0FBQyxPQUFPLEVBQUUsYUFBYSxDQUFDLENBQUM7SUFDckMsTUFBTSxDQUFDLEtBQUssQ0FBQyxJQUFJLEVBQUUsRUFBRSxDQUFDLENBQUM7SUFDdkIsTUFBTSxDQUFDLEdBQUcsRUFBRSxDQUFDO0FBQ2YsQ0FBQyxDQUFDLENBQUMifQ==
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZHJvcC1ub24tcHJpbnRhYmxlLnRlc3QuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9zcmMvdGVzdC90eXBlc2NyaXB0L3VuaXQvc3RyaW5ncy9kcm9wLW5vbi1wcmludGFibGUudGVzdC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLGlFQUE4RDtBQUM5RCx5QkFBdUI7QUFFdkIsSUFBSSxDQUFDLDRCQUE0QixFQUFFLEtBQUssSUFBSSxFQUFFO0lBQzVDLE1BQU0sYUFBYSxHQUFHLG1CQUFtQixDQUFDO0lBRTFDLE1BQU0sT0FBTyxHQUFHLGlCQUFPLENBQUMsZ0JBQWdCLENBQUMsYUFBYSxDQUFDLENBQUM7SUFDeEQsTUFBTSxJQUFJLEdBQUcsaUJBQU8sQ0FBQyxnQkFBZ0IsQ0FBQyxFQUFFLENBQUMsQ0FBQztJQUUxQyxNQUFNLENBQUMsT0FBTyxDQUFDLENBQUMsT0FBTyxDQUFDLGFBQWEsQ0FBQyxDQUFDO0lBQ3ZDLE1BQU0sQ0FBQyxJQUFJLENBQUMsQ0FBQyxPQUFPLENBQUMsRUFBRSxDQUFDLENBQUM7QUFDM0IsQ0FBQyxDQUFDLENBQUMifQ==

@@ -1,1 +0,1 @@

export {};
import "jest-extended";
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const tape_1 = __importDefault(require("tape"));
const strings_1 = require("../../../../main/typescript/strings");
tape_1.default("Strings#isString()", async (assert) => {
require("jest-extended");
test("Strings#isString()", async () => {
const thisIsAString = "This is a original string for a test";

@@ -15,7 +12,6 @@ const thisIsANumber = 10;

const testForNotString2 = strings_1.Strings.isString(thisIsABool);
assert.true(testForString);
assert.false(testForNotString1);
assert.false(testForNotString2);
assert.end();
expect(testForString).toBe(true);
expect(testForNotString1).not.toBe(true);
expect(testForNotString2).not.toBe(true);
});
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaXMtc3RyaW5nLnRlc3QuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9zcmMvdGVzdC90eXBlc2NyaXB0L3VuaXQvc3RyaW5ncy9pcy1zdHJpbmcudGVzdC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7OztBQUFBLGdEQUFrQztBQUNsQyxpRUFBOEQ7QUFFOUQsY0FBSSxDQUFDLG9CQUFvQixFQUFFLEtBQUssRUFBRSxNQUFZLEVBQUUsRUFBRTtJQUNoRCxNQUFNLGFBQWEsR0FBRyxzQ0FBc0MsQ0FBQztJQUM3RCxNQUFNLGFBQWEsR0FBRyxFQUFFLENBQUM7SUFDekIsTUFBTSxXQUFXLEdBQUcsSUFBSSxDQUFDO0lBRXpCLE1BQU0sYUFBYSxHQUFHLGlCQUFPLENBQUMsUUFBUSxDQUFDLGFBQWEsQ0FBQyxDQUFDO0lBQ3RELE1BQU0saUJBQWlCLEdBQUcsaUJBQU8sQ0FBQyxRQUFRLENBQUMsYUFBYSxDQUFDLENBQUM7SUFDMUQsTUFBTSxpQkFBaUIsR0FBRyxpQkFBTyxDQUFDLFFBQVEsQ0FBQyxXQUFXLENBQUMsQ0FBQztJQUV4RCxNQUFNLENBQUMsSUFBSSxDQUFDLGFBQWEsQ0FBQyxDQUFDO0lBQzNCLE1BQU0sQ0FBQyxLQUFLLENBQUMsaUJBQWlCLENBQUMsQ0FBQztJQUNoQyxNQUFNLENBQUMsS0FBSyxDQUFDLGlCQUFpQixDQUFDLENBQUM7SUFFaEMsTUFBTSxDQUFDLEdBQUcsRUFBRSxDQUFDO0FBQ2YsQ0FBQyxDQUFDLENBQUMifQ==
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaXMtc3RyaW5nLnRlc3QuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9zcmMvdGVzdC90eXBlc2NyaXB0L3VuaXQvc3RyaW5ncy9pcy1zdHJpbmcudGVzdC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLGlFQUE4RDtBQUM5RCx5QkFBdUI7QUFFdkIsSUFBSSxDQUFDLG9CQUFvQixFQUFFLEtBQUssSUFBSSxFQUFFO0lBQ3BDLE1BQU0sYUFBYSxHQUFHLHNDQUFzQyxDQUFDO0lBQzdELE1BQU0sYUFBYSxHQUFHLEVBQUUsQ0FBQztJQUN6QixNQUFNLFdBQVcsR0FBRyxJQUFJLENBQUM7SUFFekIsTUFBTSxhQUFhLEdBQUcsaUJBQU8sQ0FBQyxRQUFRLENBQUMsYUFBYSxDQUFDLENBQUM7SUFDdEQsTUFBTSxpQkFBaUIsR0FBRyxpQkFBTyxDQUFDLFFBQVEsQ0FBQyxhQUFhLENBQUMsQ0FBQztJQUMxRCxNQUFNLGlCQUFpQixHQUFHLGlCQUFPLENBQUMsUUFBUSxDQUFDLFdBQVcsQ0FBQyxDQUFDO0lBRXhELE1BQU0sQ0FBQyxhQUFhLENBQUMsQ0FBQyxJQUFJLENBQUMsSUFBSSxDQUFDLENBQUM7SUFDakMsTUFBTSxDQUFDLGlCQUFpQixDQUFDLENBQUMsR0FBRyxDQUFDLElBQUksQ0FBQyxJQUFJLENBQUMsQ0FBQztJQUN6QyxNQUFNLENBQUMsaUJBQWlCLENBQUMsQ0FBQyxHQUFHLENBQUMsSUFBSSxDQUFDLElBQUksQ0FBQyxDQUFDO0FBQzNDLENBQUMsQ0FBQyxDQUFDIn0=

@@ -1,1 +0,1 @@

export {};
import "jest-extended";
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const tape_1 = __importDefault(require("tape"));
const strings_1 = require("../../../../main/typescript/strings");
tape_1.default("Strings#replaceAll() replaces strings", async (assert) => {
require("jest-extended");
test("Strings#replaceAll() replaces strings", async () => {
const originalString = "This is a original original string for a test";
const replace = strings_1.Strings.replaceAll(originalString, "original", "new");
assert.equal(replace, "This is a new new string for a test");
assert.end();
expect(replace).toEqual("This is a new new string for a test");
});
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVwbGFjZS1hbGwudGVzdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy90ZXN0L3R5cGVzY3JpcHQvdW5pdC9zdHJpbmdzL3JlcGxhY2UtYWxsLnRlc3QudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7QUFBQSxnREFBa0M7QUFDbEMsaUVBQThEO0FBRTlELGNBQUksQ0FBQyx1Q0FBdUMsRUFBRSxLQUFLLEVBQUUsTUFBWSxFQUFFLEVBQUU7SUFDbkUsTUFBTSxjQUFjLEdBQUcsK0NBQStDLENBQUM7SUFFdkUsTUFBTSxPQUFPLEdBQUcsaUJBQU8sQ0FBQyxVQUFVLENBQUMsY0FBYyxFQUFFLFVBQVUsRUFBRSxLQUFLLENBQUMsQ0FBQztJQUV0RSxNQUFNLENBQUMsS0FBSyxDQUFDLE9BQU8sRUFBRSxxQ0FBcUMsQ0FBQyxDQUFDO0lBQzdELE1BQU0sQ0FBQyxHQUFHLEVBQUUsQ0FBQztBQUNmLENBQUMsQ0FBQyxDQUFDIn0=
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVwbGFjZS1hbGwudGVzdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy90ZXN0L3R5cGVzY3JpcHQvdW5pdC9zdHJpbmdzL3JlcGxhY2UtYWxsLnRlc3QudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSxpRUFBOEQ7QUFDOUQseUJBQXVCO0FBRXZCLElBQUksQ0FBQyx1Q0FBdUMsRUFBRSxLQUFLLElBQUksRUFBRTtJQUN2RCxNQUFNLGNBQWMsR0FBRywrQ0FBK0MsQ0FBQztJQUV2RSxNQUFNLE9BQU8sR0FBRyxpQkFBTyxDQUFDLFVBQVUsQ0FBQyxjQUFjLEVBQUUsVUFBVSxFQUFFLEtBQUssQ0FBQyxDQUFDO0lBRXRFLE1BQU0sQ0FBQyxPQUFPLENBQUMsQ0FBQyxPQUFPLENBQUMscUNBQXFDLENBQUMsQ0FBQztBQUNqRSxDQUFDLENBQUMsQ0FBQyJ9
{
"name": "@hyperledger/cactus-common",
"version": "0.10.1-fix-quorum-no-keychain-endpoints.bf5e0403.1+bf5e0403",
"version": "1.0.0-main.334593a7.46+334593a7",
"description": "Universal library used by both front end and back end components of Cactus. Aims to be a developer swiss army knife.",

@@ -16,9 +16,6 @@ "main": "dist/lib/main/typescript/index.js",

"watch": "npm-watch",
"webpack": "npm-run-all webpack:dev webpack:prod",
"webpack": "npm-run-all webpack:dev",
"webpack:dev": "npm-run-all webpack:dev:node webpack:dev:web",
"webpack:dev:web": "webpack --env=dev --target=web --config ../../webpack.config.js",
"webpack:dev:node": "webpack --env=dev --target=node --config ../../webpack.config.js",
"webpack:prod": "npm-run-all webpack:prod:node webpack:prod:web",
"webpack:prod:web": "webpack --env=prod --target=web --config ../../webpack.config.js",
"webpack:prod:node": "webpack --env=prod --target=node --config ../../webpack.config.js"
"webpack:dev:node": "webpack --env=dev --target=node --config ../../webpack.config.js"
},

@@ -80,3 +77,3 @@ "watch": {},

},
"gitHead": "bf5e0403907bef8d84e52eb945a71713f4c8385f"
"gitHead": "334593a74e9ba454a5e5b2511f1784a569564aaa"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc