Socket
Socket
Sign inDemoInstall

@lexical/hashtag

Package Overview
Dependencies
Maintainers
7
Versions
156
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lexical/hashtag - npm Package Compare versions

Comparing version 0.8.1 to 0.9.0

13

LexicalHashtag.dev.js

@@ -19,4 +19,4 @@ /**

*/
/** @noInheritDoc */
/** @noInheritDoc */
class HashtagNode extends lexical.TextNode {

@@ -26,8 +26,11 @@ static getType() {

}
static clone(node) {
return new HashtagNode(node.__text, node.__key);
}
constructor(text, key) {
super(text, key);
}
createDOM(config) {

@@ -38,2 +41,3 @@ const element = super.createDOM(config);

}
static importJSON(serializedNode) {

@@ -47,14 +51,17 @@ const node = $createHashtagNode(serializedNode.text);

}
exportJSON() {
return {
...super.exportJSON(),
return { ...super.exportJSON(),
type: 'hashtag'
};
}
canInsertTextBefore() {
return false;
}
isTextEntity() {
return true;
}
}

@@ -61,0 +68,0 @@ function $createHashtagNode(text = '') {

@@ -11,9 +11,9 @@ {

"license": "MIT",
"version": "0.8.1",
"version": "0.9.0",
"main": "LexicalHashtag.js",
"peerDependencies": {
"lexical": "0.8.1"
"lexical": "0.9.0"
},
"dependencies": {
"@lexical/utils": "0.8.1"
"@lexical/utils": "0.9.0"
},

@@ -20,0 +20,0 @@ "repository": {

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