arri 0.49.0 → 0.49.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/cli.cjs +21 -4
- package/dist/cli.mjs +21 -4
- package/package.json +6 -6
package/dist/cli.cjs
CHANGED
|
@@ -530,7 +530,10 @@ const use = citty.defineCommand({
|
|
|
530
530
|
for (const file of pkgJsonFiles) {
|
|
531
531
|
jkgJsonFileTasks.push(
|
|
532
532
|
promises.readFile(path__default.resolve(file), "utf8").then((content) => {
|
|
533
|
-
|
|
533
|
+
const result = updatePackageJson(content, version);
|
|
534
|
+
if (result.updated) {
|
|
535
|
+
fileMap[file] = result.content;
|
|
536
|
+
}
|
|
534
537
|
})
|
|
535
538
|
);
|
|
536
539
|
}
|
|
@@ -556,7 +559,10 @@ const use = citty.defineCommand({
|
|
|
556
559
|
for (const file of pubspecFiles) {
|
|
557
560
|
pubspecFileTasks.push(
|
|
558
561
|
promises.readFile(path__default.resolve(file), "utf8").then((content) => {
|
|
559
|
-
|
|
562
|
+
const result = updatePubspecYaml(content, version);
|
|
563
|
+
if (result.updated) {
|
|
564
|
+
fileMap[file] = result.content;
|
|
565
|
+
}
|
|
560
566
|
})
|
|
561
567
|
);
|
|
562
568
|
}
|
|
@@ -578,13 +584,16 @@ const use = citty.defineCommand({
|
|
|
578
584
|
function updatePackageJson(fileContent, targetVersion) {
|
|
579
585
|
const lines = fileContent.split("\n");
|
|
580
586
|
const output = [];
|
|
587
|
+
let updated = false;
|
|
581
588
|
for (const line of lines) {
|
|
582
589
|
if (line.includes(`"arri"`)) {
|
|
583
590
|
output.push(updateLine(line));
|
|
591
|
+
updated = true;
|
|
584
592
|
continue;
|
|
585
593
|
}
|
|
586
594
|
if (line.includes(`"@arrirpc/`)) {
|
|
587
595
|
output.push(updateLine(line));
|
|
596
|
+
updated = true;
|
|
588
597
|
continue;
|
|
589
598
|
}
|
|
590
599
|
output.push(line);
|
|
@@ -599,7 +608,10 @@ function updatePackageJson(fileContent, targetVersion) {
|
|
|
599
608
|
parts[1] = targetParts.join('"');
|
|
600
609
|
return parts.join('":');
|
|
601
610
|
}
|
|
602
|
-
return
|
|
611
|
+
return {
|
|
612
|
+
updated,
|
|
613
|
+
content: output.join("\n")
|
|
614
|
+
};
|
|
603
615
|
}
|
|
604
616
|
const PubPackageResponse = schema.a.object({
|
|
605
617
|
name: schema.a.string(),
|
|
@@ -631,6 +643,7 @@ async function getDartPackageMeta() {
|
|
|
631
643
|
function updatePubspecYaml(fileContent, version) {
|
|
632
644
|
const lines = fileContent.split("\n");
|
|
633
645
|
const output = [];
|
|
646
|
+
let updated = false;
|
|
634
647
|
for (const line of lines) {
|
|
635
648
|
if (line.includes("arri_client: ")) {
|
|
636
649
|
const parts = line.split(": ");
|
|
@@ -643,11 +656,15 @@ function updatePubspecYaml(fileContent, version) {
|
|
|
643
656
|
subParts[0] = `^${version}`;
|
|
644
657
|
parts[1] = subParts.join(" ");
|
|
645
658
|
output.push(parts.join(": "));
|
|
659
|
+
updated = true;
|
|
646
660
|
continue;
|
|
647
661
|
}
|
|
648
662
|
output.push(line);
|
|
649
663
|
}
|
|
650
|
-
return
|
|
664
|
+
return {
|
|
665
|
+
updated,
|
|
666
|
+
content: output.join("\n")
|
|
667
|
+
};
|
|
651
668
|
}
|
|
652
669
|
|
|
653
670
|
const __filename$1 = node_url.fileURLToPath((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.src || new URL('cli.cjs', document.baseURI).href)));
|
package/dist/cli.mjs
CHANGED
|
@@ -517,7 +517,10 @@ const use = defineCommand({
|
|
|
517
517
|
for (const file of pkgJsonFiles) {
|
|
518
518
|
jkgJsonFileTasks.push(
|
|
519
519
|
readFile(path.resolve(file), "utf8").then((content) => {
|
|
520
|
-
|
|
520
|
+
const result = updatePackageJson(content, version);
|
|
521
|
+
if (result.updated) {
|
|
522
|
+
fileMap[file] = result.content;
|
|
523
|
+
}
|
|
521
524
|
})
|
|
522
525
|
);
|
|
523
526
|
}
|
|
@@ -543,7 +546,10 @@ const use = defineCommand({
|
|
|
543
546
|
for (const file of pubspecFiles) {
|
|
544
547
|
pubspecFileTasks.push(
|
|
545
548
|
readFile(path.resolve(file), "utf8").then((content) => {
|
|
546
|
-
|
|
549
|
+
const result = updatePubspecYaml(content, version);
|
|
550
|
+
if (result.updated) {
|
|
551
|
+
fileMap[file] = result.content;
|
|
552
|
+
}
|
|
547
553
|
})
|
|
548
554
|
);
|
|
549
555
|
}
|
|
@@ -565,13 +571,16 @@ const use = defineCommand({
|
|
|
565
571
|
function updatePackageJson(fileContent, targetVersion) {
|
|
566
572
|
const lines = fileContent.split("\n");
|
|
567
573
|
const output = [];
|
|
574
|
+
let updated = false;
|
|
568
575
|
for (const line of lines) {
|
|
569
576
|
if (line.includes(`"arri"`)) {
|
|
570
577
|
output.push(updateLine(line));
|
|
578
|
+
updated = true;
|
|
571
579
|
continue;
|
|
572
580
|
}
|
|
573
581
|
if (line.includes(`"@arrirpc/`)) {
|
|
574
582
|
output.push(updateLine(line));
|
|
583
|
+
updated = true;
|
|
575
584
|
continue;
|
|
576
585
|
}
|
|
577
586
|
output.push(line);
|
|
@@ -586,7 +595,10 @@ function updatePackageJson(fileContent, targetVersion) {
|
|
|
586
595
|
parts[1] = targetParts.join('"');
|
|
587
596
|
return parts.join('":');
|
|
588
597
|
}
|
|
589
|
-
return
|
|
598
|
+
return {
|
|
599
|
+
updated,
|
|
600
|
+
content: output.join("\n")
|
|
601
|
+
};
|
|
590
602
|
}
|
|
591
603
|
const PubPackageResponse = a.object({
|
|
592
604
|
name: a.string(),
|
|
@@ -618,6 +630,7 @@ async function getDartPackageMeta() {
|
|
|
618
630
|
function updatePubspecYaml(fileContent, version) {
|
|
619
631
|
const lines = fileContent.split("\n");
|
|
620
632
|
const output = [];
|
|
633
|
+
let updated = false;
|
|
621
634
|
for (const line of lines) {
|
|
622
635
|
if (line.includes("arri_client: ")) {
|
|
623
636
|
const parts = line.split(": ");
|
|
@@ -630,11 +643,15 @@ function updatePubspecYaml(fileContent, version) {
|
|
|
630
643
|
subParts[0] = `^${version}`;
|
|
631
644
|
parts[1] = subParts.join(" ");
|
|
632
645
|
output.push(parts.join(": "));
|
|
646
|
+
updated = true;
|
|
633
647
|
continue;
|
|
634
648
|
}
|
|
635
649
|
output.push(line);
|
|
636
650
|
}
|
|
637
|
-
return
|
|
651
|
+
return {
|
|
652
|
+
updated,
|
|
653
|
+
content: output.join("\n")
|
|
654
|
+
};
|
|
638
655
|
}
|
|
639
656
|
|
|
640
657
|
const __filename = fileURLToPath(import.meta.url);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "arri",
|
|
3
|
-
"version": "0.49.
|
|
3
|
+
"version": "0.49.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": {
|
|
@@ -39,11 +39,11 @@
|
|
|
39
39
|
"ofetch": "^1.3.4",
|
|
40
40
|
"pathe": "^1.1.2",
|
|
41
41
|
"prettier": "^3.3.0",
|
|
42
|
-
"@arrirpc/codegen-
|
|
43
|
-
"@arrirpc/codegen-
|
|
44
|
-
"@arrirpc/codegen-
|
|
45
|
-
"@arrirpc/codegen-utils": "0.49.
|
|
46
|
-
"@arrirpc/schema": "0.49.
|
|
42
|
+
"@arrirpc/codegen-dart": "0.49.1",
|
|
43
|
+
"@arrirpc/codegen-kotlin": "0.49.1",
|
|
44
|
+
"@arrirpc/codegen-ts": "0.49.1",
|
|
45
|
+
"@arrirpc/codegen-utils": "0.49.1",
|
|
46
|
+
"@arrirpc/schema": "0.49.1"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"@types/degit": "^2.8.6"
|