Skip to content

Commit

Permalink
feat: rewrote code in TypeScript, introduced a crypto shim, and updat…
Browse files Browse the repository at this point in the history
…ed code to use the crypto shim
  • Loading branch information
Egor Manzhula committed Nov 13, 2024
1 parent 51028f2 commit 8dd6c19
Show file tree
Hide file tree
Showing 27 changed files with 2,390 additions and 367 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ jobs:
- if: github.event_name == 'pull_request'
name: Lint commit messages
run: npx commitlint --from ${{ github.event.pull_request.head.sha }}~${{ github.event.pull_request.commits }} --to ${{ github.event.pull_request.head.sha }} --verbose
- run: npm run build
- run: npm test
publish:
name: "Publish"
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/lib
/.idea

# Logs
Expand Down
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
artifacts/
coverage/
test/
src/
.gitignore
.npmignore
.nyc_output
Expand Down
276 changes: 0 additions & 276 deletions index.js

This file was deleted.

8 changes: 6 additions & 2 deletions nyc.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,15 @@ module.exports = {
branches: [85, 100],
statements: [85, 100],
},
include: ['**/*.js'],
exclude: ['node_modules', 'test-results', 'test/*', '**/*.spec.js', '*.config.js'],
include: ['**/*.ts'],
exclude: ['node_modules', 'test-results', 'test/*', "**/*.d.ts", '**/*.spec.ts', '*.config.js'],
reporter: ['text', 'html', 'cobertura'],
cache: false,
all: true,
'temp-directory': './test-results/coverage/.tmp',
'report-dir': './test-results/coverage',
require: [
'ts-node/register',
'source-map-support/register'
],
};
Loading

0 comments on commit 8dd6c19

Please sign in to comment.