@univer-cli/unit-pdf-printer 1.6.1 → 1.6.2
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 _0x453323=_0x4904;(function(_0x1a8abb,_0x5e3ec0){const _0x161a29=_0x4904,_0xfa7630=_0x1a8abb();while(!![]){try{const _0x5d4e67=-parseInt(_0x161a29(0xd6))/0x1+-parseInt(_0x161a29(0xd9))/0x2+parseInt(_0x161a29(0xd1))/0x3+parseInt(_0x161a29(0xe0))/0x4+parseInt(_0x161a29(0xe9))/0x5+parseInt(_0x161a29(0xd8))/0x6*(parseInt(_0x161a29(0xe6))/0x7)+-parseInt(_0x161a29(0xd0))/0x8;if(_0x5d4e67===_0x5e3ec0)break;else _0xfa7630['push'](_0xfa7630['shift']());}catch(_0x34c38d){_0xfa7630['push'](_0xfa7630['shift']());}}}(_0x535c,0x88f44));var e=class extends Error{[_0x453323(0xed)];constructor(_0xa14156,_0x5d1c93){const _0x5c485d=_0x453323;super(_0x5d1c93),this[_0x5c485d(0xd3)]=_0x5c485d(0xd2),this[_0x5c485d(0xed)]=_0xa14156;}};function t(_0x425a5a){return _0x425a5a instanceof e;}function _0x4904(_0x212af,_0x3b8598){_0x212af=_0x212af-0xd0;const _0x535c3a=_0x535c();let _0x490486=_0x535c3a[_0x212af];return _0x490486;}var n=0x3e8;function r(_0x32d9e9){const _0x411493=_0x453323;let _0x488a70=_0x32d9e9['maxPages']??n;if(!Number['isSafeInteger'](_0x488a70)||_0x488a70<0x1)throw new e(_0x411493(0xd5),'maxPages\x20must\x20be\x20a\x20positive\x20integer');return{async 'print'(_0x472807){const _0x33d940=_0x411493;c(_0x472807[_0x33d940(0xe4)]);let _0x38f22d=i(_0x472807['unitData']),_0x427273=await _0x32d9e9[_0x33d940(0xe7)][_0x33d940(0xef)](_0x472807);if(c(_0x472807[_0x33d940(0xe4)]),_0x427273[_0x33d940(0xe1)]>_0x488a70)throw new e(_0x33d940(0xd5),_0x33d940(0xec)+_0x427273[_0x33d940(0xe1)]+'\x20pages,\x20over\x20the\x20'+_0x488a70+_0x33d940(0xda));if(!s(_0x427273['bytes']))throw new e('INVALID_INPUT',_0x33d940(0xe5));return{'bytes':_0x427273[_0x33d940(0xea)],'mediaType':_0x33d940(0xeb),'name':o(a(_0x472807['unitData'])??_0x38f22d)+_0x33d940(0xdf),'pageCount':_0x427273['pageCount'],'unitId':_0x38f22d,'unitType':_0x472807[_0x33d940(0xde)]};}};}function i(_0x3837a1){const _0x3a3b3a=_0x453323;if(typeof _0x3837a1['id']!=_0x3a3b3a(0xe8)||_0x3837a1['id'][_0x3a3b3a(0xd7)]===0x0)throw new e('INVALID_INPUT',_0x3a3b3a(0xd4));return _0x3837a1['id'];}function a(_0x2e2bed){const _0x58b35d=_0x453323;let _0x4a0c20=_0x2e2bed[_0x58b35d(0xd3)];return typeof _0x4a0c20==_0x58b35d(0xe8)&&_0x4a0c20['trim']()[_0x58b35d(0xd7)]>0x0?_0x4a0c20[_0x58b35d(0xf0)]():void 0x0;}function _0x535c(){const _0x35bc5f=['1525548ISrFyo','pageCount','subarray','replaceAll','signal','render\x20runtime\x20returned\x20invalid\x20PDF\x20bytes','2450FbEwAZ','runtime','string','38650AzYLbF','bytes','application/pdf','print\x20produced\x20','code','aborted','printPdf','trim','%PDF-','7333736ssDrPx','2344926fIkbcr','UnitPdfPrinterError','name','unitData.id\x20is\x20required','INVALID_INPUT','657507FDZRBs','length','17874gXTCvl','156442gAXCyT','\x20page\x20limit','reason','unit','operation\x20aborted','unitType','.pdf'];_0x535c=function(){return _0x35bc5f;};return _0x535c();}function o(_0x246684){const _0x274b9d=_0x453323;let _0x4d80e8=_0x246684[_0x274b9d(0xe3)](/[\\/:*?"<>|]/gu,'-')[_0x274b9d(0xf0)]();return _0x4d80e8[_0x274b9d(0xd7)]>0x0?_0x4d80e8:_0x274b9d(0xdc);}function s(_0x20a9da){const _0x23dd73=_0x453323;return _0x20a9da[_0x23dd73(0xd7)]>=0x5&&String['fromCharCode'](..._0x20a9da[_0x23dd73(0xe2)](0x0,0x5))===_0x23dd73(0xf1);}function c(_0x469ba4){const _0x171f8e=_0x453323;if(_0x469ba4?.[_0x171f8e(0xee)]===!0x0)throw _0x469ba4[_0x171f8e(0xdb)]instanceof Error?_0x469ba4[_0x171f8e(0xdb)]:Error(_0x171f8e(0xdd));}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.2",
|
|
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.2"
|
|
23
23
|
}
|
|
24
24
|
}
|