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

@brillout/libassert

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@brillout/libassert - npm Package Compare versions

Comparing version 0.5.2 to 0.5.3

4

dist/cjs/newError.js

@@ -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 @@ {

2

package.json
{
"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

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