From 7b7aab7429588f5c8b3ad02ace26e7baeac194f3 Mon Sep 17 00:00:00 2001 From: Peter Newman Date: Thu, 24 Jun 2021 14:43:11 +0100 Subject: [PATCH 1/4] Add a codespell action --- .github/workflows/codespell.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .github/workflows/codespell.yml diff --git a/.github/workflows/codespell.yml b/.github/workflows/codespell.yml new file mode 100644 index 0000000..3329d0e --- /dev/null +++ b/.github/workflows/codespell.yml @@ -0,0 +1,16 @@ +# GitHub Action to automate the identification of common misspellings in text files. +# https://github.com/codespell-project/actions-codespell +# https://github.com/codespell-project/codespell +name: codespell +on: [push, pull_request] +jobs: + codespell: + name: Check for spelling errors + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: codespell-project/actions-codespell@master + with: + check_filenames: true + check_hidden: true + skip: ./.git From 0ca067914529618e4014fbd1ff8fadd11126a925 Mon Sep 17 00:00:00 2001 From: Peter Newman Date: Thu, 24 Jun 2021 14:47:13 +0100 Subject: [PATCH 2/4] Fix some typos --- source-map-support.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source-map-support.js b/source-map-support.js index 4459386..4ad6b1b 100644 --- a/source-map-support.js +++ b/source-map-support.js @@ -192,7 +192,7 @@ retrieveMapHandlers.push(function(source) { function mapSourcePosition(position) { var sourceMap = sourceMapCache[position.source]; if (!sourceMap) { - // Call the (overrideable) retrieveSourceMap function to get the source map. + // Call the (overridable) retrieveSourceMap function to get the source map. var urlAndMap = retrieveSourceMap(position.source); if (urlAndMap) { sourceMap = sourceMapCache[position.source] = { @@ -306,7 +306,7 @@ function CallSiteToString() { var isMethodCall = !(this.isToplevel() || isConstructor); if (isMethodCall) { var typeName = this.getTypeName(); - // Fixes shim to be backward compatable with Node v0 to v4 + // Fixes shim to be backward compatible with Node v0 to v4 if (typeName === "[object Object]") { typeName = "null"; } From 402f52cf1b0a0bab9796f72030c809c7e77f531b Mon Sep 17 00:00:00 2001 From: Peter Newman Date: Thu, 24 Jun 2021 14:47:43 +0100 Subject: [PATCH 3/4] Fix another typo --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 40228b7..384243a 100644 --- a/README.md +++ b/README.md @@ -103,7 +103,7 @@ require('source-map-support').install({ ``` The module will by default assume a browser environment if XMLHttpRequest and window are defined. If either of these do not exist it will instead assume a node environment. -In some rare cases, e.g. when running a browser emulation and where both variables are also set, you can explictly specify the environment to be either 'browser' or 'node'. +In some rare cases, e.g. when running a browser emulation and where both variables are also set, you can explicitly specify the environment to be either 'browser' or 'node'. ```js require('source-map-support').install({ From 1bb7f877d0b56ebc67b04abf09f9084da5fd90c5 Mon Sep 17 00:00:00 2001 From: Peter Newman Date: Thu, 24 Jun 2021 14:49:05 +0100 Subject: [PATCH 4/4] Skip another minified file --- .github/workflows/codespell.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/codespell.yml b/.github/workflows/codespell.yml index 3329d0e..23503af 100644 --- a/.github/workflows/codespell.yml +++ b/.github/workflows/codespell.yml @@ -13,4 +13,4 @@ jobs: with: check_filenames: true check_hidden: true - skip: ./.git + skip: ./.git,./amd-test/require.js