rest-hooks
Advanced tools
Comparing version 0.6.0 to 0.6.1
import Resource, { RequestShape as ImportedRequestShape } from './resource/Resource'; | ||
import { RestProvider, hooks, NetworkThrottler } from './react-rest'; | ||
import { RestProvider, hooks, NetworkThrottler, NetworkErrorBoundary } from './react-rest'; | ||
import * as selectors from './state/selectors'; | ||
@@ -7,2 +7,2 @@ import { Request as RequestType } from 'superagent'; | ||
export declare type Request = RequestType; | ||
export { Resource, RestProvider, hooks, selectors, NetworkThrottler }; | ||
export { Resource, RestProvider, hooks, selectors, NetworkThrottler, NetworkErrorBoundary, }; |
import Resource from './resource/Resource'; | ||
import { RestProvider, hooks, NetworkThrottler } from './react-rest'; | ||
import { RestProvider, hooks, NetworkThrottler, NetworkErrorBoundary } from './react-rest'; | ||
import * as selectors from './state/selectors'; | ||
export { Resource, RestProvider, hooks, selectors, NetworkThrottler }; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9pbmRleC50cyJdLCJuYW1lcyI6WyJSZXNvdXJjZSIsIlJlc3RQcm92aWRlciIsImhvb2tzIiwiTmV0d29ya1Rocm90dGxlciIsInNlbGVjdG9ycyJdLCJtYXBwaW5ncyI6IkFBQUEsT0FBT0EsUUFBUCxNQUVPLHFCQUZQO0FBR0EsU0FBU0MsWUFBVCxFQUF1QkMsS0FBdkIsRUFBOEJDLGdCQUE5QixRQUFzRCxjQUF0RDtBQUNBLE9BQU8sS0FBS0MsU0FBWixNQUEyQixtQkFBM0I7QUFTQSxTQUFTSixRQUFULEVBQW1CQyxZQUFuQixFQUFpQ0MsS0FBakMsRUFBd0NFLFNBQXhDLEVBQW1ERCxnQkFBbkQiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgUmVzb3VyY2UsIHtcbiAgUmVxdWVzdFNoYXBlIGFzIEltcG9ydGVkUmVxdWVzdFNoYXBlLFxufSBmcm9tICcuL3Jlc291cmNlL1Jlc291cmNlJztcbmltcG9ydCB7IFJlc3RQcm92aWRlciwgaG9va3MsIE5ldHdvcmtUaHJvdHRsZXIgfSBmcm9tICcuL3JlYWN0LXJlc3QnO1xuaW1wb3J0ICogYXMgc2VsZWN0b3JzIGZyb20gJy4vc3RhdGUvc2VsZWN0b3JzJztcbmltcG9ydCB7IFJlcXVlc3QgYXMgUmVxdWVzdFR5cGUgfSBmcm9tICdzdXBlcmFnZW50JztcblxuLy8gdGhpcyBpcyByZXF1aXJlZCBzbyBiYWJlbCBkb2Vzbid0IHB1dCB0aGUgZXhwb3J0IGluIHRoZSBKUyBjb2RlXG5leHBvcnQgdHlwZSBSZXF1ZXN0U2hhcGU8XG4gIFBhcmFtIGV4dGVuZHMgb2JqZWN0LFxuICBQYXlsb2FkIGV4dGVuZHMgb2JqZWN0IHwgdm9pZFxuPiA9IEltcG9ydGVkUmVxdWVzdFNoYXBlPFBhcmFtLCBQYXlsb2FkPjtcbmV4cG9ydCB0eXBlIFJlcXVlc3QgPSBSZXF1ZXN0VHlwZTtcbmV4cG9ydCB7IFJlc291cmNlLCBSZXN0UHJvdmlkZXIsIGhvb2tzLCBzZWxlY3RvcnMsIE5ldHdvcmtUaHJvdHRsZXIgfTtcbiJdfQ== | ||
export { Resource, RestProvider, hooks, selectors, NetworkThrottler, NetworkErrorBoundary }; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9pbmRleC50cyJdLCJuYW1lcyI6WyJSZXNvdXJjZSIsIlJlc3RQcm92aWRlciIsImhvb2tzIiwiTmV0d29ya1Rocm90dGxlciIsIk5ldHdvcmtFcnJvckJvdW5kYXJ5Iiwic2VsZWN0b3JzIl0sIm1hcHBpbmdzIjoiQUFBQSxPQUFPQSxRQUFQLE1BRU8scUJBRlA7QUFHQSxTQUNFQyxZQURGLEVBRUVDLEtBRkYsRUFHRUMsZ0JBSEYsRUFJRUMsb0JBSkYsUUFLTyxjQUxQO0FBT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| ||
import RestProvider from './provider'; | ||
import NetworkThrottler from './throttler'; | ||
export { hooks, RestProvider, NetworkThrottler }; | ||
import NetworkErrorBoundary from './NetworkErrorBoundary'; | ||
export { hooks, RestProvider, NetworkThrottler, NetworkErrorBoundary }; |
import * as hooks from './hooks'; | ||
import RestProvider from './provider'; | ||
import NetworkThrottler from './throttler'; | ||
export { hooks, RestProvider, NetworkThrottler }; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9yZWFjdC1yZXN0L2luZGV4LnRzIl0sIm5hbWVzIjpbImhvb2tzIiwiUmVzdFByb3ZpZGVyIiwiTmV0d29ya1Rocm90dGxlciJdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxLQUFLQSxLQUFaLE1BQXVCLFNBQXZCO0FBQ0EsT0FBT0MsWUFBUCxNQUF5QixZQUF6QjtBQUNBLE9BQU9DLGdCQUFQLE1BQTZCLGFBQTdCO0FBRUEsU0FBU0YsS0FBVCxFQUFnQkMsWUFBaEIsRUFBOEJDLGdCQUE5QiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCAqIGFzIGhvb2tzIGZyb20gJy4vaG9va3MnO1xuaW1wb3J0IFJlc3RQcm92aWRlciBmcm9tICcuL3Byb3ZpZGVyJztcbmltcG9ydCBOZXR3b3JrVGhyb3R0bGVyIGZyb20gJy4vdGhyb3R0bGVyJztcblxuZXhwb3J0IHsgaG9va3MsIFJlc3RQcm92aWRlciwgTmV0d29ya1Rocm90dGxlciB9O1xuIl19 | ||
import NetworkErrorBoundary from './NetworkErrorBoundary'; | ||
export { hooks, RestProvider, NetworkThrottler, NetworkErrorBoundary }; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9yZWFjdC1yZXN0L2luZGV4LnRzIl0sIm5hbWVzIjpbImhvb2tzIiwiUmVzdFByb3ZpZGVyIiwiTmV0d29ya1Rocm90dGxlciIsIk5ldHdvcmtFcnJvckJvdW5kYXJ5Il0sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEtBQUtBLEtBQVosTUFBdUIsU0FBdkI7QUFDQSxPQUFPQyxZQUFQLE1BQXlCLFlBQXpCO0FBQ0EsT0FBT0MsZ0JBQVAsTUFBNkIsYUFBN0I7QUFDQSxPQUFPQyxvQkFBUCxNQUFpQyx3QkFBakM7QUFFQSxTQUFTSCxLQUFULEVBQWdCQyxZQUFoQixFQUE4QkMsZ0JBQTlCLEVBQWdEQyxvQkFBaEQiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgKiBhcyBob29rcyBmcm9tICcuL2hvb2tzJztcbmltcG9ydCBSZXN0UHJvdmlkZXIgZnJvbSAnLi9wcm92aWRlcic7XG5pbXBvcnQgTmV0d29ya1Rocm90dGxlciBmcm9tICcuL3Rocm90dGxlcic7XG5pbXBvcnQgTmV0d29ya0Vycm9yQm91bmRhcnkgZnJvbSAnLi9OZXR3b3JrRXJyb3JCb3VuZGFyeSc7XG5cbmV4cG9ydCB7IGhvb2tzLCBSZXN0UHJvdmlkZXIsIE5ldHdvcmtUaHJvdHRsZXIsIE5ldHdvcmtFcnJvckJvdW5kYXJ5IH07XG4iXX0= |
{ | ||
"name": "rest-hooks", | ||
"version": "0.6.0", | ||
"version": "0.6.1", | ||
"description": "Easy react hooks for REST APIs", | ||
@@ -5,0 +5,0 @@ "sideEffects": false, |
@@ -8,2 +8,3 @@ # Rest hooks: Data fetching and binding hooks for React | ||
Note: 1.0 release will be happening in the coming weeks (Feb 2019). Stay tuned. | ||
(Follow @npinp for updates) | ||
@@ -17,4 +18,4 @@ ## Getting Started | ||
* State: | ||
* [Resource](docs/Resource.md) | ||
* [Resource](docs/api/Resource.md) | ||
* RequestShape | ||
* Hooks: | ||
@@ -25,2 +26,5 @@ * [useResource](docs/api/useResource.md) | ||
* [useFetch](docs/api/useFetch.md) | ||
* Components: | ||
* RestProvider | ||
* [NetworkErrorBoundary](docs/api/NetworkErrorBoundary.md) | ||
@@ -30,6 +34,10 @@ ## Patterns & Examples | ||
* Basics | ||
* [Defining your Resource types](docs/guides/resource-types.md) | ||
* [Handling loading state](docs/guides/loading-state.md) | ||
* [Dealing with network errors](docs/guides/network-errors.md) | ||
* [Computed properties](docs/guides/computed-properties.md) | ||
* [Understanding Immutability](docs/guides/immutability.md) | ||
* [Authentication](docs/guides/auth.md) | ||
* [Fetching multiple resources at once](docs/guides/fetch-multiple.md) | ||
* [Multicolumn primary keys](docs/guides/multi-pk.md) | ||
* Transforming data on network load | ||
@@ -36,0 +44,0 @@ * Pagination |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
124437
27
1054
64