diff --git a/.github/workflows/codespell.yml b/.github/workflows/codespell.yml new file mode 100644 index 0000000..23503af --- /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,./amd-test/require.js 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({ 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"; }