@zac-apps/helium 1.0.0 → 1.0.1
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/index.js +5 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1541,6 +1541,8 @@ function HeliumGraph(_ref4) {
|
|
|
1541
1541
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
1542
1542
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
1543
1543
|
function Helium(props) {
|
|
1544
|
+
var basePath = props.basePath || "";
|
|
1545
|
+
|
|
1544
1546
|
// State
|
|
1545
1547
|
|
|
1546
1548
|
var _useImmer = useImmer(null),
|
|
@@ -1566,13 +1568,13 @@ function Helium(props) {
|
|
|
1566
1568
|
// fetch data
|
|
1567
1569
|
|
|
1568
1570
|
var heliumLookupData = PublicFetch({
|
|
1569
|
-
url: "/heliumLookup.json"
|
|
1571
|
+
url: basePath + "/heliumLookup.json"
|
|
1570
1572
|
});
|
|
1571
1573
|
var fetchGraph = PublicFetch({
|
|
1572
|
-
url: "/graphdata.json"
|
|
1574
|
+
url: basePath + "/graphdata.json"
|
|
1573
1575
|
});
|
|
1574
1576
|
PublicFetch({
|
|
1575
|
-
url: "/helium.json",
|
|
1577
|
+
url: basePath + "/helium.json",
|
|
1576
1578
|
SetState: SetHeliumData
|
|
1577
1579
|
});
|
|
1578
1580
|
useEffect(function () {
|