@univer-cli/unit-pdf-printer 1.6.2 → 1.7.0-alpha.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
|
-
|
|
1
|
+
(function(_0x463a1e,_0x5212ce){const _0x524ddd=_0x1764,_0x568919=_0x463a1e();while(!![]){try{const _0x339114=-parseInt(_0x524ddd(0xeb))/0x1*(-parseInt(_0x524ddd(0xe5))/0x2)+parseInt(_0x524ddd(0xe3))/0x3+parseInt(_0x524ddd(0xed))/0x4+-parseInt(_0x524ddd(0xec))/0x5+parseInt(_0x524ddd(0xe4))/0x6*(parseInt(_0x524ddd(0xfe))/0x7)+-parseInt(_0x524ddd(0xe6))/0x8*(parseInt(_0x524ddd(0xf9))/0x9)+-parseInt(_0x524ddd(0xfb))/0xa;if(_0x339114===_0x5212ce)break;else _0x568919['push'](_0x568919['shift']());}catch(_0x405993){_0x568919['push'](_0x568919['shift']());}}}(_0x2b06,0x27aea));function _0x2b06(){const _0x11697e=['593lNVEoY','210215XcfvGu','810556gnGPIs','operation\x20aborted','trim','string','print\x20produced\x20','unitData.id\x20is\x20required','maxPages','render\x20runtime\x20returned\x20invalid\x20PDF\x20bytes','length','.pdf','aborted','INVALID_INPUT','91089NkiZdc','signal','3431250HSbgnH','subarray','application/pdf','7znZjoB','name','maxPages\x20must\x20be\x20a\x20positive\x20integer','reason','unitData','fromCharCode','unit','replaceAll','runtime','code','921324PCLCMU','87636BEFikJ','898aNuQsp','192ZFKGEx','UnitPdfPrinterError','isSafeInteger','%PDF-','pageCount'];_0x2b06=function(){return _0x11697e;};return _0x2b06();}var e=class extends Error{['code'];constructor(_0x294817,_0x53bff4){const _0x1ae272=_0x1764;super(_0x53bff4),this[_0x1ae272(0xff)]=_0x1ae272(0xe7),this[_0x1ae272(0xe2)]=_0x294817;}};function _0x1764(_0x16007d,_0x198fa3){_0x16007d=_0x16007d-0xdb;const _0x2b06f2=_0x2b06();let _0x1764c1=_0x2b06f2[_0x16007d];return _0x1764c1;}function t(_0x45e1ee){return _0x45e1ee instanceof e;}var n=0x3e8;function r(_0x40d68e){const _0xa204ac=_0x1764;let _0x47283e=_0x40d68e[_0xa204ac(0xf3)]??n;if(!Number[_0xa204ac(0xe8)](_0x47283e)||_0x47283e<0x1)throw new e('INVALID_INPUT',_0xa204ac(0xdb));return{async 'print'(_0x379eb2){const _0x2e3609=_0xa204ac;c(_0x379eb2[_0x2e3609(0xfa)]);let _0x559e5c=i(_0x379eb2[_0x2e3609(0xdd)]),_0xbb341e=await _0x40d68e[_0x2e3609(0xe1)]['printPdf'](_0x379eb2);if(c(_0x379eb2[_0x2e3609(0xfa)]),_0xbb341e[_0x2e3609(0xea)]>_0x47283e)throw new e('INVALID_INPUT',_0x2e3609(0xf1)+_0xbb341e[_0x2e3609(0xea)]+'\x20pages,\x20over\x20the\x20'+_0x47283e+'\x20page\x20limit');if(!s(_0xbb341e['bytes']))throw new e(_0x2e3609(0xf8),_0x2e3609(0xf4));return{'bytes':_0xbb341e['bytes'],'mediaType':_0x2e3609(0xfd),'name':o(a(_0x379eb2[_0x2e3609(0xdd)])??_0x559e5c)+_0x2e3609(0xf6),'pageCount':_0xbb341e[_0x2e3609(0xea)],'unitId':_0x559e5c,'unitType':_0x379eb2['unitType']};}};}function i(_0x2cd3f0){const _0x1bcbc5=_0x1764;if(typeof _0x2cd3f0['id']!=_0x1bcbc5(0xf0)||_0x2cd3f0['id'][_0x1bcbc5(0xf5)]===0x0)throw new e(_0x1bcbc5(0xf8),_0x1bcbc5(0xf2));return _0x2cd3f0['id'];}function a(_0x316863){const _0x21360d=_0x1764;let _0x1c22a1=_0x316863[_0x21360d(0xff)];return typeof _0x1c22a1==_0x21360d(0xf0)&&_0x1c22a1[_0x21360d(0xef)]()['length']>0x0?_0x1c22a1['trim']():void 0x0;}function o(_0x1e0949){const _0x8f8a29=_0x1764;let _0x168b51=_0x1e0949[_0x8f8a29(0xe0)](/[\\/:*?"<>|]/gu,'-')[_0x8f8a29(0xef)]();return _0x168b51['length']>0x0?_0x168b51:_0x8f8a29(0xdf);}function s(_0x1886c6){const _0x367f0e=_0x1764;return _0x1886c6[_0x367f0e(0xf5)]>=0x5&&String[_0x367f0e(0xde)](..._0x1886c6[_0x367f0e(0xfc)](0x0,0x5))===_0x367f0e(0xe9);}function c(_0x490388){const _0x39ef6c=_0x1764;if(_0x490388?.[_0x39ef6c(0xf7)]===!0x0)throw _0x490388[_0x39ef6c(0xdc)]instanceof Error?_0x490388[_0x39ef6c(0xdc)]:Error(_0x39ef6c(0xee));}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.7.0-alpha.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.7.0-alpha.0"
|
|
23
23
|
}
|
|
24
24
|
}
|