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

@lexical/hashtag

Package Overview
Dependencies
Maintainers
8
Versions
194
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.12.2 to 0.12.3

17

LexicalHashtag.dev.js

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

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

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

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

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

}
static importJSON(serializedNode) {

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

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

@@ -73,6 +67,6 @@ * Generates a HashtagNode, which is a string following the format of a # followed by some text, eg. #lexical.

*/
function $createHashtagNode(text = '') {
return lexical.$applyNodeReplacement(new HashtagNode(text));
}
/**

@@ -83,3 +77,2 @@ * Determines if node is a HashtagNode.

*/
function $isHashtagNode(node) {

@@ -86,0 +79,0 @@ return node instanceof HashtagNode;

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

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

@@ -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