@panneau/auth 4.0.2 → 4.0.5

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.
Files changed (2) hide show
  1. package/es/index.js +7 -5
  2. package/package.json +4 -4
package/es/index.js CHANGED
@@ -1,7 +1,8 @@
1
1
  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
- import React, { useState, useCallback, useContext, useEffect, useMemo } from 'react';
4
+ import { useState, useCallback, useContext, createContext, 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() {
@@ -142,7 +143,7 @@ var useAuthResetPassword = function useAuthResetPassword() {
142
143
  };
143
144
  };
144
145
 
145
- var AuthContext = /*#__PURE__*/React.createContext(null);
146
+ var AuthContext = /*#__PURE__*/createContext(null);
146
147
  var useAuth = function useAuth() {
147
148
  return useContext(AuthContext);
148
149
  };
@@ -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__*/React.createElement(AuthContext.Provider, {
250
- value: value
251
- }, children);
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.2",
3
+ "version": "4.0.5",
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.2",
61
- "@panneau/data": "^4.0.2",
60
+ "@panneau/core": "^4.0.5",
61
+ "@panneau/data": "^4.0.5",
62
62
  "prop-types": "^15.7.2"
63
63
  },
64
64
  "publishConfig": {
65
65
  "access": "public"
66
66
  },
67
- "gitHead": "53ad0f27e467992c23158732e0f7d39d8615780b"
67
+ "gitHead": "ac8b065e8c7ada1d176d15eff1c0fa53599ad31f"
68
68
  }