@altronix/cli 0.7.19 → 0.7.20

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/build.js CHANGED
@@ -125,7 +125,7 @@ async function parseAppVersion(v) {
125
125
  const reMinor = data.matchAll(/^VERSION_MINOR = ([0-9]+)/gm).next();
126
126
  const rePatch = data.matchAll(/^PATCHLEVEL = ([0-9]+)/gm).next();
127
127
  const reTweak = data.matchAll(/^VERSION_TWEAK = ([0-9]+)/gm).next();
128
- const reExtra = data.matchAll(/^EXTRAVERSION = ([.a-zA-Z-]+)/gm).next();
128
+ const reExtra = data.matchAll(/^EXTRAVERSION = ([\.a-zA-Z0-9-]+)/gm).next();
129
129
  return {
130
130
  major: reMajor.value ? parseInt(reMajor.value[1]) : 0,
131
131
  minor: reMinor.value ? parseInt(reMinor.value[1]) : 0,
@@ -10,19 +10,14 @@ export default function Progress({ total, response$, onComplete }) {
10
10
  return (React.createElement(Box, null,
11
11
  React.createElement(Box, null,
12
12
  React.createElement(Text, null, "["),
13
- progress > 0 && new Array(progress).fill(0).map(mapper('#')),
14
- empty > 0 && new Array(empty).fill(0).map(mapper('-')),
13
+ new Array(progress).fill(0).map((_, idx) => (React.createElement(Text, { key: idx }, "#"))),
14
+ new Array(empty).fill(0).map((_, idx) => (React.createElement(Text, { key: idx }, "-"))),
15
15
  React.createElement(Text, null, "]")),
16
16
  React.createElement(Box, { marginLeft: 1 },
17
17
  React.createElement(Text, null,
18
- Math.min(Math.ceil((100 * progress) / width), 100),
18
+ Math.ceil((100 * progress) / width),
19
19
  "%"))));
20
20
  }
21
- function mapper(char) {
22
- return function (_item, idx) {
23
- return React.createElement(Text, { key: idx }, char);
24
- };
25
- }
26
21
  function useProgress(obs$, total, width, onComplete) {
27
22
  const [progress, setProgress] = useState([0, width]);
28
23
  useLayoutEffect(() => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@altronix/cli",
3
- "version": "0.7.19",
3
+ "version": "0.7.20",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "bin": {
@@ -22,8 +22,8 @@
22
22
  "react": "^18.2.0",
23
23
  "rxjs": "^7.8.1",
24
24
  "winston": "^3.13.0",
25
- "@altronix/device": "0.7.1",
26
- "@altronix/zdk": "0.7.2"
25
+ "@altronix/zdk": "0.7.2",
26
+ "@altronix/device": "0.7.1"
27
27
  },
28
28
  "devDependencies": {
29
29
  "@sindresorhus/tsconfig": "^3.0.1",