Skip to content

Commit 3ea82a6

Browse files
committed
Fix LWCP.PropMap and Message.toString()
1 parent 53c7286 commit 3ea82a6

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "telos-lwcp",
3-
"version": "0.1.1",
3+
"version": "0.1.2",
44
"main": "dist/lwcp.js",
55
"types": "dist/lwcp.d.ts",
66
"scripts": {

src/lwcp.spec.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,8 @@ describe('LWCP.Message', () => {
8787
}
8888
}
8989
})
90+
91+
it(`Test if Message.toString() crashes: ${msg.toString()}`, () => {})
9092
})
9193
})
9294

src/lwcp.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ export namespace LWCP {
211211
}
212212
}
213213

214-
export class PropMap extends Object {
214+
export class PropMap {
215215
// Returns array like this: [['prop1'], ['prop2', 'val2'], ['prop3']]
216216
toArray2d() : string[][] {
217217
return Object.keys(this).map(key => [key, this[key].toString()].filter(e => e))

0 commit comments

Comments
 (0)