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

emoji-picker-element

Package Overview
Dependencies
Maintainers
1
Versions
71
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

emoji-picker-element - npm Package Compare versions

Comparing version 1.2.2 to 1.2.3

11

CHANGELOG.md

@@ -0,1 +1,12 @@

## [1.2.3](https://github.com/nolanlawson/emoji-picker-element/compare/v1.2.2...v1.2.3) (2020-11-06)
### Bug Fixes
* emoticon is not a required field ([#73](https://github.com/nolanlawson/emoji-picker-element/issues/73)) ([c72bb44](https://github.com/nolanlawson/emoji-picker-element/commit/c72bb44a28ef7844a886beb8900caa5cc198af66))
* fix types for addEventListener and removeEventListener ([#61](https://github.com/nolanlawson/emoji-picker-element/issues/61)) ([f6b3d83](https://github.com/nolanlawson/emoji-picker-element/commit/f6b3d834b89a0be7d86258b3a762469ca82431f3))
* use @^ for versions ([#72](https://github.com/nolanlawson/emoji-picker-element/issues/72)) ([8261856](https://github.com/nolanlawson/emoji-picker-element/commit/82618562f1cc283a86e7939fce331705519ca9f6)), closes [#71](https://github.com/nolanlawson/emoji-picker-element/issues/71)
## [1.2.2](https://github.com/nolanlawson/emoji-picker-element/compare/v1.2.1...v1.2.2) (2020-11-02)

@@ -2,0 +13,0 @@

9

database.js

@@ -33,3 +33,3 @@ function assertNonEmptyString (str) {

const DEFAULT_DATA_SOURCE = 'https://cdn.jsdelivr.net/npm/emojibase-data@5/en/data.json';
const DEFAULT_DATA_SOURCE = 'https://cdn.jsdelivr.net/npm/emojibase-data@^5/en/data.json';
const DEFAULT_LOCALE = 'en';

@@ -532,3 +532,3 @@

// traverse
const queue = currentMap ? [currentMap] : [];
const queue = [currentMap];
while (queue.length) {

@@ -654,3 +654,2 @@ const currentMap = queue.shift();

'emoji',
'emoticon',
'group',

@@ -891,5 +890,3 @@ 'order',

} catch (err) { /* ignore network errors (offline-first) */ }
if (this._db) {
return true // we need to actually run the close/delete logic, so we return true
}
return !!this._db // return true if we need to actually run the close/delete logic
}

@@ -896,0 +893,0 @@

{
"name": "emoji-picker-element",
"version": "1.2.2",
"version": "1.2.3",
"description": "Lightweight emoji picker distributed as a web component",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -19,6 +19,4 @@ import { I18n, PickerConstructorOptions, EmojiPickerEventMap, CustomEmoji } from "./shared";

constructor({ dataSource, locale, i18n, skinToneEmoji, customEmoji, customCategorySorting }?: PickerConstructorOptions);
addEventListener<K extends keyof EmojiPickerEventMap>(type: K, listener: (this: TextTrackCue, ev: EmojiPickerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof EmojiPickerEventMap>(type: K, listener: (this: TextTrackCue, ev: EmojiPickerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
addEventListener<K extends keyof EmojiPickerEventMap>(type: K, listener: (this: Picker, ev: EmojiPickerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof EmojiPickerEventMap>(type: K, listener: (this: Picker, ev: EmojiPickerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
}

@@ -25,0 +23,0 @@ declare global {

@@ -88,3 +88,3 @@ emoji-picker-element [![Build Status](https://travis-ci.com/nolanlawson/emoji-picker-element.svg?branch=master)](https://travis-ci.com/nolanlawson/emoji-picker-element)

```html
<script type="module" src="https://cdn.jsdelivr.net/npm/emoji-picker-element@1/index.js"></script>
<script type="module" src="https://cdn.jsdelivr.net/npm/emoji-picker-element@^1/index.js"></script>
```

@@ -251,3 +251,3 @@

`customEmoji` | CustomEmoji[] | - | Array of custom emoji |
`dataSource` | string | "https://cdn.jsdelivr.net/npm/emojibase-data@5/en/data.json" | URL to fetch the emojibase data from (`data-source` when used as an attribute) |
`dataSource` | string | "https://cdn.jsdelivr.net/npm/emojibase-data@^5/en/data.json" | URL to fetch the emojibase data from (`data-source` when used as an attribute) |
`i18n` | I18n | - | i18n object (see below for details) |

@@ -387,3 +387,3 @@ `locale` | string | "en" | Locale string |

`customEmoji` | CustomEmoji[] | [] | Array of custom emoji |
`dataSource` | string | "https://cdn.jsdelivr.net/npm/emojibase-data@5/en/data.json" | URL to fetch the emojibase data from |
`dataSource` | string | "https://cdn.jsdelivr.net/npm/emojibase-data@^5/en/data.json" | URL to fetch the emojibase data from |
`locale` | string | "en" | Locale string |

@@ -746,3 +746,3 @@

npm install emojibase-data@5
npm install emojibase-data@^5

@@ -749,0 +749,0 @@ Then host `node_modules/emojibase-data/en/data.json` (or other locales) on your web server.

const requiredKeys = [
'annotation',
'emoji',
'emoticon',
'group',

@@ -6,0 +5,0 @@ 'order',

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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