ag-common 0.0.208 → 0.0.211
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.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare type TLogType = 'TRACE' | 'DEBUG' | 'INFO' | 'WARN' | 'ERROR' | 'FATAL';
|
|
2
2
|
export declare const GetLogLevel: (l: TLogType) => number;
|
|
3
|
-
export declare const SetLogLevel: (l:
|
|
3
|
+
export declare const SetLogLevel: (l: TLogType) => void;
|
|
4
4
|
export declare const debug: (...args: unknown[]) => void;
|
|
5
5
|
export declare const info: (...args: unknown[]) => void;
|
|
6
6
|
export declare const warn: (...args: unknown[]) => void;
|
|
@@ -14,7 +14,7 @@ const SetLogLevel = (l) => {
|
|
|
14
14
|
userLogLevel = lu;
|
|
15
15
|
};
|
|
16
16
|
exports.SetLogLevel = SetLogLevel;
|
|
17
|
-
(0, exports.SetLogLevel)(process.env.LOG_LEVEL
|
|
17
|
+
(0, exports.SetLogLevel)(process.env.LOG_LEVEL);
|
|
18
18
|
function logprocess(type, args) {
|
|
19
19
|
const min = (0, exports.GetLogLevel)(userLogLevel);
|
|
20
20
|
const typesLogLevel = (0, exports.GetLogLevel)(type);
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./Dialog"), exports);
|
|
18
|
+
__exportStar(require("./Modal"), exports);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ag-common",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.211",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"types": "./dist/index.d.ts",
|
|
6
6
|
"author": "Andrei Gec <@andreigec> (https://gec.dev/)",
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
"packageManager": "yarn@3.2.0",
|
|
10
10
|
"scripts": {
|
|
11
11
|
"format": "npx eslint --ext .ts,.tsx ./src --fix",
|
|
12
|
-
"build": "rimraf dist && yarn
|
|
13
|
-
"
|
|
12
|
+
"build": "rimraf dist && yarn lint && tsc && rimraf dist/story",
|
|
13
|
+
"lint": "npx eslint --ext .ts,.tsx ./src",
|
|
14
14
|
"start": "cross-env BROWSER=none start-storybook -p 6006",
|
|
15
15
|
"build-storybook": "build-storybook -o docs --quiet"
|
|
16
16
|
},
|
|
@@ -30,26 +30,26 @@
|
|
|
30
30
|
"typescript": "4.x"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@babel/core": "
|
|
34
|
-
"@mdx-js/react": "
|
|
35
|
-
"@storybook/addon-actions": "
|
|
36
|
-
"@storybook/addon-docs": "
|
|
37
|
-
"@storybook/addon-essentials": "
|
|
38
|
-
"@storybook/addon-interactions": "
|
|
39
|
-
"@storybook/addon-links": "
|
|
40
|
-
"@storybook/react": "
|
|
41
|
-
"@storybook/testing-library": "
|
|
33
|
+
"@babel/core": "7.17.8",
|
|
34
|
+
"@mdx-js/react": "1.6.22",
|
|
35
|
+
"@storybook/addon-actions": "6.4.20",
|
|
36
|
+
"@storybook/addon-docs": "6.4.20",
|
|
37
|
+
"@storybook/addon-essentials": "6.4.20",
|
|
38
|
+
"@storybook/addon-interactions": "6.4.20",
|
|
39
|
+
"@storybook/addon-links": "6.4.20",
|
|
40
|
+
"@storybook/react": "6.4.20",
|
|
41
|
+
"@storybook/testing-library": "0.0.9",
|
|
42
42
|
"@types/jsonwebtoken": "8.5.8",
|
|
43
43
|
"@types/node": "17.0.23",
|
|
44
44
|
"@types/react": "17.0.43",
|
|
45
45
|
"@types/react-dom": "17.0.14",
|
|
46
46
|
"@types/styled-components": "5.1.24",
|
|
47
|
-
"@typescript-eslint/eslint-plugin": "5.
|
|
48
|
-
"@typescript-eslint/parser": "5.
|
|
49
|
-
"babel-loader": "
|
|
47
|
+
"@typescript-eslint/eslint-plugin": "5.18.0",
|
|
48
|
+
"@typescript-eslint/parser": "5.18.0",
|
|
49
|
+
"babel-loader": "8.2.4",
|
|
50
50
|
"cross-env": "7.0.3",
|
|
51
51
|
"eslint": "8.12.0",
|
|
52
|
-
"eslint-config-airbnb-typescript": "16.
|
|
52
|
+
"eslint-config-airbnb-typescript": "16.2.0",
|
|
53
53
|
"eslint-config-prettier": "8.5.0",
|
|
54
54
|
"eslint-config-react-app": "7.0.0",
|
|
55
55
|
"eslint-plugin-import": "2.25.4",
|
|
@@ -57,9 +57,9 @@
|
|
|
57
57
|
"eslint-plugin-prettier": "4.0.0",
|
|
58
58
|
"eslint-plugin-react": "7.29.4",
|
|
59
59
|
"eslint-plugin-react-hooks": "4.4.0",
|
|
60
|
-
"prettier": "2.6.
|
|
60
|
+
"prettier": "2.6.2",
|
|
61
61
|
"rimraf": "3.0.2",
|
|
62
|
-
"storybook": "
|
|
62
|
+
"storybook": "6.4.20",
|
|
63
63
|
"typescript-styled-plugin": "0.18.2"
|
|
64
64
|
},
|
|
65
65
|
"files": [
|