drf-react-by-schema 0.7.5 → 0.7.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/dist/api.js
CHANGED
|
@@ -502,7 +502,7 @@ const signUp = (data, serverEndPoint) => __awaiter(void 0, void 0, void 0, funct
|
|
|
502
502
|
const url = serverEndPoint.signUp;
|
|
503
503
|
try {
|
|
504
504
|
const response = yield axios_1.default.post(url, data);
|
|
505
|
-
console.log(response);
|
|
505
|
+
// console.log(response);
|
|
506
506
|
return response;
|
|
507
507
|
}
|
|
508
508
|
catch (e) {
|
|
@@ -21,11 +21,15 @@ const DRFReactBySchemaProvider = ({ serverEndPoint, theme, isInBatches, firstBat
|
|
|
21
21
|
'autocomplete',
|
|
22
22
|
'api',
|
|
23
23
|
['JSONSchema', 'jsonschema'],
|
|
24
|
-
|
|
24
|
+
'getToken',
|
|
25
25
|
['refreshToken', 'refresh'],
|
|
26
26
|
['verifyToken', 'verify'],
|
|
27
27
|
];
|
|
28
28
|
for (const key of defaultKeys) {
|
|
29
|
+
if (key === 'getToken') {
|
|
30
|
+
serverEndPoint[key] = serverEndPoint.apiTokenUrl;
|
|
31
|
+
continue;
|
|
32
|
+
}
|
|
29
33
|
const hybridKey = typeof key === 'string'
|
|
30
34
|
? key
|
|
31
35
|
: key[0];
|
package/package.json
CHANGED