From 56cc104ba22e196f7259242829adcbfbe3efe7fe Mon Sep 17 00:00:00 2001 From: fengmk2 Date: Sat, 25 Nov 2023 15:14:30 +0800 Subject: [PATCH 1/2] chore: fix typo on readme closes https://github.com/node-modules/is-type-of/issues/21 --- .github/workflows/codeql.yml | 39 ----------------------------------- .github/workflows/release.yml | 4 ---- README.md | 11 +++++----- package.json | 4 ++-- 4 files changed, 7 insertions(+), 51 deletions(-) delete mode 100644 .github/workflows/codeql.yml diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml deleted file mode 100644 index 028b997..0000000 --- a/.github/workflows/codeql.yml +++ /dev/null @@ -1,39 +0,0 @@ -name: "CodeQL" - -on: - push: - branches: [ "master" ] - pull_request: - branches: [ "master" ] - -jobs: - analyze: - name: Analyze - runs-on: ubuntu-latest - permissions: - actions: read - contents: read - security-events: write - - strategy: - fail-fast: false - matrix: - language: [ javascript ] - - steps: - - name: Checkout - uses: actions/checkout@v3 - - - name: Initialize CodeQL - uses: github/codeql-action/init@v2 - with: - languages: ${{ matrix.language }} - queries: +security-and-quality - - - name: Autobuild - uses: github/codeql-action/autobuild@v2 - - - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v2 - with: - category: "/language:${{ matrix.language }}" diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 64a499b..1c6cbb1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -4,8 +4,6 @@ on: push: branches: [ master ] - workflow_dispatch: {} - jobs: release: name: Node.js @@ -13,5 +11,3 @@ jobs: secrets: NPM_TOKEN: ${{ secrets.NPM_TOKEN }} GIT_TOKEN: ${{ secrets.GIT_TOKEN }} - with: - checkTest: false diff --git a/README.md b/README.md index fff05b5..b10b44b 100644 --- a/README.md +++ b/README.md @@ -1,17 +1,16 @@ -is-type-of -========== +# is-type-of Complete type checking for Node ## Features -- 🔒 Usefull Type Checking,including Primitive, Standard Object, Node Object +- 🔒 Useful Type Checking,including Primitive, Standard Object, Node Object - ✨ Typescript Support - 🚪 Typescript Type Guard Support ## Install -``` +```bash npm install is-type-of ``` @@ -24,7 +23,7 @@ import is from 'is-type-of'; import { isArray } from 'is-type-of'; isArray([]); // => true -is.array(); // => true +is.array([]); // => true ``` Compatible With @@ -288,4 +287,4 @@ See Also `is.longObject` ## License -MIT +[MIT](LICENSE) diff --git a/package.json b/package.json index 8a4929b..d3e9203 100644 --- a/package.json +++ b/package.json @@ -59,14 +59,14 @@ "benchmark": "^2.1.4", "core-util-is": "^1.0.3", "egg-bin": "^6.5.2", - "eslint": "^8.49.0", + "eslint": "^8.54.0", "eslint-config-egg": "^13.0.0", "long": "^3.2.0", "semver": "^5.4.1", "ts-expect": "^1.3.0", "tshy": "^1.0.0", "tshy-after": "^1.0.0", - "typescript": "^5.2.2" + "typescript": "^5.3.2" }, "types": "./dist/commonjs/index.d.ts" } From d2b77336a0de1d0bd2670721580418f286772781 Mon Sep 17 00:00:00 2001 From: fengmk2 Date: Sat, 25 Nov 2023 15:37:50 +0800 Subject: [PATCH 2/2] deps: use ts 5.2.2 https://github.com/TypeStrong/ts-node/pull/2091 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index d3e9203..f8c854f 100644 --- a/package.json +++ b/package.json @@ -66,7 +66,7 @@ "ts-expect": "^1.3.0", "tshy": "^1.0.0", "tshy-after": "^1.0.0", - "typescript": "^5.3.2" + "typescript": "~5.2.2" }, "types": "./dist/commonjs/index.d.ts" }