Skip to content

Commit

Permalink
clean up and merge with master
Browse files Browse the repository at this point in the history
  • Loading branch information
himanshu committed May 8, 2023
1 parent da0402f commit fa448cb
Show file tree
Hide file tree
Showing 17 changed files with 1,081 additions and 973 deletions.
3 changes: 2 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,5 @@ yarn-debug.log*
yarn-error.log*
examples/
types/
dist/
dist/
**/sw.js
39 changes: 12 additions & 27 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,33 +6,20 @@ jobs:
build:
strategy:
matrix:
node: ["16.x"]
node: ["18.x"]
os: [ubuntu-latest]

runs-on: ${{ matrix.os }}

steps:
- name: Check out Git repository
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Set up node
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
registry-url: "https://registry.npmjs.org"

- name: Get npm cache directory
id: npm-cache
run: |
echo "::set-output name=dir::$(npm config get cache)"
- name: Node dependency cache
uses: actions/cache@v2
with:
path: ${{ steps.npm-cache.outputs.dir }}
key: ${{ matrix.os }}-node-${{ hashFiles('package-lock.json') }}
restore-keys: |
${{ matrix.os }}-node-
cache: "npm"

- name: Install dependencies
run: npm install
Expand All @@ -51,7 +38,7 @@ jobs:
# Set the credentials from repository settings/secrets
- name: Configure AWS credentials
if: github.ref == 'refs/heads/master'
uses: aws-actions/configure-aws-credentials@v1
uses: aws-actions/configure-aws-credentials@v2
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
Expand All @@ -69,13 +56,11 @@ jobs:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}

# Invalidate Cloudfront (this action)
- name: invalidate
- name: Update AWS Cloudfront Config
uses: chaitanyapotti/cloudfront-update-distribution@v2
if: github.ref == 'refs/heads/master'
uses: chetan/invalidate-cloudfront-action@master
env:
DISTRIBUTION: ${{ secrets.AWS_CLOUDFRONT_DISTRIBUTION_ID }}
PATHS: "/*"
AWS_REGION: ${{ secrets.AWS_REGION_US }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
with:
cloudfront-distribution-id: ${{ secrets.AWS_CLOUDFRONT_DISTRIBUTION_ID }}
cloudfront-invalidation-required: true
cloudfront-invalidation-path: "/*"
cloudfront-wait-for-service-update: false
9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,10 @@ Checkout the example of `CustomAuth` in our [examples directory.](https://github

### Bundling

This module is distributed in 4 formats
This module is distributed in 3 formats

- `esm` build `dist/customauth.esm.js` in es6 format
- `commonjs` build `dist/customauth.cjs.js` in es5 format
- `commonjs` build `dist/customauth-bundled.cjs.js` in es5 format with problematic packages bundled (benfits non-webpack users)
- `umd` build `dist/customauth.umd.min.js` in es5 format without polyfilling corejs minified

By default, the appropriate format is used for your specified usecase
Expand Down Expand Up @@ -164,8 +163,8 @@ Please refer to examples

Hosted Example for testing

- [Popup Flow](https://vue-direct.tor.us/)
- [Redirect Flow](https://vue-redirect.tor.us/)
- [Popup Flow](https://demo-customauth.tor.us/)
- [Redirect Flow](https://demo-customauth.tor.us/)

## Info

Expand Down Expand Up @@ -248,6 +247,6 @@ For other verifiers,
## Requirements

- This package requires a peer dependency of `@babel/runtime`
- Node 14+
- Node 16+

> Note: If you are using the `redirectToOpener` option, you _must_ update your redirect.html to [allow whitelisted URIs](serviceworker/redirect.html#L222)
86 changes: 43 additions & 43 deletions examples/vue-app/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit fa448cb

Please sign in to comment.