Comparing version 1.1.3 to 1.1.4
# Changelog | ||
## 1.1.4 (August 16, 2021) | ||
- added esm build target | ||
## 1.1.2 (June 29, 2019) | ||
@@ -4,0 +8,0 @@ |
{ | ||
"name": "blurhash", | ||
"version": "1.1.3", | ||
"version": "1.1.4", | ||
"description": "Encoder and decoder for the Wolt BlurHash algorithm.", | ||
"main": "dist/index.js", | ||
"module": "dist/esm/index.js", | ||
"types": "dist/index.d.ts", | ||
"sideEffects": false, | ||
"repository": { | ||
@@ -14,3 +16,3 @@ "type": "git", | ||
"prepublishOnly": "npm run build", | ||
"build": "npm run ts", | ||
"build": "npm run ts && npm run ts:esm", | ||
"demo": "webpack-dev-server --mode development", | ||
@@ -20,3 +22,4 @@ "prettier": "prettier src/**/*.ts", | ||
"ts": "tsc", | ||
"ts:watch": "npm run ts -- --noEmit --watch" | ||
"ts:watch": "npm run ts -- --noEmit --watch", | ||
"ts:esm": "tsc --outDir dist/esm --target es2020 --declaration false --module es2015" | ||
}, | ||
@@ -34,7 +37,7 @@ "keywords": [ | ||
"ts-loader": "6.0.4", | ||
"typescript": "3.5.2", | ||
"webpack": "4.35.0", | ||
"webpack-cli": "^3.3.5", | ||
"webpack-dev-server": "3.7.2" | ||
"typescript": "3.5.3", | ||
"webpack": "4.41.2", | ||
"webpack-cli": "3.3.10", | ||
"webpack-dev-server": "3.9.0" | ||
} | ||
} |
# blurhash | ||
[![NPM Version](https://img.shields.io/npm/v/blurhash.svg?style=flat)](https://npmjs.org/package/blurhash) | ||
[![NPM Downloads](https://img.shields.io/npm/dm/blurhash.svg?style=flat)](https://npmjs.org/package/blurhash) | ||
> JavaScript encoder and decoder for the [Wolt BlurHash](https://github.com/woltapp/blurhash) algorithm | ||
@@ -15,3 +18,3 @@ | ||
### `decode(blurhash: string) => Uint8ClampedArray` | ||
### `decode(blurhash: string, width: number, height: number, punch?: number) => Uint8ClampedArray` | ||
@@ -18,0 +21,0 @@ > Decodes a blurhash string to pixels |
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 1 instance in 1 package
48555
35
688
79
0