Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 16 additions & 16 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ jobs:
- run: npm ci

- name: run unit tests
run: npx nyc --reporter=lcov npm run test
run: npx c8 --reporter=lcov npm run test

- uses: codecov/codecov-action@v5
with:
Expand All @@ -71,7 +71,7 @@ jobs:
- name: run integration tests (TDS 7.4)
env:
TEDIOUS_TDS_VERSION: 7_4
run: npx nyc --reporter=lcov npm run test-integration
run: npx c8 --reporter=lcov npm run test-integration

- uses: codecov/codecov-action@v5
with:
Expand All @@ -80,7 +80,7 @@ jobs:
- name: run integration tests (TDS 7.3B)
env:
TEDIOUS_TDS_VERSION: 7_3_B
run: npx nyc --reporter=lcov npm run test-integration
run: npx c8 --reporter=lcov npm run test-integration

- uses: codecov/codecov-action@v5
with:
Expand All @@ -89,7 +89,7 @@ jobs:
- name: run integration tests (TDS 7.3A)
env:
TEDIOUS_TDS_VERSION: 7_3_A
run: npx nyc --reporter=lcov npm run test-integration
run: npx c8 --reporter=lcov npm run test-integration

- uses: codecov/codecov-action@v5
with:
Expand All @@ -98,7 +98,7 @@ jobs:
- name: run integration tests (TDS 7.2)
env:
TEDIOUS_TDS_VERSION: 7_2
run: npx nyc --reporter=lcov npm run test-integration
run: npx c8 --reporter=lcov npm run test-integration

- uses: codecov/codecov-action@v5
with:
Expand All @@ -107,7 +107,7 @@ jobs:
- name: run integration tests (TDS 7.1)
env:
TEDIOUS_TDS_VERSION: 7_1
run: npx nyc --reporter=lcov npm run test-integration
run: npx c8 --reporter=lcov npm run test-integration

- uses: codecov/codecov-action@v5
with:
Expand Down Expand Up @@ -181,7 +181,7 @@ jobs:
- run: npm ci

- name: run unit tests
run: npx nyc --reporter=lcov npm run test
run: npx c8 --reporter=lcov npm run test

- uses: codecov/codecov-action@v5
with:
Expand All @@ -190,7 +190,7 @@ jobs:
- name: run integration tests (TDS 7.4)
env:
TEDIOUS_TDS_VERSION: 7_4
run: npx nyc --reporter=lcov npm run test-integration
run: npx c8 --reporter=lcov npm run test-integration

- uses: codecov/codecov-action@v5
with:
Expand All @@ -199,7 +199,7 @@ jobs:
- name: run integration tests (TDS 7.3B)
env:
TEDIOUS_TDS_VERSION: 7_3_B
run: npx nyc --reporter=lcov npm run test-integration
run: npx c8 --reporter=lcov npm run test-integration

- uses: codecov/codecov-action@v5
with:
Expand All @@ -208,7 +208,7 @@ jobs:
- name: run integration tests (TDS 7.3A)
env:
TEDIOUS_TDS_VERSION: 7_3_A
run: npx nyc --reporter=lcov npm run test-integration
run: npx c8 --reporter=lcov npm run test-integration

- uses: codecov/codecov-action@v5
with:
Expand All @@ -217,7 +217,7 @@ jobs:
- name: run integration tests (TDS 7.2)
env:
TEDIOUS_TDS_VERSION: 7_2
run: npx nyc --reporter=lcov npm run test-integration
run: npx c8 --reporter=lcov npm run test-integration

- uses: codecov/codecov-action@v5
with:
Expand All @@ -226,7 +226,7 @@ jobs:
- name: run integration tests (TDS 7.1)
env:
TEDIOUS_TDS_VERSION: 7_1
run: npx nyc --reporter=lcov npm run test-integration
run: npx c8 --reporter=lcov npm run test-integration

- uses: codecov/codecov-action@v5
with:
Expand Down Expand Up @@ -260,7 +260,7 @@ jobs:
AZURE_SERVER: ${{ secrets.AZURE_SERVER }}
AZURE_USERNAME: ${{ secrets.AZURE_USERNAME }}
AZURE_PASSWORD: ${{ secrets.AZURE_PASSWORD }}
run: npx nyc --reporter=lcov npm run test-integration
run: npx c8 --reporter=lcov npm run test-integration

- uses: codecov/codecov-action@v5
with:
Expand Down Expand Up @@ -296,7 +296,7 @@ jobs:
AZURE_AD_SP_TENANT_ID: ${{ secrets.AZURE_AD_SP_TENANT_ID }}
AZURE_AD_USERNAME: ${{ secrets.AZURE_AD_USERNAME }}
AZURE_AD_PASSWORD: ${{ secrets.AZURE_AD_PASSWORD }}
run: npx nyc --reporter=lcov npm run test-integration
run: npx c8 --reporter=lcov npm run test-integration

- uses: codecov/codecov-action@v5
with:
Expand Down Expand Up @@ -332,7 +332,7 @@ jobs:
AZURE_AD_SP_TENANT_ID: ${{ secrets.AZURE_AD_SP_TENANT_ID }}
AZURE_AD_USERNAME: ${{ secrets.AZURE_AD_USERNAME }}
AZURE_AD_PASSWORD: ${{ secrets.AZURE_AD_PASSWORD }}
run: npx nyc --reporter=lcov npm run test-integration
run: npx c8 --reporter=lcov npm run test-integration

- uses: codecov/codecov-action@v5
with:
Expand Down Expand Up @@ -368,7 +368,7 @@ jobs:
AZURE_AD_SP_CLIENT_ID: ${{ secrets.AZURE_AD_SP_CLIENT_ID }}
AZURE_AD_SP_TENANT_ID: ${{ secrets.AZURE_AD_SP_TENANT_ID }}
AZURE_AD_SP_CLIENT_SECRET: ${{ secrets.AZURE_AD_SP_CLIENT_SECRET }}
run: npx nyc --reporter=lcov npm run test-integration
run: npx c8 --reporter=lcov npm run test-integration

- uses: codecov/codecov-action@v5
with:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ README.html
generated
lib/
/scratch
coverage/

test/unit/perf-buffer.coffee

Expand Down
2 changes: 1 addition & 1 deletion benchmarks/request/rpcrequest-payload-tvp.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const { createBenchmark } = require('../common');

const { Request, TYPES } = require('tedious');
const RpcRequestPayload = require('tedious/lib/rpcrequest-payload');
const RpcRequestPayload = require('tedious/lib/rpcrequest-payload').default;

const { Readable } = require('stream');

Expand Down
2 changes: 1 addition & 1 deletion benchmarks/request/rpcrequest-payload-varbinary.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const { createBenchmark } = require('../common');

const { Request, TYPES } = require('tedious');
const RpcRequestPayload = require('tedious/lib/rpcrequest-payload');
const RpcRequestPayload = require('tedious/lib/rpcrequest-payload').default;

const { Readable } = require('stream');

Expand Down
3 changes: 3 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,9 @@ export default defineConfig([
allowedNames: ['self'],
}],

'no-redeclare': 'off',
'@typescript-eslint/no-redeclare': 'error',

'no-unused-vars': 'off',

'@typescript-eslint/no-unused-vars': ['error', {
Expand Down
Loading
Loading