Skip to content

Commit

Permalink
Update shields
Browse files Browse the repository at this point in the history
  • Loading branch information
cmdcolin committed Jul 23, 2024
1 parent af076c3 commit 5431014
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,7 @@ jobs:
node-version: 20.x
- run: yarn install --frozen-lockfile
- run: yarn test
- name: Upload coverage reports to Codecov
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# abortable-promise-cache
# @gmod/abortable-promise-cache

[![NPM version](https://img.shields.io/npm/v/abortable-promise-cache.svg?style=flat-square)](https://npmjs.org/package/abortable-promise-cache)
[![Coverage Status](https://img.shields.io/codecov/c/github/rbuels/abortable-promise-cache/master.svg?style=flat-square)](https://codecov.io/gh/rbuels/abortable-promise-cache/branch/master)
[![NPM version](https://img.shields.io/npm/v/@gmod/abortable-promise-cache.svg?style=flat-square)](https://npmjs.org/package/abortable-promise-cache)
[![Coverage Status](https://img.shields.io/codecov/c/github/GMOD/abortable-promise-cache/master.svg?style=flat-square)](https://codecov.io/gh/GMOD/abortable-promise-cache/branch/master)
[![Build Status](https://img.shields.io/github/actions/workflow/status/GMOD/abortable-promise-cache/push.yml?branch=master)](https://github.com/GMOD/abortable-promise-cache/actions)

Adds AbortController/AbortSignal semantics to a cache of promises. Each `get`
Expand All @@ -16,12 +16,12 @@ aborted, it will stay in the cache.

## Install

$ npm install --save abortable-promise-cache
$ npm install --save @gmod/abortable-promise-cache

## Usage

```js
import AbortablePromiseCache from 'abortable-promise-cache'
import AbortablePromiseCache from '@gmod/abortable-promise-cache'
import QuickLRU from 'quick-lru'

const cache = new AbortablePromiseCache({
Expand Down

0 comments on commit 5431014

Please sign in to comment.