Skip to content
This repository has been archived by the owner on Feb 6, 2018. It is now read-only.

Allow to instantiate a client instance #16

Merged
merged 1 commit into from
Feb 11, 2016
Merged

Allow to instantiate a client instance #16

merged 1 commit into from
Feb 11, 2016

Conversation

daffl
Copy link
Member

@daffl daffl commented Feb 11, 2016

This allows to instantiate a standalone client service like:

const rest = require('feathers-rest/client');

const todoService = rest(url).fetch(fetch).service('todos');

Also throws an error when configured twice on the client.

@ekryski
Copy link
Member

ekryski commented Feb 11, 2016

Do you want to add a test for the error being thrown? In the case where you initialize two or more providers?

@daffl
Copy link
Member Author

daffl commented Feb 11, 2016

@ekryski
Copy link
Member

ekryski commented Feb 11, 2016

My bad. :shipit:

daffl added a commit that referenced this pull request Feb 11, 2016
Allow to instantiate a client instance
@daffl daffl merged commit 7bb6562 into master Feb 11, 2016
@daffl daffl deleted the instantiate-client branch February 11, 2016 03:09
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants