theo_lafond_react_ci_cd 1.0.3 → 1.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.
package/dist/App.js CHANGED
@@ -35,7 +35,9 @@ function _arrayWithHoles(r) { if (Array.isArray(r)) return r; } /**
35
35
  * @component
36
36
  * @returns {JSX.Element} The main application component with routes
37
37
  */
38
- function App() {
38
+ function App(_ref) {
39
+ var _ref$basename = _ref.basename,
40
+ basename = _ref$basename === void 0 ? "/" : _ref$basename;
39
41
  var _useState = (0, _react.useState)([]),
40
42
  _useState2 = _slicedToArray(_useState, 2),
41
43
  persons = _useState2[0],
@@ -101,7 +103,7 @@ function App() {
101
103
  * @throws {Error} Propagates errors thrown by createUser
102
104
  */
103
105
  var addPerson = /*#__PURE__*/function () {
104
- var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(person) {
106
+ var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(person) {
105
107
  var existingEmails, newUser;
106
108
  return _regenerator().w(function (_context2) {
107
109
  while (1) switch (_context2.n) {
@@ -122,11 +124,11 @@ function App() {
122
124
  }, _callee2);
123
125
  }));
124
126
  return function addPerson(_x) {
125
- return _ref.apply(this, arguments);
127
+ return _ref2.apply(this, arguments);
126
128
  };
127
129
  }();
128
130
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactRouterDom.BrowserRouter, {
129
- basename: "/Test_cycle_TDD/",
131
+ basename: basename,
130
132
  children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactRouterDom.Routes, {
131
133
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactRouterDom.Route, {
132
134
  path: "/",
package/dist/index.js CHANGED
@@ -1,6 +1,4 @@
1
1
  "use strict";
2
2
 
3
3
  var App = require('./App');
4
- module.exports = {
5
- App: App
6
- };
4
+ module.exports = App;
package/dist/main.js CHANGED
@@ -7,5 +7,7 @@ var _App = _interopRequireDefault(require("./App.jsx"));
7
7
  var _jsxRuntime = require("react/jsx-runtime");
8
8
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
9
9
  (0, _client.createRoot)(document.getElementById('root')).render(/*#__PURE__*/(0, _jsxRuntime.jsx)(_react.StrictMode, {
10
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_App["default"], {})
10
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_App["default"], {
11
+ basename: "/Test_cycle_TDD/"
12
+ })
11
13
  }));
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "theo_lafond_react_ci_cd",
3
3
  "private": false,
4
- "version": "1.0.3",
4
+ "version": "1.0.5",
5
5
  "type": "commonjs",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",