@hello.nrfcloud.com/nrfcloud-api-helpers 1.1.2 → 1.1.4

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.
@@ -3,7 +3,7 @@ import { type Settings } from './settings.js';
3
3
  /**
4
4
  * Returns settings for all accounts
5
5
  */
6
- export declare const getAllAccountSettings: ({ ssm, stackName, }: {
6
+ export declare const getAllAccountsSettings: ({ ssm, stackName, }: {
7
7
  ssm: SSMClient;
8
8
  stackName: string;
9
9
  }) => Promise<Record<string, Settings>>;
@@ -6,7 +6,7 @@ import { NRFCLOUD_ACCOUNT_SCOPE } from './scope.js';
6
6
  /**
7
7
  * Returns settings for all accounts
8
8
  */
9
- export const getAllAccountSettings = async ({ ssm, stackName, }) => {
9
+ export const getAllAccountsSettings = async ({ ssm, stackName, }) => {
10
10
  const allSettings = await get(ssm)({
11
11
  stackName,
12
12
  scope: NRFCLOUD_ACCOUNT_SCOPE,
@@ -23,7 +23,7 @@ export const getAllAccountSettings = async ({ ssm, stackName, }) => {
23
23
  .reduce((s, [k, v]) => ({ ...s, [k]: v }), {})),
24
24
  }), {});
25
25
  };
26
- console.log(await getAllAccountSettings({
26
+ console.log(await getAllAccountsSettings({
27
27
  ssm: new SSMClient(),
28
28
  stackName: 'hello-nrfcloud-backend',
29
29
  }));
@@ -2,3 +2,4 @@ export * from './settings.js';
2
2
  export * from './scope.js';
3
3
  export * from './initializeAccount.js';
4
4
  export * from './getAllAccounts.js';
5
+ export * from './getAllAccountsSettings.js';
@@ -2,3 +2,4 @@ export * from './settings.js';
2
2
  export * from './scope.js';
3
3
  export * from './initializeAccount.js';
4
4
  export * from './getAllAccounts.js';
5
+ export * from './getAllAccountsSettings.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hello.nrfcloud.com/nrfcloud-api-helpers",
3
- "version": "1.1.2",
3
+ "version": "1.1.4",
4
4
  "description": "Helper functions for integrating nRF Cloud APIs in AWS lambdas written in TypeScript.",
5
5
  "exports": {
6
6
  "./*": {