Skip to content

SPR-20295 adding new types for non auth fetch and timeout #42

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Oct 4, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ jobs:
- name: Checkout branch
if: github.event.action == 'opened' || github.event.action == 'edited' || github.event.action == 'synchronize'
uses: actions/[email protected]
- name: Set Node.js 10.x

- name: Set Node.js 16
if: github.event.action == 'opened' || github.event.action == 'edited' || github.event.action == 'synchronize'
uses: actions/setup-node@v1
with:
node-version: '10.x'
node-version: "16"

- name: Install npm
if: github.event.action == 'opened' || github.event.action == 'edited' || github.event.action == 'synchronize'
Expand Down Expand Up @@ -54,11 +54,11 @@ jobs:
git config --global user.email "[email protected]"
git merge ${{ github.event.pull_request.head.sha }} -m"prchecker" --stat

- name: Set Node.js 10.x
- name: Set Node.js 16
if: github.event.action == 'opened' || github.event.action == 'edited' || github.event.action == 'synchronize'
uses: actions/setup-node@v1
with:
node-version: '10.x'
node-version: "16"

- name: Install npm
if: github.event.action == 'opened' || github.event.action == 'edited' || github.event.action == 'synchronize'
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/push_master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ jobs:
- name: Checkout branch
uses: actions/[email protected]

- name: Set Node.js 10.x
- name: Set Node.js 16
uses: actions/setup-node@v1
with:
node-version: '10.x'
node-version: "16"

- name: Install npm
run: npm ci
Expand All @@ -30,10 +30,10 @@ jobs:
- name: Checkout branch
uses: actions/[email protected]

- name: Set Node.js 10.x
- name: Set Node.js 16
uses: actions/setup-node@v1
with:
node-version: '10.x'
node-version: "16"

- name: config npm
run: |
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@
/.rpt2_cache

.idea

.dcc*
21 changes: 12 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,22 @@ ps-web-apis is a client side library to interface with ps services on ps support
# Usage

```javascript
import {whoamiV1} from '@spring-media/ps-web-apis'

whoamiV1().then(whoami => {
console.log(`user login status: ${whoami.isLoggedIn() ? 'logged in' : 'logged out'}`)
}).catch(() => {
console.error('handle unavilability of whoami api')
});
import { whoamiV1 } from "@spring-media/ps-web-apis";

whoamiV1()
.then((whoami) => {
console.log(
`user login status: ${whoami.isLoggedIn() ? "logged in" : "logged out"}`
);
})
.catch(() => {
console.error("handle unavilability of whoami api");
});
```

# Building

```
npm i
npm i
npm run build
```

Loading