@univer-cli/unit-pdf-printer 1.0.4 → 1.1.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
|
-
const
|
|
1
|
+
const _0x5c7d83=_0x1099;function _0x1099(_0x3730de,_0x28d36f){_0x3730de=_0x3730de-0x90;const _0x3be8a8=_0x3be8();let _0x1099d1=_0x3be8a8[_0x3730de];return _0x1099d1;}(function(_0x891507,_0xd9ebff){const _0x28a5e0=_0x1099,_0x64e9a6=_0x891507();while(!![]){try{const _0x1fc4d9=-parseInt(_0x28a5e0(0xac))/0x1+parseInt(_0x28a5e0(0x99))/0x2*(-parseInt(_0x28a5e0(0x98))/0x3)+-parseInt(_0x28a5e0(0x90))/0x4*(parseInt(_0x28a5e0(0x92))/0x5)+parseInt(_0x28a5e0(0xa3))/0x6*(parseInt(_0x28a5e0(0xa0))/0x7)+-parseInt(_0x28a5e0(0xaa))/0x8*(parseInt(_0x28a5e0(0x9c))/0x9)+parseInt(_0x28a5e0(0x94))/0xa*(parseInt(_0x28a5e0(0xb3))/0xb)+parseInt(_0x28a5e0(0x97))/0xc;if(_0x1fc4d9===_0xd9ebff)break;else _0x64e9a6['push'](_0x64e9a6['shift']());}catch(_0x5c442a){_0x64e9a6['push'](_0x64e9a6['shift']());}}}(_0x3be8,0x984b9));var e=class extends Error{[_0x5c7d83(0xad)];constructor(_0x153792,_0x39ba68){const _0x386e11=_0x5c7d83;super(_0x39ba68),this[_0x386e11(0xab)]='UnitPdfPrinterError',this[_0x386e11(0xad)]=_0x153792;}};function t(_0x3b6e70){return _0x3b6e70 instanceof e;}function _0x3be8(){const _0x8092dc=['78bxDBCL','string','reason','\x20pages,\x20over\x20the\x20','application/pdf','length','bytes','40VaHStk','name','169178YIcIcM','code','trim','.pdf','unit','pageCount','maxPages','289487Wudhjw','8jLmige','fromCharCode','2866895JJHHVZ','subarray','350pZkIif','maxPages\x20must\x20be\x20a\x20positive\x20integer','%PDF-','5172840vTPvlK','943449wDwTwr','2pmvigB','isSafeInteger','INVALID_INPUT','315108KczByo','aborted','printPdf','unitData.id\x20is\x20required','579985asgBWs','signal','render\x20runtime\x20returned\x20invalid\x20PDF\x20bytes'];_0x3be8=function(){return _0x8092dc;};return _0x3be8();}var n=0x3e8;function r(_0x4c689a){const _0x55f195=_0x5c7d83;let _0x101088=_0x4c689a[_0x55f195(0xb2)]??n;if(!Number[_0x55f195(0x9a)](_0x101088)||_0x101088<0x1)throw new e('INVALID_INPUT',_0x55f195(0x95));return{async 'print'(_0x299be9){const _0x42c68a=_0x55f195;c(_0x299be9[_0x42c68a(0xa1)]);let _0x5a4759=i(_0x299be9['unitData']),_0x1a538f=await _0x4c689a['runtime'][_0x42c68a(0x9e)](_0x299be9);if(c(_0x299be9[_0x42c68a(0xa1)]),_0x1a538f[_0x42c68a(0xb1)]>_0x101088)throw new e(_0x42c68a(0x9b),'print\x20produced\x20'+_0x1a538f['pageCount']+_0x42c68a(0xa6)+_0x101088+'\x20page\x20limit');if(!s(_0x1a538f[_0x42c68a(0xa9)]))throw new e(_0x42c68a(0x9b),_0x42c68a(0xa2));return{'bytes':_0x1a538f[_0x42c68a(0xa9)],'mediaType':_0x42c68a(0xa7),'name':o(a(_0x299be9['unitData'])??_0x5a4759)+_0x42c68a(0xaf),'pageCount':_0x1a538f['pageCount'],'unitId':_0x5a4759,'unitType':_0x299be9['unitType']};}};}function i(_0x1e772f){const _0x1e073a=_0x5c7d83;if(typeof _0x1e772f['id']!=_0x1e073a(0xa4)||_0x1e772f['id']['length']===0x0)throw new e(_0x1e073a(0x9b),_0x1e073a(0x9f));return _0x1e772f['id'];}function a(_0x60bfbb){const _0x17dfcd=_0x5c7d83;let _0x41f865=_0x60bfbb[_0x17dfcd(0xab)];return typeof _0x41f865==_0x17dfcd(0xa4)&&_0x41f865[_0x17dfcd(0xae)]()[_0x17dfcd(0xa8)]>0x0?_0x41f865[_0x17dfcd(0xae)]():void 0x0;}function o(_0xfb3857){const _0x463191=_0x5c7d83;let _0x4f6db0=_0xfb3857['replaceAll'](/[\\/:*?"<>|]/gu,'-')[_0x463191(0xae)]();return _0x4f6db0[_0x463191(0xa8)]>0x0?_0x4f6db0:_0x463191(0xb0);}function s(_0x4d75b2){const _0x184191=_0x5c7d83;return _0x4d75b2[_0x184191(0xa8)]>=0x5&&String[_0x184191(0x91)](..._0x4d75b2[_0x184191(0x93)](0x0,0x5))===_0x184191(0x96);}function c(_0x2b1d39){const _0x234f8b=_0x5c7d83;if(_0x2b1d39?.[_0x234f8b(0x9d)]===!0x0)throw _0x2b1d39[_0x234f8b(0xa5)]instanceof Error?_0x2b1d39[_0x234f8b(0xa5)]:Error('operation\x20aborted');}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.1.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.0
|
|
22
|
+
"@univer-cli/univer-render-runtime": "1.1.0"
|
|
23
23
|
}
|
|
24
24
|
}
|