@thalorlabs/dadjoke 1.1.0 → 1.1.1
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/.prettierrc +1 -7
- package/eslint.config.mjs +2 -20
- package/package.json +2 -6
- package/src/DadJokeClient.ts +3 -1
- package/tsconfig.json +2 -8
package/.prettierrc
CHANGED
package/eslint.config.mjs
CHANGED
|
@@ -1,21 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
import tseslint from 'typescript-eslint';
|
|
3
|
-
import prettier from 'eslint-config-prettier';
|
|
4
|
-
import nodePlugin from 'eslint-plugin-n';
|
|
1
|
+
import { backend } from '@thalorlabs/eslint-plugin-dev-config';
|
|
5
2
|
|
|
6
|
-
export default
|
|
7
|
-
eslint.configs.recommended,
|
|
8
|
-
...tseslint.configs.recommended,
|
|
9
|
-
nodePlugin.configs['flat/recommended-module'],
|
|
10
|
-
prettier,
|
|
11
|
-
{
|
|
12
|
-
rules: {
|
|
13
|
-
'@typescript-eslint/no-explicit-any': 'error',
|
|
14
|
-
'n/no-missing-import': 'off', // TypeScript handles this
|
|
15
|
-
'n/no-unpublished-import': 'off',
|
|
16
|
-
},
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
ignores: ['dist/', 'node_modules/'],
|
|
20
|
-
}
|
|
21
|
-
);
|
|
3
|
+
export default backend;
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@thalorlabs/dadjoke",
|
|
3
3
|
"author": "ThalorLabs",
|
|
4
4
|
"private": false,
|
|
5
|
-
"version": "1.1.
|
|
5
|
+
"version": "1.1.1",
|
|
6
6
|
"description": "Provider adapter for icanhazdadjoke.com — returns TLJoke",
|
|
7
7
|
"homepage": "https://github.com/ThalorLabs/dadjoke#readme",
|
|
8
8
|
"bugs": {
|
|
@@ -28,15 +28,11 @@
|
|
|
28
28
|
"format:check": "prettier --check \"src/**/*.ts\""
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
|
-
"@eslint
|
|
31
|
+
"@thalorlabs/eslint-plugin-dev-config": "^2.1.1",
|
|
32
32
|
"@types/node": "^25.5.2",
|
|
33
|
-
"eslint": "^10.1.0",
|
|
34
|
-
"eslint-config-prettier": "^10.1.8",
|
|
35
|
-
"eslint-plugin-n": "^17.24.0",
|
|
36
33
|
"prettier": "^3.8.1",
|
|
37
34
|
"rimraf": "^5.0.0",
|
|
38
35
|
"typescript": "^5.0.0",
|
|
39
|
-
"typescript-eslint": "^8.58.0",
|
|
40
36
|
"vitest": "^3.0.0"
|
|
41
37
|
},
|
|
42
38
|
"dependencies": {
|
package/src/DadJokeClient.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { createHash, randomUUID } from 'crypto';
|
|
2
|
+
|
|
2
3
|
import { BaseHttpClient } from '@thalorlabs/api';
|
|
3
|
-
import {
|
|
4
|
+
import { EJokeCategory,EJokeType, TLJoke } from '@thalorlabs/types';
|
|
5
|
+
|
|
4
6
|
import { DadJokeRawResponse } from './DadJokeTypes';
|
|
5
7
|
|
|
6
8
|
export interface DadJokeClientConfig {
|
package/tsconfig.json
CHANGED
|
@@ -1,13 +1,7 @@
|
|
|
1
1
|
{
|
|
2
|
+
"extends": "@thalorlabs/eslint-plugin-dev-config/tsconfig/backend.json",
|
|
2
3
|
"compilerOptions": {
|
|
3
|
-
"
|
|
4
|
-
"module": "CommonJS",
|
|
5
|
-
"declaration": true,
|
|
6
|
-
"outDir": "./dist",
|
|
7
|
-
"strict": true,
|
|
8
|
-
"esModuleInterop": true,
|
|
9
|
-
"skipLibCheck": true,
|
|
10
|
-
"moduleResolution": "node"
|
|
4
|
+
"outDir": "./dist"
|
|
11
5
|
},
|
|
12
6
|
"include": ["src"],
|
|
13
7
|
"exclude": ["node_modules", "dist"]
|