Skip to content

Commit

Permalink
chore: bump deps and improve ci
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-akait committed Jan 13, 2024
1 parent d126d41 commit 4db8586
Show file tree
Hide file tree
Showing 5 changed files with 1,605 additions and 1,378 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,24 +14,24 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
node-version: [10.x, 12.x, 14.x, 16.x]
node-version: [10.x, 12.x, 14.x, 16.x, 18.x, 20.x, 21.x]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: yarn
- run: yarn --frozen-lockfile
- uses: actions/cache@v1
- uses: actions/cache@v3
with:
path: .eslintcache
key: lint-${{ env.GITHUB_SHA }}
restore-keys: lint-
- run: yarn lint
- run: yarn cover
- uses: codecov/codecov-action@v1
- uses: codecov/codecov-action@v3
with:
flags: integration
functionalities: gcov
10 changes: 4 additions & 6 deletions lib/SourceMapSource.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,8 @@ class SourceMapSource extends Source {

_ensureOriginalSourceString() {
if (this._originalSourceAsString === undefined && this._hasOriginalSource) {
this._originalSourceAsString = this._originalSourceAsBuffer.toString(
"utf-8"
);
this._originalSourceAsString =
this._originalSourceAsBuffer.toString("utf-8");
}
}

Expand All @@ -108,9 +107,8 @@ class SourceMapSource extends Source {
_ensureInnerSourceMapString() {
if (this._innerSourceMapAsString === undefined && this._hasInnerSourceMap) {
if (this._innerSourceMapAsBuffer !== undefined) {
this._innerSourceMapAsString = this._innerSourceMapAsBuffer.toString(
"utf-8"
);
this._innerSourceMapAsString =
this._innerSourceMapAsBuffer.toString("utf-8");
} else {
this._innerSourceMapAsString = JSON.stringify(
this._innerSourceMapAsObject
Expand Down
5 changes: 2 additions & 3 deletions lib/helpers/createMappingsSerializer.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@

"use strict";

const ALPHABET = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(
""
);
const ALPHABET =
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");

const CONTINUATION_BIT = 0x20;

Expand Down
5 changes: 2 additions & 3 deletions lib/helpers/streamChunksOfCombinedSourceMap.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,8 @@ const streamChunksOfCombinedSourceMap = (
// Check if there is a mapping in the inner source
const idx = findInnerMapping(originalLine, originalColumn);
if (idx !== -1) {
const { chunks, mappingsData } = innerSourceMapLineData[
originalLine - 1
];
const { chunks, mappingsData } =
innerSourceMapLineData[originalLine - 1];
const mi = idx * 5;
const innerSourceIndex = mappingsData[mi + 1];
const innerOriginalLine = mappingsData[mi + 2];
Expand Down
Loading

0 comments on commit 4db8586

Please sign in to comment.