emoji-aware
Advanced tools
Comparing version 3.0.0 to 3.0.1
{ | ||
"name": "emoji-aware", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"description": "Emoji-aware unicode string utilities", | ||
"main": "emoji-aware.js", | ||
"scripts": { | ||
"test": "ava --verbose", | ||
"test": "ava", | ||
"coverage": "nyc npm test && nyc report --reporter=text-lcov | codecov" | ||
@@ -19,4 +19,4 @@ }, | ||
"dependencies": { | ||
"lodash.flattendeep": "^4.3.0", | ||
"parsimmon": "^0.9.1" | ||
"lodash.flattendeep": "^4.4.0", | ||
"parsimmon": "^1.0.0" | ||
}, | ||
@@ -27,9 +27,9 @@ "directories": { | ||
"devDependencies": { | ||
"ava": "^0.16.0", | ||
"benchmark": "^2.1.1", | ||
"cheerio": "^0.20.0", | ||
"ava": "^0.17.0", | ||
"benchmark": "^2.1.2", | ||
"cheerio": "^0.22.0", | ||
"codecov.io": "^0.1.6", | ||
"emojilib": "^2.0.2", | ||
"nyc": "^7.1.0", | ||
"request": "^2.74.0" | ||
"nyc": "^9.0.1", | ||
"request": "^2.78.0" | ||
}, | ||
@@ -36,0 +36,0 @@ "repository": { |
@@ -23,2 +23,6 @@ 'use strict'; | ||
var OptionalFitzpatrickModifier = | ||
Parsimmon.regex(/(\uD83C[\uDFFB-\uDFFF]){0,1}/) | ||
.desc('an optional Fitzpatrick modifier'); | ||
var SimpleEmoji = Parsimmon.alt( | ||
@@ -50,9 +54,12 @@ // Simple Unicode emoji | ||
var Emoji = exports.Emoji = Parsimmon.alt( | ||
ZeroWidthJoinerEmoji, | ||
Parsimmon.seq( | ||
SimpleEmoji, | ||
OptionalVariationSelector | ||
var Emoji = exports.Emoji = Parsimmon.seq( | ||
Parsimmon.alt( | ||
ZeroWidthJoinerEmoji, | ||
Parsimmon.seq( | ||
SimpleEmoji, | ||
OptionalVariationSelector | ||
), | ||
KeycapEmoji | ||
), | ||
KeycapEmoji | ||
OptionalFitzpatrickModifier | ||
).map(function (result) { | ||
@@ -59,0 +66,0 @@ return flattenDeep(result).join(''); |
@@ -10,2 +10,3 @@ 'use strict'; | ||
var result = utilities.onlyEmoji('\uDC00\uDC01'); | ||
t.false(result); | ||
@@ -12,0 +13,0 @@ }); |
@@ -15,2 +15,11 @@ 'use strict'; | ||
'π', | ||
'ππ»', | ||
'ππΌ', | ||
'ππ½', | ||
'ππΎ', | ||
'ππΏ', | ||
'π€ΆπΏ', | ||
'π€°πΏ', | ||
'π€΅πΏ', | ||
'π€΄πΏ', | ||
'πβπ¨', | ||
@@ -17,0 +26,0 @@ 'π¨βπ¨βπ¦', |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
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
79565
720
0
+ Addedparsimmon@1.18.1(transitive)
- Removedparsimmon@0.9.2(transitive)
Updatedlodash.flattendeep@^4.4.0
Updatedparsimmon@^1.0.0