@sentio/cli 3.7.0-rc.2 → 3.7.0-rc.3
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/lib/index.js +2 -1
- package/package.json +1 -1
- package/src/config.ts +8 -1
package/lib/index.js
CHANGED
|
@@ -109890,7 +109890,8 @@ function getAuthConfig(host) {
|
|
|
109890
109890
|
return { domain, clientId, audience, redirectUri };
|
|
109891
109891
|
}
|
|
109892
109892
|
function overrideConfigWithOptions(config, options) {
|
|
109893
|
-
|
|
109893
|
+
const projectOwner = options.platform === false ? void 0 : options.owner;
|
|
109894
|
+
finalizeProjectName(config, projectOwner, options.name);
|
|
109894
109895
|
finalizeHost(config, options.host);
|
|
109895
109896
|
if (options.debug) {
|
|
109896
109897
|
config.debug = true;
|
package/package.json
CHANGED
package/src/config.ts
CHANGED
|
@@ -88,7 +88,14 @@ export function getAuthConfig(host: string): {
|
|
|
88
88
|
}
|
|
89
89
|
|
|
90
90
|
export function overrideConfigWithOptions(config: YamlProjectConfig, options: any) {
|
|
91
|
-
|
|
91
|
+
// In `--no-platform` (Sentio Network) mode, `--owner` is a 0x-prefixed
|
|
92
|
+
// Ethereum address identifying the on-chain processor owner — completely
|
|
93
|
+
// orthogonal to the platform's "<username>/<slug>" project namespace.
|
|
94
|
+
// Don't let it rewrite `config.project`, since that field is the source
|
|
95
|
+
// of the on-chain processor id and a 42-char address would always
|
|
96
|
+
// overflow `ProcessorRegistry.MAX_PROCESSOR_ID_LENGTH` (32).
|
|
97
|
+
const projectOwner = options.platform === false ? undefined : options.owner
|
|
98
|
+
finalizeProjectName(config, projectOwner, options.name)
|
|
92
99
|
finalizeHost(config, options.host)
|
|
93
100
|
|
|
94
101
|
if (options.debug) {
|