Socket
Socket
Sign inDemoInstall

img-about

Package Overview
Dependencies
3
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.1.1 to 2.2.0

index.d.ts

6

lib/es/index.js
/**
* Bundle of img-about
* Generated: 2019-06-23
* Version: 2.1.1
* Generated: 2019-07-23
* Version: 2.2.0
* License: MIT

@@ -36,3 +36,3 @@ * Author: livelybone(2631541504@qq.com)

/**
* Determine if the canvas is available
* Whether the canvas is available in current browser
* */

@@ -39,0 +39,0 @@ var canvasSupport = (function () {

/**
* Bundle of img-about
* Generated: 2019-06-23
* Version: 2.1.1
* Generated: 2019-07-23
* Version: 2.2.0
* License: MIT

@@ -6,0 +6,0 @@ * Author: livelybone(2631541504@qq.com)

/**
* Bundle of img-about
* Generated: 2019-06-23
* Version: 2.1.1
* Generated: 2019-07-23
* Version: 2.2.0
* License: MIT

@@ -6,0 +6,0 @@ * Author: livelybone(2631541504@qq.com)

/**
* Bundle of img-about
* Generated: 2019-06-23
* Version: 2.1.1
* Generated: 2019-07-23
* Version: 2.2.0
* License: MIT

@@ -6,0 +6,0 @@ * Author: livelybone(2631541504@qq.com)

/**
* Bundle of img-about
* Generated: 2019-06-23
* Version: 2.1.1
* Generated: 2019-07-23
* Version: 2.2.0
* License: MIT

@@ -6,0 +6,0 @@ * Author: livelybone(2631541504@qq.com)

{
"name": "img-about",
"version": "2.1.1",
"version": "2.2.0",
"description": "A module for image processing in browser, includes getting naturalSize, zooming, compressing... wrapped by Promise",

@@ -8,2 +8,3 @@ "main": "./lib/umd/index.js",

"unpkg": "./lib/umd/index.js",
"types": "./index.d.ts",
"scripts": {

@@ -32,2 +33,3 @@ "build": "rimraf ./lib && cross-env NODE_ENV=production rollup -c",

"zoom",
"image resize",
"compress",

@@ -56,3 +58,3 @@ "browser"

"@livelybone/copy": "^2.5.4",
"base64-blob": "^1.3.0"
"base64-blob": "^1.4.1"
},

@@ -59,0 +61,0 @@ "config": {

@@ -5,2 +5,3 @@ # img-about

![gzip with dependencies: 1.3kb](https://img.shields.io/badge/gzip--with--dependencies-1.3kb-brightgreen.svg "gzip with dependencies: 1.3kb")
![typescript](https://img.shields.io/badge/typescript-supported-blue.svg "typescript")
![pkg.module](https://img.shields.io/badge/pkg.module-supported-blue.svg "pkg.module")

@@ -30,3 +31,3 @@

```js
import {getNaturalSize, imgCompress} from 'img-about';
import {getNaturalSize, imgCompress, canvasSupport, getSizeOfUrl } from 'img-about';
```

@@ -33,0 +34,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc