node-arlo icon indicating copy to clipboard operation
node-arlo copied to clipboard

Serialise Devices

Open SmolSoftBoi opened this issue 4 years ago • 5 comments

Describe The Bug: Unable to serialise the device classes.

To Reproduce: JSON.stringify(device)

Expected behavior: Serialise device to JSON.

Logs:

TypeError: Converting circular structure to JSON
    --> starting at object with constructor 'ArloBaseStation'
    |     property 'parent' -> object with constructor 'Arlo'
    |     property 'devices' -> object with constructor 'Object'

Environment:

  • Node.js Version: v14.5.0
  • NPM Version: 6.14.6
  • Operating System: macOS

SmolSoftBoi avatar Jul 14 '20 20:07 SmolSoftBoi

@EpicKris Any progress on typescript in the beta?

donavanbecker avatar Jan 22 '21 12:01 donavanbecker

@EpicKris Any progress on typescript in the beta?

The beta fixes this issue by removing all circular dependencies.

SmolSoftBoi avatar Feb 19 '21 16:02 SmolSoftBoi

@EpicKris awesome!

donavanbecker avatar Feb 19 '21 17:02 donavanbecker

@EpicKris Can you please transfer this back to me?

donavanbecker avatar Jan 16 '22 02:01 donavanbecker

@EpicKris ? Please

donavanbecker avatar Jan 30 '22 01:01 donavanbecker