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

@transcend-io/penumbra

Package Overview
Dependencies
Maintainers
8
Versions
115
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@transcend-io/penumbra - npm Package Compare versions

Comparing version 2.0.1 to 2.0.2

8

build/src/getDecryptedContent.js

@@ -7,2 +7,3 @@ "use strict";

const MEDIA_TYPES = ['image', 'video', 'audio'];
const TEXT_TYPES = /^\s*(?:text\/\S*|application\/(?:xml|json)|\S*\/\S*\+xml|\S*\/\S*\+json)\s*(?:$|;)/i;
/**

@@ -18,3 +19,6 @@ * Get the contents of an encrypted file

// Return the decrypted content
const type = resource.mimetype.split('/')[0];
const type = resource.mimetype
.split('/')[0]
.trim()
.toLowerCase();
if (!alwaysBlob) {

@@ -24,3 +28,3 @@ if (MEDIA_TYPES.includes(type)) {

}
if (type === 'text' || resource.mimetype === 'application/json') {
if (type === 'text' || TEXT_TYPES.test(resource.mimetype)) {
return utils_1.getTextFromRS(rs);

@@ -27,0 +31,0 @@ }

{
"name": "@transcend-io/penumbra",
"version": "2.0.1",
"version": "2.0.2",
"description": "Crypto streams for the browser.",

@@ -5,0 +5,0 @@ "main": "build/index.js",

@@ -7,2 +7,3 @@ // local

const MEDIA_TYPES = ['image', 'video', 'audio'];
const TEXT_TYPES = /^\s*(?:text\/\S*|application\/(?:xml|json)|\S*\/\S*\+xml|\S*\/\S*\+json)\s*(?:$|;)/i;

@@ -23,3 +24,6 @@ /**

// Return the decrypted content
const type = resource.mimetype.split('/')[0];
const type = resource.mimetype
.split('/')[0]
.trim()
.toLowerCase();
if (!alwaysBlob) {

@@ -29,3 +33,3 @@ if (MEDIA_TYPES.includes(type)) {

}
if (type === 'text' || resource.mimetype === 'application/json') {
if (type === 'text' || TEXT_TYPES.test(resource.mimetype)) {
return getTextFromRS(rs);

@@ -32,0 +36,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

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