Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@luvio/command-fetch-network

Package Overview
Dependencies
Maintainers
0
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@luvio/command-fetch-network - npm Package Compare versions

Comparing version 5.7.1 to 5.8.0

dist/types/v1/fetch-command.d.ts

18

dist/types/v1/index.d.ts

@@ -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": [

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc