Skip to content

Commit

Permalink
rename package
Browse files Browse the repository at this point in the history
  • Loading branch information
myty committed Sep 24, 2022
1 parent ee13016 commit d072a74
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ jobs:

- name: Build NPM Package
run: deno run -A scripts/build_npm.ts ${{ github.ref }}

- name: refresh badges
uses: b3b00/refreshBadgesAction@v1.0.7
with:
repository : 'myty/composable-async'
repository: "myty/composable-promise"
branch: main

- uses: actions/setup-node@v2
Expand Down
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Composable-Async
# Composable-Promise

[![GitHub version](https://badgen.net/github/release/myty/composable-async?color=green)](https://github.com/myty/composable-async)
[![deno land](https://badgen.net/github/release/myty/composable-async?color=green&label=deno.land)](https://deno.land/x/composable_async)
[![npm version](https://badgen.net/npm/v/composable-async?color=green)](https://www.npmjs.com/package/composable-async)
[![Coverage Status](https://badgen.net/coveralls/c/github/myty/composable-async?color=green)](https://coveralls.io/github/myty/composable-async?branch=main)
[![GitHub version](https://badgen.net/github/release/myty/composable-promise?color=green)](https://github.com/myty/composable-promise)
[![deno land](https://badgen.net/github/release/myty/composable-promise?color=green&label=deno.land)](https://deno.land/x/composable_promise)
[![npm version](https://badgen.net/npm/v/composable-promise?color=green)](https://www.npmjs.com/package/composable-promise)
[![Coverage Status](https://badgen.net/coveralls/c/github/myty/composable-promise?color=green)](https://coveralls.io/github/myty/composable-promise?branch=main)

Wrapper utility class that enables composition via asynchronous (Promises) and
synchronous method chaining.
Expand All @@ -14,17 +14,17 @@ synchronous method chaining.

```bash
# npm
npm install --save composable-async
npm install --save composable-promise
# yarn
yarn add composable-async
yarn add composable-promise
# pnpm
pnpm install --save composable-async
pnpm install --save composable-promise
```

### Deno

```bash
import { Composable } from "https://deno.land/x/composable_async/mod.ts";
import { Composable } from "https://deno.land/x/composable_promise/mod.ts";
```
## Example Usage
Expand Down Expand Up @@ -78,7 +78,7 @@ console.log(`Result: propertyOne=${propertyOne}, propertyTwo=${propertyTwo}`);
// OUTPUT: "Result: propertyOne=3, propertyTwo=10"
```
With Composable-Async, it is simplified and easier to read.
With Composable-Promise, it is simplified and easier to read.
```typescript
const { propertyOne, propertyTwo } = await Composable.create(testClass)
Expand Down
6 changes: 3 additions & 3 deletions scripts/build_npm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,17 @@ await build({
deno: "dev",
},
package: {
name: "composable-async",
name: "composable-promise",
version: Deno.args[0].substring("refs/tags/v".length),
description:
"Wrapper utility class that enables composition via asynchronous (Promises) and synchronous method chaining.",
license: "MIT",
repository: {
type: "git",
url: "git+https://github.com/myty/composable-async.git",
url: "git+https://github.com/myty/composable-promise.git",
},
bugs: {
url: "https://github.com/myty/composable-async/issues",
url: "https://github.com/myty/composable-promise/issues",
},
},
});
Expand Down

0 comments on commit d072a74

Please sign in to comment.