@pdg/api 1.0.24 → 1.0.25
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/README.md +1 -1
- package/dist/index.esm.js +2 -1
- package/dist/index.js +2 -1
- package/package.json +40 -30
package/README.md
CHANGED
package/dist/index.esm.js
CHANGED
|
@@ -105,7 +105,8 @@ class Api {
|
|
|
105
105
|
.then((res) => {
|
|
106
106
|
const { data: resData } = res;
|
|
107
107
|
if (this.option.onResponse) {
|
|
108
|
-
this.option
|
|
108
|
+
this.option
|
|
109
|
+
.onResponse(res, requestConfig, this.option.baseUrl, path, data, option)
|
|
109
110
|
.then((finalResData) => {
|
|
110
111
|
resolve(finalResData);
|
|
111
112
|
})
|
package/dist/index.js
CHANGED
|
@@ -105,7 +105,8 @@ class Api {
|
|
|
105
105
|
.then((res) => {
|
|
106
106
|
const { data: resData } = res;
|
|
107
107
|
if (this.option.onResponse) {
|
|
108
|
-
this.option
|
|
108
|
+
this.option
|
|
109
|
+
.onResponse(res, requestConfig, this.option.baseUrl, path, data, option)
|
|
109
110
|
.then((finalResData) => {
|
|
110
111
|
resolve(finalResData);
|
|
111
112
|
})
|
package/package.json
CHANGED
|
@@ -1,12 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pdg/api",
|
|
3
|
-
"title": "API Module",
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"title": "Typescript API Module",
|
|
4
|
+
"description": "Typescript API Module",
|
|
5
|
+
"version": "1.0.25",
|
|
6
6
|
"type": "module",
|
|
7
|
-
"
|
|
8
|
-
"
|
|
9
|
-
"
|
|
7
|
+
"main": "./dist/index.js",
|
|
8
|
+
"module": "./dist/index.esm.js",
|
|
9
|
+
"types": "./dist/index.d.ts",
|
|
10
|
+
"exports": {
|
|
11
|
+
".": {
|
|
12
|
+
"types": "./dist/index.d.ts",
|
|
13
|
+
"import": "./dist/index.esm.js",
|
|
14
|
+
"require": "./dist/index.js"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
10
17
|
"repository": {
|
|
11
18
|
"type": "git",
|
|
12
19
|
"url": "git+https://github.com/parkdigy/api.git",
|
|
@@ -21,22 +28,25 @@
|
|
|
21
28
|
"README.md"
|
|
22
29
|
],
|
|
23
30
|
"scripts": {
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"
|
|
31
|
+
"dev": "cd examples && npm run dev",
|
|
32
|
+
"watchman:del": "watchman watch-del \"${PWD}\" ; watchman watch-project \"${PWD}\"",
|
|
33
|
+
"build": "npm run watchman:del && npm run test && npm run lint && rollup -c --bundleConfigAsCjs",
|
|
27
34
|
"git:commit": "node .git-commit.cjs",
|
|
28
35
|
"git:push": "git push",
|
|
29
36
|
"git:commit:push": "npm run git:commit && npm run git:push",
|
|
37
|
+
"git:merge:mirror": "node .git-merge.cjs mirror main",
|
|
30
38
|
"reset:gitignore": "git rm -r --cached . && git add .",
|
|
39
|
+
"pub": "npm i && npm run build && npm publish --access=public && rm ./.git/hooks/pre-commit",
|
|
40
|
+
"lint": "eslint './src/**/*.ts'",
|
|
31
41
|
"reinstall": "npm run reinstall:module",
|
|
32
42
|
"reinstall:module": "rm -rf node_modules && rm -f package-lock.json && npm i",
|
|
33
|
-
"
|
|
43
|
+
"test": "jest"
|
|
34
44
|
},
|
|
35
45
|
"author": "YOUNG CHUL PARK",
|
|
36
46
|
"license": "MIT",
|
|
37
47
|
"readmeFilename": "README.md",
|
|
38
48
|
"keywords": [
|
|
39
|
-
"
|
|
49
|
+
"util",
|
|
40
50
|
"typescript",
|
|
41
51
|
"javascript"
|
|
42
52
|
],
|
|
@@ -44,24 +54,24 @@
|
|
|
44
54
|
"axios": "^1.13.2"
|
|
45
55
|
},
|
|
46
56
|
"devDependencies": {
|
|
47
|
-
"@eslint/js": "
|
|
48
|
-
"@rollup/plugin-commonjs": "
|
|
49
|
-
"@rollup/plugin-node-resolve": "
|
|
50
|
-
"@types/jest": "
|
|
51
|
-
"@types/node": "
|
|
52
|
-
"@typescript-eslint/parser": "
|
|
53
|
-
"eslint": "9.
|
|
54
|
-
"eslint-config-prettier": "
|
|
55
|
-
"eslint-plugin-prettier": "
|
|
56
|
-
"jest": "
|
|
57
|
-
"prettier": "
|
|
58
|
-
"rollup": "
|
|
59
|
-
"rollup-plugin-delete": "
|
|
60
|
-
"rollup-plugin-peer-deps-external": "
|
|
61
|
-
"rollup-plugin-typescript2": "
|
|
62
|
-
"ts-jest": "
|
|
63
|
-
"ts-node": "
|
|
64
|
-
"typescript": "
|
|
65
|
-
"typescript-eslint": "
|
|
57
|
+
"@eslint/js": "9.39.1",
|
|
58
|
+
"@rollup/plugin-commonjs": "29.0.0",
|
|
59
|
+
"@rollup/plugin-node-resolve": "16.0.3",
|
|
60
|
+
"@types/jest": "29.5.14",
|
|
61
|
+
"@types/node": "22.19.2",
|
|
62
|
+
"@typescript-eslint/parser": "8.49.0",
|
|
63
|
+
"eslint": "9.39.1",
|
|
64
|
+
"eslint-config-prettier": "10.1.8",
|
|
65
|
+
"eslint-plugin-prettier": "5.5.4",
|
|
66
|
+
"jest": "29.7.0",
|
|
67
|
+
"prettier": "3.7.4",
|
|
68
|
+
"rollup": "4.53.3",
|
|
69
|
+
"rollup-plugin-delete": "2.2.0",
|
|
70
|
+
"rollup-plugin-peer-deps-external": "2.2.4",
|
|
71
|
+
"rollup-plugin-typescript2": "0.36.0",
|
|
72
|
+
"ts-jest": "29.4.6",
|
|
73
|
+
"ts-node": "10.9.2",
|
|
74
|
+
"typescript": "5.9.3",
|
|
75
|
+
"typescript-eslint": "8.49.0"
|
|
66
76
|
}
|
|
67
77
|
}
|