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

@jitsi/js-utils

Package Overview
Dependencies
Maintainers
10
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jitsi/js-utils - npm Package Compare versions

Comparing version 2.1.1 to 2.1.2

11

json.js
import Bourne from '@hapi/bourne';
/**
* Safely parse JSON payloads. Makes sure the return value it's either an object
* or an error.
* Safely parse JSON payloads.
*

@@ -11,9 +10,3 @@ * @param {string} data - The payload to be parsed.

export function safeJsonParse(data) {
const json = Bourne.parse(data);
if (json && typeof json === 'object') {
return json;
}
return {};
return Bourne.parse(data);
}

2

package.json
{
"name": "@jitsi/js-utils",
"version": "2.1.1",
"version": "2.1.2",
"description": "Utilities for Jitsi JS projects",

@@ -5,0 +5,0 @@ "repository": {

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