@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inyur/console-warn-once",
3
- "version": "1.0.1",
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
- "@typescript-eslint/eslint-plugin": "^7.18.0",
27
- "@typescript-eslint/parser": "^7.18.0",
28
- "eslint": "^8.57.1",
29
- "eslint-config-prettier": "^9.1.0",
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
@@ -1,11 +0,0 @@
1
- include:
2
- - project: 'inyur/inyur'
3
- ref: develop
4
- file: '/devops/gitlab-ci-shared.yml'
5
-
6
- stages:
7
- - publish
8
-
9
- Build and publish:
10
- extends: .publish-npm-public-module-template
11
- stage: publish
package/.prettierrc DELETED
@@ -1,12 +0,0 @@
1
- {
2
- "printWidth": 80,
3
- "trailingComma": "all",
4
- "singleQuote": true,
5
- "tabWidth": 2,
6
- "semi": true,
7
- "jsxSingleQuote": false,
8
- "quoteProps": "as-needed",
9
- "bracketSpacing": true,
10
- "jsxBracketSameLine": false,
11
- "arrowParens": "avoid"
12
- }
package/.renovaterc.json5 DELETED
@@ -1,6 +0,0 @@
1
- {
2
- "$schema": "https://docs.renovatebot.com/renovate-schema.json",
3
- "extends": [
4
- "local>inyur/renovate-config"
5
- ]
6
- }
package/fixup.sh DELETED
@@ -1,11 +0,0 @@
1
- cat >dist/cjs/package.json <<!EOF
2
- {
3
- "type": "commonjs"
4
- }
5
- !EOF
6
-
7
- cat >dist/mjs/package.json <<!EOF
8
- {
9
- "type": "module"
10
- }
11
- !EOF
@@ -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
@@ -1,2 +0,0 @@
1
- export { default } from './console-warn-once';
2
- export * from './console-warn-once';
package/tsconfig.cjs.json DELETED
@@ -1,8 +0,0 @@
1
- {
2
- "extends": "./tsconfig.json",
3
- "compilerOptions": {
4
- "module": "commonjs",
5
- "outDir": "dist/cjs",
6
- "target": "es2015"
7
- }
8
- }
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
@@ -1,8 +0,0 @@
1
- {
2
- "extends": "./tsconfig.json",
3
- "compilerOptions": {
4
- "module": "esnext",
5
- "outDir": "dist/mjs",
6
- "target": "es2019"
7
- }
8
- }
@@ -1,8 +0,0 @@
1
- {
2
- "extends": "./tsconfig.json",
3
- "compilerOptions": {
4
- "outDir": "./dist/types",
5
- "declaration": true,
6
- "emitDeclarationOnly": true
7
- }
8
- }