get-emoji
Advanced tools
Comparing version 1.0.1 to 2.0.0
import allEmoji from './all-emoji'; | ||
export default allEmoji.reduce((emojis, emoji) => { | ||
emojis[emoji] = require(`./emoji/${emoji}.png`); | ||
emojis[emoji] = require(`./optimized-emoji/${emoji}.png`); | ||
return emojis; | ||
}, {}); |
{ | ||
"name": "get-emoji", | ||
"version": "1.0.1", | ||
"version": "2.0.0", | ||
"description": "you give emoji name, we give you an emoji", | ||
@@ -8,3 +8,4 @@ "main": "dist/index.js", | ||
"emoji": "node ./lib/get-emoji-list.js", | ||
"build": "npm run emoji && ./node_modules/.bin/webpack -p --progress", | ||
"optimize": "node ./lib/optimize-emoji.js", | ||
"build": "NODE_ENV='production' npm run optimize && npm run emoji && ./node_modules/.bin/webpack -p --progress", | ||
"prepublish": "npm run build" | ||
@@ -22,2 +23,4 @@ }, | ||
"babel-preset-stage-2": "^6.5.0", | ||
"imagemin": "^4.0.0", | ||
"imagemin-optipng": "^4.3.0", | ||
"url-loader": "^0.5.7", | ||
@@ -24,0 +27,0 @@ "webpack": "^1.12.13" |
@@ -13,3 +13,3 @@ ## get-emoji | ||
import getEmoji from 'get-emoji'; | ||
const rage = getEmoji(rage); | ||
const rage = getEmoji('rage'); | ||
``` |
@@ -22,3 +22,3 @@ var path = require('path'); | ||
}, | ||
{ test: /\.(png|jpg)$/, loader: 'url-loader' } | ||
{ test: /\.(png)$/, loader: 'url-loader' } | ||
] | ||
@@ -25,0 +25,0 @@ }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
10
0
1381052
8
6226