@calimero-network/registry-cli 1.19.0 → 1.20.0
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/index.js +3 -28
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -1991,40 +1991,15 @@ async function pushToRemote(bundlePath, manifest, registryUrl, apiKey) {
|
|
|
1991
1991
|
const bundleHex = bundleBuffer.toString("hex");
|
|
1992
1992
|
console.log(` Converted to hex (${bundleHex.length} characters)`);
|
|
1993
1993
|
const payload = {
|
|
1994
|
+
...manifest,
|
|
1994
1995
|
version: manifest.version || "1.0",
|
|
1995
1996
|
package: manifest.package,
|
|
1996
1997
|
appVersion: manifest.appVersion,
|
|
1998
|
+
// Always include migrations even if empty — dropping [] changes the signed payload
|
|
1999
|
+
migrations: manifest.migrations ?? [],
|
|
1997
2000
|
_binary: bundleHex,
|
|
1998
2001
|
_overwrite: true
|
|
1999
2002
|
};
|
|
2000
|
-
if (manifest.metadata) {
|
|
2001
|
-
payload.metadata = manifest.metadata;
|
|
2002
|
-
}
|
|
2003
|
-
if (manifest.interfaces) {
|
|
2004
|
-
payload.interfaces = manifest.interfaces;
|
|
2005
|
-
}
|
|
2006
|
-
if (manifest.wasm) {
|
|
2007
|
-
payload.wasm = manifest.wasm;
|
|
2008
|
-
}
|
|
2009
|
-
if (manifest.abi !== void 0) {
|
|
2010
|
-
payload.abi = manifest.abi;
|
|
2011
|
-
}
|
|
2012
|
-
if (manifest.services !== void 0) {
|
|
2013
|
-
payload.services = manifest.services;
|
|
2014
|
-
}
|
|
2015
|
-
payload.migrations = manifest.migrations ?? [];
|
|
2016
|
-
if (manifest.links) {
|
|
2017
|
-
payload.links = manifest.links;
|
|
2018
|
-
}
|
|
2019
|
-
if (manifest.signature) {
|
|
2020
|
-
payload.signature = manifest.signature;
|
|
2021
|
-
}
|
|
2022
|
-
if (manifest.minRuntimeVersion != null && String(manifest.minRuntimeVersion).trim()) {
|
|
2023
|
-
payload.minRuntimeVersion = String(manifest.minRuntimeVersion).trim();
|
|
2024
|
-
}
|
|
2025
|
-
if (manifest.signerId) {
|
|
2026
|
-
payload.signerId = manifest.signerId;
|
|
2027
|
-
}
|
|
2028
2003
|
const headers = {
|
|
2029
2004
|
"Content-Type": "application/json"
|
|
2030
2005
|
};
|