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

@mux/blurup

Package Overview
Dependencies
Maintainers
0
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mux/blurup - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

15

blurup.js

@@ -1,2 +0,2 @@

import { imageDimensionsFromStream } from 'image-dimensions';
import { imageDimensionsFromData } from 'image-dimensions';

@@ -87,2 +87,15 @@ const defaultOptions = {

async function imageDimensionsFromStream(stream) {
let chunks = [];
for await (const chunk of stream) {
chunks = [...chunks, ...chunk];
const dimensions = imageDimensionsFromData(new Uint8Array(chunks));
if (dimensions) {
return dimensions;
}
}
}
async function getTinyImageDataURL(imageURL, fetchOptions) {

@@ -89,0 +102,0 @@ const response = await fetch(imageURL, fetchOptions);

2

package.json
{
"name": "@mux/blurup",
"version": "1.0.0",
"version": "1.0.1",
"type": "module",

@@ -5,0 +5,0 @@ "description": "Generate a blurry image placeholder for a Mux video.",

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