@hello.nrfcloud.com/nrfcloud-api-helpers 5.2.20 → 5.2.22

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.
@@ -4,7 +4,7 @@ import { getFOTABundles } from './getFOTABundles.js';
4
4
  void describe('getFOTABundles()', () => {
5
5
  void it('should fetch all FOTA bundles', async () => {
6
6
  const mockFetch = mock.fn();
7
- mockFetch.mock.mockImplementationOnce(() => ({
7
+ mockFetch.mock.mockImplementationOnce(async () => Promise.resolve({
8
8
  ok: true,
9
9
  json: async () => Promise.resolve({
10
10
  items: [
@@ -23,7 +23,7 @@ void describe('getFOTABundles()', () => {
23
23
  pageNextToken: '102/B5fGZNAs7vcw8E2i611ID4apx/Du/2/H6nr2UDWk5eoihEeAgh6qoaGcDzAI4M8JCoO4iAAK96TWfuB19ru9c1PrnwiTUdw/sZzwrYSrS433vPjDJNvJUIEmqm9+V3ElM5M1bLmt6GrGa57SymHHK4nN0W+zHhmE97cCCfzJMBXhVTl3TzvBx5rE1KJYf',
24
24
  }),
25
25
  }), 0);
26
- mockFetch.mock.mockImplementationOnce(() => ({
26
+ mockFetch.mock.mockImplementationOnce(async () => Promise.resolve({
27
27
  ok: true,
28
28
  json: async () => Promise.resolve({
29
29
  items: [
@@ -33,7 +33,9 @@ void describe('getFOTABundles()', () => {
33
33
  size: 426280,
34
34
  version: 'v1.1.2-sol-dbg',
35
35
  type: 'APP',
36
- filenames: ['hello-nrfcloud-thingy91-sol-dbg-v1.1.2-fwupd.bin'],
36
+ filenames: [
37
+ 'hello-nrfcloud-thingy91-sol-dbg-v1.1.2-fwupd.bin',
38
+ ],
37
39
  name: 'hello.nrfcloud.com v1.1.2-sol-dbg',
38
40
  description: 'Firmware Update Image BIN file (thingy91, solar, debug)',
39
41
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hello.nrfcloud.com/nrfcloud-api-helpers",
3
- "version": "5.2.20",
3
+ "version": "5.2.22",
4
4
  "description": "Helper functions for integrating nRF Cloud APIs in AWS lambdas written in TypeScript.",
5
5
  "exports": {
6
6
  "./*": {
@@ -36,7 +36,7 @@
36
36
  "@bifravst/prettier-config": "1.0.3",
37
37
  "@commitlint/config-conventional": "19.2.2",
38
38
  "@types/aws-lambda": "8.10.140",
39
- "@types/node": "20.14.7",
39
+ "@types/node": "20.14.9",
40
40
  "husky": "9.0.11",
41
41
  "tsmatchers": "5.0.2",
42
42
  "tsx": "4.15.7"
@@ -85,7 +85,7 @@
85
85
  "@aws-sdk/client-dynamodb": "^3.602.0",
86
86
  "@aws-sdk/client-ssm": "^3.603.0",
87
87
  "@aws-sdk/util-dynamodb": "^3.602.0",
88
- "@bifravst/aws-ssm-settings-helpers": "^1.1.34",
88
+ "@bifravst/aws-ssm-settings-helpers": "^1.1.36",
89
89
  "@hello.nrfcloud.com/proto": "^14.1.2",
90
90
  "@sinclair/typebox": "^0.32.34"
91
91
  }