strapi-sdk-js 2.1.0 → 2.1.4
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 +30 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.es.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +17 -17
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,33 @@
|
|
|
1
|
+
## [2.1.4](https://github.com/Stun3R/strapi-sdk-js/compare/v2.1.3...v2.1.4) (2022-01-14)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **options:** remove process usage in default to be compatible with more framework ([aaa162d](https://github.com/Stun3R/strapi-sdk-js/commit/aaa162d53bc656a149da8d2aacc9560a42a11d55))
|
|
7
|
+
|
|
8
|
+
## [2.1.3](https://github.com/Stun3R/strapi-sdk-js/compare/v2.1.2...v2.1.3) (2022-01-05)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* **deps:** pin dependencies ([2e6e5a9](https://github.com/Stun3R/strapi-sdk-js/commit/2e6e5a984e3c3bce226bdb0a55218d6707cc0488))
|
|
14
|
+
* **deps:** update dependency @nuxt/content-theme-docs to v0.11.1 ([1541e39](https://github.com/Stun3R/strapi-sdk-js/commit/1541e392bb9e70ee7cdc65fa1362358518c0d084))
|
|
15
|
+
* **deps:** update dependency axios to ^0.24.0 ([4e2a41d](https://github.com/Stun3R/strapi-sdk-js/commit/4e2a41d5a3ffca07cf502d488ce9caea809f4bbc))
|
|
16
|
+
|
|
17
|
+
## [2.1.2](https://github.com/Stun3R/strapi-sdk-js/compare/v2.1.1...v2.1.2) (2021-12-30)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Bug Fixes
|
|
21
|
+
|
|
22
|
+
* **params:** change type to accept object for populate ([bfa835c](https://github.com/Stun3R/strapi-sdk-js/commit/bfa835c6d01425049f7d675f96316516d59bca5d)), closes [#108](https://github.com/Stun3R/strapi-sdk-js/issues/108)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Features
|
|
26
|
+
|
|
27
|
+
* add integrations ([439b292](https://github.com/Stun3R/strapi-sdk-js/commit/439b2926e474c06a0e581f9af7c1ad08c5eb7282))
|
|
28
|
+
|
|
29
|
+
## [2.1.1](https://github.com/Stun3R/strapi-sdk-js/compare/v2.1.0...v2.1.1) (2021-11-29)
|
|
30
|
+
|
|
1
31
|
# [2.0.0](https://github.com/Stun3R/strapi-sdk-js/compare/v1.1.0...v2.0.0) (2021-11-08)
|
|
2
32
|
|
|
3
33
|
|
package/dist/index.d.ts
CHANGED
|
@@ -33,7 +33,7 @@ interface PaginationByOffset {
|
|
|
33
33
|
}
|
|
34
34
|
interface StrapiBaseRequestParams {
|
|
35
35
|
fields?: Array<string>;
|
|
36
|
-
populate?: string | Array<string>;
|
|
36
|
+
populate?: string | Array<string> | Record<string, unknown>;
|
|
37
37
|
}
|
|
38
38
|
interface StrapiRequestParams extends StrapiBaseRequestParams {
|
|
39
39
|
sort?: string | Array<string>;
|
|
@@ -89,7 +89,7 @@ declare class Strapi {
|
|
|
89
89
|
*
|
|
90
90
|
* @constructor
|
|
91
91
|
* @param {StrapiOptions} options? - Options in order to configure API URL, list your Content Types & extend the axios configuration
|
|
92
|
-
* @param {string} options.url? - Your Strapi API URL, Default:
|
|
92
|
+
* @param {string} options.url? - Your Strapi API URL, Default: http://localhost::1337
|
|
93
93
|
* @param {StoreConfig} options.store? - Config the way you want to store JWT (Cookie or LocalStorage)
|
|
94
94
|
* @param {AxiosRequestConfig} options.axiosOptions? - The list of your Content type on your Strapi API
|
|
95
95
|
*/
|
package/dist/index.es.js
CHANGED
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "strapi-sdk-js",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.4",
|
|
4
4
|
"description": "📦 Javascript SDK for your Strapi API",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"strapi",
|
|
@@ -71,31 +71,31 @@
|
|
|
71
71
|
"dependencies": {
|
|
72
72
|
"@types/js-cookie": "^3.0.0",
|
|
73
73
|
"@types/qs": "^6.9.6",
|
|
74
|
-
"axios": "^0.
|
|
74
|
+
"axios": "^0.24.0",
|
|
75
75
|
"defu": "^5.0.0",
|
|
76
76
|
"js-cookie": "^3.0.0",
|
|
77
77
|
"qs": "^6.10.1"
|
|
78
78
|
},
|
|
79
79
|
"devDependencies": {
|
|
80
|
-
"@commitlint/cli": "
|
|
81
|
-
"@commitlint/config-conventional": "
|
|
80
|
+
"@commitlint/cli": "16.0.1",
|
|
81
|
+
"@commitlint/config-conventional": "16.0.0",
|
|
82
82
|
"@release-it/conventional-changelog": "3.3.0",
|
|
83
|
-
"@types/jest": "27.0
|
|
84
|
-
"@types/sinon": "10.0.
|
|
85
|
-
"@typescript-eslint/eslint-plugin": "5.
|
|
86
|
-
"@typescript-eslint/parser": "5.
|
|
83
|
+
"@types/jest": "27.4.0",
|
|
84
|
+
"@types/sinon": "10.0.6",
|
|
85
|
+
"@typescript-eslint/eslint-plugin": "5.9.0",
|
|
86
|
+
"@typescript-eslint/parser": "5.9.0",
|
|
87
87
|
"commitizen": "4.2.4",
|
|
88
88
|
"cz-conventional-changelog": "3.3.0",
|
|
89
|
-
"dotenv-cli": "4.
|
|
90
|
-
"eslint": "8.0
|
|
91
|
-
"husky": "7.0.
|
|
92
|
-
"jest": "27.
|
|
93
|
-
"lint-staged": "
|
|
89
|
+
"dotenv-cli": "4.1.1",
|
|
90
|
+
"eslint": "8.6.0",
|
|
91
|
+
"husky": "7.0.4",
|
|
92
|
+
"jest": "27.4.7",
|
|
93
|
+
"lint-staged": "12.1.5",
|
|
94
94
|
"npm-run-all": "4.1.5",
|
|
95
|
-
"release-it": "14.11.
|
|
96
|
-
"sinon": "
|
|
95
|
+
"release-it": "14.11.8",
|
|
96
|
+
"sinon": "12.0.1",
|
|
97
97
|
"siroc": "0.16.0",
|
|
98
|
-
"ts-jest": "27.
|
|
99
|
-
"typescript": "4.
|
|
98
|
+
"ts-jest": "27.1.2",
|
|
99
|
+
"typescript": "4.5.4"
|
|
100
100
|
}
|
|
101
101
|
}
|