@malevich-studio/strapi-sdk-typescript 1.2.4 → 1.2.6
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 +31 -3
- package/dist/cli.cjs +5 -5
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.mjs +5 -5
- package/dist/cli.mjs.map +1 -1
- package/dist/index.cjs +5 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +5 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -20099,7 +20099,7 @@ class Strapi {
|
|
|
20099
20099
|
return this.token;
|
|
20100
20100
|
}
|
|
20101
20101
|
async baseLogin(identifier, password) {
|
|
20102
|
-
const response = await this.fetchData('
|
|
20102
|
+
const response = await this.fetchData('auth/local', {
|
|
20103
20103
|
identifier,
|
|
20104
20104
|
password
|
|
20105
20105
|
}, {
|
|
@@ -20111,7 +20111,7 @@ class Strapi {
|
|
|
20111
20111
|
return response;
|
|
20112
20112
|
}
|
|
20113
20113
|
async baseRegister(data) {
|
|
20114
|
-
const response = await this.fetchData('
|
|
20114
|
+
const response = await this.fetchData('auth/local/register', data, {
|
|
20115
20115
|
method: 'POST',
|
|
20116
20116
|
});
|
|
20117
20117
|
if (!response.error) {
|
|
@@ -20120,7 +20120,7 @@ class Strapi {
|
|
|
20120
20120
|
return response;
|
|
20121
20121
|
}
|
|
20122
20122
|
async forgotPassword(email) {
|
|
20123
|
-
return await this.fetchData('
|
|
20123
|
+
return await this.fetchData('auth/forgot-password', { email }, {
|
|
20124
20124
|
method: 'POST',
|
|
20125
20125
|
});
|
|
20126
20126
|
}
|
|
@@ -20130,7 +20130,7 @@ class Strapi {
|
|
|
20130
20130
|
});
|
|
20131
20131
|
}
|
|
20132
20132
|
async baseResetPassword(password, code) {
|
|
20133
|
-
const response = await this.fetchData('
|
|
20133
|
+
const response = await this.fetchData('auth/reset-password', {
|
|
20134
20134
|
password,
|
|
20135
20135
|
passwordConfirmation: password,
|
|
20136
20136
|
code,
|
|
@@ -20143,7 +20143,7 @@ class Strapi {
|
|
|
20143
20143
|
return response;
|
|
20144
20144
|
}
|
|
20145
20145
|
async baseChangePassword(password, currentPassword) {
|
|
20146
|
-
const response = await this.fetchData('
|
|
20146
|
+
const response = await this.fetchData('auth/change-password', {
|
|
20147
20147
|
password,
|
|
20148
20148
|
passwordConfirmation: password,
|
|
20149
20149
|
currentPassword,
|