@univer-cli/unit-pdf-printer 1.0.3 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.mjs +1 -1
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x1a8749=_0x18e0;(function(_0x1d31f5,_0x27efdc){const _0x189706=_0x18e0,_0x443afc=_0x1d31f5();while(!![]){try{const _0x3ee356=parseInt(_0x189706(0x13c))/0x1*(parseInt(_0x189706(0x154))/0x2)+-parseInt(_0x189706(0x153))/0x3*(-parseInt(_0x189706(0x14b))/0x4)+-parseInt(_0x189706(0x141))/0x5+-parseInt(_0x189706(0x13e))/0x6+parseInt(_0x189706(0x135))/0x7*(-parseInt(_0x189706(0x14d))/0x8)+parseInt(_0x189706(0x143))/0x9*(parseInt(_0x189706(0x150))/0xa)+parseInt(_0x189706(0x155))/0xb;if(_0x3ee356===_0x27efdc)break;else _0x443afc['push'](_0x443afc['shift']());}catch(_0x3bc459){_0x443afc['push'](_0x443afc['shift']());}}}(_0x3f2a,0x96104));var e=class extends Error{[_0x1a8749(0x151)];constructor(_0x2a3635,_0x417d3a){const _0x13258f=_0x1a8749;super(_0x417d3a),this[_0x13258f(0x144)]='UnitPdfPrinterError',this[_0x13258f(0x151)]=_0x2a3635;}};function t(_0x19d174){return _0x19d174 instanceof e;}var n=0x3e8;function _0x3f2a(){const _0x5e4ac1=['unitType','6151887ZhlcGi','name','signal','unitData','unit','isSafeInteger','maxPages\x20must\x20be\x20a\x20positive\x20integer','bytes','2070404grHuoY','print\x20produced\x20','184nrQNuB','trim','runtime','10NNDwig','code','\x20pages,\x20over\x20the\x20','3xyUXoM','22XrKGdy','3015881ksyTkO','aborted','printPdf','operation\x20aborted','INVALID_INPUT','\x20page\x20limit','string','284718wkfcGg','length','%PDF-','fromCharCode','maxPages','reason','replaceAll','79493NkETrU','render\x20runtime\x20returned\x20invalid\x20PDF\x20bytes','2651286BldbES','unitData.id\x20is\x20required','pageCount','1788475SRJWvc'];_0x3f2a=function(){return _0x5e4ac1;};return _0x3f2a();}function r(_0x457961){const _0x5563e2=_0x1a8749;let _0x3b00f3=_0x457961[_0x5563e2(0x139)]??n;if(!Number[_0x5563e2(0x148)](_0x3b00f3)||_0x3b00f3<0x1)throw new e(_0x5563e2(0x132),_0x5563e2(0x149));return{async 'print'(_0x2d584c){const _0x261cba=_0x5563e2;c(_0x2d584c[_0x261cba(0x145)]);let _0x1c4c9a=i(_0x2d584c[_0x261cba(0x146)]),_0x840f8e=await _0x457961[_0x261cba(0x14f)][_0x261cba(0x157)](_0x2d584c);if(c(_0x2d584c[_0x261cba(0x145)]),_0x840f8e[_0x261cba(0x140)]>_0x3b00f3)throw new e(_0x261cba(0x132),_0x261cba(0x14c)+_0x840f8e['pageCount']+_0x261cba(0x152)+_0x3b00f3+_0x261cba(0x133));if(!s(_0x840f8e['bytes']))throw new e(_0x261cba(0x132),_0x261cba(0x13d));return{'bytes':_0x840f8e[_0x261cba(0x14a)],'mediaType':'application/pdf','name':o(a(_0x2d584c[_0x261cba(0x146)])??_0x1c4c9a)+'.pdf','pageCount':_0x840f8e[_0x261cba(0x140)],'unitId':_0x1c4c9a,'unitType':_0x2d584c[_0x261cba(0x142)]};}};}function i(_0x57b450){const _0x3f820d=_0x1a8749;if(typeof _0x57b450['id']!=_0x3f820d(0x134)||_0x57b450['id']['length']===0x0)throw new e(_0x3f820d(0x132),_0x3f820d(0x13f));return _0x57b450['id'];}function a(_0x57297f){const _0x5dbf63=_0x1a8749;let _0x235bb4=_0x57297f[_0x5dbf63(0x144)];return typeof _0x235bb4==_0x5dbf63(0x134)&&_0x235bb4[_0x5dbf63(0x14e)]()[_0x5dbf63(0x136)]>0x0?_0x235bb4[_0x5dbf63(0x14e)]():void 0x0;}function o(_0x5c67cf){const _0x4b899d=_0x1a8749;let _0x5649e4=_0x5c67cf[_0x4b899d(0x13b)](/[\\/:*?"<>|]/gu,'-')[_0x4b899d(0x14e)]();return _0x5649e4['length']>0x0?_0x5649e4:_0x4b899d(0x147);}function _0x18e0(_0x3d0481,_0x51ab67){_0x3d0481=_0x3d0481-0x131;const _0x3f2ac8=_0x3f2a();let _0x18e061=_0x3f2ac8[_0x3d0481];return _0x18e061;}function s(_0x239c9e){const _0x337ca6=_0x1a8749;return _0x239c9e[_0x337ca6(0x136)]>=0x5&&String[_0x337ca6(0x138)](..._0x239c9e['subarray'](0x0,0x5))===_0x337ca6(0x137);}function c(_0x37e0bd){const _0xc5ae=_0x1a8749;if(_0x37e0bd?.[_0xc5ae(0x156)]===!0x0)throw _0x37e0bd[_0xc5ae(0x13a)]instanceof Error?_0x37e0bd[_0xc5ae(0x13a)]:Error(_0xc5ae(0x131));}export{e as UnitPdfPrinterError,r as createUnitPdfPrinter,t as isUnitPdfPrinterError};
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@univer-cli/unit-pdf-printer",
|
|
3
3
|
"description": "Print materialized Univer Units to PDF through the browser render runtime.",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"version": "1.0.
|
|
5
|
+
"version": "1.0.4",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
7
7
|
"module": "./dist/index.mjs",
|
|
8
8
|
"types": "./dist/index.d.ts",
|
|
@@ -19,6 +19,6 @@
|
|
|
19
19
|
"README.zh-CN.md"
|
|
20
20
|
],
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@univer-cli/univer-render-runtime": "1.0.
|
|
22
|
+
"@univer-cli/univer-render-runtime": "1.0.4"
|
|
23
23
|
}
|
|
24
24
|
}
|