@anncic-api/core 3.4.87 → 3.5.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/config/config.default.js +6 -1
- package/dist/configuration.js +133 -1
- package/dist/decorator/AnnEnumMsg.js +112 -1
- package/dist/decorator/AnnErrorMsg.js +32 -1
- package/dist/decorator/AroundMiddle.js +23 -1
- package/dist/exception/AnnError.js +55 -1
- package/dist/exception/AnnErrorRender.js +8 -1
- package/dist/helper/aesFun.d.ts +9 -0
- package/dist/helper/aesFun.js +121 -1
- package/dist/helper/base64Fun.js +22 -1
- package/dist/helper/common.js +22 -1
- package/dist/helper/desFun.js +30 -1
- package/dist/helper/fileMd5.js +43 -1
- package/dist/helper/globDir.js +54 -1
- package/dist/helper/hideSensitive.js +60 -1
- package/dist/helper/include.js +15 -1
- package/dist/helper/jsonFun.js +21 -1
- package/dist/helper/mathFun.js +34 -1
- package/dist/helper/sleep.js +7 -1
- package/dist/helper/xmlFun.js +17 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +91 -1
- package/index.d.ts +3 -0
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1 +1,91 @@
|
|
|
1
|
-
const a19_0x31dbd9=a19_0x3861;(function(_0x3330e1,_0x20a445){const _0x5f23db=a19_0x3861,_0x4cd36f=_0x3330e1();while(!![]){try{const _0x2288dd=-parseInt(_0x5f23db(0x1ad))/0x1+parseInt(_0x5f23db(0x1ab))/0x2*(parseInt(_0x5f23db(0x1d4))/0x3)+-parseInt(_0x5f23db(0x1cf))/0x4+parseInt(_0x5f23db(0x19b))/0x5+-parseInt(_0x5f23db(0x1b1))/0x6+parseInt(_0x5f23db(0x1bd))/0x7+parseInt(_0x5f23db(0x1a8))/0x8*(parseInt(_0x5f23db(0x1a9))/0x9);if(_0x2288dd===_0x20a445)break;else _0x4cd36f['push'](_0x4cd36f['shift']());}catch(_0x5e19fe){_0x4cd36f['push'](_0x4cd36f['shift']());}}}(a19_0x3fc7,0x95b21));const a19_0x321d8d=(function(){let _0x12aec7=!![];return function(_0x1f4cf4,_0x191def){const _0x106a62=_0x12aec7?function(){const _0x30902e=a19_0x3861;if(_0x191def){const _0x2eaa2a=_0x191def[_0x30902e(0x1ba)](_0x1f4cf4,arguments);return _0x191def=null,_0x2eaa2a;}}:function(){};return _0x12aec7=![],_0x106a62;};}()),a19_0x4a1f3b=a19_0x321d8d(this,function(){const _0x4c4a60=a19_0x3861;return a19_0x4a1f3b[_0x4c4a60(0x1c2)]()[_0x4c4a60(0x1d2)]('(((.+)+)+)+$')[_0x4c4a60(0x1c2)]()['constructor'](a19_0x4a1f3b)['search'](_0x4c4a60(0x1b0));});a19_0x4a1f3b();'use strict';Object[a19_0x31dbd9(0x1b8)](exports,'__esModule',{'value':!![]}),exports[a19_0x31dbd9(0x192)]=exports['IAroundMiddle']=exports[a19_0x31dbd9(0x1c4)]=exports[a19_0x31dbd9(0x1b4)]=exports[a19_0x31dbd9(0x1d6)]=exports[a19_0x31dbd9(0x1c1)]=exports[a19_0x31dbd9(0x1bf)]=exports['getAnnEnumList']=exports[a19_0x31dbd9(0x19f)]=exports[a19_0x31dbd9(0x1cd)]=exports[a19_0x31dbd9(0x1d3)]=exports['AroundMiddle']=exports[a19_0x31dbd9(0x1d0)]=exports[a19_0x31dbd9(0x19d)]=exports[a19_0x31dbd9(0x19a)]=exports[a19_0x31dbd9(0x18d)]=exports[a19_0x31dbd9(0x1a0)]=exports['json_decode']=exports[a19_0x31dbd9(0x194)]=exports[a19_0x31dbd9(0x18e)]=exports[a19_0x31dbd9(0x19c)]=exports['aes_decode']=exports['aes_encode']=exports[a19_0x31dbd9(0x1ca)]=exports['xml_decode']=exports[a19_0x31dbd9(0x1a6)]=exports['fileSize']=exports[a19_0x31dbd9(0x1da)]=exports[a19_0x31dbd9(0x1dc)]=exports['include']=exports[a19_0x31dbd9(0x1dd)]=exports[a19_0x31dbd9(0x197)]=exports[a19_0x31dbd9(0x1d5)]=exports[a19_0x31dbd9(0x1b6)]=exports['sleep']=exports[a19_0x31dbd9(0x1cb)]=exports['md5']=exports['compressing']=exports[a19_0x31dbd9(0x1a4)]=exports[a19_0x31dbd9(0x1a3)]=exports['mathjs']=exports[a19_0x31dbd9(0x1b3)]=exports['fsplus']=exports[a19_0x31dbd9(0x195)]=exports[a19_0x31dbd9(0x1aa)]=exports[a19_0x31dbd9(0x190)]=exports['Configuration']=void 0x0;const axios_1=require(a19_0x31dbd9(0x190)),path=require(a19_0x31dbd9(0x1aa));exports[a19_0x31dbd9(0x1aa)]=path;const jimp=require(a19_0x31dbd9(0x195));exports[a19_0x31dbd9(0x195)]=jimp;const dayjs=require(a19_0x31dbd9(0x1cb));exports[a19_0x31dbd9(0x1cb)]=dayjs;const qrcode=require(a19_0x31dbd9(0x1b3));exports['qrcode']=qrcode;const mathjs=require(a19_0x31dbd9(0x198));exports['mathjs']=mathjs;const lodash=require(a19_0x31dbd9(0x1a3));exports[a19_0x31dbd9(0x1a3)]=lodash;const fsplus=require(a19_0x31dbd9(0x199));exports[a19_0x31dbd9(0x196)]=fsplus;const cryptojs=require(a19_0x31dbd9(0x1be));exports[a19_0x31dbd9(0x1a4)]=cryptojs;const compressing=require('compressing');exports[a19_0x31dbd9(0x1d7)]=compressing;const collect_js_1=require(a19_0x31dbd9(0x1bb));Object[a19_0x31dbd9(0x1b8)](exports,a19_0x31dbd9(0x1dd),{'enumerable':!![],'get':function(){const _0x5be074=a19_0x31dbd9;return collect_js_1[_0x5be074(0x1dd)];}});const image_size_1=require(a19_0x31dbd9(0x19e));Object[a19_0x31dbd9(0x1b8)](exports,a19_0x31dbd9(0x1a6),{'enumerable':!![],'get':function(){const _0x8f739b=a19_0x31dbd9;return image_size_1[_0x8f739b(0x1a6)];}});const sleep_1=require(a19_0x31dbd9(0x1ae));Object[a19_0x31dbd9(0x1b8)](exports,a19_0x31dbd9(0x1b9),{'enumerable':!![],'get':function(){return sleep_1['sleep'];}});const include_1=require(a19_0x31dbd9(0x1bc));Object[a19_0x31dbd9(0x1b8)](exports,a19_0x31dbd9(0x1b7),{'enumerable':!![],'get':function(){return include_1['include'];}});const globDir_1=require(a19_0x31dbd9(0x1c3));Object['defineProperty'](exports,'globDir',{'enumerable':!![],'get':function(){const _0x21799d=a19_0x31dbd9;return globDir_1[_0x21799d(0x1dc)];}});const AnnError_1=require(a19_0x31dbd9(0x191));Object[a19_0x31dbd9(0x1b8)](exports,a19_0x31dbd9(0x1c4),{'enumerable':!![],'get':function(){const _0x776897=a19_0x31dbd9;return AnnError_1[_0x776897(0x1c4)];}});const fileMd5_1=require(a19_0x31dbd9(0x18f));Object[a19_0x31dbd9(0x1b8)](exports,a19_0x31dbd9(0x1da),{'enumerable':!![],'get':function(){const _0x341c29=a19_0x31dbd9;return fileMd5_1[_0x341c29(0x1da)];}}),Object[a19_0x31dbd9(0x1b8)](exports,'fileSize',{'enumerable':!![],'get':function(){return fileMd5_1['fileSize'];}});function a19_0x3861(_0x543e88,_0x5bb771){const _0x2c834f=a19_0x3fc7();return a19_0x3861=function(_0x4a1f3b,_0x321d8d){_0x4a1f3b=_0x4a1f3b-0x18d;let _0x3fc724=_0x2c834f[_0x4a1f3b];return _0x3fc724;},a19_0x3861(_0x543e88,_0x5bb771);}const hideSensitive_1=require(a19_0x31dbd9(0x1a5));Object[a19_0x31dbd9(0x1b8)](exports,a19_0x31dbd9(0x19a),{'enumerable':!![],'get':function(){const _0x1e02fa=a19_0x31dbd9;return hideSensitive_1[_0x1e02fa(0x19a)];}}),Object[a19_0x31dbd9(0x1b8)](exports,a19_0x31dbd9(0x19d),{'enumerable':!![],'get':function(){const _0x3092fa=a19_0x31dbd9;return hideSensitive_1[_0x3092fa(0x19d)];}});const AnnErrorRender_1=require('./exception/AnnErrorRender');Object['defineProperty'](exports,'AnnErrorRender',{'enumerable':!![],'get':function(){const _0xbd02ea=a19_0x31dbd9;return AnnErrorRender_1[_0xbd02ea(0x192)];}});const AroundMiddle_1=require(a19_0x31dbd9(0x1a2));Object['defineProperty'](exports,a19_0x31dbd9(0x1b2),{'enumerable':!![],'get':function(){return AroundMiddle_1['AroundMiddle'];}}),Object['defineProperty'](exports,a19_0x31dbd9(0x1b5),{'enumerable':!![],'get':function(){return AroundMiddle_1['IAroundMiddle'];}});const AnnErrorMsg_1=require(a19_0x31dbd9(0x1ce));Object[a19_0x31dbd9(0x1b8)](exports,a19_0x31dbd9(0x1c1),{'enumerable':!![],'get':function(){const _0x4051ea=a19_0x31dbd9;return AnnErrorMsg_1[_0x4051ea(0x1c1)];}}),Object['defineProperty'](exports,a19_0x31dbd9(0x1d6),{'enumerable':!![],'get':function(){const _0x511fc2=a19_0x31dbd9;return AnnErrorMsg_1[_0x511fc2(0x1d6)];}}),Object[a19_0x31dbd9(0x1b8)](exports,a19_0x31dbd9(0x1b4),{'enumerable':!![],'get':function(){const _0x37070b=a19_0x31dbd9;return AnnErrorMsg_1[_0x37070b(0x1b4)];}});const AnnEnumMsg_1=require(a19_0x31dbd9(0x1a1));Object[a19_0x31dbd9(0x1b8)](exports,a19_0x31dbd9(0x1d0),{'enumerable':!![],'get':function(){const _0x294957=a19_0x31dbd9;return AnnEnumMsg_1[_0x294957(0x1d0)];}}),Object[a19_0x31dbd9(0x1b8)](exports,'getAnnEnumMsg',{'enumerable':!![],'get':function(){return AnnEnumMsg_1['getAnnEnumMsg'];}}),Object[a19_0x31dbd9(0x1b8)](exports,a19_0x31dbd9(0x1cd),{'enumerable':!![],'get':function(){const _0x3d3063=a19_0x31dbd9;return AnnEnumMsg_1[_0x3d3063(0x1cd)];}}),Object['defineProperty'](exports,a19_0x31dbd9(0x19f),{'enumerable':!![],'get':function(){const _0x1a4123=a19_0x31dbd9;return AnnEnumMsg_1[_0x1a4123(0x19f)];}}),Object[a19_0x31dbd9(0x1b8)](exports,a19_0x31dbd9(0x1d8),{'enumerable':!![],'get':function(){return AnnEnumMsg_1['getAnnEnumList'];}}),Object['defineProperty'](exports,a19_0x31dbd9(0x1bf),{'enumerable':!![],'get':function(){return AnnEnumMsg_1['getAnnEnumArray'];}});const common_1=require(a19_0x31dbd9(0x1c0));Object[a19_0x31dbd9(0x1b8)](exports,'md5',{'enumerable':!![],'get':function(){const _0x20af06=a19_0x31dbd9;return common_1[_0x20af06(0x1c8)];}}),Object[a19_0x31dbd9(0x1b8)](exports,a19_0x31dbd9(0x1b6),{'enumerable':!![],'get':function(){const _0x33473c=a19_0x31dbd9;return common_1[_0x33473c(0x1b6)];}}),Object[a19_0x31dbd9(0x1b8)](exports,a19_0x31dbd9(0x197),{'enumerable':!![],'get':function(){return common_1['getType'];}});function a19_0x3fc7(){const _0x744130=['fs-extra','hideSensitiveStr','4903230yXhatf','des_encode','hideSensitiveObj','image-size','getAnnEnumMap','base64_encode','./decorator/AnnEnumMsg','./decorator/AroundMiddle','lodash','cryptojs','./helper/hideSensitive','imageSize','default','391256gtpTdo','18nfuONz','path','2prjgeu','fileSize','616644BmcUpe','./helper/sleep','./helper/jsonFun','(((.+)+)+)+$','5367252PRbnGI','AroundMiddle','qrcode','getAnnErrorList','IAroundMiddle','random','include','defineProperty','sleep','apply','collect.js','./helper/include','2807553zRybMc','crypto-js','getAnnEnumArray','./helper/common','AnnErrorMsg','toString','./helper/globDir','AnnError','aes_encode','xml_decode','aes_decode','md5','./configuration','xml_encode','dayjs','Configuration','getAnnEnumMeta','./decorator/AnnErrorMsg','1789116IZiuCX','AnnEnumMsg','./helper/base64Fun','search','getAnnEnumMsg','3276237RFRJFt','toFixed','getAnnErrorMsg','compressing','getAnnEnumList','json_decode','fileMd5','./helper/aesFun','globDir','collect','base64_decode','des_decode','./helper/fileMd5','axios','./exception/AnnError','AnnErrorRender','./helper/desFun','json_encode','jimp','fsplus','getType','mathjs'];a19_0x3fc7=function(){return _0x744130;};return a19_0x3fc7();}const xmlFun_1=require('./helper/xmlFun');Object[a19_0x31dbd9(0x1b8)](exports,'xml_decode',{'enumerable':!![],'get':function(){return xmlFun_1['xml_decode'];}}),Object['defineProperty'](exports,a19_0x31dbd9(0x1ca),{'enumerable':!![],'get':function(){const _0x4b4008=a19_0x31dbd9;return xmlFun_1[_0x4b4008(0x1ca)];}});const aesFun_1=require(a19_0x31dbd9(0x1db));Object[a19_0x31dbd9(0x1b8)](exports,a19_0x31dbd9(0x1c5),{'enumerable':!![],'get':function(){return aesFun_1['aes_encode'];}}),Object[a19_0x31dbd9(0x1b8)](exports,a19_0x31dbd9(0x1c7),{'enumerable':!![],'get':function(){const _0x4d5266=a19_0x31dbd9;return aesFun_1[_0x4d5266(0x1c7)];}});const desFun_1=require(a19_0x31dbd9(0x193));Object[a19_0x31dbd9(0x1b8)](exports,a19_0x31dbd9(0x19c),{'enumerable':!![],'get':function(){const _0x5c148e=a19_0x31dbd9;return desFun_1[_0x5c148e(0x19c)];}}),Object[a19_0x31dbd9(0x1b8)](exports,a19_0x31dbd9(0x18e),{'enumerable':!![],'get':function(){const _0xba649a=a19_0x31dbd9;return desFun_1[_0xba649a(0x18e)];}});const jsonFun_1=require(a19_0x31dbd9(0x1af));Object['defineProperty'](exports,a19_0x31dbd9(0x194),{'enumerable':!![],'get':function(){const _0x356307=a19_0x31dbd9;return jsonFun_1[_0x356307(0x194)];}}),Object[a19_0x31dbd9(0x1b8)](exports,a19_0x31dbd9(0x1d9),{'enumerable':!![],'get':function(){const _0x4f9380=a19_0x31dbd9;return jsonFun_1[_0x4f9380(0x1d9)];}});const base64Fun_1=require(a19_0x31dbd9(0x1d1));Object[a19_0x31dbd9(0x1b8)](exports,a19_0x31dbd9(0x1a0),{'enumerable':!![],'get':function(){const _0x2cccae=a19_0x31dbd9;return base64Fun_1[_0x2cccae(0x1a0)];}}),Object[a19_0x31dbd9(0x1b8)](exports,a19_0x31dbd9(0x18d),{'enumerable':!![],'get':function(){return base64Fun_1['base64_decode'];}});const mathFun_1=require('./helper/mathFun');Object[a19_0x31dbd9(0x1b8)](exports,a19_0x31dbd9(0x1d5),{'enumerable':!![],'get':function(){return mathFun_1['toFixed'];}});var configuration_1=require(a19_0x31dbd9(0x1c9));Object['defineProperty'](exports,a19_0x31dbd9(0x1cc),{'enumerable':!![],'get':function(){return configuration_1['CustomConfiguration'];}});var axios_2=require('axios');Object[a19_0x31dbd9(0x1b8)](exports,'axios',{'enumerable':!![],'get':function(){return axios_2['default'];}}),(global[a19_0x31dbd9(0x195)]=jimp,global['axios']=axios_1[a19_0x31dbd9(0x1a7)],global[a19_0x31dbd9(0x1b3)]=qrcode,global[a19_0x31dbd9(0x1aa)]=path),(global[a19_0x31dbd9(0x196)]=fsplus,global['mathjs']=mathjs,global['lodash']=lodash,global[a19_0x31dbd9(0x1a4)]=global,global[a19_0x31dbd9(0x1d7)]=compressing),(global['hideSensitiveStr']=hideSensitive_1[a19_0x31dbd9(0x19a)],global[a19_0x31dbd9(0x19d)]=hideSensitive_1[a19_0x31dbd9(0x19d)]),(global[a19_0x31dbd9(0x1cb)]=dayjs,global[a19_0x31dbd9(0x1b9)]=sleep_1[a19_0x31dbd9(0x1b9)],global[a19_0x31dbd9(0x1b6)]=common_1[a19_0x31dbd9(0x1b6)],global[a19_0x31dbd9(0x1dd)]=collect_js_1[a19_0x31dbd9(0x1dd)],global[a19_0x31dbd9(0x1b7)]=include_1['include'],global['globDir']=globDir_1['globDir'],global[a19_0x31dbd9(0x1a6)]=image_size_1[a19_0x31dbd9(0x1a6)]),(global['md5']=common_1[a19_0x31dbd9(0x1c8)],global[a19_0x31dbd9(0x197)]=common_1[a19_0x31dbd9(0x197)],global[a19_0x31dbd9(0x1d5)]=mathFun_1[a19_0x31dbd9(0x1d5)],global[a19_0x31dbd9(0x1da)]=fileMd5_1[a19_0x31dbd9(0x1da)],global[a19_0x31dbd9(0x1ac)]=fileMd5_1[a19_0x31dbd9(0x1ac)],global[a19_0x31dbd9(0x1ca)]=xmlFun_1['xml_encode'],global[a19_0x31dbd9(0x1c6)]=xmlFun_1[a19_0x31dbd9(0x1c6)],global['json_encode']=jsonFun_1[a19_0x31dbd9(0x194)],global[a19_0x31dbd9(0x1d9)]=jsonFun_1[a19_0x31dbd9(0x1d9)],global[a19_0x31dbd9(0x1a0)]=base64Fun_1[a19_0x31dbd9(0x1a0)],global[a19_0x31dbd9(0x18d)]=base64Fun_1[a19_0x31dbd9(0x18d)],global[a19_0x31dbd9(0x1c5)]=aesFun_1[a19_0x31dbd9(0x1c5)],global[a19_0x31dbd9(0x1c7)]=aesFun_1[a19_0x31dbd9(0x1c7)]),(global[a19_0x31dbd9(0x1d0)]=AnnEnumMsg_1[a19_0x31dbd9(0x1d0)],global[a19_0x31dbd9(0x1d3)]=AnnEnumMsg_1[a19_0x31dbd9(0x1d3)],global[a19_0x31dbd9(0x1cd)]=AnnEnumMsg_1[a19_0x31dbd9(0x1cd)],global[a19_0x31dbd9(0x19f)]=AnnEnumMsg_1[a19_0x31dbd9(0x19f)],global['getAnnEnumList']=AnnEnumMsg_1['getAnnEnumList'],global[a19_0x31dbd9(0x1bf)]=AnnEnumMsg_1['getAnnEnumArray']),(global[a19_0x31dbd9(0x1b2)]=AroundMiddle_1[a19_0x31dbd9(0x1b2)],global['IAroundMiddle']=AroundMiddle_1[a19_0x31dbd9(0x1b5)]),(global[a19_0x31dbd9(0x1c1)]=AnnErrorMsg_1[a19_0x31dbd9(0x1c1)],global[a19_0x31dbd9(0x1d6)]=AnnErrorMsg_1[a19_0x31dbd9(0x1d6)],global[a19_0x31dbd9(0x1b4)]=AnnErrorMsg_1[a19_0x31dbd9(0x1b4)],global['AnnError']=AnnError_1[a19_0x31dbd9(0x1c4)],global[a19_0x31dbd9(0x192)]=AnnErrorRender_1[a19_0x31dbd9(0x192)]);
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AnnErrorRender = exports.IAroundMiddle = exports.AnnError = exports.getAnnErrorList = exports.getAnnErrorMsg = exports.AnnErrorMsg = exports.getAnnEnumArray = exports.getAnnEnumList = exports.getAnnEnumMap = exports.getAnnEnumMeta = exports.getAnnEnumMsg = exports.AroundMiddle = exports.AnnEnumMsg = exports.hideSensitiveObj = exports.hideSensitiveStr = exports.base64_decode = exports.base64_encode = exports.json_decode = exports.json_encode = exports.des_decode = exports.des_encode = exports.aes_decode = exports.aes_encode = exports.aes_key = exports.xml_encode = exports.xml_decode = exports.imageSize = exports.fileSize = exports.fileMd5 = exports.globDir = exports.include = exports.collect = exports.getType = exports.toFixed = exports.random = exports.sleep = exports.dayjs = exports.md5 = exports.compressing = exports.cryptojs = exports.lodash = exports.mathjs = exports.qrcode = exports.fsplus = exports.jimp = exports.path = exports.axios = exports.Configuration = void 0;
|
|
4
|
+
const axios_1 = require("axios");
|
|
5
|
+
const path = require("path");
|
|
6
|
+
exports.path = path;
|
|
7
|
+
const jimp = require("jimp");
|
|
8
|
+
exports.jimp = jimp;
|
|
9
|
+
const dayjs = require("dayjs");
|
|
10
|
+
exports.dayjs = dayjs;
|
|
11
|
+
const qrcode = require("qrcode");
|
|
12
|
+
exports.qrcode = qrcode;
|
|
13
|
+
const mathjs = require("mathjs");
|
|
14
|
+
exports.mathjs = mathjs;
|
|
15
|
+
const lodash = require("lodash");
|
|
16
|
+
exports.lodash = lodash;
|
|
17
|
+
const fsplus = require("fs-extra");
|
|
18
|
+
exports.fsplus = fsplus;
|
|
19
|
+
const cryptojs = require("crypto-js");
|
|
20
|
+
exports.cryptojs = cryptojs;
|
|
21
|
+
const compressing = require("compressing");
|
|
22
|
+
exports.compressing = compressing;
|
|
23
|
+
const collect_js_1 = require("collect.js");
|
|
24
|
+
Object.defineProperty(exports, "collect", { enumerable: true, get: function () { return collect_js_1.collect; } });
|
|
25
|
+
const image_size_1 = require("image-size");
|
|
26
|
+
Object.defineProperty(exports, "imageSize", { enumerable: true, get: function () { return image_size_1.imageSize; } });
|
|
27
|
+
const sleep_1 = require("./helper/sleep");
|
|
28
|
+
Object.defineProperty(exports, "sleep", { enumerable: true, get: function () { return sleep_1.sleep; } });
|
|
29
|
+
const include_1 = require("./helper/include");
|
|
30
|
+
Object.defineProperty(exports, "include", { enumerable: true, get: function () { return include_1.include; } });
|
|
31
|
+
const globDir_1 = require("./helper/globDir");
|
|
32
|
+
Object.defineProperty(exports, "globDir", { enumerable: true, get: function () { return globDir_1.globDir; } });
|
|
33
|
+
const AnnError_1 = require("./exception/AnnError");
|
|
34
|
+
Object.defineProperty(exports, "AnnError", { enumerable: true, get: function () { return AnnError_1.AnnError; } });
|
|
35
|
+
const fileMd5_1 = require("./helper/fileMd5");
|
|
36
|
+
Object.defineProperty(exports, "fileMd5", { enumerable: true, get: function () { return fileMd5_1.fileMd5; } });
|
|
37
|
+
Object.defineProperty(exports, "fileSize", { enumerable: true, get: function () { return fileMd5_1.fileSize; } });
|
|
38
|
+
const hideSensitive_1 = require("./helper/hideSensitive");
|
|
39
|
+
Object.defineProperty(exports, "hideSensitiveStr", { enumerable: true, get: function () { return hideSensitive_1.hideSensitiveStr; } });
|
|
40
|
+
Object.defineProperty(exports, "hideSensitiveObj", { enumerable: true, get: function () { return hideSensitive_1.hideSensitiveObj; } });
|
|
41
|
+
const AnnErrorRender_1 = require("./exception/AnnErrorRender");
|
|
42
|
+
Object.defineProperty(exports, "AnnErrorRender", { enumerable: true, get: function () { return AnnErrorRender_1.AnnErrorRender; } });
|
|
43
|
+
const AroundMiddle_1 = require("./decorator/AroundMiddle");
|
|
44
|
+
Object.defineProperty(exports, "AroundMiddle", { enumerable: true, get: function () { return AroundMiddle_1.AroundMiddle; } });
|
|
45
|
+
Object.defineProperty(exports, "IAroundMiddle", { enumerable: true, get: function () { return AroundMiddle_1.IAroundMiddle; } });
|
|
46
|
+
const AnnErrorMsg_1 = require("./decorator/AnnErrorMsg");
|
|
47
|
+
Object.defineProperty(exports, "AnnErrorMsg", { enumerable: true, get: function () { return AnnErrorMsg_1.AnnErrorMsg; } });
|
|
48
|
+
Object.defineProperty(exports, "getAnnErrorMsg", { enumerable: true, get: function () { return AnnErrorMsg_1.getAnnErrorMsg; } });
|
|
49
|
+
Object.defineProperty(exports, "getAnnErrorList", { enumerable: true, get: function () { return AnnErrorMsg_1.getAnnErrorList; } });
|
|
50
|
+
const AnnEnumMsg_1 = require("./decorator/AnnEnumMsg");
|
|
51
|
+
Object.defineProperty(exports, "AnnEnumMsg", { enumerable: true, get: function () { return AnnEnumMsg_1.AnnEnumMsg; } });
|
|
52
|
+
Object.defineProperty(exports, "getAnnEnumMsg", { enumerable: true, get: function () { return AnnEnumMsg_1.getAnnEnumMsg; } });
|
|
53
|
+
Object.defineProperty(exports, "getAnnEnumMeta", { enumerable: true, get: function () { return AnnEnumMsg_1.getAnnEnumMeta; } });
|
|
54
|
+
Object.defineProperty(exports, "getAnnEnumMap", { enumerable: true, get: function () { return AnnEnumMsg_1.getAnnEnumMap; } });
|
|
55
|
+
Object.defineProperty(exports, "getAnnEnumList", { enumerable: true, get: function () { return AnnEnumMsg_1.getAnnEnumList; } });
|
|
56
|
+
Object.defineProperty(exports, "getAnnEnumArray", { enumerable: true, get: function () { return AnnEnumMsg_1.getAnnEnumArray; } });
|
|
57
|
+
const common_1 = require("./helper/common");
|
|
58
|
+
Object.defineProperty(exports, "md5", { enumerable: true, get: function () { return common_1.md5; } });
|
|
59
|
+
Object.defineProperty(exports, "random", { enumerable: true, get: function () { return common_1.random; } });
|
|
60
|
+
Object.defineProperty(exports, "getType", { enumerable: true, get: function () { return common_1.getType; } });
|
|
61
|
+
const xmlFun_1 = require("./helper/xmlFun");
|
|
62
|
+
Object.defineProperty(exports, "xml_decode", { enumerable: true, get: function () { return xmlFun_1.xml_decode; } });
|
|
63
|
+
Object.defineProperty(exports, "xml_encode", { enumerable: true, get: function () { return xmlFun_1.xml_encode; } });
|
|
64
|
+
const desFun_1 = require("./helper/desFun");
|
|
65
|
+
Object.defineProperty(exports, "des_encode", { enumerable: true, get: function () { return desFun_1.des_encode; } });
|
|
66
|
+
Object.defineProperty(exports, "des_decode", { enumerable: true, get: function () { return desFun_1.des_decode; } });
|
|
67
|
+
const aesFun_1 = require("./helper/aesFun");
|
|
68
|
+
Object.defineProperty(exports, "aes_encode", { enumerable: true, get: function () { return aesFun_1.aes_encode; } });
|
|
69
|
+
Object.defineProperty(exports, "aes_decode", { enumerable: true, get: function () { return aesFun_1.aes_decode; } });
|
|
70
|
+
Object.defineProperty(exports, "aes_key", { enumerable: true, get: function () { return aesFun_1.aes_key; } });
|
|
71
|
+
const jsonFun_1 = require("./helper/jsonFun");
|
|
72
|
+
Object.defineProperty(exports, "json_encode", { enumerable: true, get: function () { return jsonFun_1.json_encode; } });
|
|
73
|
+
Object.defineProperty(exports, "json_decode", { enumerable: true, get: function () { return jsonFun_1.json_decode; } });
|
|
74
|
+
const base64Fun_1 = require("./helper/base64Fun");
|
|
75
|
+
Object.defineProperty(exports, "base64_encode", { enumerable: true, get: function () { return base64Fun_1.base64_encode; } });
|
|
76
|
+
Object.defineProperty(exports, "base64_decode", { enumerable: true, get: function () { return base64Fun_1.base64_decode; } });
|
|
77
|
+
const mathFun_1 = require("./helper/mathFun");
|
|
78
|
+
Object.defineProperty(exports, "toFixed", { enumerable: true, get: function () { return mathFun_1.toFixed; } });
|
|
79
|
+
var configuration_1 = require("./configuration");
|
|
80
|
+
Object.defineProperty(exports, "Configuration", { enumerable: true, get: function () { return configuration_1.CustomConfiguration; } });
|
|
81
|
+
var axios_2 = require("axios");
|
|
82
|
+
Object.defineProperty(exports, "axios", { enumerable: true, get: function () { return axios_2.default; } });
|
|
83
|
+
global.jimp = jimp, global.axios = axios_1.default, global.qrcode = qrcode, global.path = path;
|
|
84
|
+
global.fsplus = fsplus, global.mathjs = mathjs, global.lodash = lodash, global.cryptojs = global, global.compressing = compressing;
|
|
85
|
+
global.hideSensitiveStr = hideSensitive_1.hideSensitiveStr, global.hideSensitiveObj = hideSensitive_1.hideSensitiveObj;
|
|
86
|
+
global.dayjs = dayjs, global.sleep = sleep_1.sleep, global.random = common_1.random, global.collect = collect_js_1.collect, global.include = include_1.include, global.globDir = globDir_1.globDir, global.imageSize = image_size_1.imageSize;
|
|
87
|
+
global.md5 = common_1.md5, global.getType = common_1.getType, global.toFixed = mathFun_1.toFixed, global.fileMd5 = fileMd5_1.fileMd5, global.fileSize = fileMd5_1.fileSize, global.xml_encode = xmlFun_1.xml_encode, global.xml_decode = xmlFun_1.xml_decode, global.json_encode = jsonFun_1.json_encode, global.json_decode = jsonFun_1.json_decode, global.base64_encode = base64Fun_1.base64_encode, global.base64_decode = base64Fun_1.base64_decode, global.aes_encode = aesFun_1.aes_encode, global.aes_decode = aesFun_1.aes_decode;
|
|
88
|
+
global.AnnEnumMsg = AnnEnumMsg_1.AnnEnumMsg, global.getAnnEnumMsg = AnnEnumMsg_1.getAnnEnumMsg, global.getAnnEnumMeta = AnnEnumMsg_1.getAnnEnumMeta, global.getAnnEnumMap = AnnEnumMsg_1.getAnnEnumMap, global.getAnnEnumList = AnnEnumMsg_1.getAnnEnumList, global.getAnnEnumArray = AnnEnumMsg_1.getAnnEnumArray;
|
|
89
|
+
global.AroundMiddle = AroundMiddle_1.AroundMiddle, global.IAroundMiddle = AroundMiddle_1.IAroundMiddle;
|
|
90
|
+
global.AnnErrorMsg = AnnErrorMsg_1.AnnErrorMsg, global.getAnnErrorMsg = AnnErrorMsg_1.getAnnErrorMsg, global.getAnnErrorList = AnnErrorMsg_1.getAnnErrorList, global.AnnError = AnnError_1.AnnError, global.AnnErrorRender = AnnErrorRender_1.AnnErrorRender;
|
|
91
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEsaUNBQTBCO0FBRTFCLDZCQUE2QjtBQW9DekIsb0JBQUk7QUFuQ1IsNkJBQTZCO0FBb0N6QixvQkFBSTtBQW5DUiwrQkFBK0I7QUE0QzNCLHNCQUFLO0FBM0NULGlDQUFpQztBQW9DN0Isd0JBQU07QUFuQ1Y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lCQUFhLEVBQUUsTUFBTSxDQUFDLFVBQVUsR0FBRyxtQkFBVSxFQUFFLE1BQU0sQ0FBQyxVQUFVLEdBQUcsbUJBQVUsQ0FBQztBQUMzWSxNQUFNLENBQUMsVUFBVSxHQUFHLHVCQUFVLEVBQUUsTUFBTSxDQUFDLGFBQWEsR0FBRywwQkFBYSxFQUFFLE1BQU0sQ0FBQyxjQUFjLEdBQUcsMkJBQWMsRUFBRSxNQUFNLENBQUMsYUFBYSxHQUFHLDBCQUFhLEVBQUUsTUFBTSxDQUFDLGNBQWMsR0FBRywyQkFBYyxFQUFFLE1BQU0sQ0FBQyxlQUFlLEdBQUcsNEJBQWUsQ0FBQztBQUVyTyxNQUFNLENBQUMsWUFBWSxHQUFHLDJCQUFZLEVBQUUsTUFBTSxDQUFDLGFBQWEsR0FBRyw0QkFBYSxDQUFDO0FBQ3pFLE1BQU0sQ0FBQyxXQUFXLEdBQUcseUJBQVcsRUFBRSxNQUFNLENBQUMsY0FBYyxHQUFHLDRCQUFjLEVBQUUsTUFBTSxDQUFDLGVBQWUsR0FBRyw2QkFBZSxFQUFFLE1BQU0sQ0FBQyxRQUFRLEdBQUcsbUJBQVEsRUFBRSxNQUFNLENBQUMsY0FBYyxHQUFHLCtCQUFjLENBQUMifQ==
|
package/index.d.ts
CHANGED
|
@@ -64,8 +64,11 @@ declare global { // 全局变量设置
|
|
|
64
64
|
export function json_decode(value: string): any;
|
|
65
65
|
export function xml_decode(xmlStr: string, option?: xml2js.ParserOptions): Promise<{ [key: string]: any; }>;
|
|
66
66
|
export function xml_encode(xmlData: { [key: string]: any; }, option?: xml2js.BuilderOptions): string;
|
|
67
|
+
|
|
68
|
+
export function aes_key(secret: string, secretLen?: 16 | 24 | 32): string;
|
|
67
69
|
export function aes_encode(secret: string, content: string, cfg?: { [key: string]: any }): string;
|
|
68
70
|
export function aes_decode(secret: string, encryptStr: string, cfg?: { [key: string]: any }): string;
|
|
71
|
+
|
|
69
72
|
export function des_encode(secret: string, content: string, cfg?: { [key: string]: any }): string;
|
|
70
73
|
export function des_decode(secret: string, encryptStr: string, cfg?: { [key: string]: any }): string;
|
|
71
74
|
export function toFixed(value: number | string, decimal?: number, process?: 'ceil' | 'floor' | 'round'): number;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anncic-api/core",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.5.0",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"typings": "index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -43,5 +43,5 @@
|
|
|
43
43
|
"javascript-obfuscator": "^4.0.2",
|
|
44
44
|
"typescript": "^5.5.4"
|
|
45
45
|
},
|
|
46
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "1fa97a31236b361c663e69fa27b5ef9dcd78a121"
|
|
47
47
|
}
|