@anncic-api/core 1.0.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.d.ts +9 -0
- package/dist/config/config.default.js +1 -0
- package/dist/configuration.d.ts +6 -0
- package/dist/configuration.js +1 -0
- package/dist/decorator/AnnEnumMsg.d.ts +7 -0
- package/dist/decorator/AnnEnumMsg.js +1 -0
- package/dist/decorator/AnnErrorMsg.d.ts +5 -0
- package/dist/decorator/AnnErrorMsg.js +1 -0
- package/dist/exception/AnnError.d.ts +13 -0
- package/dist/exception/AnnError.js +1 -0
- package/dist/exception/AnnErrorRender.d.ts +7 -0
- package/dist/exception/AnnErrorRender.js +1 -0
- package/dist/exceptions/AnnError.d.ts +12 -0
- package/dist/exceptions/AnnError.js +1 -0
- package/dist/exceptions/AnnErrorRender.d.ts +7 -0
- package/dist/exceptions/AnnErrorRender.js +1 -0
- package/dist/helper/globDir.d.ts +8 -0
- package/dist/helper/globDir.js +1 -0
- package/dist/helper/include.d.ts +3 -0
- package/dist/helper/include.js +1 -0
- package/dist/helper/sleep.d.ts +1 -0
- package/dist/helper/sleep.js +1 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.js +1 -0
- package/index.d.ts +65 -0
- package/package.json +45 -0
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
export declare function globDir(directory?: string, useSubdirectories?: boolean, regExp?: RegExp, readFile?: {
|
|
3
|
+
encoding: BufferEncoding;
|
|
4
|
+
flag?: string | undefined;
|
|
5
|
+
} | BufferEncoding): {
|
|
6
|
+
(moduleId: any): any;
|
|
7
|
+
keys(): any[];
|
|
8
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';const a8_0x87a53b=a8_0x151b;(function(_0x1ead13,_0x31e9a6){const _0x1f5d4e=a8_0x151b,_0x5bf6b6=_0x1ead13();while(!![]){try{const _0x5648db=-parseInt(_0x1f5d4e(0x154))/0x1*(-parseInt(_0x1f5d4e(0x14c))/0x2)+-parseInt(_0x1f5d4e(0x147))/0x3+parseInt(_0x1f5d4e(0x142))/0x4*(-parseInt(_0x1f5d4e(0x159))/0x5)+-parseInt(_0x1f5d4e(0x157))/0x6*(parseInt(_0x1f5d4e(0x15a))/0x7)+parseInt(_0x1f5d4e(0x152))/0x8*(parseInt(_0x1f5d4e(0x15b))/0x9)+-parseInt(_0x1f5d4e(0x14a))/0xa+parseInt(_0x1f5d4e(0x14d))/0xb*(parseInt(_0x1f5d4e(0x141))/0xc);if(_0x5648db===_0x31e9a6)break;else _0x5bf6b6['push'](_0x5bf6b6['shift']());}catch(_0x2897cf){_0x5bf6b6['push'](_0x5bf6b6['shift']());}}}(a8_0x516d,0xd91f4));function a8_0x516d(){const _0x395b5b=['2336268wyReyZ','3419912cnbByd','push','filename','directory','regExp','4802016BXwfKk','forEach','__findModules','15537780FZPZVw','readFileSync','106PPLAuT','242NMGdaH','normalize','resolve','existsSync','modules','8cCfesv','join','12781BhzGwz','dir','globDir','77442ZBquok','parse','10fjzpBt','287vmoBCo','11901366NtuYKm','path','Can\x27t\x20Found\x20Module\x20','test','defineProperty','keys','isDirectory','useSubdirectories','parent'];a8_0x516d=function(){return _0x395b5b;};return a8_0x516d();}function a8_0x151b(_0x308e68,_0x1757c6){const _0x516dce=a8_0x516d();return a8_0x151b=function(_0x151b89,_0x57a816){_0x151b89=_0x151b89-0x141;let _0x3a0467=_0x516dce[_0x151b89];return _0x3a0467;},a8_0x151b(_0x308e68,_0x1757c6);}Object[a8_0x87a53b(0x15f)](exports,'__esModule',{'value':!![]}),exports[a8_0x87a53b(0x156)]=void 0x0;const fs=require('fs'),path=require(a8_0x87a53b(0x15c));class RequireContext{constructor(_0x57ac44,_0x274bd3,_0x52dafc){const _0x56c744=a8_0x87a53b;this[_0x56c744(0x151)]=[],this['regExp']=_0x52dafc,this[_0x56c744(0x162)]=!!_0x274bd3,this[_0x56c744(0x145)]=this['__findDirectory'](_0x57ac44),this[_0x56c744(0x149)](this[_0x56c744(0x145)]);}['__findDirectory'](_0x13ecb2){const _0x40d660=a8_0x87a53b;if(path['isAbsolute'](_0x13ecb2)||!module[_0x40d660(0x163)])return _0x13ecb2;return path[_0x40d660(0x14e)](path[_0x40d660(0x153)](path[_0x40d660(0x158)](module['parent'][_0x40d660(0x144)])[_0x40d660(0x155)],_0x13ecb2));}[a8_0x87a53b(0x149)](_0xa54515){const _0x1b7c7a=a8_0x87a53b;if(fs[_0x1b7c7a(0x150)](_0xa54515))fs['readdirSync'](_0xa54515)[_0x1b7c7a(0x148)](_0x34c0c8=>{const _0x12139a=_0x1b7c7a,_0x587c51=path[_0x12139a(0x14f)](_0xa54515,_0x34c0c8);if(fs['statSync'](_0x587c51)[_0x12139a(0x161)]()){if(this[_0x12139a(0x162)]){this[_0x12139a(0x149)](_0x587c51);return;}}else{if(this['regExp']&&!this[_0x12139a(0x146)][_0x12139a(0x15e)](_0x587c51))return;this['modules'][_0x12139a(0x143)](_0x587c51);}});else throw new Error(_0x1b7c7a(0x15d)+_0xa54515);}}function globDir(_0x537e14='.',_0x6149d8=![],_0xe2fbc0=/(?:)/,_0x9e41cb){const _0x5396bd=a8_0x87a53b,_0x469330=new RequireContext(_0x537e14,_0x6149d8,_0xe2fbc0);if(_0x9e41cb){const _0x54e182=_0x552613=>fs[_0x5396bd(0x14b)](_0x552613,_0x9e41cb);return _0x54e182[_0x5396bd(0x160)]=()=>[..._0x469330[_0x5396bd(0x151)]],_0x54e182;}else{const _0x4dc62f=_0x1fa156=>require(_0x1fa156);return _0x4dc62f[_0x5396bd(0x160)]=()=>[..._0x469330[_0x5396bd(0x151)]],_0x4dc62f;}}exports[a8_0x87a53b(0x156)]=globDir;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';function a9_0x17a0(_0x4269cc,_0xe9ee4f){const _0x3a5cf6=a9_0x3a5c();return a9_0x17a0=function(_0x17a0a6,_0x481d8e){_0x17a0a6=_0x17a0a6-0x1b7;let _0x570eb6=_0x3a5cf6[_0x17a0a6];return _0x570eb6;},a9_0x17a0(_0x4269cc,_0xe9ee4f);}const a9_0x2dadb9=a9_0x17a0;(function(_0x5e22cf,_0x3374b7){const _0x17d122=a9_0x17a0,_0x102580=_0x5e22cf();while(!![]){try{const _0x2083d5=-parseInt(_0x17d122(0x1c4))/0x1*(-parseInt(_0x17d122(0x1c1))/0x2)+parseInt(_0x17d122(0x1bc))/0x3+-parseInt(_0x17d122(0x1c0))/0x4+parseInt(_0x17d122(0x1ba))/0x5+parseInt(_0x17d122(0x1b8))/0x6+-parseInt(_0x17d122(0x1bd))/0x7+-parseInt(_0x17d122(0x1b9))/0x8;if(_0x2083d5===_0x3374b7)break;else _0x102580['push'](_0x102580['shift']());}catch(_0x5c8baf){_0x102580['push'](_0x102580['shift']());}}}(a9_0x3a5c,0xb1dde));function a9_0x3a5c(){const _0xf6ce31=['5776380ScQRea','defaultsDeep','2897613DHawVI','4287899FPVIAt','__esModule','jiti','5119248TfUBsf','109042FgMcZR','include','get','2KNDlHF','default','lodash','3752652GfhHZi','1877760LyPsGi'];a9_0x3a5c=function(){return _0xf6ce31;};return a9_0x3a5c();}Object['defineProperty'](exports,a9_0x2dadb9(0x1be),{'value':!![]}),exports[a9_0x2dadb9(0x1c2)]=void 0x0;const jiti=require(a9_0x2dadb9(0x1bf)),lodash_1=require(a9_0x2dadb9(0x1b7));function include(_0x8f5777){const _0x33b7ad=a9_0x2dadb9,_0x441a84={},_0x1eea18=jiti()(_0x8f5777);for(let _0x4f1be0 in _0x1eea18){_0x4f1be0!='default'&&(0x0,lodash_1[_0x33b7ad(0x1bb)])(_0x441a84,{[_0x4f1be0]:_0x1eea18[_0x4f1be0]});}return(0x0,lodash_1[_0x33b7ad(0x1bb)])(_0x441a84,(0x0,lodash_1[_0x33b7ad(0x1c3)])(_0x1eea18,_0x33b7ad(0x1c5),{}));}exports['include']=include;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function sleep(time?: number): Promise<void>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';function a10_0x44fd(_0x232ead,_0x4cfb80){var _0x14666b=a10_0x1466();return a10_0x44fd=function(_0x44fd1f,_0x53ff62){_0x44fd1f=_0x44fd1f-0x179;var _0x3cedf7=_0x14666b[_0x44fd1f];return _0x3cedf7;},a10_0x44fd(_0x232ead,_0x4cfb80);}var a10_0x106382=a10_0x44fd;(function(_0x4c97dd,_0xd9691d){var _0x37344d=a10_0x44fd,_0x386705=_0x4c97dd();while(!![]){try{var _0x2d78cc=-parseInt(_0x37344d(0x179))/0x1*(parseInt(_0x37344d(0x17d))/0x2)+parseInt(_0x37344d(0x17b))/0x3+-parseInt(_0x37344d(0x17c))/0x4*(-parseInt(_0x37344d(0x180))/0x5)+parseInt(_0x37344d(0x182))/0x6+parseInt(_0x37344d(0x17a))/0x7+parseInt(_0x37344d(0x17f))/0x8*(-parseInt(_0x37344d(0x17e))/0x9)+parseInt(_0x37344d(0x181))/0xa;if(_0x2d78cc===_0xd9691d)break;else _0x386705['push'](_0x386705['shift']());}catch(_0x3ee1ff){_0x386705['push'](_0x386705['shift']());}}}(a10_0x1466,0x37001));Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a10_0x106382(0x183)]=void 0x0;function sleep(_0x59ec9d=0xc8){return new Promise(_0x5325d1=>setTimeout(_0x5325d1,_0x59ec9d));}exports[a10_0x106382(0x183)]=sleep;function a10_0x1466(){var _0x2df714=['451644ZbtJMd','20864MsTOwF','254wpIVMV','9MyfwxY','3239112HsiTyI','380nswBxF','1077130ncpCBO','363930SUtyPm','sleep','893tawEKb','197743TvJXDC'];a10_0x1466=function(){return _0x2df714;};return a10_0x1466();}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as dayjs from 'dayjs';
|
|
2
|
+
import * as urllib from 'urllib';
|
|
3
|
+
import * as mathjs from 'mathjs';
|
|
4
|
+
import * as lodash from 'lodash';
|
|
5
|
+
import { collect } from 'collect.js';
|
|
6
|
+
import { sleep } from './helper/sleep';
|
|
7
|
+
import { include } from './helper/include';
|
|
8
|
+
import { globDir } from './helper/globDir';
|
|
9
|
+
import { AnnError } from './exception/AnnError';
|
|
10
|
+
import { AnnErrorRender } from './exception/AnnErrorRender';
|
|
11
|
+
import { AnnErrorMsg, getAnnErrorMsg, getAnnErrorList } from './decorator/AnnErrorMsg';
|
|
12
|
+
import { AnnEnumMsg, getAnnEnumMsg, getAnnEnumList, getAnnEnumArray } from './decorator/AnnEnumMsg';
|
|
13
|
+
export { CustomConfiguration as Configuration } from './configuration';
|
|
14
|
+
export { urllib, mathjs, lodash, dayjs, sleep, collect, include, globDir, AnnEnumMsg, getAnnEnumMsg, getAnnEnumList, getAnnEnumArray, AnnErrorMsg, getAnnErrorMsg, getAnnErrorList, AnnError, AnnErrorRender, };
|
package/dist/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';const a11_0x53552d=a11_0x4797;(function(_0xa2c81c,_0x25d360){const _0x515b2e=a11_0x4797,_0x26eea9=_0xa2c81c();while(!![]){try{const _0xfbcec0=parseInt(_0x515b2e(0x1bf))/0x1*(parseInt(_0x515b2e(0x1b5))/0x2)+-parseInt(_0x515b2e(0x1b7))/0x3+parseInt(_0x515b2e(0x1bb))/0x4*(parseInt(_0x515b2e(0x1c2))/0x5)+parseInt(_0x515b2e(0x1b6))/0x6*(parseInt(_0x515b2e(0x1be))/0x7)+-parseInt(_0x515b2e(0x1b1))/0x8+-parseInt(_0x515b2e(0x1c6))/0x9+-parseInt(_0x515b2e(0x1bc))/0xa;if(_0xfbcec0===_0x25d360)break;else _0x26eea9['push'](_0x26eea9['shift']());}catch(_0x54a407){_0x26eea9['push'](_0x26eea9['shift']());}}}(a11_0x13d4,0x2747d));Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a11_0x53552d(0x1b9)]=exports[a11_0x53552d(0x1ba)]=exports['getAnnErrorList']=exports[a11_0x53552d(0x1cb)]=exports[a11_0x53552d(0x1c3)]=exports[a11_0x53552d(0x1c5)]=exports[a11_0x53552d(0x1b2)]=exports[a11_0x53552d(0x1ad)]=exports[a11_0x53552d(0x1aa)]=exports[a11_0x53552d(0x1b3)]=exports[a11_0x53552d(0x1ae)]=exports['collect']=exports[a11_0x53552d(0x1c9)]=exports['dayjs']=exports[a11_0x53552d(0x1bd)]=exports[a11_0x53552d(0x1c4)]=exports[a11_0x53552d(0x1cc)]=exports[a11_0x53552d(0x1af)]=void 0x0;const dayjs=require(a11_0x53552d(0x1b0));exports[a11_0x53552d(0x1b0)]=dayjs;const urllib=require(a11_0x53552d(0x1cc));exports[a11_0x53552d(0x1cc)]=urllib;function a11_0x4797(_0x3be4ee,_0x145307){const _0x13d4ea=a11_0x13d4();return a11_0x4797=function(_0x4797f7,_0x151248){_0x4797f7=_0x4797f7-0x1aa;let _0x5bf5d3=_0x13d4ea[_0x4797f7];return _0x5bf5d3;},a11_0x4797(_0x3be4ee,_0x145307);}const mathjs=require('mathjs');exports[a11_0x53552d(0x1c4)]=mathjs;function a11_0x13d4(){const _0x247fb6=['2123149fWvDtw','2603ZpXTLg','./decorator/AnnEnumMsg','./helper/include','5gOwoSp','AnnErrorMsg','mathjs','getAnnEnumArray','1748817YfNqTR','getAnnErrorList','collect.js','sleep','./decorator/AnnErrorMsg','getAnnErrorMsg','urllib','AnnEnumMsg','./exception/AnnErrorRender','collect','getAnnEnumMsg','include','Configuration','dayjs','32160FNjVPw','getAnnEnumList','globDir','./configuration','164UwDjsa','6gsefRo','928410wHubcB','defineProperty','AnnErrorRender','AnnError','828028auJBTU','550640mgMUVv','lodash'];a11_0x13d4=function(){return _0x247fb6;};return a11_0x13d4();}const lodash=require('lodash');exports[a11_0x53552d(0x1bd)]=lodash;const collect_js_1=require(a11_0x53552d(0x1c8));Object['defineProperty'](exports,a11_0x53552d(0x1ac),{'enumerable':!![],'get':function(){const _0x4f5bc5=a11_0x53552d;return collect_js_1[_0x4f5bc5(0x1ac)];}});const sleep_1=require('./helper/sleep');Object[a11_0x53552d(0x1b8)](exports,a11_0x53552d(0x1c9),{'enumerable':!![],'get':function(){return sleep_1['sleep'];}});const include_1=require(a11_0x53552d(0x1c1));Object[a11_0x53552d(0x1b8)](exports,a11_0x53552d(0x1ae),{'enumerable':!![],'get':function(){const _0x1b952a=a11_0x53552d;return include_1[_0x1b952a(0x1ae)];}});const globDir_1=require('./helper/globDir');Object[a11_0x53552d(0x1b8)](exports,a11_0x53552d(0x1b3),{'enumerable':!![],'get':function(){const _0x3185f3=a11_0x53552d;return globDir_1[_0x3185f3(0x1b3)];}});const AnnError_1=require('./exception/AnnError');Object['defineProperty'](exports,a11_0x53552d(0x1ba),{'enumerable':!![],'get':function(){return AnnError_1['AnnError'];}});const AnnErrorRender_1=require(a11_0x53552d(0x1ab));Object[a11_0x53552d(0x1b8)](exports,a11_0x53552d(0x1b9),{'enumerable':!![],'get':function(){const _0x36fbe3=a11_0x53552d;return AnnErrorRender_1[_0x36fbe3(0x1b9)];}});const AnnErrorMsg_1=require(a11_0x53552d(0x1ca));Object[a11_0x53552d(0x1b8)](exports,a11_0x53552d(0x1c3),{'enumerable':!![],'get':function(){const _0x1ac9b1=a11_0x53552d;return AnnErrorMsg_1[_0x1ac9b1(0x1c3)];}}),Object[a11_0x53552d(0x1b8)](exports,a11_0x53552d(0x1cb),{'enumerable':!![],'get':function(){const _0x53757c=a11_0x53552d;return AnnErrorMsg_1[_0x53757c(0x1cb)];}}),Object[a11_0x53552d(0x1b8)](exports,a11_0x53552d(0x1c7),{'enumerable':!![],'get':function(){const _0x4652af=a11_0x53552d;return AnnErrorMsg_1[_0x4652af(0x1c7)];}});const AnnEnumMsg_1=require(a11_0x53552d(0x1c0));Object[a11_0x53552d(0x1b8)](exports,a11_0x53552d(0x1aa),{'enumerable':!![],'get':function(){const _0x5c512a=a11_0x53552d;return AnnEnumMsg_1[_0x5c512a(0x1aa)];}}),Object[a11_0x53552d(0x1b8)](exports,a11_0x53552d(0x1ad),{'enumerable':!![],'get':function(){return AnnEnumMsg_1['getAnnEnumMsg'];}}),Object[a11_0x53552d(0x1b8)](exports,a11_0x53552d(0x1b2),{'enumerable':!![],'get':function(){return AnnEnumMsg_1['getAnnEnumList'];}}),Object[a11_0x53552d(0x1b8)](exports,a11_0x53552d(0x1c5),{'enumerable':!![],'get':function(){const _0x662dc0=a11_0x53552d;return AnnEnumMsg_1[_0x662dc0(0x1c5)];}});var configuration_1=require(a11_0x53552d(0x1b4));Object[a11_0x53552d(0x1b8)](exports,a11_0x53552d(0x1af),{'enumerable':!![],'get':function(){return configuration_1['CustomConfiguration'];}}),(global[a11_0x53552d(0x1cc)]=urllib,global['mathjs']=mathjs,global[a11_0x53552d(0x1bd)]=lodash),(global[a11_0x53552d(0x1b0)]=dayjs,global[a11_0x53552d(0x1c9)]=sleep_1[a11_0x53552d(0x1c9)],global[a11_0x53552d(0x1ac)]=collect_js_1['collect'],global[a11_0x53552d(0x1ae)]=include_1[a11_0x53552d(0x1ae)],global[a11_0x53552d(0x1b3)]=globDir_1[a11_0x53552d(0x1b3)]),(global['AnnEnumMsg']=AnnEnumMsg_1[a11_0x53552d(0x1aa)],global[a11_0x53552d(0x1ad)]=AnnEnumMsg_1[a11_0x53552d(0x1ad)],global[a11_0x53552d(0x1b2)]=AnnEnumMsg_1[a11_0x53552d(0x1b2)],global[a11_0x53552d(0x1c5)]=AnnEnumMsg_1[a11_0x53552d(0x1c5)]),(global[a11_0x53552d(0x1c3)]=AnnErrorMsg_1[a11_0x53552d(0x1c3)],global['getAnnErrorMsg']=AnnErrorMsg_1[a11_0x53552d(0x1cb)],global[a11_0x53552d(0x1c7)]=AnnErrorMsg_1[a11_0x53552d(0x1c7)],global[a11_0x53552d(0x1ba)]=AnnError_1[a11_0x53552d(0x1ba)],global[a11_0x53552d(0x1b9)]=AnnErrorRender_1['AnnErrorRender']);
|
package/index.d.ts
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
|
|
3
|
+
export * from './dist/index';
|
|
4
|
+
import * as dayjs from 'dayjs';
|
|
5
|
+
import * as lodash from 'lodash';
|
|
6
|
+
import * as urllib from 'urllib';
|
|
7
|
+
import * as mathjs from 'mathjs';
|
|
8
|
+
import { collect } from 'collect.js';
|
|
9
|
+
|
|
10
|
+
declare global { // 全局变量设置
|
|
11
|
+
// @ts-ignore
|
|
12
|
+
export { collect } from 'collect.js';
|
|
13
|
+
|
|
14
|
+
// @ts-ignore
|
|
15
|
+
export * as dayjs from 'dayjs';
|
|
16
|
+
// @ts-ignore
|
|
17
|
+
export * as urllib from 'urllib';
|
|
18
|
+
// @ts-ignore
|
|
19
|
+
export * as mathjs from 'mathjs';
|
|
20
|
+
// @ts-ignore
|
|
21
|
+
export * as lodash from 'lodash';
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
export function sleep(time?: number): Promise<void>;
|
|
25
|
+
export function include(path: string): {
|
|
26
|
+
[key: string]: any;
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
export function globDir(directory?: string, useSubdirectories?: boolean, regExp?: RegExp, readFile?: { encoding: BufferEncoding; flag?: string | undefined; } | BufferEncoding): {
|
|
30
|
+
(moduleId: any): any;
|
|
31
|
+
keys(): any[];
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
export function AnnEnumMsg(message: string, type?: string): PropertyDecorator;
|
|
35
|
+
export function getAnnEnumMsg(target: any, code: number, type?: string): string;
|
|
36
|
+
export function getAnnEnumArray(target: any, filters?: number[], type?: string): number[];
|
|
37
|
+
export function getAnnEnumList(target: any, type?: string): {
|
|
38
|
+
[key: number]: string;
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
export function AnnErrorMsg(message: string): PropertyDecorator;
|
|
42
|
+
export function getAnnErrorMsg(code: number): string;
|
|
43
|
+
export function getAnnErrorList(): {
|
|
44
|
+
[key: number]: string;
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
export class AnnError extends Error {
|
|
48
|
+
readonly code: number;
|
|
49
|
+
readonly result: {[key: string]: any;};
|
|
50
|
+
static readonly UNKNOW = 100000;
|
|
51
|
+
static readonly PARAMS = 102000;
|
|
52
|
+
static readonly NOFIND = 103000;
|
|
53
|
+
static readonly NOAUTH = 104000;
|
|
54
|
+
constructor(code: number, result?: {
|
|
55
|
+
[key: string]: any;
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export class AnnErrorRender extends AnnError {
|
|
60
|
+
constructor(code: number, result?: {
|
|
61
|
+
[key: string]: any;
|
|
62
|
+
});
|
|
63
|
+
render(ctx: any, app: any): Promise<void>;
|
|
64
|
+
}
|
|
65
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@anncic-api/core",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"main": "./dist/index.js",
|
|
5
|
+
"typings": "index.d.ts",
|
|
6
|
+
"files": [
|
|
7
|
+
"dist",
|
|
8
|
+
"index.d.ts"
|
|
9
|
+
],
|
|
10
|
+
"license": "MIT",
|
|
11
|
+
"publishConfig": {
|
|
12
|
+
"access": "public"
|
|
13
|
+
},
|
|
14
|
+
"scripts": {
|
|
15
|
+
"build2": "tsc",
|
|
16
|
+
"build": "tsc && javascript-obfuscator ./dist --output ./dist --config obfuscator.json"
|
|
17
|
+
},
|
|
18
|
+
"dependencies": {
|
|
19
|
+
"@midwayjs/bootstrap": "^3.4.9",
|
|
20
|
+
"@midwayjs/core": "^3.4.9",
|
|
21
|
+
"@midwayjs/decorator": "^3.4.4",
|
|
22
|
+
"@midwayjs/mock": "^3.4.9",
|
|
23
|
+
"@types/crypto-js": "^4.1.1",
|
|
24
|
+
"@types/fs-extra": "^9.0.13",
|
|
25
|
+
"@types/lodash": "^4.14.182",
|
|
26
|
+
"@types/node": "^18.6.5",
|
|
27
|
+
"collect.js": "^4.34.3",
|
|
28
|
+
"cross-env": "^7.0.3",
|
|
29
|
+
"crypto-js": "^4.1.1",
|
|
30
|
+
"dayjs": "^1.11.4",
|
|
31
|
+
"fs-extra": "^10.1.0",
|
|
32
|
+
"jiti": "^1.14.0",
|
|
33
|
+
"lodash": "^4.17.21",
|
|
34
|
+
"mathjs": "^11.0.1",
|
|
35
|
+
"mwts": "^1.3.0",
|
|
36
|
+
"typescript": "^4.7.4",
|
|
37
|
+
"urllib": "^3.1.0"
|
|
38
|
+
},
|
|
39
|
+
"devDependencies": {
|
|
40
|
+
"@types/node": "^18.6.5",
|
|
41
|
+
"javascript-obfuscator": "2.19.0",
|
|
42
|
+
"typescript": "^4.7.4"
|
|
43
|
+
},
|
|
44
|
+
"gitHead": "7ff678034cf770526c4bb8b6694e56ead6d7f6b2"
|
|
45
|
+
}
|