@everystack/cli 0.4.47 → 0.4.48
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/package.json +2 -2
- package/src/cli/derived-source.ts +6 -19
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@everystack/cli",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.48",
|
|
4
4
|
"description": "CLI and OTA updates for Expo apps on everystack",
|
|
5
5
|
"license": "AGPL-3.0-only",
|
|
6
6
|
"author": "Scalable Technology, Inc. <licensing@scalable.technology>",
|
|
@@ -109,7 +109,7 @@
|
|
|
109
109
|
"structured-headers": "1.0.1",
|
|
110
110
|
"tsx": "4.21.0",
|
|
111
111
|
"typescript": "5.9.3",
|
|
112
|
-
"@everystack/model": "0.4.
|
|
112
|
+
"@everystack/model": "0.4.12"
|
|
113
113
|
},
|
|
114
114
|
"peerDependencies": {
|
|
115
115
|
"@everystack/server": ">=0.4.0",
|
|
@@ -285,25 +285,12 @@ export function normalizeSql(sql: string): string {
|
|
|
285
285
|
// Classification.
|
|
286
286
|
// ---------------------------------------------------------------------------
|
|
287
287
|
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
const ch = raw[i];
|
|
295
|
-
if (ch === '"') {
|
|
296
|
-
if (quoted && raw[i + 1] === '"') { current += '"'; i++; continue; }
|
|
297
|
-
quoted = !quoted;
|
|
298
|
-
continue;
|
|
299
|
-
}
|
|
300
|
-
if (ch === '.' && !quoted) { parts.push(current); current = ''; continue; }
|
|
301
|
-
current += ch;
|
|
302
|
-
}
|
|
303
|
-
parts.push(current);
|
|
304
|
-
if (parts.length >= 2) return { schema: parts[0], name: parts.slice(1).join('.') };
|
|
305
|
-
return { schema: 'public', name: parts[0] };
|
|
306
|
-
}
|
|
288
|
+
// `parseQualified` moved to `@everystack/model` (src/qualified.ts) when the composition
|
|
289
|
+
// guard needed it: `defineModule` has to line a model's `schema` up against the schema
|
|
290
|
+
// inside a descriptor's declared name, and model cannot import cli. Re-exported here so
|
|
291
|
+
// every existing caller keeps its `./derived-source.js` import and there stays exactly one
|
|
292
|
+
// definition — two copies of this splitter is how the emitters and the guard drift apart.
|
|
293
|
+
export { parseQualified } from '@everystack/model';
|
|
307
294
|
|
|
308
295
|
// (The db/sql statement classifier and parseSqlSources lived here until B7 —
|
|
309
296
|
// descriptors are the single home; declared-derived.ts's retiredSqlDir() is the
|