@luvio/command-fetch-network
Advanced tools
Comparing version 5.7.1 to 5.8.0
@@ -1,16 +0,4 @@ | ||
import { type Result, type ServiceDescriptor } from '@luvio/utils'; | ||
import { NetworkCommand } from '@luvio/command-network/v1'; | ||
import type { NamedFetchService, FetchService } from '@luvio/service-fetch-network/v1'; | ||
/** | ||
* An implementation of BaseCommand that makes network requests but does not try to | ||
* use the store. | ||
*/ | ||
export declare abstract class FetchNetworkCommand<Data, ExtraServices extends Record<string, unknown> = {}> extends NetworkCommand<Data, NamedFetchService & ExtraServices> { | ||
protected services: NamedFetchService & ExtraServices; | ||
constructor(services: NamedFetchService & ExtraServices); | ||
fetch(): PromiseLike<Result<Data, Error>>; | ||
private convertFetchResponseToData; | ||
protected abstract readonly fetchParams: Parameters<FetchService>; | ||
} | ||
import { type ServiceDescriptor } from '@luvio/utils'; | ||
import { FetchNetworkCommand } from './fetch-command'; | ||
export type FetchNetworkCommandServiceDescriptor = ServiceDescriptor<typeof FetchNetworkCommand, 'fetchNetworkCommandBaseClass', '1.0'>; | ||
export declare function buildFetchNetworkCommandBaseClassService(): FetchNetworkCommandServiceDescriptor; | ||
export declare function buildServiceDescriptor(): FetchNetworkCommandServiceDescriptor; |
@@ -11,4 +11,3 @@ /** | ||
/** | ||
* An implementation of BaseCommand that makes network requests but does not try to | ||
* use the store. | ||
* An implementation of NetworkCommand that uses HTTP/fetch as the transport mechanism. | ||
*/ | ||
@@ -34,3 +33,4 @@ class FetchNetworkCommand extends NetworkCommand { | ||
} | ||
function buildFetchNetworkCommandBaseClassService() { | ||
function buildServiceDescriptor() { | ||
return { | ||
@@ -43,2 +43,2 @@ type: 'fetchNetworkCommandBaseClass', | ||
export { FetchNetworkCommand, buildFetchNetworkCommandBaseClassService }; | ||
export { buildServiceDescriptor }; |
@@ -1,16 +0,4 @@ | ||
import { type Result, type ServiceDescriptor } from '@luvio/utils'; | ||
import { NetworkCommand } from '@luvio/command-network/v1'; | ||
import type { NamedFetchService, FetchService } from '@luvio/service-fetch-network/v1'; | ||
/** | ||
* An implementation of BaseCommand that makes network requests but does not try to | ||
* use the store. | ||
*/ | ||
export declare abstract class FetchNetworkCommand<Data, ExtraServices extends Record<string, unknown> = {}> extends NetworkCommand<Data, NamedFetchService & ExtraServices> { | ||
protected services: NamedFetchService & ExtraServices; | ||
constructor(services: NamedFetchService & ExtraServices); | ||
fetch(): PromiseLike<Result<Data, Error>>; | ||
private convertFetchResponseToData; | ||
protected abstract readonly fetchParams: Parameters<FetchService>; | ||
} | ||
import { type ServiceDescriptor } from '@luvio/utils'; | ||
import { FetchNetworkCommand } from './fetch-command'; | ||
export type FetchNetworkCommandServiceDescriptor = ServiceDescriptor<typeof FetchNetworkCommand, 'fetchNetworkCommandBaseClass', '1.0'>; | ||
export declare function buildFetchNetworkCommandBaseClassService(): FetchNetworkCommandServiceDescriptor; | ||
export declare function buildServiceDescriptor(): FetchNetworkCommandServiceDescriptor; |
{ | ||
"name": "@luvio/command-fetch-network", | ||
"version": "5.7.1", | ||
"version": "5.8.0", | ||
"private": false, | ||
@@ -34,6 +34,6 @@ "description": "Luvio Fetch Network Command", | ||
"dependencies": { | ||
"@luvio/command-base": "^5.7.1", | ||
"@luvio/command-network": "^5.7.1", | ||
"@luvio/service-fetch-network": "^5.7.1", | ||
"@luvio/utils": "^5.7.1" | ||
"@luvio/command-base": "^5.8.0", | ||
"@luvio/command-network": "^5.8.0", | ||
"@luvio/service-fetch-network": "^5.8.0", | ||
"@luvio/utils": "^5.8.0" | ||
}, | ||
@@ -40,0 +40,0 @@ "bundlesize": [ |
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
10321
9
76
Updated@luvio/command-base@^5.8.0
Updated@luvio/utils@^5.8.0