Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
0d89515
npm audit fix
wesrisenmay-mx Dec 2, 2025
71e7633
upgrade to the latest version of msw
wesrisenmay-mx Dec 4, 2025
36610c5
converted to vitest to fix msw upgrade issues
wesrisenmay-mx Dec 4, 2025
8425e72
update pipeline node version
wesrisenmay-mx Dec 4, 2025
d9893ac
revert node version and remove caching
wesrisenmay-mx Dec 4, 2025
1c06b62
split up github actions
wesrisenmay-mx Dec 5, 2025
ec3c468
omit vitest config from spellcheck
wesrisenmay-mx Dec 5, 2025
a38408e
improve workflows
wesrisenmay-mx Dec 5, 2025
530637a
run package audit on every pr
wesrisenmay-mx Dec 5, 2025
7983e15
modify the existing cspell config
wesrisenmay-mx Dec 5, 2025
3db60fb
updating the node version for unit tests to try and fix the pipeline
wesrisenmay-mx Dec 5, 2025
c852fa1
update sso proxy
wesrisenmay-mx Dec 5, 2025
f52159b
Merge pull request #111 from mxenabled/wes/fixMoreVulnerabilities
wesrisenmay-mx Dec 5, 2025
056b4b4
update vulnerable packages
wesrisenmay-mx Dec 5, 2025
c5b6235
ticked the version, updated changelog, added auto publish, changelog …
wesrisenmay-mx Dec 5, 2025
22b9c77
added notes about auto publishing
wesrisenmay-mx Dec 5, 2025
256a724
update changelog
wesrisenmay-mx Dec 5, 2025
2fd576a
update workflow names and fix spellcheck
wesrisenmay-mx Dec 5, 2025
71d06d3
trying to fix the version check
wesrisenmay-mx Dec 5, 2025
28edefe
attempting to fix spellcheck
wesrisenmay-mx Dec 5, 2025
0b67048
removing spellcheck
wesrisenmay-mx Dec 5, 2025
73adb3b
npm install
wesrisenmay-mx Dec 5, 2025
44017db
removing caching to fix pipelines
wesrisenmay-mx Dec 5, 2025
ed6edee
change npm audit level to high
wesrisenmay-mx Dec 5, 2025
19d7787
move lint and prettier config out of package.json
wesrisenmay-mx Dec 5, 2025
cdaf8f8
updated the changelog
wesrisenmay-mx Dec 5, 2025
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
24 changes: 24 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"root": true,
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint"],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:react-hooks/recommended"
],
"rules": {
"semi": ["error", "never"],
"quotes": ["error", "double"],
"no-trailing-spaces": "error",
"react-hooks/exhaustive-deps": "off",
"@typescript-eslint/no-unused-vars": [
"error",
{
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^_"
}
],
"@typescript-eslint/no-var-requires": 0
}
}
62 changes: 29 additions & 33 deletions .github/workflows/build-example-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,46 +2,42 @@ name: Build Example App

on:
pull_request:
push:
branches:
- master

jobs:
Build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 16
cache: npm
- uses: actions/cache@v3
with:
path: node_modules
key: ${{ runner.os }}-node-${{ hashFiles('package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- uses: actions/cache@v3
with:
path: example/node_modules
key: ${{ runner.os }}-node-${{ hashFiles('example/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 16
- uses: actions/cache@v3
with:
path: node_modules
key: ${{ runner.os }}-node-${{ hashFiles('package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- uses: actions/cache@v3
with:
path: example/node_modules
key: ${{ runner.os }}-node-${{ hashFiles('example/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-

- run: node --version
- run: npm --version
- name: Run npm install (sdk)
run: npm install
- run: node --version
- run: npm --version
- name: Run npm install (sdk)
run: npm install

- name: Run npm install (app)
run: npm install
working-directory: example
- name: Run npm install (app)
run: npm install
working-directory: example

- name: Create config file
working-directory: example
run: |
echo '{ "proxy": "http://fakeserver.com" }' > config.json
- name: Create config file
working-directory: example
run: |
echo '{ "proxy": "http://fakeserver.com" }' > config.json

- run: npm run build
working-directory: example
- run: npm run build
working-directory: example
32 changes: 12 additions & 20 deletions .github/workflows/build-sdk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,30 +2,22 @@ name: Build SDK

on:
pull_request:
push:
branches:
- master

jobs:
Build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 16
cache: npm
- uses: actions/cache@v3
with:
path: node_modules
key: ${{ runner.os }}-node-${{ hashFiles('package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 16
- uses: actions/cache@v3
with:
path: node_modules
key: ${{ runner.os }}-node-${{ hashFiles('package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-

- run: npm install
- run: npm run prettier -- --check
- run: npm run lint
- run: npm run build
- run: npm run test
- run: npm run spellcheck
- run: npm install
- run: npm run build
22 changes: 22 additions & 0 deletions .github/workflows/changelog-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Changelog updated

on: pull_request

jobs:
check-changelog:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Fetch master branch
run: |
git fetch origin master:master

- name: Check that changelog is updated
run: |
if ! git diff --name-only master | grep -q '^CHANGELOG.md$'; then
echo "Error: CHANGELOG.md has not been updated."
exit 1
fi
24 changes: 24 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Lint

on:
pull_request:

jobs:
Lint-Prettier:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 16
- uses: actions/cache@v3
with:
path: node_modules
key: ${{ runner.os }}-node-${{ hashFiles('package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-

- run: npm install
- run: npm run prettier -- --check
- run: npm run lint
20 changes: 20 additions & 0 deletions .github/workflows/npm-audit-example-app.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: NPM Audit Example App

on:
pull_request:
schedule:
- cron: "0 0 1 * *" # every month

jobs:
NPM-Audit-Example-App:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 16

- name: Run npm audit (app)
run: npm audit --audit-level=high
working-directory: example
19 changes: 19 additions & 0 deletions .github/workflows/npm-audit-sdk.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: NPM Audit SDK

on:
pull_request:
schedule:
- cron: "0 0 1 * *" # every month

jobs:
NPM-Audit-SDK:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 16

- name: Run npm audit
run: npm audit --audit-level=high
31 changes: 31 additions & 0 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: "Auto-publish NPM Package"

on:
push:
branches:
- master

jobs:
push_to_registry:
name: "Setup, and publish"
runs-on: ubuntu-latest

steps:
- name: "Check out the repo"
uses: actions/checkout@v4

- name: "Set up Node"
uses: actions/setup-node@v4
with:
registry-url: "https://registry.npmjs.org"
node-version: 20
check-latest: true

- name: "Dependencies and tests"
run: |
npm ci
npm run build
- name: "Publish to NPM"
uses: JS-DevTools/npm-publish@v3
with:
token: ${{ secrets.NPM_TOKEN }}
38 changes: 38 additions & 0 deletions .github/workflows/npm-version-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: "NPM Version Check"

on: pull_request

jobs:
push_to_registry:
name: "NPM Version Check"
runs-on: ubuntu-latest

steps:
- name: "Check out the repo"
uses: actions/checkout@v4

- name: "Set up Node"
uses: actions/setup-node@v4
with:
registry-url: "https://registry.npmjs.org"
node-version: 20
check-latest: true

- name: "Check if version is published"
run: |
PACKAGE_VERSION=$(npm pkg get version --workspaces=false | tr -d \")
PACKAGE_NAME=$(npm pkg get name --workspaces=false | tr -d \")
# Run npm view and capture the exit code (success or failure)
npm view "$PACKAGE_NAME@$PACKAGE_VERSION" --json > result.json 2>&1 || true

cat result.json

# Check the exit code to determine if the version exists
if grep -q "is not in this registry." result.json; then
echo "Version $PACKAGE_VERSION does not exist for $PACKAGE_NAME on npmjs.com. 🎉"
exit 0
else
echo "Version $PACKAGE_VERSION already exists for $PACKAGE_NAME on npmjs.com. 😬🫠"
echo "Please update the 'version' property in package.json and try again."
exit 1
fi
24 changes: 0 additions & 24 deletions .github/workflows/package-audit-example-app.yml

This file was deleted.

23 changes: 0 additions & 23 deletions .github/workflows/package-audit-sdk.yml

This file was deleted.

23 changes: 23 additions & 0 deletions .github/workflows/unit-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Unit/Integration tests

on:
pull_request:

jobs:
Unit-Integration-Tests:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 20
- uses: actions/cache@v3
with:
path: node_modules
key: ${{ runner.os }}-node-${{ hashFiles('package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-

- run: npm install
- run: npm run test
8 changes: 8 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"printWidth": 100,
"semi": false,
"trailingComma": "all",
"singleQuote": false,
"bracketSameLine": true,
"bracketSpacing": true
}
Loading