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

image-promise

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

image-promise - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

12

dist/image-promise.common-js.js

@@ -30,3 +30,3 @@ 'use strict';

function unload(src) {
load.unload = function (src) {
if (loaded[src]) {

@@ -39,10 +39,4 @@ return loaded[src].then(function (image) {

}
}
// rollup browserify compat
// https://github.com/rollup/rollup/issues/496
if (typeof module !== 'undefined') {
module.exports = load;
}
};
exports['default'] = load;
exports.unload = unload;
module.exports = load;

@@ -28,3 +28,3 @@ // let images = ['a.jpg','b.jpg'];

function unload(src) {
load.unload = function (src) {
if (loaded[src]) {

@@ -37,9 +37,4 @@ return loaded[src].then(function (image) {

}
}
// rollup browserify compat
// https://github.com/rollup/rollup/issues/496
if (typeof module !== 'undefined') {
module.exports = load;
}
};
export { unload };export default load;
export default load;
{
"name": "image-promise",
"version": "1.0.1",
"version": "1.0.2",
"description": "Load an image and return a promise in the browser, in 0.4KB",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -13,3 +13,3 @@ # image-promise

```js
import loadImage, {unload as unloadImage} from 'image-promise';
import loadImage from 'image-promise';
```

@@ -43,5 +43,2 @@

loadImage.unload('img.jpg');
// or, if you use ES2015:
unloadImage('img.jpg')
```

@@ -48,0 +45,0 @@

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