arri 0.73.0 → 0.74.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
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
const citty = require('citty');
|
|
5
5
|
const c12 = require('c12');
|
|
6
|
-
const common = require('./shared/arri.
|
|
6
|
+
const common = require('./shared/arri.pHQOQ5Wb.cjs');
|
|
7
7
|
const fs = require('node:fs');
|
|
8
8
|
const codegenUtils = require('@arrirpc/codegen-utils');
|
|
9
9
|
const chokidar = require('chokidar');
|
|
@@ -251,7 +251,7 @@ const init = citty.defineCommand({
|
|
|
251
251
|
}
|
|
252
252
|
},
|
|
253
253
|
async run(context) {
|
|
254
|
-
const args = schema.a.
|
|
254
|
+
const args = schema.a.parseUnsafe(CliArgs, context.args);
|
|
255
255
|
if (!args.type) {
|
|
256
256
|
const { projectType } = await enquirer__default.prompt([
|
|
257
257
|
{
|
|
@@ -633,7 +633,7 @@ const PubPackageResponse = schema.a.object({
|
|
|
633
633
|
});
|
|
634
634
|
async function getDartPackageMeta() {
|
|
635
635
|
const response = await ofetch.ofetch("https://pub.dev/api/packages/arri_client");
|
|
636
|
-
const data = schema.a.
|
|
636
|
+
const data = schema.a.parseUnsafe(PubPackageResponse, response);
|
|
637
637
|
return data;
|
|
638
638
|
}
|
|
639
639
|
function updatePubspecYaml(fileContent, version, strict = true) {
|
package/dist/cli.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#! /usr/bin/env node
|
|
2
2
|
import { defineCommand, runCommand, runMain } from 'citty';
|
|
3
3
|
import { loadConfig } from 'c12';
|
|
4
|
-
import { a as isArriConfig, l as logger, g as getArriPackageMetadata, e as dev } from './shared/arri.
|
|
4
|
+
import { a as isArriConfig, l as logger, g as getArriPackageMetadata, e as dev } from './shared/arri.CGlJ9Ywd.mjs';
|
|
5
5
|
import fs, { rmSync, readFileSync, writeFileSync } from 'node:fs';
|
|
6
6
|
import { isAppDefinition, kebabCase } from '@arrirpc/codegen-utils';
|
|
7
7
|
import { watch } from 'chokidar';
|
|
@@ -239,7 +239,7 @@ const init = defineCommand({
|
|
|
239
239
|
}
|
|
240
240
|
},
|
|
241
241
|
async run(context) {
|
|
242
|
-
const args = a.
|
|
242
|
+
const args = a.parseUnsafe(CliArgs, context.args);
|
|
243
243
|
if (!args.type) {
|
|
244
244
|
const { projectType } = await enquirer.prompt([
|
|
245
245
|
{
|
|
@@ -621,7 +621,7 @@ const PubPackageResponse = a.object({
|
|
|
621
621
|
});
|
|
622
622
|
async function getDartPackageMeta() {
|
|
623
623
|
const response = await ofetch("https://pub.dev/api/packages/arri_client");
|
|
624
|
-
const data = a.
|
|
624
|
+
const data = a.parseUnsafe(PubPackageResponse, response);
|
|
625
625
|
return data;
|
|
626
626
|
}
|
|
627
627
|
function updatePubspecYaml(fileContent, version, strict = true) {
|
package/dist/index.cjs
CHANGED
|
@@ -5,7 +5,7 @@ const kotlinCodegen = require('@arrirpc/codegen-kotlin');
|
|
|
5
5
|
const rustCodegen = require('@arrirpc/codegen-rust');
|
|
6
6
|
const swiftCodegen = require('@arrirpc/codegen-swift');
|
|
7
7
|
const typescriptCodegen = require('@arrirpc/codegen-ts');
|
|
8
|
-
const common = require('./shared/arri.
|
|
8
|
+
const common = require('./shared/arri.pHQOQ5Wb.cjs');
|
|
9
9
|
const node_child_process = require('node:child_process');
|
|
10
10
|
const fs = require('node:fs');
|
|
11
11
|
const path = require('node:path');
|
package/dist/index.mjs
CHANGED
|
@@ -3,8 +3,8 @@ import * as kotlinCodegen from '@arrirpc/codegen-kotlin';
|
|
|
3
3
|
import * as rustCodegen from '@arrirpc/codegen-rust';
|
|
4
4
|
import * as swiftCodegen from '@arrirpc/codegen-swift';
|
|
5
5
|
import * as typescriptCodegen from '@arrirpc/codegen-ts';
|
|
6
|
-
import { d as defineServerConfig, l as logger, i as isInsideDir } from './shared/arri.
|
|
7
|
-
export { D as DEV_DEFINITION_ENDPOINT, b as defineConfig, a as isArriConfig, c as isServerConfig } from './shared/arri.
|
|
6
|
+
import { d as defineServerConfig, l as logger, i as isInsideDir } from './shared/arri.CGlJ9Ywd.mjs';
|
|
7
|
+
export { D as DEV_DEFINITION_ENDPOINT, b as defineConfig, a as isArriConfig, c as isServerConfig } from './shared/arri.CGlJ9Ywd.mjs';
|
|
8
8
|
import { execSync, spawn } from 'node:child_process';
|
|
9
9
|
import fs$1, { existsSync, readFileSync } from 'node:fs';
|
|
10
10
|
import path from 'node:path';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { loadConfig } from 'c12';
|
|
2
2
|
import { defineCommand, runCommand } from 'citty';
|
|
3
3
|
import path from 'pathe';
|
|
4
|
-
import { a,
|
|
4
|
+
import { a, ValidationException } from '@arrirpc/schema';
|
|
5
5
|
import { createConsola } from 'consola';
|
|
6
6
|
import { ofetch } from 'ofetch';
|
|
7
7
|
|
|
@@ -79,12 +79,11 @@ function isInsideDir(dir, parentDir) {
|
|
|
79
79
|
}
|
|
80
80
|
async function getArriPackageMetadata() {
|
|
81
81
|
const npmPackageResponse = await ofetch("https://registry.npmjs.com/arri");
|
|
82
|
-
const arriInfo = a.
|
|
82
|
+
const arriInfo = a.parse(NpmRegistryPackage, npmPackageResponse);
|
|
83
83
|
if (!arriInfo.success) {
|
|
84
84
|
const errors = a.errors(NpmRegistryPackage, npmPackageResponse);
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
message: "Arri parsing response from registry",
|
|
85
|
+
throw new ValidationException({
|
|
86
|
+
message: "Error parsing response from registry",
|
|
88
87
|
errors
|
|
89
88
|
});
|
|
90
89
|
}
|
|
@@ -85,12 +85,11 @@ function isInsideDir(dir, parentDir) {
|
|
|
85
85
|
}
|
|
86
86
|
async function getArriPackageMetadata() {
|
|
87
87
|
const npmPackageResponse = await ofetch.ofetch("https://registry.npmjs.com/arri");
|
|
88
|
-
const arriInfo = schema.a.
|
|
88
|
+
const arriInfo = schema.a.parse(NpmRegistryPackage, npmPackageResponse);
|
|
89
89
|
if (!arriInfo.success) {
|
|
90
90
|
const errors = schema.a.errors(NpmRegistryPackage, npmPackageResponse);
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
message: "Arri parsing response from registry",
|
|
91
|
+
throw new schema.ValidationException({
|
|
92
|
+
message: "Error parsing response from registry",
|
|
94
93
|
errors
|
|
95
94
|
});
|
|
96
95
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "arri",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.74.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": {
|
|
@@ -39,13 +39,13 @@
|
|
|
39
39
|
"ofetch": "^1.4.1",
|
|
40
40
|
"pathe": "^2.0.2",
|
|
41
41
|
"prettier": "^3.4.2",
|
|
42
|
-
"@arrirpc/codegen-
|
|
43
|
-
"@arrirpc/codegen-
|
|
44
|
-
"@arrirpc/codegen-
|
|
45
|
-
"@arrirpc/
|
|
46
|
-
"@arrirpc/codegen-
|
|
47
|
-
"@arrirpc/
|
|
48
|
-
"@arrirpc/codegen-
|
|
42
|
+
"@arrirpc/codegen-kotlin": "0.74.1",
|
|
43
|
+
"@arrirpc/codegen-swift": "0.74.1",
|
|
44
|
+
"@arrirpc/codegen-rust": "0.74.1",
|
|
45
|
+
"@arrirpc/codegen-dart": "0.74.1",
|
|
46
|
+
"@arrirpc/codegen-utils": "0.74.1",
|
|
47
|
+
"@arrirpc/schema": "0.74.1",
|
|
48
|
+
"@arrirpc/codegen-ts": "0.74.1"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@types/degit": "^2.8.6"
|