diff --git a/convert/converter.spec.ts b/convert/converter.spec.ts index b2cee75..0f9576f 100644 --- a/convert/converter.spec.ts +++ b/convert/converter.spec.ts @@ -91,8 +91,8 @@ void describe('convert()', () => { { ObjectID: LwM2MObjectID.ButtonPress_14220, ObjectVersion: '1.0', + ObjectInstanceID: 1, Resources: { - 0: 1, 99: BUTTON.ts, }, }, diff --git a/convert/converter.ts b/convert/converter.ts index 8cf3a58..191021f 100644 --- a/convert/converter.ts +++ b/convert/converter.ts @@ -82,10 +82,13 @@ const converters: Array< [ isAppId('BUTTON'), (data, ts) => - toInstance(LwM2MObjectID.ButtonPress_14220, { - 0: parseInt(data as string, 10), - 99: ts, - }), + toInstance( + LwM2MObjectID.ButtonPress_14220, + { + 99: ts, + }, + parseInt(data as string, 10), + ), ], ] diff --git a/package-lock.json b/package-lock.json index d415cd0..c1530dd 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,8 +10,8 @@ "license": "BSD-3-Clause", "dependencies": { "@aws-lambda-powertools/metrics": "2.1.1", - "@hello.nrfcloud.com/lambda-helpers": "1.1.32", - "@hello.nrfcloud.com/proto-map": "10.0.4", + "@hello.nrfcloud.com/lambda-helpers": "1.1.33", + "@hello.nrfcloud.com/proto-map": "11.0.0", "@middy/core": "5.3.5" }, "devDependencies": { @@ -22,7 +22,7 @@ "@bifravst/eslint-config-typescript": "6.1.1", "@bifravst/prettier-config": "1.0.0", "@commitlint/config-conventional": "19.2.2", - "@types/node": "20.12.13", + "@types/node": "20.12.14", "aws-cdk-lib": "2.143.1", "cdk": "2.143.1", "check-node-version": "4.2.1", @@ -1530,24 +1530,24 @@ } }, "node_modules/@hello.nrfcloud.com/lambda-helpers": { - "version": "1.1.32", - "resolved": "https://registry.npmjs.org/@hello.nrfcloud.com/lambda-helpers/-/lambda-helpers-1.1.32.tgz", - "integrity": "sha512-dRgO90ES5OeHLsqANtF66nxYp/V1GIWiRJEB4grin95z3rh2isFgKpxZQQ1i/upePBvfaMKzY4wh8MhGAni+mQ==", + "version": "1.1.33", + "resolved": "https://registry.npmjs.org/@hello.nrfcloud.com/lambda-helpers/-/lambda-helpers-1.1.33.tgz", + "integrity": "sha512-oKan7CMEadKpUZnolQRsaHzlUNfv1voozqgC2UhSImLkaYTEGAJKm5FpSqRrBrhqnNT5GgDnmCMLwSphjYRhJA==", "license": "BSD-3-Clause", "engines": { "node": ">=20", - "npm": ">=9" + "npm": ">=10" }, "peerDependencies": { "@aws-lambda-powertools/metrics": "^2.1.1", - "@hello.nrfcloud.com/proto": "^13.0.6", + "@hello.nrfcloud.com/proto": "^13.0.7", "@middy/core": "^5.3.5" } }, "node_modules/@hello.nrfcloud.com/proto": { - "version": "13.0.6", - "resolved": "https://registry.npmjs.org/@hello.nrfcloud.com/proto/-/proto-13.0.6.tgz", - "integrity": "sha512-QoRnBZqqs6NBAth/zxeSpie7yO/RMfuSTJ+jIbT0hUE5Efab/Ot20b0+X4Zl9LLtdDtnPeuvChlLYjodzyl9bw==", + "version": "13.0.7", + "resolved": "https://registry.npmjs.org/@hello.nrfcloud.com/proto/-/proto-13.0.7.tgz", + "integrity": "sha512-To8bME9Wz4uUh7nqaNgtuySoBegeQmSQL0vA47z6UjLNDUH86gGxSCj1jpAYhDHoyL22dML776C44o+kvoPU6Q==", "license": "BSD-3-Clause", "peer": true, "engines": { @@ -1555,16 +1555,16 @@ "npm": ">=9.0.0" }, "peerDependencies": { - "@hello.nrfcloud.com/proto-map": "^10.0.4", + "@hello.nrfcloud.com/proto-map": "^11.0.0", "@sinclair/typebox": "^0.32.31", "ajv": "^8.14.0", "jsonata": "^2.0.5" } }, "node_modules/@hello.nrfcloud.com/proto-map": { - "version": "10.0.4", - "resolved": "https://registry.npmjs.org/@hello.nrfcloud.com/proto-map/-/proto-map-10.0.4.tgz", - "integrity": "sha512-tOdfRofCFCT0bjhg4bcPAsxXik0ekHYumPOW2PPzTdV3KcottrrkV4H4dy90SAszsNnTyRMcDb58zHaRQYvexw==", + "version": "11.0.0", + "resolved": "https://registry.npmjs.org/@hello.nrfcloud.com/proto-map/-/proto-map-11.0.0.tgz", + "integrity": "sha512-XPtJHo9wc+Rz54EYx3C6KwsitQQNEDkMzIpA3rG0vBB0LDw3i3/hrbT/oBu8GM4WuUkXWAbRkOVCPSvGgQEkVw==", "license": "BSD-3-Clause", "engines": { "node": ">=20.0.0", @@ -2531,9 +2531,9 @@ "dev": true }, "node_modules/@types/node": { - "version": "20.12.13", - "resolved": "https://registry.npmjs.org/@types/node/-/node-20.12.13.tgz", - "integrity": "sha512-gBGeanV41c1L171rR7wjbMiEpEI/l5XFQdLLfhr/REwpgDy/4U8y89+i8kRiLzDyZdOkXh+cRaTetUnCYutoXA==", + "version": "20.12.14", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.12.14.tgz", + "integrity": "sha512-scnD59RpYD91xngrQQLGkE+6UrHUPzeKZWhhjBSa3HSkwjbQc38+q3RoIVEwxQGRw3M+j5hpNAM+lgV3cVormg==", "dev": true, "license": "MIT", "dependencies": { diff --git a/package.json b/package.json index 5475ea5..a2683e5 100644 --- a/package.json +++ b/package.json @@ -32,7 +32,7 @@ "@bifravst/eslint-config-typescript": "6.1.1", "@bifravst/prettier-config": "1.0.0", "@commitlint/config-conventional": "19.2.2", - "@types/node": "20.12.13", + "@types/node": "20.12.14", "aws-cdk-lib": "2.143.1", "cdk": "2.143.1", "check-node-version": "4.2.1", @@ -75,8 +75,8 @@ "prettier": "@bifravst/prettier-config", "dependencies": { "@aws-lambda-powertools/metrics": "2.1.1", - "@hello.nrfcloud.com/lambda-helpers": "1.1.32", - "@hello.nrfcloud.com/proto-map": "10.0.4", + "@hello.nrfcloud.com/lambda-helpers": "1.1.33", + "@hello.nrfcloud.com/proto-map": "11.0.0", "@middy/core": "5.3.5" } }