@xano/cli 0.0.95-beta.23 → 0.0.95-beta.25
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/README.md +78 -53
- package/dist/commands/release/pull/index.d.ts +1 -3
- package/dist/commands/release/pull/index.js +18 -15
- package/dist/commands/release/push/index.d.ts +1 -3
- package/dist/commands/release/push/index.js +18 -19
- package/dist/commands/sandbox/pull/index.d.ts +1 -3
- package/dist/commands/sandbox/pull/index.js +15 -12
- package/dist/commands/sandbox/push/index.d.ts +11 -6
- package/dist/commands/sandbox/push/index.js +149 -136
- package/dist/commands/tenant/pull/index.d.ts +1 -3
- package/dist/commands/tenant/pull/index.js +19 -18
- package/dist/commands/workspace/git/pull/index.d.ts +1 -3
- package/dist/commands/workspace/git/pull/index.js +18 -17
- package/dist/commands/workspace/pull/index.d.ts +1 -3
- package/dist/commands/workspace/pull/index.js +20 -21
- package/dist/commands/workspace/push/index.d.ts +6 -18
- package/dist/commands/workspace/push/index.js +85 -747
- package/dist/utils/multidoc-push.d.ts +63 -0
- package/dist/utils/multidoc-push.js +674 -0
- package/dist/utils/reference-checker.js +2 -2
- package/oclif.manifest.json +2121 -2015
- package/package.json +1 -1
|
@@ -196,8 +196,8 @@ function extractSchemaFields(content) {
|
|
|
196
196
|
if (blockStart < 0 || blockEnd < 0)
|
|
197
197
|
return fields;
|
|
198
198
|
const schemaBlock = content.slice(blockStart, blockEnd);
|
|
199
|
-
// Match field declarations: "type name" or "type name
|
|
200
|
-
const fieldRegex = /^\s*\w
|
|
199
|
+
// Match field declarations: "type name" or "type? name" or "type name?=default"
|
|
200
|
+
const fieldRegex = /^\s*\w+\??\s+(\w+)[?\s{]/gm;
|
|
201
201
|
let match;
|
|
202
202
|
while ((match = fieldRegex.exec(schemaBlock)) !== null) {
|
|
203
203
|
fields.add(match[1]);
|