New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

browser-image-size

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

browser-image-size - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

HISTORY.md

3

lib/index.js

@@ -12,4 +12,5 @@ /* istanbul ignore next */

var url = typeof image === 'string' ? image : DOMURL.createObjectURL(image)
if (!url) throw new Error('Must use a valid image')
var img = document.createElement('img')
img.onload = function onload () {

@@ -16,0 +17,0 @@ if (typeof image !== 'string')

{
"name": "browser-image-size",
"version": "1.0.0",
"version": "1.0.1",
"description": "Get image size in the browser",

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

# Browser image size
[![NPM version][npm-image]][npm-url]
[![build status][travis-image]][travis-url]
[![Sauce Test Status][sauce-image]][sauce-url]

@@ -48,2 +50,4 @@

[npm-image]: https://img.shields.io/npm/v/browser-image-size.svg?style=flat-square
[npm-url]: https://npmjs.org/package/browser-image-size
[travis-image]: https://img.shields.io/travis/cesarandreu/browser-image-size/master.svg?style=flat-square

@@ -50,0 +54,0 @@ [travis-url]: https://travis-ci.org/cesarandreu/browser-image-size

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