New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@lexical/file

Package Overview
Dependencies
Maintainers
0
Versions
260
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lexical/file - npm Package Compare versions

Comparing version 0.23.2-nightly.20250117.0 to 0.23.2-nightly.20250120.0

2

LexicalFile.dev.js

@@ -13,3 +13,3 @@ /**

var version = "0.23.2-nightly.20250117.0";
var version = "0.23.2-nightly.20250120.0";

@@ -16,0 +16,0 @@ /**

@@ -10,3 +10,3 @@ /**

'use strict'
const LexicalFile = process.env.NODE_ENV === 'development' ? require('./LexicalFile.dev.js') : require('./LexicalFile.prod.js');
const LexicalFile = process.env.NODE_ENV !== 'production' ? require('./LexicalFile.dev.js') : require('./LexicalFile.prod.js');
module.exports = LexicalFile;

@@ -9,2 +9,2 @@ /**

"use strict";var e=require("lexical"),t="0.23.2-nightly.20250117.0";function o(e,o=Object.freeze({})){return{editorState:e.toJSON(),lastSaved:o.lastSaved||Date.now(),source:o.source||"Lexical",version:t}}function n(e,t){const o="string"==typeof t?JSON.parse(t):t;return e.parseEditorState(o.editorState)}exports.editorStateFromSerializedDocument=n,exports.exportFile=function(e,t=Object.freeze({})){const n=new Date;!function(e,t){const o=document.createElement("a"),n=document.body;if(null===n)return;n.appendChild(o),o.style.display="none";const i=JSON.stringify(e),r=new Blob([i],{type:"octet/stream"}),a=window.URL.createObjectURL(r);o.href=a,o.download=t,o.click(),window.URL.revokeObjectURL(a),o.remove()}(o(e.getEditorState(),{...t,lastSaved:n.getTime()}),`${t.fileName||n.toISOString()}.lexical`)},exports.importFile=function(t){!function(e){const t=document.createElement("input");t.type="file",t.accept=".lexical",t.addEventListener("change",(t=>{const o=t.target;if(o.files){const t=o.files[0],n=new FileReader;n.readAsText(t,"UTF-8"),n.onload=t=>{if(t.target){const o=t.target.result;e(o)}}}})),t.click()}((o=>{t.setEditorState(n(t,o)),t.dispatchCommand(e.CLEAR_HISTORY_COMMAND,void 0)}))},exports.serializedDocumentFromEditorState=o;
"use strict";var e=require("lexical"),t="0.23.2-nightly.20250120.0";function o(e,o=Object.freeze({})){return{editorState:e.toJSON(),lastSaved:o.lastSaved||Date.now(),source:o.source||"Lexical",version:t}}function n(e,t){const o="string"==typeof t?JSON.parse(t):t;return e.parseEditorState(o.editorState)}exports.editorStateFromSerializedDocument=n,exports.exportFile=function(e,t=Object.freeze({})){const n=new Date;!function(e,t){const o=document.createElement("a"),n=document.body;if(null===n)return;n.appendChild(o),o.style.display="none";const i=JSON.stringify(e),r=new Blob([i],{type:"octet/stream"}),a=window.URL.createObjectURL(r);o.href=a,o.download=t,o.click(),window.URL.revokeObjectURL(a),o.remove()}(o(e.getEditorState(),{...t,lastSaved:n.getTime()}),`${t.fileName||n.toISOString()}.lexical`)},exports.importFile=function(t){!function(e){const t=document.createElement("input");t.type="file",t.accept=".lexical",t.addEventListener("change",(t=>{const o=t.target;if(o.files){const t=o.files[0],n=new FileReader;n.readAsText(t,"UTF-8"),n.onload=t=>{if(t.target){const o=t.target.result;e(o)}}}})),t.click()}((o=>{t.setEditorState(n(t,o)),t.dispatchCommand(e.CLEAR_HISTORY_COMMAND,void 0)}))},exports.serializedDocumentFromEditorState=o;

@@ -13,3 +13,3 @@ {

"license": "MIT",
"version": "0.23.2-nightly.20250117.0",
"version": "0.23.2-nightly.20250120.0",
"main": "LexicalFile.js",

@@ -42,4 +42,4 @@ "types": "index.d.ts",

"dependencies": {
"lexical": "0.23.2-nightly.20250117.0"
"lexical": "0.23.2-nightly.20250120.0"
}
}

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