@univer-cli/unit-pdf-printer 1.6.2 → 1.6.3
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 _0x20eeb6=_0x1cfa;function _0x1cfa(_0x2bbcd2,_0x497d33){_0x2bbcd2=_0x2bbcd2-0xa4;const _0x33de31=_0x33de();let _0x1cfaab=_0x33de31[_0x2bbcd2];return _0x1cfaab;}(function(_0x57a728,_0xddaaf3){const _0x278d0f=_0x1cfa,_0x59a870=_0x57a728();while(!![]){try{const _0x19dc2d=parseInt(_0x278d0f(0xbd))/0x1*(parseInt(_0x278d0f(0xa8))/0x2)+-parseInt(_0x278d0f(0xba))/0x3+-parseInt(_0x278d0f(0xa9))/0x4*(-parseInt(_0x278d0f(0xbf))/0x5)+-parseInt(_0x278d0f(0xc3))/0x6*(parseInt(_0x278d0f(0xc4))/0x7)+-parseInt(_0x278d0f(0xbc))/0x8+-parseInt(_0x278d0f(0xae))/0x9+-parseInt(_0x278d0f(0xaa))/0xa*(-parseInt(_0x278d0f(0xad))/0xb);if(_0x19dc2d===_0xddaaf3)break;else _0x59a870['push'](_0x59a870['shift']());}catch(_0x3516da){_0x59a870['push'](_0x59a870['shift']());}}}(_0x33de,0x5a376));var e=class extends Error{[_0x20eeb6(0xb8)];constructor(_0x49a6b5,_0x45c2a4){const _0x69ee01=_0x20eeb6;super(_0x45c2a4),this[_0x69ee01(0xb2)]=_0x69ee01(0xc0),this[_0x69ee01(0xb8)]=_0x49a6b5;}};function _0x33de(){const _0x202c59=['signal','code','unit','250356kCEPtv','reason','3220024nFanaV','20633aECnIY','application/pdf','46810xiQLQr','UnitPdfPrinterError','runtime','trim','533628PESMWt','49ctEwCb','unitData','maxPages\x20must\x20be\x20a\x20positive\x20integer','operation\x20aborted','aborted','subarray','string','66DmIsDC','172MEXvMO','8809330BOcTNM','pageCount','maxPages','11gQXZbN','4377069szkBiw','render\x20runtime\x20returned\x20invalid\x20PDF\x20bytes','INVALID_INPUT','print\x20produced\x20','name','bytes','\x20pages,\x20over\x20the\x20','\x20page\x20limit','length'];_0x33de=function(){return _0x202c59;};return _0x33de();}function t(_0x3cdbdb){return _0x3cdbdb instanceof e;}var n=0x3e8;function r(_0x5bc5db){const _0x281480=_0x20eeb6;let _0x4bb3ac=_0x5bc5db[_0x281480(0xac)]??n;if(!Number['isSafeInteger'](_0x4bb3ac)||_0x4bb3ac<0x1)throw new e(_0x281480(0xb0),_0x281480(0xc6));return{async 'print'(_0x1b1207){const _0x19d670=_0x281480;c(_0x1b1207[_0x19d670(0xb7)]);let _0x56156a=i(_0x1b1207[_0x19d670(0xc5)]),_0x11ae21=await _0x5bc5db[_0x19d670(0xc1)]['printPdf'](_0x1b1207);if(c(_0x1b1207['signal']),_0x11ae21['pageCount']>_0x4bb3ac)throw new e(_0x19d670(0xb0),_0x19d670(0xb1)+_0x11ae21[_0x19d670(0xab)]+_0x19d670(0xb4)+_0x4bb3ac+_0x19d670(0xb5));if(!s(_0x11ae21[_0x19d670(0xb3)]))throw new e('INVALID_INPUT',_0x19d670(0xaf));return{'bytes':_0x11ae21[_0x19d670(0xb3)],'mediaType':_0x19d670(0xbe),'name':o(a(_0x1b1207[_0x19d670(0xc5)])??_0x56156a)+'.pdf','pageCount':_0x11ae21[_0x19d670(0xab)],'unitId':_0x56156a,'unitType':_0x1b1207['unitType']};}};}function i(_0x243c99){const _0xbe1b65=_0x20eeb6;if(typeof _0x243c99['id']!=_0xbe1b65(0xa7)||_0x243c99['id']['length']===0x0)throw new e(_0xbe1b65(0xb0),'unitData.id\x20is\x20required');return _0x243c99['id'];}function a(_0x10e22a){const _0x11cfd2=_0x20eeb6;let _0xe8a58d=_0x10e22a[_0x11cfd2(0xb2)];return typeof _0xe8a58d==_0x11cfd2(0xa7)&&_0xe8a58d['trim']()[_0x11cfd2(0xb6)]>0x0?_0xe8a58d[_0x11cfd2(0xc2)]():void 0x0;}function o(_0x1c3930){const _0x4b63e1=_0x20eeb6;let _0x47513d=_0x1c3930['replaceAll'](/[\\/:*?"<>|]/gu,'-')[_0x4b63e1(0xc2)]();return _0x47513d[_0x4b63e1(0xb6)]>0x0?_0x47513d:_0x4b63e1(0xb9);}function s(_0x4b3d06){const _0x241eb8=_0x20eeb6;return _0x4b3d06[_0x241eb8(0xb6)]>=0x5&&String['fromCharCode'](..._0x4b3d06[_0x241eb8(0xa6)](0x0,0x5))==='%PDF-';}function c(_0x38f252){const _0x5adaf6=_0x20eeb6;if(_0x38f252?.[_0x5adaf6(0xa5)]===!0x0)throw _0x38f252['reason']instanceof Error?_0x38f252[_0x5adaf6(0xbb)]:Error(_0x5adaf6(0xa4));}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.6.
|
|
5
|
+
"version": "1.6.3",
|
|
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.6.
|
|
22
|
+
"@univer-cli/univer-render-runtime": "1.6.3"
|
|
23
23
|
}
|
|
24
24
|
}
|