Skip to content

Commit

Permalink
feat: rewrite files to typescript
Browse files Browse the repository at this point in the history
chore: reset repo

chore: setup folders and file structure

feat: core methods added

feat: added google authenticator methods

feat: added cryptojs impl

feat: add browser module

tests(core): hotp tests complete

chore: rename base32  pkg

feat: add keyuri

feat: rename enums to be more specific

feat: rename validator

chore: added more test for totp

feat: add msCrypto back with ignore

feat: standardized errors

feat: fix up inheritance of classes

fix: remove 3rd party force dts with ts-ignore

chore: add utils test

chore: added codec and authenticator tests

feat: update codec sanity test + keyuri issuer

feat: added package suite test
  • Loading branch information
yeojz committed Aug 25, 2019
1 parent d0aedcc commit d3bc82c
Show file tree
Hide file tree
Showing 144 changed files with 4,223 additions and 10,628 deletions.
11 changes: 3 additions & 8 deletions .babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,9 @@
"presets": [
["@babel/preset-env", {
"targets": {
"node": "6",
"ios": "9"
"node": "8"
}
}]
],
"plugins": [
["module-resolver", {
"root": ["./packages"]
}]
}],
"@babel/preset-typescript"
]
}
3 changes: 1 addition & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,7 @@ jobs:
- run:
name: lint
command: |
npm run lint:js
npm run lint:ts
npm run lint
- run:
name: send coverage report
command: |
Expand Down
7 changes: 4 additions & 3 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"parser": "@typescript-eslint/parser",
"env": {
"browser": true,
"commonjs": true,
Expand All @@ -9,10 +10,10 @@
"parserOptions": {
"sourceType": "module"
},
"plugins": [
"prettier"
],
"plugins": ["prettier", "@typescript-eslint"],
"extends": [
"plugin:@typescript-eslint/recommended",
"prettier/@typescript-eslint",
"eslint:recommended",
"plugin:prettier/recommended"
]
Expand Down
17 changes: 3 additions & 14 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,18 +31,7 @@ coverage
.npm
.node_repl_history

/dist
/docs
/site/dist
/site/public/docs/*

/authenticator.js
/core.js
/hotp.js
/index.js
/otplib.js
/totp.js
/utils.js
/lib-test.js

audit.txt
/build-*

lib.test.*
65 changes: 0 additions & 65 deletions examples/cli.js

This file was deleted.

26 changes: 0 additions & 26 deletions jsdoc.json

This file was deleted.

Loading

0 comments on commit d3bc82c

Please sign in to comment.