mirror of
https://github.com/amark/gun.git
synced 2025-03-30 15:08:33 +00:00

The FileJS module can be passed options in two ways, and this commit ensures they're treated in the right way. Previously, options passed as .put or .get parameters would be favored over those used on the chain, even if `file` wasn't specified. Now, the module will only use the method options if `file` is mentioned, falling back to the chain options. This was a mistake on my part with the first PR (#268), I failed to notice notice that edge case.