@feathersjs/rest-client
Advanced tools
Comparing version 4.0.0-pre.1 to 4.0.0-pre.2
@@ -6,2 +6,13 @@ # Change Log | ||
# [4.0.0-pre.2](https://github.com/feathersjs/feathers/compare/v4.0.0-pre.1...v4.0.0-pre.2) (2019-05-15) | ||
### Bug Fixes | ||
* Use `export =` in TypeScript definitions ([#1285](https://github.com/feathersjs/feathers/issues/1285)) ([12d0f4b](https://github.com/feathersjs/feathers/commit/12d0f4b)) | ||
# [4.0.0-pre.1](https://github.com/feathersjs/feathers/compare/v4.0.0-pre.0...v4.0.0-pre.1) (2019-05-08) | ||
@@ -8,0 +19,0 @@ |
@@ -1,37 +0,40 @@ | ||
// Type definitions for @feathersjs/rest-client 1.3 | ||
// Project: https://feathersjs.com | ||
// Definitions by: Jan Lohage <https://github.com/j2L4e> | ||
// Definitions: https://github.com/feathersjs-ecosystem/feathers-typescript | ||
// todo: get rid of all the anys | ||
export default function feathersRestClient (base?: string): Transport; | ||
declare const restClient: FeathersRestClient; | ||
export = restClient; | ||
export interface HandlerResult extends Function { | ||
/** | ||
* initialize service | ||
*/ | ||
(): void; | ||
interface FeathersRestClient { | ||
(base?: string): restClient.Transport; | ||
default: FeathersRestClient; | ||
} | ||
/** | ||
* Transport Service | ||
*/ | ||
Service: any; | ||
declare namespace restClient { | ||
interface HandlerResult extends Function { | ||
/** | ||
* initialize service | ||
*/ | ||
(): void; | ||
/** | ||
* default Service | ||
*/ | ||
service: any; | ||
} | ||
/** | ||
* Transport Service | ||
*/ | ||
Service: any; | ||
export type Handler = (connection: any, options?: any) => () => HandlerResult; | ||
/** | ||
* default Service | ||
*/ | ||
service: any; | ||
} | ||
export interface Transport { | ||
jquery: Handler; | ||
superagent: Handler; | ||
request: Handler; | ||
fetch: Handler; | ||
axios: Handler; | ||
angular: Handler; | ||
angularHttpClient: Handler; | ||
type Handler = (connection: any, options?: any) => () => HandlerResult; | ||
interface Transport { | ||
jquery: Handler; | ||
superagent: Handler; | ||
request: Handler; | ||
fetch: Handler; | ||
axios: Handler; | ||
angular: Handler; | ||
angularHttpClient: Handler; | ||
} | ||
} |
{ | ||
"name": "@feathersjs/rest-client", | ||
"description": "REST client services for different Ajax libraries", | ||
"version": "4.0.0-pre.1", | ||
"version": "4.0.0-pre.2", | ||
"homepage": "https://feathersjs.com", | ||
@@ -40,3 +40,3 @@ "main": "lib/index.js", | ||
"@feathersjs/commons": "^4.0.0-pre.0", | ||
"@feathersjs/errors": "^4.0.0-pre.1", | ||
"@feathersjs/errors": "^4.0.0-pre.2", | ||
"qs": "^6.7.0" | ||
@@ -49,5 +49,5 @@ }, | ||
"@angular/platform-browser": "^7.2.12", | ||
"@feathersjs/express": "^4.0.0-pre.1", | ||
"@feathersjs/feathers": "^4.0.0-pre.1", | ||
"@feathersjs/tests": "^4.0.0-pre.1", | ||
"@feathersjs/express": "^4.0.0-pre.2", | ||
"@feathersjs/feathers": "^4.0.0-pre.2", | ||
"@feathersjs/tests": "^4.0.0-pre.2", | ||
"axios": "^0.18.0", | ||
@@ -63,3 +63,3 @@ "body-parser": "^1.18.3", | ||
}, | ||
"gitHead": "e8ce9116c6a4433b64ffe400585b60a9c31ba644" | ||
"gitHead": "d665b9470435d6db0ecddd1fb152ab4a87266c52" | ||
} |
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
25905
370