@inyur/console-warn-once 1.0.1 → 1.0.101
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/package.json +12 -9
- package/.eslintrc.cjs +0 -24
- package/.gitlab-ci.yml +0 -11
- package/.prettierrc +0 -12
- package/.renovaterc.json5 +0 -6
- package/fixup.sh +0 -11
- package/src/console-warn-once.ts +0 -17
- package/src/index.ts +0 -2
- package/tsconfig.cjs.json +0 -8
- package/tsconfig.json +0 -28
- package/tsconfig.mjs.json +0 -8
- package/tsconfig.types.json +0 -8
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inyur/console-warn-once",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.101",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./dist/cjs/index.js",
|
|
6
6
|
"module": "./dist/mjs/index.js",
|
|
@@ -20,20 +20,23 @@
|
|
|
20
20
|
"author": "",
|
|
21
21
|
"license": "ISC",
|
|
22
22
|
"devDependencies": {
|
|
23
|
+
"@eslint/js": "^9.38.0",
|
|
23
24
|
"@types/lodash": "^4.17.16",
|
|
24
25
|
"@types/node": "^20.17.46",
|
|
25
26
|
"@types/web": "^0.0.233",
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"eslint": "^
|
|
29
|
-
"eslint-
|
|
30
|
-
"eslint-plugin-prettier": "^5.4.0",
|
|
31
|
-
"nestjs-i18n": "^10.5.1",
|
|
27
|
+
"eslint": "^9.38.0",
|
|
28
|
+
"eslint-import-resolver-typescript": "^4.4.4",
|
|
29
|
+
"eslint-plugin-import": "^2.32.0",
|
|
30
|
+
"eslint-plugin-prettier": "^5.5.4",
|
|
32
31
|
"nodemon": "^3.1.10",
|
|
33
32
|
"prettier": "^3.5.3",
|
|
34
|
-
"typescript": "^5.8.3"
|
|
33
|
+
"typescript": "^5.8.3",
|
|
34
|
+
"typescript-eslint": "^8.46.2"
|
|
35
35
|
},
|
|
36
36
|
"publishConfig": {
|
|
37
37
|
"access": "public"
|
|
38
|
-
}
|
|
38
|
+
},
|
|
39
|
+
"files": [
|
|
40
|
+
"dist"
|
|
41
|
+
]
|
|
39
42
|
}
|
package/.eslintrc.cjs
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
parser: '@typescript-eslint/parser',
|
|
3
|
-
parserOptions: {
|
|
4
|
-
project: 'tsconfig.json',
|
|
5
|
-
tsconfigRootDir: __dirname,
|
|
6
|
-
sourceType: 'module',
|
|
7
|
-
},
|
|
8
|
-
plugins: ['@typescript-eslint/eslint-plugin'],
|
|
9
|
-
extends: [
|
|
10
|
-
'plugin:@typescript-eslint/recommended',
|
|
11
|
-
'plugin:prettier/recommended',
|
|
12
|
-
],
|
|
13
|
-
root: true,
|
|
14
|
-
env: {
|
|
15
|
-
node: true,
|
|
16
|
-
},
|
|
17
|
-
ignorePatterns: ['.eslintrc.js'],
|
|
18
|
-
rules: {
|
|
19
|
-
'@typescript-eslint/interface-name-prefix': 'off',
|
|
20
|
-
'@typescript-eslint/explicit-function-return-type': 'off',
|
|
21
|
-
'@typescript-eslint/explicit-module-boundary-types': 'off',
|
|
22
|
-
'@typescript-eslint/no-explicit-any': 'off',
|
|
23
|
-
},
|
|
24
|
-
};
|
package/.gitlab-ci.yml
DELETED
package/.prettierrc
DELETED
package/.renovaterc.json5
DELETED
package/fixup.sh
DELETED
package/src/console-warn-once.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
declare const console: {
|
|
2
|
-
warn(message?: any, ...optionalParams: any[]): void;
|
|
3
|
-
};
|
|
4
|
-
|
|
5
|
-
const ref: { showed: string[] } = {
|
|
6
|
-
showed: [],
|
|
7
|
-
};
|
|
8
|
-
|
|
9
|
-
function consoleWarnOnce(msg: string): void {
|
|
10
|
-
if (ref.showed.includes(msg)) return;
|
|
11
|
-
ref.showed.push(msg);
|
|
12
|
-
console.warn(msg);
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export { consoleWarnOnce };
|
|
16
|
-
|
|
17
|
-
export default consoleWarnOnce;
|
package/src/index.ts
DELETED
package/tsconfig.cjs.json
DELETED
package/tsconfig.json
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"allowJs": true,
|
|
4
|
-
"allowSyntheticDefaultImports": true,
|
|
5
|
-
"baseUrl": "src",
|
|
6
|
-
"declaration": true,
|
|
7
|
-
"esModuleInterop": true,
|
|
8
|
-
"sourceMap": true,
|
|
9
|
-
"inlineSourceMap": false,
|
|
10
|
-
"lib": ["esnext"],
|
|
11
|
-
"listEmittedFiles": false,
|
|
12
|
-
"listFiles": false,
|
|
13
|
-
"moduleResolution": "node",
|
|
14
|
-
"noFallthroughCasesInSwitch": true,
|
|
15
|
-
"pretty": true,
|
|
16
|
-
"resolveJsonModule": true,
|
|
17
|
-
"rootDir": "src",
|
|
18
|
-
"skipLibCheck": true,
|
|
19
|
-
"strict": true,
|
|
20
|
-
"traceResolution": false,
|
|
21
|
-
"strictPropertyInitialization": false,
|
|
22
|
-
"emitDecoratorMetadata": true,
|
|
23
|
-
"experimentalDecorators": true
|
|
24
|
-
},
|
|
25
|
-
"compileOnSave": false,
|
|
26
|
-
"exclude": ["node_modules", "dist"],
|
|
27
|
-
"include": ["src"]
|
|
28
|
-
}
|
package/tsconfig.mjs.json
DELETED