-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Small config to support replit environment (where I develop) * convert tests to use bun * remove last jest mention * format * Small change to support replit env, better types, removed outdated str syntaxx * WebCrypto implemented, reflect async in readme, modify tests to work with async * #IhateTS * no need for jssha anymore * Consistent names * performance optimizations * readability * More performance improvement * Adapt crypto to be static, performance improvement * Attempt at fixing node compat * Better docs * Built-in leftpad func * Fix prettier, for the love of God, jest just doesn't want 100% coverage * Should work, but doesn't idk, jest trippin 🤣 * Incorporate minification * Slight optimizations * Fix minification * At least some optimization dunno why I did & 255 there * Some formatting... I'm doing nothing at this point, last commit...
- Loading branch information
Showing
8 changed files
with
663 additions
and
544 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,9 @@ | ||
.upm | ||
.local | ||
.cache | ||
.DS_STORE | ||
node_modules | ||
dist | ||
npm-debug.log | ||
coverage | ||
lib | ||
dist | ||
lib |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
modules = ["nodejs-20:v8-20230920-bd784b9"] | ||
hidden = [".config", "yarn.lock"] | ||
run = "npm run test:coverage" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,9 @@ | ||
#!/bin/sh | ||
|
||
cat >lib/cjs/package.json <<!EOF | ||
{ | ||
"type": "commonjs" | ||
} | ||
{"type":"commonjs"} | ||
!EOF | ||
|
||
cat >lib/esm/package.json <<!EOF | ||
{ | ||
"type": "module" | ||
} | ||
{"type":"module"} | ||
!EOF |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,19 +39,18 @@ | |
"url": "[email protected]:bellstrand/totp-generator.git" | ||
}, | ||
"scripts": { | ||
"test": "jest", | ||
"test": "jest --silent=false", | ||
"test:coverage": "jest --silent=false --coverage", | ||
"test:prettier": "prettier --check '**/*.js'", | ||
"build": "rm -rf lib/* && yarn build:cjs && yarn build:esm && ./build-after.sh", | ||
"build:cjs": "tsc --p tsconfig-esm.json", | ||
"build:esm": "tsc --p tsconfig-cjs.json" | ||
}, | ||
"dependencies": { | ||
"jssha": "^3.3.1" | ||
"build:cjs": "tsc -p tsconfig-cjs.json && terser --source-map -cmo lib/cjs/index.js lib/cjs/index.js", | ||
"build:esm": "tsc -p tsconfig-esm.json && terser --source-map -cmo lib/esm/index.js lib/esm/index.js" | ||
}, | ||
"devDependencies": { | ||
"@types/jest": "^29.5.11", | ||
"jest": "^29.7.0", | ||
"prettier": "^3.2.4", | ||
"terser": "^5.31.0", | ||
"ts-jest": "^29.1.2", | ||
"typescript": "^5.3.3" | ||
}, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.