mirror of
https://github.com/bourquep/mysa-js-sdk.git
synced 2026-02-04 09:41:07 +00:00
Compare commits
12 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
98003665b8 | ||
|
|
7afec1a7a9 | ||
|
|
e6631b0fd8 | ||
|
|
efaf3310d2 | ||
|
|
a62b538c42 | ||
|
|
2023e8b321 | ||
|
|
808e8f1037 | ||
|
|
f201c7944a | ||
|
|
f6c6127dab | ||
|
|
73cec9a90e | ||
|
|
39fc9048df | ||
|
|
45d69453df |
2471
package-lock.json
generated
2471
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
34
package.json
34
package.json
@@ -50,34 +50,34 @@
|
|||||||
"brace-expansion": "^2.0.2"
|
"brace-expansion": "^2.0.2"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@aws-sdk/client-iot": "3.830.0",
|
"@aws-sdk/client-iot": "3.835.0",
|
||||||
"@aws-sdk/credential-providers": "3.830.0",
|
"@aws-sdk/credential-providers": "3.876.0",
|
||||||
"amazon-cognito-identity-js": "6.3.15",
|
"amazon-cognito-identity-js": "6.3.15",
|
||||||
"aws-iot-device-sdk-v2": "1.21.5",
|
"aws-iot-device-sdk-v2": "1.22.0",
|
||||||
"dayjs": "1.11.13",
|
"dayjs": "1.11.13",
|
||||||
"lodash": "4.17.21"
|
"lodash": "4.17.21"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@eslint/js": "9.29.0",
|
"@eslint/js": "9.34.0",
|
||||||
"@semantic-release/npm": "12.0.1",
|
"@semantic-release/npm": "12.0.2",
|
||||||
"@types/lodash": "4.17.18",
|
"@types/lodash": "4.17.20",
|
||||||
"@types/node": "24.0.3",
|
"@types/node": "24.3.0",
|
||||||
"conventional-changelog-conventionalcommits": "9.0.0",
|
"conventional-changelog-conventionalcommits": "9.0.0",
|
||||||
"dotenv": "16.5.0",
|
"dotenv": "17.2.1",
|
||||||
"eslint": "9.29.0",
|
"eslint": "9.34.0",
|
||||||
"eslint-plugin-jsdoc": "51.0.3",
|
"eslint-plugin-jsdoc": "54.1.1",
|
||||||
"eslint-plugin-tsdoc": "0.4.0",
|
"eslint-plugin-tsdoc": "0.4.0",
|
||||||
"pino": "9.7.0",
|
"pino": "9.7.0",
|
||||||
"pino-pretty": "13.0.0",
|
"pino-pretty": "13.0.0",
|
||||||
"prettier": "3.5.3",
|
"prettier": "3.6.2",
|
||||||
"prettier-plugin-jsdoc": "1.3.2",
|
"prettier-plugin-jsdoc": "1.3.3",
|
||||||
"prettier-plugin-organize-imports": "4.1.0",
|
"prettier-plugin-organize-imports": "4.2.0",
|
||||||
"semantic-release": "24.2.5",
|
"semantic-release": "24.2.7",
|
||||||
"tsup": "8.5.0",
|
"tsup": "8.5.0",
|
||||||
"tsx": "4.20.3",
|
"tsx": "4.20.3",
|
||||||
"typedoc": "0.28.5",
|
"typedoc": "0.28.11",
|
||||||
"typedoc-material-theme": "1.4.0",
|
"typedoc-material-theme": "1.4.0",
|
||||||
"typescript": "5.8.3",
|
"typescript": "5.9.2",
|
||||||
"typescript-eslint": "8.34.0"
|
"typescript-eslint": "8.41.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ export function parseMqttPayload(payload: ArrayBuffer): OutPayload {
|
|||||||
* @param payload - The typed payload object to serialize
|
* @param payload - The typed payload object to serialize
|
||||||
* @returns The serialized payload as ArrayBuffer ready for MQTT transmission
|
* @returns The serialized payload as ArrayBuffer ready for MQTT transmission
|
||||||
*/
|
*/
|
||||||
export function serializeMqttPayload<T extends InPayload>(payload: T): ArrayBuffer {
|
export function serializeMqttPayload<T extends InPayload>(payload: T): Uint8Array<ArrayBuffer> {
|
||||||
const jsonString = JSON.stringify(payload);
|
const jsonString = JSON.stringify(payload);
|
||||||
const encoder = new TextEncoder();
|
const encoder = new TextEncoder();
|
||||||
return encoder.encode(jsonString);
|
return encoder.encode(jsonString);
|
||||||
|
|||||||
Reference in New Issue
Block a user