@hello.nrfcloud.com/nrfcloud-api-helpers 6.0.76 → 6.0.78
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.
|
@@ -2,7 +2,7 @@ import assert from 'node:assert/strict';
|
|
|
2
2
|
import { describe, it } from 'node:test';
|
|
3
3
|
import { check, objectMatching } from 'tsmatchers';
|
|
4
4
|
import { getAccountInfo } from './getAccountInfo.js';
|
|
5
|
-
import APIresponse from './test-data/account.json';
|
|
5
|
+
import APIresponse from './test-data/account.json' assert { type: 'json' };
|
|
6
6
|
void describe('getAccountInfo()', () => {
|
|
7
7
|
void it('return the account info', async () => {
|
|
8
8
|
const res = await getAccountInfo({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import assert from 'node:assert/strict';
|
|
2
2
|
import { describe, it } from 'node:test';
|
|
3
3
|
import { getCurrentMonthlyCosts } from './getCurrentMonthlyCosts.js';
|
|
4
|
-
import APIresponse from './test-data/account.json';
|
|
4
|
+
import APIresponse from './test-data/account.json' assert { type: 'json' };
|
|
5
5
|
void describe('getCurrentMonthlyCosts()', () => {
|
|
6
6
|
void it("return the current month's total cost for an account", async () => {
|
|
7
7
|
const res = await getCurrentMonthlyCosts({
|
package/dist/api/getFOTAJob.js
CHANGED
|
@@ -31,7 +31,7 @@ export const FOTAJobType = Type.Object({
|
|
|
31
31
|
title: 'Status',
|
|
32
32
|
description: 'Current status of the job',
|
|
33
33
|
}),
|
|
34
|
-
statusDetail: Type.Optional(Type.String({ minLength:
|
|
34
|
+
statusDetail: Type.Optional(Type.String({ minLength: 0 })),
|
|
35
35
|
name: Type.Optional(Type.String({ minLength: 1 })),
|
|
36
36
|
description: Type.Optional(Type.String({ minLength: 1 })),
|
|
37
37
|
createdAt: ts,
|
|
@@ -2,7 +2,7 @@ import assert from 'node:assert/strict';
|
|
|
2
2
|
import { describe, it } from 'node:test';
|
|
3
3
|
import { aString, arrayMatching, check, objectMatching } from 'tsmatchers';
|
|
4
4
|
import { getLocationHistory } from './getLocationHistory.js';
|
|
5
|
-
import APIresponse from './test-data/location.json';
|
|
5
|
+
import APIresponse from './test-data/location.json' assert { type: 'json' };
|
|
6
6
|
await describe('getLocationHistory()', async () => {
|
|
7
7
|
await it('return the location history', async () => {
|
|
8
8
|
const res = await getLocationHistory({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hello.nrfcloud.com/nrfcloud-api-helpers",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.78",
|
|
4
4
|
"description": "Helper functions for integrating nRF Cloud APIs in AWS lambdas written in TypeScript.",
|
|
5
5
|
"exports": {
|
|
6
6
|
"./*": {
|
|
@@ -32,11 +32,11 @@
|
|
|
32
32
|
"author": "Nordic Semiconductor ASA | nordicsemi.no",
|
|
33
33
|
"license": "BSD-3-Clause",
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"@bifravst/eslint-config-typescript": "6.1.
|
|
35
|
+
"@bifravst/eslint-config-typescript": "6.1.19",
|
|
36
36
|
"@bifravst/prettier-config": "1.1.1",
|
|
37
37
|
"@commitlint/config-conventional": "19.6.0",
|
|
38
38
|
"@types/aws-lambda": "8.10.145",
|
|
39
|
-
"@types/node": "22.9.
|
|
39
|
+
"@types/node": "22.9.3",
|
|
40
40
|
"commitlint": "19.6.0",
|
|
41
41
|
"husky": "9.1.7",
|
|
42
42
|
"tsmatchers": "5.0.2",
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
[
|
|
68
68
|
"@semantic-release/github",
|
|
69
69
|
{
|
|
70
|
-
"
|
|
70
|
+
"successCommentCondition": false,
|
|
71
71
|
"failTitle": false
|
|
72
72
|
}
|
|
73
73
|
]
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
"@aws-sdk/client-ssm": "^3.699.0",
|
|
88
88
|
"@aws-sdk/util-dynamodb": "^3.699.0",
|
|
89
89
|
"@bifravst/aws-ssm-settings-helpers": "^1.2.71",
|
|
90
|
-
"@hello.nrfcloud.com/proto": "^15.3.
|
|
91
|
-
"@sinclair/typebox": "^0.
|
|
90
|
+
"@hello.nrfcloud.com/proto": "^15.3.22",
|
|
91
|
+
"@sinclair/typebox": "^0.34.8"
|
|
92
92
|
}
|
|
93
93
|
}
|