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

@bfwk/data-service

Package Overview
Dependencies
Maintainers
2
Versions
122
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bfwk/data-service

LBF Data Services

  • 0.9.11
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
109
increased by541.18%
Maintainers
2
Weekly downloads
 
Created
Source

Data Services

In order to communicate with external data sources, the framework will provide a single interface to interact with any external data source called a data service.

The responsibility of each data service implementation is to act as the interface for interacting with data coming from a specific data source.

Additional documentation can be found here

API

export interface DataServiceConfig {
  [key: string]: any;
}

export interface Payload {
  [key: string]: any;
}

export type ResourceKind = string;
export type ResourceId = string;

export interface URI {
  resource: ResourceKind;
  id: ResourceId;
}

export interface DataService<T = any> {
  get(target: URI, config: DataServiceConfig): Promise<T>;
  post(target: URI, payload: Payload, config: DataServiceConfig): Promise<any>;
  put(target: URI, payload: Payload, config: DataServiceConfig): Promise<any>;
  delete(target: URI, config: DataServiceConfig): Promise<any>;
}

Usage

Currently these are the data service implementations we provide and will maintain. More data services to come.

FAQs

Package last updated on 15 Jul 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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