@univer-cli/unit-pdf-printer 1.2.0 → 1.3.0
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
|
-
(function(
|
|
1
|
+
const _0x548fa0=_0xeb7d;(function(_0x502f62,_0x4ce7da){const _0x335384=_0xeb7d,_0xc1f510=_0x502f62();while(!![]){try{const _0x462a7e=parseInt(_0x335384(0x13c))/0x1*(-parseInt(_0x335384(0x14a))/0x2)+parseInt(_0x335384(0x13d))/0x3+parseInt(_0x335384(0x141))/0x4+-parseInt(_0x335384(0x143))/0x5*(parseInt(_0x335384(0x12b))/0x6)+-parseInt(_0x335384(0x12f))/0x7*(-parseInt(_0x335384(0x12c))/0x8)+parseInt(_0x335384(0x137))/0x9+-parseInt(_0x335384(0x14b))/0xa;if(_0x462a7e===_0x4ce7da)break;else _0xc1f510['push'](_0xc1f510['shift']());}catch(_0x54159b){_0xc1f510['push'](_0xc1f510['shift']());}}}(_0xc85d,0xe97bd));function _0xeb7d(_0x1f60f9,_0x55b28b){_0x1f60f9=_0x1f60f9-0x128;const _0xc85de9=_0xc85d();let _0xeb7dbc=_0xc85de9[_0x1f60f9];return _0xeb7dbc;}var e=class extends Error{[_0x548fa0(0x129)];constructor(_0x3294ce,_0x8e3b8){const _0x12721f=_0x548fa0;super(_0x8e3b8),this[_0x12721f(0x130)]='UnitPdfPrinterError',this[_0x12721f(0x129)]=_0x3294ce;}};function _0xc85d(){const _0x1036c3=['INVALID_INPUT','\x20pages,\x20over\x20the\x20','render\x20runtime\x20returned\x20invalid\x20PDF\x20bytes','maxPages\x20must\x20be\x20a\x20positive\x20integer','1EmVptl','4975899HDLcWT','trim','\x20page\x20limit','pageCount','7386128jPxkXU','reason','1685gBdBTX','printPdf','replaceAll','length','bytes','maxPages','application/pdf','158788HSrGuh','31095990fdtwap','unitData','code','print\x20produced\x20','23856CPswEX','8jbfrXx','signal','string','1280993lLMZtU','name','operation\x20aborted','isSafeInteger','unitType','fromCharCode','aborted','%PDF-','16173810MfBQJy'];_0xc85d=function(){return _0x1036c3;};return _0xc85d();}function t(_0x3cffeb){return _0x3cffeb instanceof e;}var n=0x3e8;function r(_0x4534be){const _0x30d2ce=_0x548fa0;let _0x26ff86=_0x4534be[_0x30d2ce(0x148)]??n;if(!Number[_0x30d2ce(0x132)](_0x26ff86)||_0x26ff86<0x1)throw new e(_0x30d2ce(0x138),_0x30d2ce(0x13b));return{async 'print'(_0x1df018){const _0x416e6f=_0x30d2ce;c(_0x1df018['signal']);let _0x133670=i(_0x1df018[_0x416e6f(0x128)]),_0x464d15=await _0x4534be['runtime'][_0x416e6f(0x144)](_0x1df018);if(c(_0x1df018[_0x416e6f(0x12d)]),_0x464d15[_0x416e6f(0x140)]>_0x26ff86)throw new e(_0x416e6f(0x138),_0x416e6f(0x12a)+_0x464d15[_0x416e6f(0x140)]+_0x416e6f(0x139)+_0x26ff86+_0x416e6f(0x13f));if(!s(_0x464d15[_0x416e6f(0x147)]))throw new e(_0x416e6f(0x138),_0x416e6f(0x13a));return{'bytes':_0x464d15['bytes'],'mediaType':_0x416e6f(0x149),'name':o(a(_0x1df018[_0x416e6f(0x128)])??_0x133670)+'.pdf','pageCount':_0x464d15[_0x416e6f(0x140)],'unitId':_0x133670,'unitType':_0x1df018[_0x416e6f(0x133)]};}};}function i(_0x16d6ec){const _0x5bfe55=_0x548fa0;if(typeof _0x16d6ec['id']!=_0x5bfe55(0x12e)||_0x16d6ec['id']['length']===0x0)throw new e('INVALID_INPUT','unitData.id\x20is\x20required');return _0x16d6ec['id'];}function a(_0x4ea507){const _0x448da2=_0x548fa0;let _0x352266=_0x4ea507['name'];return typeof _0x352266==_0x448da2(0x12e)&&_0x352266[_0x448da2(0x13e)]()[_0x448da2(0x146)]>0x0?_0x352266['trim']():void 0x0;}function o(_0x17f0eb){const _0x5b1125=_0x548fa0;let _0x4ddec3=_0x17f0eb[_0x5b1125(0x145)](/[\\/:*?"<>|]/gu,'-')[_0x5b1125(0x13e)]();return _0x4ddec3[_0x5b1125(0x146)]>0x0?_0x4ddec3:'unit';}function s(_0x135fe3){const _0x7a669a=_0x548fa0;return _0x135fe3[_0x7a669a(0x146)]>=0x5&&String[_0x7a669a(0x134)](..._0x135fe3['subarray'](0x0,0x5))===_0x7a669a(0x136);}function c(_0x7a1c98){const _0x544791=_0x548fa0;if(_0x7a1c98?.[_0x544791(0x135)]===!0x0)throw _0x7a1c98['reason']instanceof Error?_0x7a1c98[_0x544791(0x142)]:Error(_0x544791(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.
|
|
5
|
+
"version": "1.3.0",
|
|
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.
|
|
22
|
+
"@univer-cli/univer-render-runtime": "1.3.0"
|
|
23
23
|
}
|
|
24
24
|
}
|