@panneau/auth 4.0.2 → 4.0.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/es/index.js +5 -3
- package/package.json +4 -4
package/es/index.js
CHANGED
|
@@ -2,6 +2,7 @@ import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
|
2
2
|
import { PropTypes as PropTypes$1 } from '@panneau/core';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import React, { useState, useCallback, useContext, useEffect, useMemo } from 'react';
|
|
5
|
+
import { jsx } from 'react/jsx-runtime';
|
|
5
6
|
import { useApi } from '@panneau/data';
|
|
6
7
|
|
|
7
8
|
var useAuthCheck = function useAuthCheck() {
|
|
@@ -246,9 +247,10 @@ var AuthProvider = function AuthProvider(_ref) {
|
|
|
246
247
|
resetPassword: resetPassword
|
|
247
248
|
};
|
|
248
249
|
}, [user, setUser, logout, login, register, requestPassword, resetPassword]);
|
|
249
|
-
return /*#__PURE__*/
|
|
250
|
-
value: value
|
|
251
|
-
|
|
250
|
+
return /*#__PURE__*/jsx(AuthContext.Provider, {
|
|
251
|
+
value: value,
|
|
252
|
+
children: children
|
|
253
|
+
});
|
|
252
254
|
};
|
|
253
255
|
AuthProvider.propTypes = propTypes;
|
|
254
256
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@panneau/auth",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.4",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"javascript"
|
|
@@ -57,12 +57,12 @@
|
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|
|
59
59
|
"@babel/runtime": "^7.12.5",
|
|
60
|
-
"@panneau/core": "^4.0.
|
|
61
|
-
"@panneau/data": "^4.0.
|
|
60
|
+
"@panneau/core": "^4.0.4",
|
|
61
|
+
"@panneau/data": "^4.0.4",
|
|
62
62
|
"prop-types": "^15.7.2"
|
|
63
63
|
},
|
|
64
64
|
"publishConfig": {
|
|
65
65
|
"access": "public"
|
|
66
66
|
},
|
|
67
|
-
"gitHead": "
|
|
67
|
+
"gitHead": "e854451a718c6bc7dcde2b804c9913d8ac0297ff"
|
|
68
68
|
}
|