Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

emoji-aware

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

emoji-aware - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0

test/console-format.js

1

emoji-aware.js
'use strict';
exports.consoleFormat = require('./lib/console-format.js');
exports.isEmoji = require('./lib/is-emoji.js');
exports.split = require('./parsers/unicode-and-emoji.js').parse;

2

package.json
{
"name": "emoji-aware",
"version": "1.0.0",
"version": "1.1.0",
"description": "Emoji-aware unicode string utilities",

@@ -5,0 +5,0 @@ "main": "emoji-aware.js",

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

var Parsimmon = require('parsimmon');
var flattenDeep = require('lodash.flattenDeep');
var flattenDeep = require('lodash.flattendeep');

@@ -8,0 +8,0 @@ var SurrogatePair = Parsimmon.regex(/[\uD800-\uDBFF][\uDC00-\uDFFF]/);

@@ -41,1 +41,25 @@ 'use strict';

});
test('parseOne fail empty string', t => {
t.plan(1);
var result = unicode.parseOne('');
t.false(result);
});
test('parse empty string', t => {
t.plan(1);
var result = unicode.parse('');
t.same(result, []);
});
test('parse fail broken string', t => {
t.plan(1);
var result = unicode.parse('\uDC00\uDC01');
t.false(result);
});

Sorry, the diff of this file is not supported yet

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