Comparing version 0.1.1 to 0.1.2
@@ -5,2 +5,7 @@ # Change Log | ||
<a name="0.1.2"></a> | ||
## [0.1.2](https://github.com/Kriegslustig/orq/compare/v0.1.1...v0.1.2) (2017-05-24) | ||
<a name="0.1.1"></a> | ||
@@ -7,0 +12,0 @@ ## [0.1.1](https://github.com/Kriegslustig/orq/compare/v0.1.0...v0.1.1) (2017-05-21) |
// @flow | ||
import type {Request as RequestType} from "./request"; | ||
declare class Class0 extends EventTarget<> { | ||
@@ -11,2 +12,3 @@ | ||
} | ||
export type Request = (url: string, options?: {body?: any, cacheResponse?: boolean, cancelable?: boolean, fromRemote?: boolean, headers?: {[_: string]: string}, method?: "GET" | "HEAD" | "POST" | "PUT" | "PATCH" | "OPTIONS" | "CONNECT" | "TRACE"}) => rxjs$Observable<any>; | ||
declare export function mkCachePolicy(policy: {resources?: {[BaseUrl: string]: {[Path: string]: {contains?: Array<string>, ttl?: number}}}, ttl?: number}): (cache: {clear: <string>() => rxjs$Observable<true>, delete: (key: K) => rxjs$Observable<true>, get: (key: K) => rxjs$Observable<any>, has: (key: K) => rxjs$Observable<boolean>, set: (key: K, value: any) => rxjs$Observable<any>}) => {clear: <[string, string]>() => rxjs$Observable<true>, delete: (key: K) => rxjs$Observable<true>, get: (key: K) => rxjs$Observable<any>, has: (key: K) => rxjs$Observable<boolean>, set: (key: K, value: any) => rxjs$Observable<any>}; | ||
@@ -13,0 +15,0 @@ declare export function mkInterface<UrlMap, Responses>(worker: Class0): {addRequest: <RequestPayload, Response>(url: string, options?: {body?: RequestPayload, cacheResponse?: boolean, cancelable?: boolean, fromRemote?: boolean, headers?: {[_: string]: string}, method?: "GET" | "HEAD" | "POST" | "PUT" | "PATCH" | "OPTIONS" | "CONNECT" | "TRACE"}) => rxjs$Observable<Response>, clear: () => rxjs$Observable<void>, invalidate: (url: string, method?: string) => rxjs$Observable<void>} | {addRequest: <RequestPayload, Response>(url: string, options?: {body?: RequestPayload, cacheResponse?: boolean, cancelable?: boolean, fromRemote?: boolean, headers?: {[_: string]: string}, method?: "GET" | "HEAD" | "POST" | "PUT" | "PATCH" | "OPTIONS" | "CONNECT" | "TRACE"}) => rxjs$Observable<Response>, clear: () => rxjs$Observable<void>, invalidate: (url: string, method?: string) => rxjs$Observable<void>} | {addRequest: <RequestPayload, Response>(url: string, options?: {body?: RequestPayload, cacheResponse?: boolean, cancelable?: boolean, fromRemote?: boolean, headers?: {[_: string]: string}, method?: "GET" | "HEAD" | "POST" | "PUT" | "PATCH" | "OPTIONS" | "CONNECT" | "TRACE"}) => rxjs$Observable<Response>, clear: () => rxjs$Observable<void>, invalidate: (url: string, method?: string) => rxjs$Observable<void>}; |
{ | ||
"name": "orq", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "HTTP Request Queue Optimized for Web Workers.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
150962
409