diff --git a/.github/workflows/ci-helpers.yml b/.github/workflows/ci-helpers.yml index 0c92ea3b..2d32b6fb 100644 --- a/.github/workflows/ci-helpers.yml +++ b/.github/workflows/ci-helpers.yml @@ -18,49 +18,64 @@ defaults: env: CI_SKIP: false + GITHUB_COMMIT_MESSAGE: '' + NODE_VERSION: v0.0.0 + NPM_CACHE_DIR: ~/.npm + NPM_VERSION: 0.0.0 jobs: test: - if: "!contains(github.event.head_commit.message, '[ci skip]') && !contains(github.event.head_commit.message, 'doc:')" + if: "!contains(github.event.head_commit.message, '[ci skip]') && !contains(github.event.head_commit.message, '[skip ci]') && !contains(github.event.head_commit.message, 'doc:')" + env: + GITHUB_COMMIT_MESSAGE: ${{ github.event.head_commit.message }} name: ${{ matrix.os }} ${{ matrix.target }} runs-on: ${{ matrix.os }} + timeout-minutes: 120 strategy: matrix: os: [ubuntu-latest] target: [16.x] - timeout-minutes: 120 steps: - - name: Checkout - uses: actions/checkout@v2 - - - name: Git log + - name: CI skip check run: | - if [ -n "$(git log --format=%B -n 1 | grep -iE '^[0-9]+[.]{1,}[0-9]+[.]{1,}[0-9]+')" ]; then + if [[ -n "$(echo $GITHUB_COMMIT_MESSAGE | grep -iE '^[0-9]+[.]{1,}[0-9]+[.]{1,}[0-9]+')" ]]; then + echo "[INFO] SKIP CI" echo "CI_SKIP=true" >> $GITHUB_ENV fi + - name: Checkout + if: env.CI_SKIP == 'false' + uses: actions/checkout@v2 + - name: Setup node@${{ matrix.target }} - if: "env.CI_SKIP == 'false'" - uses: actions/setup-node@v1 + if: env.CI_SKIP == 'false' + uses: actions/setup-node@v2 with: node-version: ${{ matrix.target }} - - name: List versions - if: "env.CI_SKIP == 'false'" - continue-on-error: true + - name: Install latest npm + if: env.CI_SKIP == 'false' run: | npm i -g npm@latest - node -v && npm version && which npm && pwd && npx envinfo + echo "NODE_VERSION=$(node -v)" >> $GITHUB_ENV + echo "NPM_CACHE_DIR=$(npm config get cache)" >> $GITHUB_ENV + echo "NPM_VERSION=$(npm -v)" >> $GITHUB_ENV + + - name: List versions + if: env.CI_SKIP == 'false' + run: | + pwd && ls -la - name: Cache dependencies + if: env.CI_SKIP == 'false' id: npm-cache uses: actions/cache@v2 with: - path: ~/.npm - key: ${{ matrix.os }}-npm-${{ hashFiles('**/package-lock.json') }} + path: ${{ env.NPM_CACHE_DIR }} + key: ${{ matrix.os }}-node-${{ env.NODE_VERSION }}-npm-${{ env.NPM_VERSION }}-${{ hashFiles('**/package-lock.json') }} restore-keys: | - ${{ matrix.os }}-npm- + ${{ matrix.os }}-node-${{ env.NODE_VERSION }}-npm-${{ env.NPM_VERSION }}- - name: Install dependencies if: env.CI_SKIP == 'false' @@ -68,24 +83,18 @@ jobs: npm ci --quiet - name: Lint - if: "env.CI_SKIP == 'false'" + if: env.CI_SKIP == 'false' run: | npm run lint:build - - name: Check build - if: "env.CI_SKIP == 'false'" - shell: bash - run: | - pwd && ls -la - - name: Run Test - if: "env.CI_SKIP == 'false'" + if: env.CI_SKIP == 'false' run: | npm run test:helpers - name: Upload coverage to codecov + if: env.CI_SKIP == 'false' && success() uses: codecov/codecov-action@v1 - if: env.CI_SKIP != 'true' && success() with: token: ${{ secrets.CODECOV_TOKEN }} file: ./coverage/lcov.info diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 667c89df..4af7f7af 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,78 +18,87 @@ defaults: env: CI_SKIP: false + GITHUB_COMMIT_MESSAGE: '' + NODE_VERSION: v0.0.0 + NPM_CACHE_DIR: ~/.npm + NPM_VERSION: 0.0.0 jobs: test: - if: "!contains(github.event.head_commit.message, '[ci skip]') && !contains(github.event.head_commit.message, 'doc:')" + if: "!contains(github.event.head_commit.message, '[ci skip]') && !contains(github.event.head_commit.message, '[skip ci]') && !contains(github.event.head_commit.message, 'doc:')" + env: + GITHUB_COMMIT_MESSAGE: ${{ github.event.head_commit.message }} name: ${{ matrix.os }} ${{ matrix.target }} runs-on: ${{ matrix.os }} + timeout-minutes: 120 strategy: matrix: os: [ubuntu-latest] target: [16.x] - timeout-minutes: 120 steps: - - name: Checkout - uses: actions/checkout@v2 - - - name: Git log + - name: CI skip check run: | - if [ -n "$(git log --format=%B -n 1 | grep -iE '^[0-9]+[.]{1,}[0-9]+[.]{1,}[0-9]+')" ]; then + if [[ -n "$(echo $GITHUB_COMMIT_MESSAGE | grep -iE '^[0-9]+[.]{1,}[0-9]+[.]{1,}[0-9]+')" ]]; then + echo "[INFO] SKIP CI" echo "CI_SKIP=true" >> $GITHUB_ENV fi + - name: Checkout + if: env.CI_SKIP == 'false' + uses: actions/checkout@v2 + - name: Setup node@${{ matrix.target }} - if: "env.CI_SKIP == 'false'" - uses: actions/setup-node@v1 + if: env.CI_SKIP == 'false' + uses: actions/setup-node@v2 with: node-version: ${{ matrix.target }} - name: Setup Playwright - if: env.CI_SKIP != 'true' + if: env.CI_SKIP == 'false' uses: microsoft/playwright-github-action@v1 - - name: List versions - if: "env.CI_SKIP == 'false'" - continue-on-error: true + - name: Install latest npm + if: env.CI_SKIP == 'false' run: | npm i -g npm@latest - node -v && npm version && which npm && pwd && npx envinfo + echo "NODE_VERSION=$(node -v)" >> $GITHUB_ENV + echo "NPM_CACHE_DIR=$(npm config get cache)" >> $GITHUB_ENV + echo "NPM_VERSION=$(npm -v)" >> $GITHUB_ENV + + - name: List versions + if: env.CI_SKIP == 'false' + run: | + pwd && ls -la && npx envinfo - name: Cache dependencies + if: env.CI_SKIP == 'false' id: npm-cache uses: actions/cache@v2 with: - path: ~/.npm - key: ${{ matrix.os }}-npm-${{ hashFiles('**/package-lock.json') }} + path: ${{ env.NPM_CACHE_DIR }} + key: ${{ matrix.os }}-node-${{ env.NODE_VERSION }}-npm-${{ env.NPM_VERSION }}-${{ hashFiles('**/package-lock.json') }} restore-keys: | - ${{ matrix.os }}-npm- + ${{ matrix.os }}-node-${{ env.NODE_VERSION }}-npm-${{ env.NPM_VERSION }}- - name: Install dependencies - if: "env.CI_SKIP == 'false'" + if: env.CI_SKIP == 'false' run: | npm ci --quiet - name: Lint - if: "env.CI_SKIP == 'false'" + if: env.CI_SKIP == 'false' run: | npm run lint:build - - name: Check build - if: "env.CI_SKIP == 'false'" - shell: bash - run: | - pwd && ls -la - - name: Run Test - if: "env.CI_SKIP == 'false'" + if: env.CI_SKIP == 'false' run: | npm run test:elements - name: Upload coverage to codecov + if: env.CI_SKIP == 'false' && success() uses: codecov/codecov-action@v1 - if: env.CI_SKIP != 'true' && success() with: token: ${{ secrets.CODECOV_TOKEN }} file: ./coverage/lcov.info diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 4f8e7796..eea7c81c 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -11,6 +11,9 @@ defaults: run: shell: bash +env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + jobs: build: name: ${{ matrix.os }} ${{ matrix.target }} @@ -26,15 +29,14 @@ jobs: uses: actions/checkout@v2 - name: Setup node@${{ matrix.target }} - uses: actions/setup-node@v1 + uses: actions/setup-node@v2 with: node-version: ${{ matrix.target }} registry-url: 'https://registry.npmjs.org' - name: List versions run: | - npm i -g npm@latest - node -v && npm version && which npm && pwd && npx envinfo + node -v && npm version && which npm - name: Install dependencies run: | @@ -45,16 +47,12 @@ jobs: run: | npm config list npm publish . --tag=next - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - name: Publish to npm if: contains(github.ref, '-') == false run: | npm config list npm publish . - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} # See https://github.com/actions/setup-node/issues/73. # - name: Setup node@${{ matrix.target }} @@ -69,13 +67,9 @@ jobs: # run: | # npm config list # npm publish . --tag=next - # env: - # NODE_AUTH_TOKEN: ${{github.token}} # - name: Publish to GPR (Prerelease) # if: success() && contains(github.ref, '-') == false # run: | # npm config list # npm publish . - # env: - # NODE_AUTH_TOKEN: ${{github.token}} diff --git a/README.md b/README.md index cde9cc97..8306fd89 100644 --- a/README.md +++ b/README.md @@ -23,8 +23,6 @@ [![ci-helpers][ga-ci-helpers-badge]][ga-ci-helpers-url] [![codecov][codecov-badge]][codecov-url] -[![codebeat badge][codebeat-badge]][codebeat-url] -[![Language grade: JavaScript][lgtm-badge]][lgtm-url] [![Code of Conduct][coc-badge]][coc-url] > A different way of `datepicker`-ing on the web. @@ -287,8 +285,6 @@ Tested on the following browsers: [ga-ci-helpers-badge]: https://github.com/motss/app-datepicker/actions/workflows/ci-helpers.yml/badge.svg [codecov-badge]: https://codecov.io/gh/motss/app-datepicker/branch/master/graph/badge.svg?token=0M1yaJNDxq -[codebeat-badge]: https://codebeat.co/badges/3a212108-43cd-4a1f-ab2c-fe890ad734b6 -[lgtm-badge]: https://flat.badgen.net/lgtm/grade/javascript/g/motss/app-datepicker?icon=lgtm [coc-badge]: https://flat.badgen.net/badge/code%20of/conduct/pink @@ -306,8 +302,6 @@ Tested on the following browsers: [ga-ci-helpers-url]: https://github.com/motss/app-datepicker/actions/workflows/ci-helpers.yml [codecov-url]: https://codecov.io/gh/motss/app-datepicker -[codebeat-url]: https://codebeat.co/projects/github-com-motss-app-datepicker-master-68699d41-3539-4c5f-81df-c9202be34919?utm_source=github.com&utm_medium=referral&utm_content=motss/app-datepicker -[lgtm-url]: https://lgtm.com/projects/g/motss/app-datepicker/context:javascript?utm_source=github.com&utm_medium=referral&utm_content=motss/app-datepicker [coc-url]: https://github.com/motss/app-datepicker/blob/master/code-of-conduct.md?utm_source=github.com&utm_medium=referral&utm_content=motss/app-datepicker diff --git a/index.html b/index.html index ff8dda54..227de2cd 100644 --- a/index.html +++ b/index.html @@ -32,7 +32,6 @@ @media (prefers-color-scheme: dark) { :root { --app-focus: var(--c); - --app-ink: var(--c); --app-on-disabled: var(--a); --app-on-primary: var(--c); --app-on-selected: var(--c); diff --git a/package-lock.json b/package-lock.json index bd87a5ae..8e75c7cd 100644 --- a/package-lock.json +++ b/package-lock.json @@ -17,7 +17,7 @@ "@material/mwc-menu": "^0.25.3", "@material/mwc-textfield": "^0.25.3", "lit": "^2.1.2", - "nodemod": "^3.0.0", + "nodemod": "^3.0.4", "tslib": "^2.3.1" }, "devDependencies": { @@ -26,11 +26,11 @@ "@reallyland/tsconfig": "^4.0.1", "@rollup/plugin-node-resolve": "^13.0.6", "@skypack/package-check": "^0.2.2", - "@typescript-eslint/eslint-plugin": "^5.10.1", - "@typescript-eslint/parser": "^5.10.1", + "@typescript-eslint/eslint-plugin": "^5.10.2", + "@typescript-eslint/parser": "^5.10.2", "@web/dev-server-esbuild": "^0.2.16", "@web/dev-server-rollup": "^0.3.15", - "@web/test-runner": "^0.13.26", + "@web/test-runner": "^0.13.27", "@web/test-runner-commands": "^0.6.1", "@web/test-runner-playwright": "^0.8.8", "eslint-plugin-lit": "^1.6.1", @@ -84,9 +84,9 @@ } }, "node_modules/@babel/runtime": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.16.7.tgz", - "integrity": "sha512-9E9FJowqAsytyOY6LG+1KuueckRL+aQW+mKvXRXnuFGyRAyepJPmEo9vgMfXUA6O9u3IeEdv9MAkppFcaQwogQ==", + "version": "7.17.0", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.17.0.tgz", + "integrity": "sha512-etcO/ohMNaNA2UBdaXBBSX/3aEzFMRrVfaPv8Ptc0k+cWpWW0QFiGZ2XnVqQZI1Cf734LbPGmqBKWESfW4x/dQ==", "dev": true, "dependencies": { "regenerator-runtime": "^0.13.4" @@ -96,9 +96,9 @@ } }, "node_modules/@babel/runtime-corejs3": { - "version": "7.16.8", - "resolved": "https://registry.npmjs.org/@babel/runtime-corejs3/-/runtime-corejs3-7.16.8.tgz", - "integrity": "sha512-3fKhuICS1lMz0plI5ktOE/yEtBRMVxplzRkdn6mJQ197XiY0JnrzYV0+Mxozq3JZ8SBV9Ecurmw1XsGbwOf+Sg==", + "version": "7.17.0", + "resolved": "https://registry.npmjs.org/@babel/runtime-corejs3/-/runtime-corejs3-7.17.0.tgz", + "integrity": "sha512-qeydncU80ravKzovVncW3EYaC1ji3GpntdPgNcJy9g7hHSY6KX+ne1cbV3ov7Zzm4F1z0+QreZPCuw1ynkmYNg==", "dev": true, "dependencies": { "core-js-pure": "^3.20.2", @@ -668,9 +668,9 @@ } }, "node_modules/@mdn/browser-compat-data": { - "version": "4.1.5", - "resolved": "https://registry.npmjs.org/@mdn/browser-compat-data/-/browser-compat-data-4.1.5.tgz", - "integrity": "sha512-rb2LEhclR/Ykf/biC2HrZmVonqnfTL8RhsL9wdMCGmw1xfeLFqGGZLKWypob2/i15SqgmEHbtcgJZ9kwWPbKtQ==", + "version": "4.1.6", + "resolved": "https://registry.npmjs.org/@mdn/browser-compat-data/-/browser-compat-data-4.1.6.tgz", + "integrity": "sha512-JbtcHGODAlkOT6eDV2rCyOguW3+o34ExMD9DOki6kxzeyN3IBtZ9PI0FlbKeD77Bm5U0UG5Heo4qnNbSajXUnw==", "dev": true }, "node_modules/@nodelib/fs.scandir": { @@ -787,9 +787,9 @@ } }, "node_modules/@open-wc/testing-helpers": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/@open-wc/testing-helpers/-/testing-helpers-2.0.2.tgz", - "integrity": "sha512-wJlvDmWo+fIbgykRP21YSP9I9Pf/fo2+dZGaWG77Hw0sIuyB+7sNUDJDkL6kMkyyRecPV6dVRmbLt6HuOwvZ1w==", + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/@open-wc/testing-helpers/-/testing-helpers-2.0.3.tgz", + "integrity": "sha512-MR/7xDmeAnfGD4BmozUMQJ2V0hL6aC0SylyR0I0aB6zmph//RIUkPzsOzT8LMC5c8NtZFpPaJZEhGI6QRDO1Vg==", "dev": true, "dependencies": { "@open-wc/scoped-elements": "^2.0.1", @@ -1085,9 +1085,9 @@ "dev": true }, "node_modules/@types/node": { - "version": "17.0.13", - "resolved": "https://registry.npmjs.org/@types/node/-/node-17.0.13.tgz", - "integrity": "sha512-Y86MAxASe25hNzlDbsviXl8jQHb0RDvKt4c40ZJQ1Don0AAL0STLZSs4N+6gLEO55pedy7r2cLwS+ZDxPm/2Bw==", + "version": "17.0.14", + "resolved": "https://registry.npmjs.org/@types/node/-/node-17.0.14.tgz", + "integrity": "sha512-SbjLmERksKOGzWzPNuW7fJM7fk3YXVTFiZWB/Hs99gwhk+/dnrQRPBQjPW9aO+fi1tAffi9PrwFvsmOKmDTyng==", "dev": true }, "node_modules/@types/parse5": { @@ -1128,9 +1128,9 @@ } }, "node_modules/@types/sinon": { - "version": "10.0.9", - "resolved": "https://registry.npmjs.org/@types/sinon/-/sinon-10.0.9.tgz", - "integrity": "sha512-xGZVAe61omKnVGedBdTbAveuJ5QyI0LrMIcp0hc1LmVI5IEjs5qG4fM0sv9GIBA2JVoKuf7332IjQX4y5qqMMQ==", + "version": "10.0.10", + "resolved": "https://registry.npmjs.org/@types/sinon/-/sinon-10.0.10.tgz", + "integrity": "sha512-US5E539UfeL2DiWALzCyk0c4zKh6sCv86V/0lpda/afMJJ0oEm2SrKgedH5optvFWstnJ8e1MNYhLmPhAy4rvQ==", "dev": true, "dependencies": { "@sinonjs/fake-timers": "^7.1.0" @@ -1171,14 +1171,14 @@ } }, "node_modules/@typescript-eslint/eslint-plugin": { - "version": "5.10.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.10.1.tgz", - "integrity": "sha512-xN3CYqFlyE/qOcy978/L0xLR2HlcAGIyIK5sMOasxaaAPfQRj/MmMV6OC3I7NZO84oEUdWCOju34Z9W8E0pFDQ==", + "version": "5.10.2", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.10.2.tgz", + "integrity": "sha512-4W/9lLuE+v27O/oe7hXJKjNtBLnZE8tQAFpapdxwSVHqtmIoPB1gph3+ahNwVuNL37BX7YQHyGF9Xv6XCnIX2Q==", "dev": true, "dependencies": { - "@typescript-eslint/scope-manager": "5.10.1", - "@typescript-eslint/type-utils": "5.10.1", - "@typescript-eslint/utils": "5.10.1", + "@typescript-eslint/scope-manager": "5.10.2", + "@typescript-eslint/type-utils": "5.10.2", + "@typescript-eslint/utils": "5.10.2", "debug": "^4.3.2", "functional-red-black-tree": "^1.0.1", "ignore": "^5.1.8", @@ -1204,14 +1204,14 @@ } }, "node_modules/@typescript-eslint/parser": { - "version": "5.10.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.10.1.tgz", - "integrity": "sha512-GReo3tjNBwR5RnRO0K2wDIDN31cM3MmDtgyQ85oAxAmC5K3j/g85IjP+cDfcqDsDDBf1HNKQAD0WqOYL8jXqUA==", + "version": "5.10.2", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.10.2.tgz", + "integrity": "sha512-JaNYGkaQVhP6HNF+lkdOr2cAs2wdSZBoalE22uYWq8IEv/OVH0RksSGydk+sW8cLoSeYmC+OHvRyv2i4AQ7Czg==", "dev": true, "dependencies": { - "@typescript-eslint/scope-manager": "5.10.1", - "@typescript-eslint/types": "5.10.1", - "@typescript-eslint/typescript-estree": "5.10.1", + "@typescript-eslint/scope-manager": "5.10.2", + "@typescript-eslint/types": "5.10.2", + "@typescript-eslint/typescript-estree": "5.10.2", "debug": "^4.3.2" }, "engines": { @@ -1231,13 +1231,13 @@ } }, "node_modules/@typescript-eslint/scope-manager": { - "version": "5.10.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.10.1.tgz", - "integrity": "sha512-Lyvi559Gvpn94k7+ElXNMEnXu/iundV5uFmCUNnftbFrUbAJ1WBoaGgkbOBm07jVZa682oaBU37ao/NGGX4ZDg==", + "version": "5.10.2", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.10.2.tgz", + "integrity": "sha512-39Tm6f4RoZoVUWBYr3ekS75TYgpr5Y+X0xLZxXqcZNDWZdJdYbKd3q2IR4V9y5NxxiPu/jxJ8XP7EgHiEQtFnw==", "dev": true, "dependencies": { - "@typescript-eslint/types": "5.10.1", - "@typescript-eslint/visitor-keys": "5.10.1" + "@typescript-eslint/types": "5.10.2", + "@typescript-eslint/visitor-keys": "5.10.2" }, "engines": { "node": "^12.22.0 || ^14.17.0 || >=16.0.0" @@ -1248,12 +1248,12 @@ } }, "node_modules/@typescript-eslint/type-utils": { - "version": "5.10.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.10.1.tgz", - "integrity": "sha512-AfVJkV8uck/UIoDqhu+ptEdBoQATON9GXnhOpPLzkQRJcSChkvD//qsz9JVffl2goxX+ybs5klvacE9vmrQyCw==", + "version": "5.10.2", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.10.2.tgz", + "integrity": "sha512-uRKSvw/Ccs5FYEoXW04Z5VfzF2iiZcx8Fu7DGIB7RHozuP0VbKNzP1KfZkHBTM75pCpsWxIthEH1B33dmGBKHw==", "dev": true, "dependencies": { - "@typescript-eslint/utils": "5.10.1", + "@typescript-eslint/utils": "5.10.2", "debug": "^4.3.2", "tsutils": "^3.21.0" }, @@ -1274,9 +1274,9 @@ } }, "node_modules/@typescript-eslint/types": { - "version": "5.10.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.10.1.tgz", - "integrity": "sha512-ZvxQ2QMy49bIIBpTqFiOenucqUyjTQ0WNLhBM6X1fh1NNlYAC6Kxsx8bRTY3jdYsYg44a0Z/uEgQkohbR0H87Q==", + "version": "5.10.2", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.10.2.tgz", + "integrity": "sha512-Qfp0qk/5j2Rz3p3/WhWgu4S1JtMcPgFLnmAKAW061uXxKSa7VWKZsDXVaMXh2N60CX9h6YLaBoy9PJAfCOjk3w==", "dev": true, "engines": { "node": "^12.22.0 || ^14.17.0 || >=16.0.0" @@ -1287,13 +1287,13 @@ } }, "node_modules/@typescript-eslint/typescript-estree": { - "version": "5.10.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.10.1.tgz", - "integrity": "sha512-PwIGnH7jIueXv4opcwEbVGDATjGPO1dx9RkUl5LlHDSe+FXxPwFL5W/qYd5/NHr7f6lo/vvTrAzd0KlQtRusJQ==", + "version": "5.10.2", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.10.2.tgz", + "integrity": "sha512-WHHw6a9vvZls6JkTgGljwCsMkv8wu8XU8WaYKeYhxhWXH/atZeiMW6uDFPLZOvzNOGmuSMvHtZKd6AuC8PrwKQ==", "dev": true, "dependencies": { - "@typescript-eslint/types": "5.10.1", - "@typescript-eslint/visitor-keys": "5.10.1", + "@typescript-eslint/types": "5.10.2", + "@typescript-eslint/visitor-keys": "5.10.2", "debug": "^4.3.2", "globby": "^11.0.4", "is-glob": "^4.0.3", @@ -1314,15 +1314,15 @@ } }, "node_modules/@typescript-eslint/utils": { - "version": "5.10.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.10.1.tgz", - "integrity": "sha512-RRmlITiUbLuTRtn/gcPRi4202niF+q7ylFLCKu4c+O/PcpRvZ/nAUwQ2G00bZgpWkhrNLNnvhZLbDn8Ml0qsQw==", + "version": "5.10.2", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.10.2.tgz", + "integrity": "sha512-vuJaBeig1NnBRkf7q9tgMLREiYD7zsMrsN1DA3wcoMDvr3BTFiIpKjGiYZoKPllfEwN7spUjv7ZqD+JhbVjEPg==", "dev": true, "dependencies": { "@types/json-schema": "^7.0.9", - "@typescript-eslint/scope-manager": "5.10.1", - "@typescript-eslint/types": "5.10.1", - "@typescript-eslint/typescript-estree": "5.10.1", + "@typescript-eslint/scope-manager": "5.10.2", + "@typescript-eslint/types": "5.10.2", + "@typescript-eslint/typescript-estree": "5.10.2", "eslint-scope": "^5.1.1", "eslint-utils": "^3.0.0" }, @@ -1338,12 +1338,12 @@ } }, "node_modules/@typescript-eslint/visitor-keys": { - "version": "5.10.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.10.1.tgz", - "integrity": "sha512-NjQ0Xinhy9IL979tpoTRuLKxMc0zJC7QVSdeerXs2/QvOy2yRkzX5dRb10X5woNUdJgU8G3nYRDlI33sq1K4YQ==", + "version": "5.10.2", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.10.2.tgz", + "integrity": "sha512-zHIhYGGGrFJvvyfwHk5M08C5B5K4bewkm+rrvNTKk1/S15YHR+SA/QUF8ZWscXSfEaB8Nn2puZj+iHcoxVOD/Q==", "dev": true, "dependencies": { - "@typescript-eslint/types": "5.10.1", + "@typescript-eslint/types": "5.10.2", "eslint-visitor-keys": "^3.0.0" }, "engines": { @@ -1503,15 +1503,15 @@ } }, "node_modules/@web/test-runner": { - "version": "0.13.26", - "resolved": "https://registry.npmjs.org/@web/test-runner/-/test-runner-0.13.26.tgz", - "integrity": "sha512-hiujl3GekUWbF/q1QJKDVcVWCB5zIbD05E+km2666SsP5+JCsnciDMm670TSaS4g8xoH/8WIJEyZnDVNQy/X6A==", + "version": "0.13.27", + "resolved": "https://registry.npmjs.org/@web/test-runner/-/test-runner-0.13.27.tgz", + "integrity": "sha512-yVhXK9sPJE2VQs1/KPTIeQvUxh+02OZkn+tgcr0+W8ovvrFD4ucF2X26cpeOTuD+Y67ERUi/EopIze3aelw6sg==", "dev": true, "dependencies": { "@web/browser-logs": "^0.2.2", "@web/config-loader": "^0.1.3", "@web/dev-server": "^0.1.24", - "@web/test-runner-chrome": "^0.10.6", + "@web/test-runner-chrome": "^0.10.7", "@web/test-runner-commands": "^0.6.0", "@web/test-runner-core": "^0.10.22", "@web/test-runner-mocha": "^0.7.5", @@ -1534,15 +1534,15 @@ } }, "node_modules/@web/test-runner-chrome": { - "version": "0.10.6", - "resolved": "https://registry.npmjs.org/@web/test-runner-chrome/-/test-runner-chrome-0.10.6.tgz", - "integrity": "sha512-oktBTPy1SLxbmwvC5dD3xnFvMnHwGwJ051SKBR1SPSR5wAXqyYQcsYEpcwk/jNrpZPXm1m+jJxk7SuPZflc+SQ==", + "version": "0.10.7", + "resolved": "https://registry.npmjs.org/@web/test-runner-chrome/-/test-runner-chrome-0.10.7.tgz", + "integrity": "sha512-DKJVHhHh3e/b6/erfKOy0a4kGfZ47qMoQRgROxi9T4F9lavEY3E5/MQ7hapHFM2lBF4vDrm+EWjtBdOL8o42tw==", "dev": true, "dependencies": { "@web/test-runner-core": "^0.10.20", "@web/test-runner-coverage-v8": "^0.4.8", "chrome-launcher": "^0.15.0", - "puppeteer-core": "^13.1.2" + "puppeteer-core": "^13.1.3" }, "engines": { "node": ">=12.0.0" @@ -1647,13 +1647,13 @@ "dev": true }, "node_modules/accepts": { - "version": "1.3.7", - "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.7.tgz", - "integrity": "sha512-Il80Qs2WjYlJIBNzNkK6KYqlVMTbZLXgHx2oT0pU/fjRHyEp+PEfEPY0R3WCwAGVOtauxh1hOxNgIf5bv7dQpA==", + "version": "1.3.8", + "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz", + "integrity": "sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==", "dev": true, "dependencies": { - "mime-types": "~2.1.24", - "negotiator": "0.6.2" + "mime-types": "~2.1.34", + "negotiator": "0.6.3" }, "engines": { "node": ">= 0.6" @@ -1835,9 +1835,9 @@ } }, "node_modules/axe-core": { - "version": "4.3.5", - "resolved": "https://registry.npmjs.org/axe-core/-/axe-core-4.3.5.tgz", - "integrity": "sha512-WKTW1+xAzhMS5dJsxWkliixlO/PqC4VhmO9T4juNYcaTg9jzWiJsou6m5pxWYGfigWbwzJWeFY6z47a+4neRXA==", + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/axe-core/-/axe-core-4.4.0.tgz", + "integrity": "sha512-btWy2rze3NnxSSxb7LtNhPYYFrRoFBfjiGzmSc/5Hu47wApO2KNXjP/w7Nv2Uz/Fyr/pfEiwOkcXhDxu0jz5FA==", "dev": true, "engines": { "node": ">=4" @@ -2025,9 +2025,9 @@ } }, "node_modules/chai-a11y-axe": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/chai-a11y-axe/-/chai-a11y-axe-1.3.2.tgz", - "integrity": "sha512-/jYczmhGUoCfEcsrkJwjecy3PJ31T9FxFdu2BDlAwR/sX1nN3L2XmuPP3tw8iYk6LPqdF7K11wwFr3yUZMv5MA==", + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/chai-a11y-axe/-/chai-a11y-axe-1.4.0.tgz", + "integrity": "sha512-m7J6DVAl1ePL2ifPKHmwQyHXdCZ+Qfv+qduh6ScqcDfBnJEzpV1K49TblujM45j1XciZOFeFNqMb2sShXMg/mw==", "dev": true, "dependencies": { "axe-core": "^4.3.3" @@ -2328,9 +2328,9 @@ } }, "node_modules/core-js-pure": { - "version": "3.20.3", - "resolved": "https://registry.npmjs.org/core-js-pure/-/core-js-pure-3.20.3.tgz", - "integrity": "sha512-Q2H6tQ5MtPtcC7f3HxJ48i4Q7T9ybPKgvWyuH7JXIoNa2pm0KuBnycsET/qw1SLLZYfbsbrZQNMeIOClb+6WIA==", + "version": "3.21.0", + "resolved": "https://registry.npmjs.org/core-js-pure/-/core-js-pure-3.21.0.tgz", + "integrity": "sha512-VaJUunCZLnxuDbo1rNOzwbet9E1K9joiXS5+DQMPtgxd24wfsZbJZMMfQLGYMlCUvSxLfsRUUhoOR2x28mFfeg==", "dev": true, "hasInstallScript": true, "funding": { @@ -3284,9 +3284,9 @@ } }, "node_modules/globals": { - "version": "13.12.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-13.12.0.tgz", - "integrity": "sha512-uS8X6lSKN2JumVoXrbUz+uG4BYG+eiawqm3qFcT7ammfbUHeCBoJMlHcec/S3krSk73/AE/f0szYFmgAA3kYZg==", + "version": "13.12.1", + "resolved": "https://registry.npmjs.org/globals/-/globals-13.12.1.tgz", + "integrity": "sha512-317dFlgY2pdJZ9rspXDks7073GpDmXdfbM3vYYp0HAMKGDh1FfWPleI2ljVNLQX5M5lXcAslTcPTrOrMEFOjyw==", "dev": true, "peer": true, "dependencies": { @@ -4006,17 +4006,17 @@ } }, "node_modules/lit-ntml": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/lit-ntml/-/lit-ntml-3.0.0.tgz", - "integrity": "sha512-P8dUUgGmvu8fPgJoiXyfwG/kevbarznOkygj9AHhSdr1DMwwZkvoUJdTnQi06tjUeARS5z6OOHGZwJHzu2i+NA==", + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/lit-ntml/-/lit-ntml-3.0.4.tgz", + "integrity": "sha512-3S6rGgaOQmbBkKiOk+0SuSlivTDCQFvIOkssTnbRRbNa/h1IqUCDttwIAULEzSqyOdePlE6Osc9bPnSTmzXLiQ==", "hasInstallScript": true, "dependencies": { "parse5": "^6.0.1", "tslib": "^2.0.2" }, "engines": { - "node": ">= 14.17.3", - "npm": ">= 6.14.13" + "node": ">= 16.x", + "npm": ">= 8.x" } }, "node_modules/lit/node_modules/@lit/reactive-element": { @@ -4276,9 +4276,9 @@ "peer": true }, "node_modules/negotiator": { - "version": "0.6.2", - "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.2.tgz", - "integrity": "sha512-hZXc7K2e+PgeI1eDBe/10Ard4ekbfrrqG8Ep+8Jmf4JID2bNg7NvCPOZN+kfF574pFQI7mum2AUqDidoKqcTOw==", + "version": "0.6.3", + "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz", + "integrity": "sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==", "dev": true, "engines": { "node": ">= 0.6" @@ -4327,32 +4327,32 @@ } }, "node_modules/nodemod": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/nodemod/-/nodemod-3.0.0.tgz", - "integrity": "sha512-Rl/LS/bfL6fhZLzjsSSJcn8HTnaoNgyHzsh2BKW83ulhEWhC4dORBpTzjXMA8Tv5CytZwtEkhogOGLpWdwz/JA==", + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/nodemod/-/nodemod-3.0.4.tgz", + "integrity": "sha512-epzxz5tTFlD/iEdCzLnWSxaz8DKNjEyg8y+IZa1rTSftHtNp7K8PQUTiQhgqiFLEbjU94w3NqHI6RA6Wmvn5fA==", "hasInstallScript": true, "dependencies": { - "lit-ntml": "^3.0.0", + "lit-ntml": "^3.0.4", "lodash-es": "^4.17.21", - "normalize-diacritics": "^3.0.0", + "normalize-diacritics": "^3.0.3", "tslib": "^2.3.0" }, "engines": { - "node": ">= 14.17.3", - "npm": ">= 6.14.13" + "node": ">= 16.x", + "npm": ">= 8.x" } }, "node_modules/normalize-diacritics": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/normalize-diacritics/-/normalize-diacritics-3.0.0.tgz", - "integrity": "sha512-nKPoE/FhCyS/c4GdowcEvTm8mOb9Q+r9T+HCr0h90JK339aibyx0wiYTj0FbV2MGvqp1MUcodWLXV7o4z1wzBA==", + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/normalize-diacritics/-/normalize-diacritics-3.0.3.tgz", + "integrity": "sha512-byATE4eQa3R/mKcnquZI/jxxZxne6VtmjhkHeZh4XdNJBUTj3YdyitVBfop8yyWEyxZGyEWtsh5npLAg/9L2bg==", "hasInstallScript": true, "dependencies": { "tslib": "^2.1.0" }, "engines": { - "node": ">= 14.17.3", - "npm": ">= 6.14.13" + "node": ">= 16.x", + "npm": ">= 8.x" } }, "node_modules/normalize-path": { @@ -4747,9 +4747,9 @@ } }, "node_modules/puppeteer-core": { - "version": "13.1.2", - "resolved": "https://registry.npmjs.org/puppeteer-core/-/puppeteer-core-13.1.2.tgz", - "integrity": "sha512-A60/BJkYKpvoWPN0sq0WbOUYey6Wqpn1vlWCt8Ov7PxGIjyuGX2Wb39LObGjOxh4UN+YxCVE+oYQlkIFSmHJtg==", + "version": "13.1.3", + "resolved": "https://registry.npmjs.org/puppeteer-core/-/puppeteer-core-13.1.3.tgz", + "integrity": "sha512-96pzvVBzq5lUGt3L/QrIH3mxn3NfZylHeusNhq06xBAHPI0Upc0SC/9u7tXjL0oRnmcExeVRJivr1lj7Ah/yDQ==", "dev": true, "dependencies": { "debug": "4.3.2", @@ -5055,9 +5055,9 @@ } }, "node_modules/rollup": { - "version": "2.66.1", - "resolved": "https://registry.npmjs.org/rollup/-/rollup-2.66.1.tgz", - "integrity": "sha512-crSgLhSkLMnKr4s9iZ/1qJCplgAgrRY+igWv8KhG/AjKOJ0YX/WpmANyn8oxrw+zenF3BXWDLa7Xl/QZISH+7w==", + "version": "2.67.0", + "resolved": "https://registry.npmjs.org/rollup/-/rollup-2.67.0.tgz", + "integrity": "sha512-W83AaERwvDiHwHEF/dfAfS3z1Be5wf7n+pO3ZAO5IQadCT2lBTr7WQ2MwZZe+nodbD+n3HtC4OCOAdsOPPcKZQ==", "dev": true, "bin": { "rollup": "dist/bin/rollup" @@ -5184,9 +5184,9 @@ } }, "node_modules/signal-exit": { - "version": "3.0.6", - "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.6.tgz", - "integrity": "sha512-sDl4qMFpijcGw22U5w63KmD3cZJfBuFlVNbVMKje2keoKML7X2UzWbc4XrmEbDwg0NXJc3yv4/ox7b+JWb57kQ==", + "version": "3.0.7", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", + "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==", "dev": true }, "node_modules/simple-git-hooks": { @@ -5950,18 +5950,18 @@ } }, "@babel/runtime": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.16.7.tgz", - "integrity": "sha512-9E9FJowqAsytyOY6LG+1KuueckRL+aQW+mKvXRXnuFGyRAyepJPmEo9vgMfXUA6O9u3IeEdv9MAkppFcaQwogQ==", + "version": "7.17.0", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.17.0.tgz", + "integrity": "sha512-etcO/ohMNaNA2UBdaXBBSX/3aEzFMRrVfaPv8Ptc0k+cWpWW0QFiGZ2XnVqQZI1Cf734LbPGmqBKWESfW4x/dQ==", "dev": true, "requires": { "regenerator-runtime": "^0.13.4" } }, "@babel/runtime-corejs3": { - "version": "7.16.8", - "resolved": "https://registry.npmjs.org/@babel/runtime-corejs3/-/runtime-corejs3-7.16.8.tgz", - "integrity": "sha512-3fKhuICS1lMz0plI5ktOE/yEtBRMVxplzRkdn6mJQ197XiY0JnrzYV0+Mxozq3JZ8SBV9Ecurmw1XsGbwOf+Sg==", + "version": "7.17.0", + "resolved": "https://registry.npmjs.org/@babel/runtime-corejs3/-/runtime-corejs3-7.17.0.tgz", + "integrity": "sha512-qeydncU80ravKzovVncW3EYaC1ji3GpntdPgNcJy9g7hHSY6KX+ne1cbV3ov7Zzm4F1z0+QreZPCuw1ynkmYNg==", "dev": true, "requires": { "core-js-pure": "^3.20.2", @@ -6518,9 +6518,9 @@ } }, "@mdn/browser-compat-data": { - "version": "4.1.5", - "resolved": "https://registry.npmjs.org/@mdn/browser-compat-data/-/browser-compat-data-4.1.5.tgz", - "integrity": "sha512-rb2LEhclR/Ykf/biC2HrZmVonqnfTL8RhsL9wdMCGmw1xfeLFqGGZLKWypob2/i15SqgmEHbtcgJZ9kwWPbKtQ==", + "version": "4.1.6", + "resolved": "https://registry.npmjs.org/@mdn/browser-compat-data/-/browser-compat-data-4.1.6.tgz", + "integrity": "sha512-JbtcHGODAlkOT6eDV2rCyOguW3+o34ExMD9DOki6kxzeyN3IBtZ9PI0FlbKeD77Bm5U0UG5Heo4qnNbSajXUnw==", "dev": true }, "@nodelib/fs.scandir": { @@ -6631,9 +6631,9 @@ } }, "@open-wc/testing-helpers": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/@open-wc/testing-helpers/-/testing-helpers-2.0.2.tgz", - "integrity": "sha512-wJlvDmWo+fIbgykRP21YSP9I9Pf/fo2+dZGaWG77Hw0sIuyB+7sNUDJDkL6kMkyyRecPV6dVRmbLt6HuOwvZ1w==", + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/@open-wc/testing-helpers/-/testing-helpers-2.0.3.tgz", + "integrity": "sha512-MR/7xDmeAnfGD4BmozUMQJ2V0hL6aC0SylyR0I0aB6zmph//RIUkPzsOzT8LMC5c8NtZFpPaJZEhGI6QRDO1Vg==", "dev": true, "requires": { "@open-wc/scoped-elements": "^2.0.1", @@ -6909,9 +6909,9 @@ "dev": true }, "@types/node": { - "version": "17.0.13", - "resolved": "https://registry.npmjs.org/@types/node/-/node-17.0.13.tgz", - "integrity": "sha512-Y86MAxASe25hNzlDbsviXl8jQHb0RDvKt4c40ZJQ1Don0AAL0STLZSs4N+6gLEO55pedy7r2cLwS+ZDxPm/2Bw==", + "version": "17.0.14", + "resolved": "https://registry.npmjs.org/@types/node/-/node-17.0.14.tgz", + "integrity": "sha512-SbjLmERksKOGzWzPNuW7fJM7fk3YXVTFiZWB/Hs99gwhk+/dnrQRPBQjPW9aO+fi1tAffi9PrwFvsmOKmDTyng==", "dev": true }, "@types/parse5": { @@ -6952,9 +6952,9 @@ } }, "@types/sinon": { - "version": "10.0.9", - "resolved": "https://registry.npmjs.org/@types/sinon/-/sinon-10.0.9.tgz", - "integrity": "sha512-xGZVAe61omKnVGedBdTbAveuJ5QyI0LrMIcp0hc1LmVI5IEjs5qG4fM0sv9GIBA2JVoKuf7332IjQX4y5qqMMQ==", + "version": "10.0.10", + "resolved": "https://registry.npmjs.org/@types/sinon/-/sinon-10.0.10.tgz", + "integrity": "sha512-US5E539UfeL2DiWALzCyk0c4zKh6sCv86V/0lpda/afMJJ0oEm2SrKgedH5optvFWstnJ8e1MNYhLmPhAy4rvQ==", "dev": true, "requires": { "@sinonjs/fake-timers": "^7.1.0" @@ -6995,14 +6995,14 @@ } }, "@typescript-eslint/eslint-plugin": { - "version": "5.10.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.10.1.tgz", - "integrity": "sha512-xN3CYqFlyE/qOcy978/L0xLR2HlcAGIyIK5sMOasxaaAPfQRj/MmMV6OC3I7NZO84oEUdWCOju34Z9W8E0pFDQ==", + "version": "5.10.2", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.10.2.tgz", + "integrity": "sha512-4W/9lLuE+v27O/oe7hXJKjNtBLnZE8tQAFpapdxwSVHqtmIoPB1gph3+ahNwVuNL37BX7YQHyGF9Xv6XCnIX2Q==", "dev": true, "requires": { - "@typescript-eslint/scope-manager": "5.10.1", - "@typescript-eslint/type-utils": "5.10.1", - "@typescript-eslint/utils": "5.10.1", + "@typescript-eslint/scope-manager": "5.10.2", + "@typescript-eslint/type-utils": "5.10.2", + "@typescript-eslint/utils": "5.10.2", "debug": "^4.3.2", "functional-red-black-tree": "^1.0.1", "ignore": "^5.1.8", @@ -7012,52 +7012,52 @@ } }, "@typescript-eslint/parser": { - "version": "5.10.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.10.1.tgz", - "integrity": "sha512-GReo3tjNBwR5RnRO0K2wDIDN31cM3MmDtgyQ85oAxAmC5K3j/g85IjP+cDfcqDsDDBf1HNKQAD0WqOYL8jXqUA==", + "version": "5.10.2", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.10.2.tgz", + "integrity": "sha512-JaNYGkaQVhP6HNF+lkdOr2cAs2wdSZBoalE22uYWq8IEv/OVH0RksSGydk+sW8cLoSeYmC+OHvRyv2i4AQ7Czg==", "dev": true, "requires": { - "@typescript-eslint/scope-manager": "5.10.1", - "@typescript-eslint/types": "5.10.1", - "@typescript-eslint/typescript-estree": "5.10.1", + "@typescript-eslint/scope-manager": "5.10.2", + "@typescript-eslint/types": "5.10.2", + "@typescript-eslint/typescript-estree": "5.10.2", "debug": "^4.3.2" } }, "@typescript-eslint/scope-manager": { - "version": "5.10.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.10.1.tgz", - "integrity": "sha512-Lyvi559Gvpn94k7+ElXNMEnXu/iundV5uFmCUNnftbFrUbAJ1WBoaGgkbOBm07jVZa682oaBU37ao/NGGX4ZDg==", + "version": "5.10.2", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.10.2.tgz", + "integrity": "sha512-39Tm6f4RoZoVUWBYr3ekS75TYgpr5Y+X0xLZxXqcZNDWZdJdYbKd3q2IR4V9y5NxxiPu/jxJ8XP7EgHiEQtFnw==", "dev": true, "requires": { - "@typescript-eslint/types": "5.10.1", - "@typescript-eslint/visitor-keys": "5.10.1" + "@typescript-eslint/types": "5.10.2", + "@typescript-eslint/visitor-keys": "5.10.2" } }, "@typescript-eslint/type-utils": { - "version": "5.10.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.10.1.tgz", - "integrity": "sha512-AfVJkV8uck/UIoDqhu+ptEdBoQATON9GXnhOpPLzkQRJcSChkvD//qsz9JVffl2goxX+ybs5klvacE9vmrQyCw==", + "version": "5.10.2", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.10.2.tgz", + "integrity": "sha512-uRKSvw/Ccs5FYEoXW04Z5VfzF2iiZcx8Fu7DGIB7RHozuP0VbKNzP1KfZkHBTM75pCpsWxIthEH1B33dmGBKHw==", "dev": true, "requires": { - "@typescript-eslint/utils": "5.10.1", + "@typescript-eslint/utils": "5.10.2", "debug": "^4.3.2", "tsutils": "^3.21.0" } }, "@typescript-eslint/types": { - "version": "5.10.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.10.1.tgz", - "integrity": "sha512-ZvxQ2QMy49bIIBpTqFiOenucqUyjTQ0WNLhBM6X1fh1NNlYAC6Kxsx8bRTY3jdYsYg44a0Z/uEgQkohbR0H87Q==", + "version": "5.10.2", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.10.2.tgz", + "integrity": "sha512-Qfp0qk/5j2Rz3p3/WhWgu4S1JtMcPgFLnmAKAW061uXxKSa7VWKZsDXVaMXh2N60CX9h6YLaBoy9PJAfCOjk3w==", "dev": true }, "@typescript-eslint/typescript-estree": { - "version": "5.10.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.10.1.tgz", - "integrity": "sha512-PwIGnH7jIueXv4opcwEbVGDATjGPO1dx9RkUl5LlHDSe+FXxPwFL5W/qYd5/NHr7f6lo/vvTrAzd0KlQtRusJQ==", + "version": "5.10.2", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.10.2.tgz", + "integrity": "sha512-WHHw6a9vvZls6JkTgGljwCsMkv8wu8XU8WaYKeYhxhWXH/atZeiMW6uDFPLZOvzNOGmuSMvHtZKd6AuC8PrwKQ==", "dev": true, "requires": { - "@typescript-eslint/types": "5.10.1", - "@typescript-eslint/visitor-keys": "5.10.1", + "@typescript-eslint/types": "5.10.2", + "@typescript-eslint/visitor-keys": "5.10.2", "debug": "^4.3.2", "globby": "^11.0.4", "is-glob": "^4.0.3", @@ -7066,26 +7066,26 @@ } }, "@typescript-eslint/utils": { - "version": "5.10.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.10.1.tgz", - "integrity": "sha512-RRmlITiUbLuTRtn/gcPRi4202niF+q7ylFLCKu4c+O/PcpRvZ/nAUwQ2G00bZgpWkhrNLNnvhZLbDn8Ml0qsQw==", + "version": "5.10.2", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.10.2.tgz", + "integrity": "sha512-vuJaBeig1NnBRkf7q9tgMLREiYD7zsMrsN1DA3wcoMDvr3BTFiIpKjGiYZoKPllfEwN7spUjv7ZqD+JhbVjEPg==", "dev": true, "requires": { "@types/json-schema": "^7.0.9", - "@typescript-eslint/scope-manager": "5.10.1", - "@typescript-eslint/types": "5.10.1", - "@typescript-eslint/typescript-estree": "5.10.1", + "@typescript-eslint/scope-manager": "5.10.2", + "@typescript-eslint/types": "5.10.2", + "@typescript-eslint/typescript-estree": "5.10.2", "eslint-scope": "^5.1.1", "eslint-utils": "^3.0.0" } }, "@typescript-eslint/visitor-keys": { - "version": "5.10.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.10.1.tgz", - "integrity": "sha512-NjQ0Xinhy9IL979tpoTRuLKxMc0zJC7QVSdeerXs2/QvOy2yRkzX5dRb10X5woNUdJgU8G3nYRDlI33sq1K4YQ==", + "version": "5.10.2", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.10.2.tgz", + "integrity": "sha512-zHIhYGGGrFJvvyfwHk5M08C5B5K4bewkm+rrvNTKk1/S15YHR+SA/QUF8ZWscXSfEaB8Nn2puZj+iHcoxVOD/Q==", "dev": true, "requires": { - "@typescript-eslint/types": "5.10.1", + "@typescript-eslint/types": "5.10.2", "eslint-visitor-keys": "^3.0.0" } }, @@ -7209,15 +7209,15 @@ } }, "@web/test-runner": { - "version": "0.13.26", - "resolved": "https://registry.npmjs.org/@web/test-runner/-/test-runner-0.13.26.tgz", - "integrity": "sha512-hiujl3GekUWbF/q1QJKDVcVWCB5zIbD05E+km2666SsP5+JCsnciDMm670TSaS4g8xoH/8WIJEyZnDVNQy/X6A==", + "version": "0.13.27", + "resolved": "https://registry.npmjs.org/@web/test-runner/-/test-runner-0.13.27.tgz", + "integrity": "sha512-yVhXK9sPJE2VQs1/KPTIeQvUxh+02OZkn+tgcr0+W8ovvrFD4ucF2X26cpeOTuD+Y67ERUi/EopIze3aelw6sg==", "dev": true, "requires": { "@web/browser-logs": "^0.2.2", "@web/config-loader": "^0.1.3", "@web/dev-server": "^0.1.24", - "@web/test-runner-chrome": "^0.10.6", + "@web/test-runner-chrome": "^0.10.7", "@web/test-runner-commands": "^0.6.0", "@web/test-runner-core": "^0.10.22", "@web/test-runner-mocha": "^0.7.5", @@ -7233,15 +7233,15 @@ } }, "@web/test-runner-chrome": { - "version": "0.10.6", - "resolved": "https://registry.npmjs.org/@web/test-runner-chrome/-/test-runner-chrome-0.10.6.tgz", - "integrity": "sha512-oktBTPy1SLxbmwvC5dD3xnFvMnHwGwJ051SKBR1SPSR5wAXqyYQcsYEpcwk/jNrpZPXm1m+jJxk7SuPZflc+SQ==", + "version": "0.10.7", + "resolved": "https://registry.npmjs.org/@web/test-runner-chrome/-/test-runner-chrome-0.10.7.tgz", + "integrity": "sha512-DKJVHhHh3e/b6/erfKOy0a4kGfZ47qMoQRgROxi9T4F9lavEY3E5/MQ7hapHFM2lBF4vDrm+EWjtBdOL8o42tw==", "dev": true, "requires": { "@web/test-runner-core": "^0.10.20", "@web/test-runner-coverage-v8": "^0.4.8", "chrome-launcher": "^0.15.0", - "puppeteer-core": "^13.1.2" + "puppeteer-core": "^13.1.3" } }, "@web/test-runner-commands": { @@ -7328,13 +7328,13 @@ "dev": true }, "accepts": { - "version": "1.3.7", - "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.7.tgz", - "integrity": "sha512-Il80Qs2WjYlJIBNzNkK6KYqlVMTbZLXgHx2oT0pU/fjRHyEp+PEfEPY0R3WCwAGVOtauxh1hOxNgIf5bv7dQpA==", + "version": "1.3.8", + "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz", + "integrity": "sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==", "dev": true, "requires": { - "mime-types": "~2.1.24", - "negotiator": "0.6.2" + "mime-types": "~2.1.34", + "negotiator": "0.6.3" } }, "acorn": { @@ -7467,9 +7467,9 @@ } }, "axe-core": { - "version": "4.3.5", - "resolved": "https://registry.npmjs.org/axe-core/-/axe-core-4.3.5.tgz", - "integrity": "sha512-WKTW1+xAzhMS5dJsxWkliixlO/PqC4VhmO9T4juNYcaTg9jzWiJsou6m5pxWYGfigWbwzJWeFY6z47a+4neRXA==", + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/axe-core/-/axe-core-4.4.0.tgz", + "integrity": "sha512-btWy2rze3NnxSSxb7LtNhPYYFrRoFBfjiGzmSc/5Hu47wApO2KNXjP/w7Nv2Uz/Fyr/pfEiwOkcXhDxu0jz5FA==", "dev": true }, "axobject-query": { @@ -7593,9 +7593,9 @@ "dev": true }, "chai-a11y-axe": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/chai-a11y-axe/-/chai-a11y-axe-1.3.2.tgz", - "integrity": "sha512-/jYczmhGUoCfEcsrkJwjecy3PJ31T9FxFdu2BDlAwR/sX1nN3L2XmuPP3tw8iYk6LPqdF7K11wwFr3yUZMv5MA==", + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/chai-a11y-axe/-/chai-a11y-axe-1.4.0.tgz", + "integrity": "sha512-m7J6DVAl1ePL2ifPKHmwQyHXdCZ+Qfv+qduh6ScqcDfBnJEzpV1K49TblujM45j1XciZOFeFNqMb2sShXMg/mw==", "dev": true, "requires": { "axe-core": "^4.3.3" @@ -7822,9 +7822,9 @@ } }, "core-js-pure": { - "version": "3.20.3", - "resolved": "https://registry.npmjs.org/core-js-pure/-/core-js-pure-3.20.3.tgz", - "integrity": "sha512-Q2H6tQ5MtPtcC7f3HxJ48i4Q7T9ybPKgvWyuH7JXIoNa2pm0KuBnycsET/qw1SLLZYfbsbrZQNMeIOClb+6WIA==", + "version": "3.21.0", + "resolved": "https://registry.npmjs.org/core-js-pure/-/core-js-pure-3.21.0.tgz", + "integrity": "sha512-VaJUunCZLnxuDbo1rNOzwbet9E1K9joiXS5+DQMPtgxd24wfsZbJZMMfQLGYMlCUvSxLfsRUUhoOR2x28mFfeg==", "dev": true }, "cross-spawn": { @@ -8559,9 +8559,9 @@ } }, "globals": { - "version": "13.12.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-13.12.0.tgz", - "integrity": "sha512-uS8X6lSKN2JumVoXrbUz+uG4BYG+eiawqm3qFcT7ammfbUHeCBoJMlHcec/S3krSk73/AE/f0szYFmgAA3kYZg==", + "version": "13.12.1", + "resolved": "https://registry.npmjs.org/globals/-/globals-13.12.1.tgz", + "integrity": "sha512-317dFlgY2pdJZ9rspXDks7073GpDmXdfbM3vYYp0HAMKGDh1FfWPleI2ljVNLQX5M5lXcAslTcPTrOrMEFOjyw==", "dev": true, "peer": true, "requires": { @@ -9128,9 +9128,9 @@ } }, "lit-ntml": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/lit-ntml/-/lit-ntml-3.0.0.tgz", - "integrity": "sha512-P8dUUgGmvu8fPgJoiXyfwG/kevbarznOkygj9AHhSdr1DMwwZkvoUJdTnQi06tjUeARS5z6OOHGZwJHzu2i+NA==", + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/lit-ntml/-/lit-ntml-3.0.4.tgz", + "integrity": "sha512-3S6rGgaOQmbBkKiOk+0SuSlivTDCQFvIOkssTnbRRbNa/h1IqUCDttwIAULEzSqyOdePlE6Osc9bPnSTmzXLiQ==", "requires": { "parse5": "^6.0.1", "tslib": "^2.0.2" @@ -9324,9 +9324,9 @@ "peer": true }, "negotiator": { - "version": "0.6.2", - "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.2.tgz", - "integrity": "sha512-hZXc7K2e+PgeI1eDBe/10Ard4ekbfrrqG8Ep+8Jmf4JID2bNg7NvCPOZN+kfF574pFQI7mum2AUqDidoKqcTOw==", + "version": "0.6.3", + "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz", + "integrity": "sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==", "dev": true }, "node-fetch": { @@ -9363,20 +9363,20 @@ } }, "nodemod": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/nodemod/-/nodemod-3.0.0.tgz", - "integrity": "sha512-Rl/LS/bfL6fhZLzjsSSJcn8HTnaoNgyHzsh2BKW83ulhEWhC4dORBpTzjXMA8Tv5CytZwtEkhogOGLpWdwz/JA==", + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/nodemod/-/nodemod-3.0.4.tgz", + "integrity": "sha512-epzxz5tTFlD/iEdCzLnWSxaz8DKNjEyg8y+IZa1rTSftHtNp7K8PQUTiQhgqiFLEbjU94w3NqHI6RA6Wmvn5fA==", "requires": { - "lit-ntml": "^3.0.0", + "lit-ntml": "^3.0.4", "lodash-es": "^4.17.21", - "normalize-diacritics": "^3.0.0", + "normalize-diacritics": "^3.0.3", "tslib": "^2.3.0" } }, "normalize-diacritics": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/normalize-diacritics/-/normalize-diacritics-3.0.0.tgz", - "integrity": "sha512-nKPoE/FhCyS/c4GdowcEvTm8mOb9Q+r9T+HCr0h90JK339aibyx0wiYTj0FbV2MGvqp1MUcodWLXV7o4z1wzBA==", + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/normalize-diacritics/-/normalize-diacritics-3.0.3.tgz", + "integrity": "sha512-byATE4eQa3R/mKcnquZI/jxxZxne6VtmjhkHeZh4XdNJBUTj3YdyitVBfop8yyWEyxZGyEWtsh5npLAg/9L2bg==", "requires": { "tslib": "^2.1.0" } @@ -9681,9 +9681,9 @@ "dev": true }, "puppeteer-core": { - "version": "13.1.2", - "resolved": "https://registry.npmjs.org/puppeteer-core/-/puppeteer-core-13.1.2.tgz", - "integrity": "sha512-A60/BJkYKpvoWPN0sq0WbOUYey6Wqpn1vlWCt8Ov7PxGIjyuGX2Wb39LObGjOxh4UN+YxCVE+oYQlkIFSmHJtg==", + "version": "13.1.3", + "resolved": "https://registry.npmjs.org/puppeteer-core/-/puppeteer-core-13.1.3.tgz", + "integrity": "sha512-96pzvVBzq5lUGt3L/QrIH3mxn3NfZylHeusNhq06xBAHPI0Upc0SC/9u7tXjL0oRnmcExeVRJivr1lj7Ah/yDQ==", "dev": true, "requires": { "debug": "4.3.2", @@ -9897,9 +9897,9 @@ } }, "rollup": { - "version": "2.66.1", - "resolved": "https://registry.npmjs.org/rollup/-/rollup-2.66.1.tgz", - "integrity": "sha512-crSgLhSkLMnKr4s9iZ/1qJCplgAgrRY+igWv8KhG/AjKOJ0YX/WpmANyn8oxrw+zenF3BXWDLa7Xl/QZISH+7w==", + "version": "2.67.0", + "resolved": "https://registry.npmjs.org/rollup/-/rollup-2.67.0.tgz", + "integrity": "sha512-W83AaERwvDiHwHEF/dfAfS3z1Be5wf7n+pO3ZAO5IQadCT2lBTr7WQ2MwZZe+nodbD+n3HtC4OCOAdsOPPcKZQ==", "dev": true, "requires": { "fsevents": "~2.3.2" @@ -9993,9 +9993,9 @@ } }, "signal-exit": { - "version": "3.0.6", - "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.6.tgz", - "integrity": "sha512-sDl4qMFpijcGw22U5w63KmD3cZJfBuFlVNbVMKje2keoKML7X2UzWbc4XrmEbDwg0NXJc3yv4/ox7b+JWb57kQ==", + "version": "3.0.7", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", + "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==", "dev": true }, "simple-git-hooks": { diff --git a/package.json b/package.json index a2949e72..d3445259 100644 --- a/package.json +++ b/package.json @@ -84,28 +84,27 @@ "dist/year-grid/.*js.map", "dist/year-grid/*.*js", "dist/year-grid/*.d.ts.map", - "dist/year-grid/*.d.ts" + "dist/year-grid/*.d.ts", + "postinstall.mjs" ], "scripts": { - "build": "tsc -p tsconfig.prod.json", - "check": "package-check", - "clean": "rm -rf .*cache *.log coverage/ dist/ logs/", - "postinstall": "if [ \"$CI\" != 'true' ] && [[ \"$INIT_CWD\" != *'node_modules/app-datepicker' ]] && [[ \"$INIT_CWD\" == *'app-datepicker' ]]; then npm x -y -- simple-git-hooks && npm dedupe; fi", + "build": "npm run clean && tsc", + "clean": "rm -rf .*cache *.log .swc/ coverage/ dist/ logs/", + "postinstall": "npm x --prefer-online -y -- zx@latest ./postinstall.mjs", "lint": "eslint src --ext .js,.ts", - "lint-commit": "npm x -y -- commitlint --edit", + "lint-commit": "npm x -y -- commitlint@latest --edit", "lint:build": "npm run lint -- --config .build.eslintrc.json", - "nano-staged": "nano-staged", "prepublishOnly": "npm run lint:build && npm run build", "serve": "npm x -y @web/dev-server@latest -- wds --node-resolve -dw -p 3000 -a index.html", "test": "npm run test:helpers && npm run test:elements", "test:elements": "npm run wtr -- --config wtr.config.mjs", "test:helpers": "TEST_HELPERS=1 npm run wtr -- --config wtr.config.mjs", - "ts": "tsc", "watch": "npm run clean && tsc --watch", - "wtr": "node --max-old-space-size=8192 --trace-deprecation node_modules/@web/test-runner/dist/bin.js" + "wtr": "node --max-old-space-size=8192 --trace-deprecation node_modules/@web/test-runner/dist/bin.js", + "pre-commit": "package-check && nano-staged && tsc --noEmit" }, "simple-git-hooks": { - "pre-commit": "npm run check && npm run nano-staged && npm run ts -- --noEmit", + "pre-commit": "npm run pre-commit", "commit-msg": "npm run lint-commit" }, "commitlint": { @@ -121,7 +120,7 @@ "@material/mwc-menu": "^0.25.3", "@material/mwc-textfield": "^0.25.3", "lit": "^2.1.2", - "nodemod": "^3.0.0", + "nodemod": "^3.0.4", "tslib": "^2.3.1" }, "devDependencies": { @@ -130,11 +129,11 @@ "@reallyland/tsconfig": "^4.0.1", "@rollup/plugin-node-resolve": "^13.0.6", "@skypack/package-check": "^0.2.2", - "@typescript-eslint/eslint-plugin": "^5.10.1", - "@typescript-eslint/parser": "^5.10.1", + "@typescript-eslint/eslint-plugin": "^5.10.2", + "@typescript-eslint/parser": "^5.10.2", "@web/dev-server-esbuild": "^0.2.16", "@web/dev-server-rollup": "^0.3.15", - "@web/test-runner": "^0.13.26", + "@web/test-runner": "^0.13.27", "@web/test-runner-commands": "^0.6.1", "@web/test-runner-playwright": "^0.8.8", "eslint-plugin-lit": "^1.6.1", diff --git a/postinstall.mjs b/postinstall.mjs new file mode 100644 index 00000000..2892ae31 --- /dev/null +++ b/postinstall.mjs @@ -0,0 +1,20 @@ +#!/usr/bin/env zx + +const { + CI = false, + INIT_CWD = '', +} = process.env; + +if (CI !== 'true') { + const { + name: moduleName, + } = JSON.parse(await fs.readFile('./package.json', { encoding: 'utf-8' })); + + if ( + !INIT_CWD.endsWith(`node_modules/${moduleName}`) && + INIT_CWD.endsWith(moduleName) + ) { + await $`simple-git-hooks`; + await $`npm dedupe`; + } +} diff --git a/tsconfig.json b/tsconfig.json index f28f8033..1b597710 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -2,6 +2,7 @@ "extends": "@reallyland/tsconfig/browser/tsconfig.json", "compilerOptions": { "declarationDir": "dist", + "importHelpers": true, "inlineSources": false, "outDir": "dist", "rootDir": "src", diff --git a/tsconfig.prod.json b/tsconfig.prod.json deleted file mode 100644 index b807973a..00000000 --- a/tsconfig.prod.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.json", - "compilerOptions": { - "importHelpers": true - } -}