Huge News!Announcing our $40M Series B led by Abstract Ventures.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.2 to 1.1.0

4

HISTORY.md

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

1.1.0 / 2014-05-08
==================
* Move object-url require into browserImageSize function
1.0.2 / 2015-04-14

@@ -3,0 +7,0 @@ ==================

6

lib/index.js

@@ -1,4 +0,1 @@

/* istanbul ignore next */
var DOMURL = require('object-url')
/**

@@ -10,2 +7,5 @@ * Get an image's width and height

module.exports = function browserImageSize (image) {
/* istanbul ignore next */
var DOMURL = require('object-url')
return new Promise(function (resolve, reject) {

@@ -12,0 +12,0 @@ var url = typeof image === 'string' ? image : DOMURL.create(image)

{
"name": "browser-image-size",
"version": "1.0.2",
"version": "1.1.0",
"description": "Get image size in the browser",

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

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