@brillout/libassert
Advanced tools
Comparing version 0.5.2 to 0.5.3
@@ -6,6 +6,2 @@ "use strict"; | ||
function newError(errorMessage, numberOfStackTraceLinesToRemove) { | ||
if (errorMessage.includes("\n")) { | ||
throw new Error("Following error message contains a new line character `\n` which is prohibited: " + | ||
errorMessage); | ||
} | ||
let err; | ||
@@ -12,0 +8,0 @@ { |
import { cleanStackTrace } from "./cleanStackTrace"; | ||
export { newError }; | ||
function newError(errorMessage, numberOfStackTraceLinesToRemove) { | ||
if (errorMessage.includes("\n")) { | ||
throw new Error("Following error message contains a new line character `\n` which is prohibited: " + | ||
errorMessage); | ||
} | ||
let err; | ||
@@ -9,0 +5,0 @@ { |
{ | ||
"name": "@brillout/libassert", | ||
"description": "Assertions for library authors.", | ||
"version": "0.5.2", | ||
"version": "0.5.3", | ||
"main": "./dist/cjs/index.js", | ||
@@ -6,0 +6,0 @@ "module": "./dist/esm/index.js", |
@@ -9,9 +9,2 @@ import { cleanStackTrace } from "./cleanStackTrace"; | ||
) { | ||
if (errorMessage.includes("\n")) { | ||
throw new Error( | ||
"Following error message contains a new line character `\n` which is prohibited: " + | ||
errorMessage | ||
); | ||
} | ||
let err; | ||
@@ -18,0 +11,0 @@ { |
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
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
14844
197