strapi-sdk-js 3.0.0 → 3.0.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/dist/index.cjs +3 -1
- package/dist/index.mjs +3 -1
- package/package.json +15 -12
package/dist/index.cjs
CHANGED
|
@@ -48,7 +48,9 @@ class Strapi {
|
|
|
48
48
|
};
|
|
49
49
|
this.axios = axios.create({
|
|
50
50
|
baseURL: ufo.joinURL(this.options.url, this.options.prefix),
|
|
51
|
-
paramsSerializer:
|
|
51
|
+
paramsSerializer: {
|
|
52
|
+
serialize: (params) => qs.stringify(params)
|
|
53
|
+
},
|
|
52
54
|
...this.options.axiosOptions
|
|
53
55
|
});
|
|
54
56
|
this.axios.interceptors.request.use((config) => {
|
package/dist/index.mjs
CHANGED
|
@@ -46,7 +46,9 @@ class Strapi {
|
|
|
46
46
|
};
|
|
47
47
|
this.axios = axios.create({
|
|
48
48
|
baseURL: joinURL(this.options.url, this.options.prefix),
|
|
49
|
-
paramsSerializer:
|
|
49
|
+
paramsSerializer: {
|
|
50
|
+
serialize: (params) => qs.stringify(params)
|
|
51
|
+
},
|
|
50
52
|
...this.options.axiosOptions
|
|
51
53
|
});
|
|
52
54
|
this.axios.interceptors.request.use((config) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "strapi-sdk-js",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.1",
|
|
4
4
|
"description": "📦 Javascript SDK for your Strapi API",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"strapi",
|
|
@@ -49,6 +49,9 @@
|
|
|
49
49
|
"files": [
|
|
50
50
|
"dist/"
|
|
51
51
|
],
|
|
52
|
+
"engines": {
|
|
53
|
+
"node": ">=20"
|
|
54
|
+
},
|
|
52
55
|
"scripts": {
|
|
53
56
|
"start": "rollup -c --watch",
|
|
54
57
|
"build": "rm -rf dist && rollup -c",
|
|
@@ -73,31 +76,31 @@
|
|
|
73
76
|
"dependencies": {
|
|
74
77
|
"@types/js-cookie": "^3.0.0",
|
|
75
78
|
"@types/qs": "^6.9.6",
|
|
76
|
-
"axios": "^0.
|
|
77
|
-
"defu": "^
|
|
78
|
-
"js-cookie": "^3.0.
|
|
79
|
-
"qs": "^6.
|
|
79
|
+
"axios": "^0.32.0",
|
|
80
|
+
"defu": "^6.1.5",
|
|
81
|
+
"js-cookie": "^3.0.7",
|
|
82
|
+
"qs": "^6.15.2",
|
|
80
83
|
"ufo": "^1.2.0"
|
|
81
84
|
},
|
|
82
85
|
"devDependencies": {
|
|
83
|
-
"@commitlint/cli": "17.
|
|
84
|
-
"@commitlint/config-conventional": "17.
|
|
86
|
+
"@commitlint/cli": "17.8.1",
|
|
87
|
+
"@commitlint/config-conventional": "17.8.1",
|
|
85
88
|
"@release-it/conventional-changelog": "4.3.0",
|
|
86
89
|
"@rollup/plugin-commonjs": "^25.0.3",
|
|
87
90
|
"@rollup/plugin-json": "^6.0.0",
|
|
88
91
|
"@rollup/plugin-node-resolve": "^15.1.0",
|
|
89
92
|
"@types/jest": "27.5.2",
|
|
90
|
-
"@types/sinon": "10.0.
|
|
93
|
+
"@types/sinon": "10.0.20",
|
|
91
94
|
"@typescript-eslint/eslint-plugin": "5.62.0",
|
|
92
95
|
"@typescript-eslint/parser": "5.62.0",
|
|
93
|
-
"commitizen": "4.3.
|
|
96
|
+
"commitizen": "4.3.1",
|
|
94
97
|
"cz-conventional-changelog": "3.3.0",
|
|
95
|
-
"dotenv-cli": "7.
|
|
98
|
+
"dotenv-cli": "7.4.4",
|
|
96
99
|
"esbuild": "^0.18.19",
|
|
97
|
-
"eslint": "8.
|
|
100
|
+
"eslint": "8.57.1",
|
|
98
101
|
"husky": "8.0.3",
|
|
99
102
|
"jest": "27.5.1",
|
|
100
|
-
"lint-staged": "13.
|
|
103
|
+
"lint-staged": "13.3.0",
|
|
101
104
|
"npm-run-all": "4.1.5",
|
|
102
105
|
"release-it": "14.14.3",
|
|
103
106
|
"rollup": "^3.27.2",
|