pokenode-ts 1.13.2 → 1.14.0
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/CHANGELOG.md +3 -3
- package/dist/clients/machine.client.js +1 -1
- package/dist/index.d.ts +3 -3
- package/jest.config.js +25 -0
- package/package.json +20 -26
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
# [1.14.0](https://github.com/Gabb-c/pokenode-ts/compare/v1.13.2...v1.14.0) (2022-06-09)
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
###
|
|
4
|
+
### Features
|
|
5
5
|
|
|
6
|
-
* **models:**
|
|
6
|
+
* **models:** trigger release ([5911f59](https://github.com/Gabb-c/pokenode-ts/commit/5911f59949f69beda42ae6bcde5a86068f104947))
|
|
@@ -9,7 +9,7 @@ const base_1 = require("../structures/base");
|
|
|
9
9
|
*
|
|
10
10
|
* Client used to access the Machine Endpoints:
|
|
11
11
|
* - [Machines](https://pokeapi.co/docs/v2#machines)
|
|
12
|
-
*
|
|
12
|
+
*
|
|
13
13
|
* See [PokéAPI Documentation](https://pokeapi.co/docs/v2#machines-section)
|
|
14
14
|
*/
|
|
15
15
|
class MachineClient extends base_1.BaseClient {
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated by dts-bundle-generator v6.
|
|
1
|
+
// Generated by dts-bundle-generator v6.11.0
|
|
2
2
|
|
|
3
3
|
import { AxiosInstance } from 'axios';
|
|
4
4
|
import { IAxiosCacheAdapterOptions } from 'axios-cache-adapter';
|
|
@@ -484,7 +484,7 @@ export interface PokemonEntry {
|
|
|
484
484
|
/** The index of this Pokémon species entry within the Pokédex */
|
|
485
485
|
entry_number: number;
|
|
486
486
|
/** The Pokémon species being encountered */
|
|
487
|
-
pokemon_species: NamedAPIResource
|
|
487
|
+
pokemon_species: NamedAPIResource;
|
|
488
488
|
}
|
|
489
489
|
/**
|
|
490
490
|
* ## Pokedex
|
|
@@ -2697,7 +2697,7 @@ export declare class LocationClient extends BaseClient {
|
|
|
2697
2697
|
*
|
|
2698
2698
|
* Client used to access the Machine Endpoints:
|
|
2699
2699
|
* - [Machines](https://pokeapi.co/docs/v2#machines)
|
|
2700
|
-
*
|
|
2700
|
+
*
|
|
2701
2701
|
* See [PokéAPI Documentation](https://pokeapi.co/docs/v2#machines-section)
|
|
2702
2702
|
*/
|
|
2703
2703
|
export declare class MachineClient extends BaseClient {
|
package/jest.config.js
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
// @ts-check
|
|
2
|
+
|
|
3
|
+
/** @type {import('@jest/types').Config.InitialOptions} */
|
|
4
|
+
const jestConfig = {
|
|
5
|
+
displayName: 'pokenode-ts',
|
|
6
|
+
clearMocks: true,
|
|
7
|
+
testEnvironment: 'node',
|
|
8
|
+
transform: {
|
|
9
|
+
'^.+\\.(t|j)sx?$': '@swc/jest',
|
|
10
|
+
},
|
|
11
|
+
collectCoverageFrom: [
|
|
12
|
+
'src/**/*.ts',
|
|
13
|
+
'!**/*.d.ts',
|
|
14
|
+
'!**/node_modules/**',
|
|
15
|
+
'!**/dist/**',
|
|
16
|
+
'!**/src/models/**',
|
|
17
|
+
'!**/src/constants/**',
|
|
18
|
+
'!**/src/config/**',
|
|
19
|
+
'!**/src/structures/**',
|
|
20
|
+
],
|
|
21
|
+
testMatch: ['**/__tests__/**/*.[jt]s?(x)', '**/?(*.)+(spec|test).[tj]s?(x)'],
|
|
22
|
+
testPathIgnorePatterns: ['/node_modules/', '/dist/'],
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
module.exports = jestConfig;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pokenode-ts",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.14.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "A lightweight Node.js wrapper for the PokéAPI with built-in types.",
|
|
6
6
|
"keywords": [
|
|
@@ -44,49 +44,43 @@
|
|
|
44
44
|
"test:watch": "jest --watch --verbose --colors --expand --maxWorkers=25%",
|
|
45
45
|
"types": "dts-bundle-generator --config dts-generator.json"
|
|
46
46
|
},
|
|
47
|
-
"config": {
|
|
48
|
-
"commitizen": {
|
|
49
|
-
"path": "@commitlint/cz-commitlint"
|
|
50
|
-
}
|
|
51
|
-
},
|
|
52
47
|
"dependencies": {
|
|
53
48
|
"axios": "^0.27.2",
|
|
54
49
|
"axios-cache-adapter": "^2.7.3",
|
|
55
|
-
"pino": "^
|
|
56
|
-
"pino-pretty": "^
|
|
50
|
+
"pino": "^8.0.0",
|
|
51
|
+
"pino-pretty": "^8.0.0",
|
|
57
52
|
"tslib": "^2.4.0"
|
|
58
53
|
},
|
|
59
54
|
"devDependencies": {
|
|
60
55
|
"@babel/cli": "^7.17.10",
|
|
61
|
-
"@babel/core": "^7.18.
|
|
56
|
+
"@babel/core": "^7.18.2",
|
|
62
57
|
"@babel/node": "^7.17.10",
|
|
63
|
-
"@babel/preset-env": "^7.18.
|
|
58
|
+
"@babel/preset-env": "^7.18.2",
|
|
64
59
|
"@babel/preset-typescript": "^7.17.12",
|
|
65
|
-
"@commitlint/cli": "^17.0.
|
|
66
|
-
"@commitlint/config-conventional": "^17.0.
|
|
60
|
+
"@commitlint/cli": "^17.0.2",
|
|
61
|
+
"@commitlint/config-conventional": "^17.0.2",
|
|
67
62
|
"@semantic-release/changelog": "^6.0.1",
|
|
68
63
|
"@semantic-release/commit-analyzer": "^9.0.2",
|
|
69
64
|
"@semantic-release/git": "^10.0.1",
|
|
70
65
|
"@semantic-release/github": "^8.0.4",
|
|
71
66
|
"@semantic-release/npm": "^9.0.1",
|
|
72
67
|
"@semantic-release/release-notes-generator": "^10.0.3",
|
|
73
|
-
"@swc/core": "^1.2.
|
|
68
|
+
"@swc/core": "^1.2.197",
|
|
74
69
|
"@swc/jest": "^0.2.21",
|
|
75
|
-
"@types/jest": "^
|
|
76
|
-
"@types/node": "^17.0.
|
|
77
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
78
|
-
"@typescript-eslint/parser": "^5.
|
|
70
|
+
"@types/jest": "^28.1.1",
|
|
71
|
+
"@types/node": "^17.0.41",
|
|
72
|
+
"@typescript-eslint/eslint-plugin": "^5.27.1",
|
|
73
|
+
"@typescript-eslint/parser": "^5.27.1",
|
|
79
74
|
"babel-plugin-module-resolver": "^4.1.0",
|
|
80
|
-
"
|
|
81
|
-
"
|
|
82
|
-
"eslint": "^8.15.0",
|
|
75
|
+
"dts-bundle-generator": "^6.11.0",
|
|
76
|
+
"eslint": "^8.17.0",
|
|
83
77
|
"eslint-config-airbnb-base": "^15.0.0",
|
|
84
78
|
"eslint-config-airbnb-typescript": "^17.0.0",
|
|
85
79
|
"eslint-config-node": "^4.1.0",
|
|
86
80
|
"eslint-config-prettier": "^8.5.0",
|
|
87
81
|
"eslint-plugin-eslint-comments": "^3.2.0",
|
|
88
82
|
"eslint-plugin-import": "^2.26.0",
|
|
89
|
-
"eslint-plugin-jest": "^26.
|
|
83
|
+
"eslint-plugin-jest": "^26.5.3",
|
|
90
84
|
"eslint-plugin-node": "^11.1.0",
|
|
91
85
|
"eslint-plugin-prettier": "^4.0.0",
|
|
92
86
|
"eslint-plugin-promise": "^6.0.0",
|
|
@@ -94,14 +88,14 @@
|
|
|
94
88
|
"http-status-codes": "^2.2.0",
|
|
95
89
|
"husky": "^8.0.1",
|
|
96
90
|
"is-ci": "^3.0.1",
|
|
97
|
-
"jest": "^28.1.
|
|
98
|
-
"lint-staged": "^
|
|
91
|
+
"jest": "^28.1.1",
|
|
92
|
+
"lint-staged": "^13.0.1",
|
|
99
93
|
"lockfile-lint": "^4.7.4",
|
|
100
94
|
"prettier": "^2.6.2",
|
|
101
|
-
"semantic-release": "^19.0.
|
|
95
|
+
"semantic-release": "^19.0.3",
|
|
102
96
|
"sort-package-json": "^1.57.0",
|
|
103
|
-
"ts-node-dev": "^
|
|
104
|
-
"typescript": "^4.
|
|
97
|
+
"ts-node-dev": "^2.0.0",
|
|
98
|
+
"typescript": "^4.7.3"
|
|
105
99
|
},
|
|
106
100
|
"engines": {
|
|
107
101
|
"node": ">=14"
|