@junobuild/admin 0.1.8-next-2025-04-06 → 0.1.8-next-2025-04-06.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.
@@ -25,3 +25,4 @@ export type * from './types/customdomain.types';
25
25
  export type * from './types/releases.types';
26
26
  export * from './types/upgrade.types';
27
27
  export * from './utils/crypto.utils';
28
+ export * from './utils/package.utils';
@@ -43,18 +43,3 @@ export declare const getJunoPackageVersion: (params: GetJunoPackageParams) => Pr
43
43
  * @throws {ZodError} If the metadata exists but does not conform to the expected `JunoPackage` schema.
44
44
  */
45
45
  export declare const getJunoPackageDependencies: (params: GetJunoPackageParams) => Promise<JunoPackage["dependencies"] | undefined>;
46
- /**
47
- * Finds a specific dependency entry by its ID from the `juno:package` metadata.
48
- *
49
- * @param {Object} params - The parameters to fetch and search within the dependencies.
50
- * @param {string} params.dependencyId - The ID of the dependency to find (e.g., `@junobuild/satellite`).
51
- * @param {Principal | string} params.moduleId - The canister ID (as a `Principal` or string).
52
- * @param {ActorParameters} params - Additional actor parameters required for the metadata call.
53
- *
54
- * @returns {Promise<[string, string] | undefined>} A promise that resolves to the `[dependencyId, version]` tuple if found, or `undefined` otherwise.
55
- *
56
- * @throws {ZodError} If the metadata exists but does not conform to the expected `JunoPackage` schema.
57
- */
58
- export declare const findJunoPackageDependency: ({ dependencyId, ...params }: GetJunoPackageParams & {
59
- dependencyId: string;
60
- }) => Promise<[string, string] | undefined>;
@@ -0,0 +1,14 @@
1
+ import type { JunoPackageDependencies } from '@junobuild/config';
2
+ /**
3
+ * Finds a specific dependency in a `JunoPackageDependencies` map.
4
+ *
5
+ * @param {Object} params - The parameters for the search.
6
+ * @param {string} params.dependencyId - The ID of the dependency to look for.
7
+ * @param {JunoPackageDependencies | undefined} params.dependencies - The full list of dependencies, or `undefined`.
8
+ *
9
+ * @returns {[string, string] | undefined} A tuple containing the dependency ID and version if found, or `undefined` if not found or no dependencies are present.
10
+ */
11
+ export declare const findJunoPackageDependency: ({ dependencyId, dependencies }: {
12
+ dependencyId: string;
13
+ dependencies: JunoPackageDependencies | undefined;
14
+ }) => [string, string] | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@junobuild/admin",
3
- "version": "0.1.8-next-2025-04-06",
3
+ "version": "0.1.8-next-2025-04-06.1",
4
4
  "description": "A library for interfacing with admin features of Juno",
5
5
  "author": "David Dal Busco (https://daviddalbusco.com)",
6
6
  "license": "MIT",