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 1.0.0-rc.1 to 1.0.0-rc.2

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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3RyaW5ncy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9tYWluL3R5cGVzY3JpcHQvc3RyaW5ncy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBQSxxQ0FBa0M7QUFFbEMsTUFBYSxPQUFPO0lBQ1gsTUFBTSxDQUFDLFVBQVUsQ0FDdEIsTUFBYyxFQUNkLFdBQW1CLEVBQ25CLFlBQW9CO1FBRXBCLE9BQU8sTUFBTSxDQUFDLE9BQU8sQ0FBQyxJQUFJLE1BQU0sQ0FBQyxXQUFXLEVBQUUsSUFBSSxDQUFDLEVBQUUsWUFBWSxDQUFDLENBQUM7SUFDckUsQ0FBQztJQUVNLE1BQU0sQ0FBQyxRQUFRLENBQUMsR0FBUTtRQUM3QixPQUFPLE9BQU8sR0FBRyxLQUFLLFFBQVEsSUFBSSxHQUFHLFlBQVksTUFBTSxDQUFDO0lBQzFELENBQUM7SUFFTSxNQUFN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UFDLElBQUksRUFBRSxDQUFDLE1BQU0sR0FBRyxDQUFDLENBQUM7SUFDL0IsQ0FBQztJQUVNLE1BQU0sQ0FBQyxnQkFBZ0IsQ0FBQyxHQUFXO1FBQ3hDLE1BQU0sS0FBSyxHQUFHLDRCQUE0QixDQUFDO1FBQzNDLGVBQU0sQ0FBQyxNQUFNLENBQUMsT0FBTyxDQUFDLFFBQVEsQ0FBQyxHQUFHLENBQUMsRUFBRSxHQUFHLEtBQUssd0JBQXdCLENBQUMsQ0FBQztRQUN2RSxPQUFPLEdBQUcsQ0FBQyxPQUFPLENBQUMsVUFBVSxFQUFFLEVBQUUsQ0FBQyxDQUFDO0lBQ3JDLENBQUM7Q0FDRjtBQXpCRCwwQkF5QkMifQ==

@@ -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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VydmVycy50ZXN0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vc3JjL3Rlc3QvdHlwZXNjcmlwdC91bml0L3NlcnZlcnMudGVzdC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7OztBQUFBLCtCQUFvQztBQUdwQyw2REFBK0M7QUFFL0MsMERBQXlEO0FBRXpELGNBQUksQ0FBQyxTQUFTLEVBQUUsS0FBSyxFQUFFLE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1lBQy9CLE1BQU0sTUFBTSxHQUFHLE1BQU0sZUFBTyxDQUFDLG9CQUFvQixDQUFDLFFBQVEsRUFBRSxJQUFJLENBQUMsQ0FBQztZQUNsRSxjQUFJLENBQUMsUUFBUSxDQUFDLEdBQUcsRUFBRSxDQUFDLE1BQU0sQ0FBQyxLQUFLLEVBQUUsQ0FBQyxDQUFDO1lBQ3BDLENBQUMsQ0FBQyxFQUFFLENBQUMsTUFBTSxFQUFFLDJCQUEyQixDQUFDLENBQUM7WUFDMUMsTUFBTSxXQUFXLEdBQUcsTUFBTSxDQUFDLE9BQU8sRUFBaUIsQ0FBQztZQUNwRCxDQUFDLENBQUMsRUFBRSxDQUFDLFdBQVcsRUFBRSxnQ0FBZ0MsQ0FBQyxDQUFDO1lBQ3BELENBQUMsQ0FBQyxFQUFFLENBQUMsV0FBVyxDQUFDLElBQUksRUFBRSxxQ0FBcUMsQ0FBQyxDQUFDO1lBQzlELENBQUMsQ0FBQyxZQUFZLENBQ1osV0FBVyxDQUFDLElBQUksRUFDaEIsUUFBUSxFQUNSLHNHQUFzRyxDQUN2RyxDQUFDO1FBQ0osQ0FBQyxFQUFFLDZEQUE2RCxDQUFDLENBQUM7UUFFbEUsQ0FBQyxDQUFDLEdBQUcsRUFBRSxDQUFDO0lBQ1YsQ0FBQyxDQUFDLENBQUM7SUFFSCxPQUFPLENBQUMsR0FBRyxFQUFFLENBQUM7QUFDaEIsQ0FBQyxDQUFDLENBQUMifQ==
{
"name": "@hyperledger/cactus-common",
"version": "1.0.0-rc.1",
"version": "1.0.0-rc.2",
"description": "Universal library used by both front end and back end components of Cactus. Aims to be a developer swiss army knife.",

@@ -76,3 +76,3 @@ "main": "dist/lib/main/typescript/index.js",

},
"gitHead": "bfe342e9f443737a3bc083e0d9697024021229ae"
"gitHead": "b673fbe019554b6f946d14a7e928f92d3d4126ee"
}

Sorry, the diff of this file is too big to display

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