@hyperledger/cactus-common
Advanced tools
Comparing version 1.1.2 to 1.1.3
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Checks = void 0; | ||
const coded_error_1 = require("./coded-error"); | ||
const error_utils_1 = require("./error-utils"); | ||
class Checks { | ||
@@ -16,3 +16,3 @@ /** | ||
const message = `"${subjectOfCheck}" is falsy, need a truthy value.`; | ||
throw new coded_error_1.CodedError(message, code); | ||
throw new error_utils_1.CodedError(message, code); | ||
} | ||
@@ -31,3 +31,3 @@ } | ||
const message = `"${subject}" is a blank string. Need non-blank.`; | ||
throw new coded_error_1.CodedError(message, code); | ||
throw new error_utils_1.CodedError(message, code); | ||
} | ||
@@ -34,0 +34,0 @@ } |
@@ -8,3 +8,3 @@ export { LoggerProvider } from "./logging/logger-provider"; | ||
export { Checks } from "./checks"; | ||
export { CodedError } from "./coded-error"; | ||
export { CodedError, safeStringifyException } from "./error-utils"; | ||
export { JsObjectSigner, IJsObjectSignerOptions, SignatureFunction, VerifySignatureFunction, HashFunction, } from "./js-object-signer"; | ||
@@ -11,0 +11,0 @@ export { ISignerKeyPair } from "./signer-key-pair"; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Http405NotAllowedError = exports.KeyConverter = exports.KeyFormat = exports.Secp256k1Keys = exports.JsObjectSigner = exports.CodedError = exports.Checks = exports.Bools = exports.Strings = exports.Objects = exports.Logger = exports.LoggerProvider = void 0; | ||
exports.Http405NotAllowedError = exports.KeyConverter = exports.KeyFormat = exports.Secp256k1Keys = exports.JsObjectSigner = exports.safeStringifyException = exports.CodedError = exports.Checks = exports.Bools = exports.Strings = exports.Objects = exports.Logger = exports.LoggerProvider = void 0; | ||
var logger_provider_1 = require("./logging/logger-provider"); | ||
@@ -16,4 +16,5 @@ Object.defineProperty(exports, "LoggerProvider", { enumerable: true, get: function () { return logger_provider_1.LoggerProvider; } }); | ||
Object.defineProperty(exports, "Checks", { enumerable: true, get: function () { return checks_1.Checks; } }); | ||
var coded_error_1 = require("./coded-error"); | ||
Object.defineProperty(exports, "CodedError", { enumerable: true, get: function () { return coded_error_1.CodedError; } }); | ||
var error_utils_1 = require("./error-utils"); | ||
Object.defineProperty(exports, "CodedError", { enumerable: true, get: function () { return error_utils_1.CodedError; } }); | ||
Object.defineProperty(exports, "safeStringifyException", { enumerable: true, get: function () { return error_utils_1.safeStringifyException; } }); | ||
var js_object_signer_1 = require("./js-object-signer"); | ||
@@ -28,2 +29,2 @@ Object.defineProperty(exports, "JsObjectSigner", { enumerable: true, get: function () { return js_object_signer_1.JsObjectSigner; } }); | ||
Object.defineProperty(exports, "Http405NotAllowedError", { enumerable: true, get: function () { return http_status_code_errors_1.Http405NotAllowedError; } }); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9tYWluL3R5cGVzY3JpcHQvcHVibGljLWFwaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBQSw2REFBMkQ7QUFBbEQsaUhBQUEsY0FBYyxPQUFBO0FBQ3ZCLDJDQUEwRDtBQUFqRCxnR0FBQSxNQUFNLE9BQUE7QUFFZixxQ0FBb0M7QUFBM0Isa0dBQUEsT0FBTyxPQUFBO0FBQ2hCLHFDQUFvQztBQUEzQixrR0FBQSxPQUFPLE9BQUE7QUFDaEIsaUNBQWdDO0FBQXZCLDhGQUFBLEtBQUssT0FBQTtBQUNkLG1DQUFrQztBQUF6QixnR0FBQSxNQUFNLE9BQUE7QUFDZiw2Q0FBMkM7QUFBbEMseUdBQUEsVUFBVSxPQUFBO0FBRW5CLHVEQU00QjtBQUwxQixrSEFBQSxjQUFjLE9BQUE7QUFRaEIsbURBQWlEO0FBQXhDLCtHQUFBLGFBQWEsT0FBQTtBQUN0QixpREFBMEQ7QUFBakQsMEdBQUEsU0FBUyxPQUFBO0FBQUUsNkdBQUEsWUFBWSxPQUFBO0FBRWhDLDBFQUF3RTtBQUEvRCxpSUFBQSxzQkFBc0IsT0FBQSJ9 | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9tYWluL3R5cGVzY3JpcHQvcHVibGljLWFwaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBQSw2REFBMkQ7QUFBbEQsaUhBQUEsY0FBYyxPQUFBO0FBQ3ZCLDJDQUEwRDtBQUFqRCxnR0FBQSxNQUFNLE9BQUE7QUFFZixxQ0FBb0M7QUFBM0Isa0dBQUEsT0FBTyxPQUFBO0FBQ2hCLHFDQUFvQztBQUEzQixrR0FBQSxPQUFPLE9BQUE7QUFDaEIsaUNBQWdDO0FBQXZCLDhGQUFBLEtBQUssT0FBQTtBQUNkLG1DQUFrQztBQUF6QixnR0FBQSxNQUFNLE9BQUE7QUFDZiw2Q0FBbUU7QUFBMUQseUdBQUEsVUFBVSxPQUFBO0FBQUUscUhBQUEsc0JBQXNCLE9BQUE7QUFFM0MsdURBTTRCO0FBTDFCLGtIQUFBLGNBQWMsT0FBQTtBQVFoQixtREFBaUQ7QUFBeEMsK0dBQUEsYUFBYSxPQUFBO0FBQ3RCLGlEQUEwRDtBQUFqRCwwR0FBQSxTQUFTLE9BQUE7QUFBRSw2R0FBQSxZQUFZLE9BQUE7QUFFaEMsMEVBQXdFO0FBQS9ELGlJQUFBLHNCQUFzQixPQUFBIn0= |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const coded_error_1 = require("../../../main/typescript/coded-error"); | ||
const error_utils_1 = require("../../../main/typescript/error-utils"); | ||
require("jest-extended"); | ||
@@ -9,3 +9,3 @@ test("Error test", async () => { | ||
const err = (message, code) => { | ||
const e = new coded_error_1.CodedError(message, code); | ||
const e = new error_utils_1.CodedError(message, code); | ||
return e.sameCode(e); | ||
@@ -12,0 +12,0 @@ }; |
{ | ||
"name": "@hyperledger/cactus-common", | ||
"version": "1.1.2", | ||
"version": "1.1.3", | ||
"description": "Universal library used by both front end and back end components of Cactus. Aims to be a developer swiss army knife.", | ||
@@ -53,2 +53,3 @@ "keywords": [ | ||
"dependencies": { | ||
"fast-safe-stringify": "2.1.1", | ||
"json-stable-stringify": "1.0.1", | ||
@@ -58,2 +59,3 @@ "key-encoder": "2.0.3", | ||
"loglevel-plugin-prefix": "0.8.4", | ||
"sanitize-html": "2.7.0", | ||
"secp256k1": "4.0.2", | ||
@@ -64,2 +66,3 @@ "sha3": "2.1.4" | ||
"@types/json-stable-stringify": "1.0.33", | ||
"@types/sanitize-html": "2.6.2", | ||
"@types/secp256k1": "4.0.3", | ||
@@ -79,3 +82,3 @@ "@types/uuid": "8.3.1", | ||
"watch": {}, | ||
"gitHead": "c339075fbcda8a26521c0414c9334d49d569dfe4" | ||
"gitHead": "795ee6bbd9637c2259fe92d0f56780d36121c538" | ||
} |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3946565
325
44133
8
5
+ Addedfast-safe-stringify@2.1.1
+ Addedsanitize-html@2.7.0
+ Addeddeepmerge@4.3.1(transitive)
+ Addeddom-serializer@1.4.1(transitive)
+ Addeddomelementtype@2.3.0(transitive)
+ Addeddomhandler@4.3.1(transitive)
+ Addeddomutils@2.8.0(transitive)
+ Addedelliptic@6.6.0(transitive)
+ Addedentities@2.2.0(transitive)
+ Addedescape-string-regexp@4.0.0(transitive)
+ Addedfast-safe-stringify@2.1.1(transitive)
+ Addedhtmlparser2@6.1.0(transitive)
+ Addedis-plain-object@5.0.0(transitive)
+ Addednanoid@3.3.7(transitive)
+ Addednode-gyp-build@4.8.2(transitive)
+ Addedparse-srcset@1.0.2(transitive)
+ Addedpicocolors@1.1.1(transitive)
+ Addedpostcss@8.4.49(transitive)
+ Addedsanitize-html@2.7.0(transitive)
+ Addedsource-map-js@1.2.1(transitive)
- Removedelliptic@6.6.1(transitive)
- Removednode-gyp-build@4.8.3(transitive)