-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't register the message handler with null (#160)
* Don't register the message handler with null * Fully functioning bugfix But jest throws a type error. TSC is fine and browsers run it fine, but jsdom+jest blows up * Split worker from its functions so tests compile
- Loading branch information
Showing
10 changed files
with
330 additions
and
340 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 |
---|---|---|
|
@@ -6,7 +6,6 @@ interface Window { | |
msCrypto: Crypto; | ||
} | ||
|
||
|
||
/* | ||
* Declare types for modules without build in types | ||
*/ | ||
|
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
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,75 +1,75 @@ | ||
{ | ||
"license": "AGPL-3.0-only", | ||
"version": "4.2.22", | ||
"scripts": { | ||
"cleanTest": "find dist -type d -name tests -prune -exec rm -rf {} \\;", | ||
"lint": "eslint . --ext .ts,.tsx", | ||
"test": "tsc --noEmit && yarn run lint && yarn run unit --coverage", | ||
"unit": "jest", | ||
"watch": "tsc --noEmit --watch", | ||
"start": "webpack serve --color --config integration/clientHost.webpack.js &! webpack serve --color --config integration/iclHost.webpack.js", | ||
"protocompile": "pbjs -t static-module -w es6 --no-create --no-decode --no-verify --no-convert -o src/frame/protobuf/EncryptedDeks.js src/frame/protobuf/edeks.proto", | ||
"protots": "pbts -o src/frame/protobuf/EncryptedDeks.d.ts src/frame/protobuf/EncryptedDeks.js", | ||
"protobuild": "yarn run protocompile && yarn run protots", | ||
"integrate": "yarn start", | ||
"nightwatch": "nightwatch" | ||
}, | ||
"dependencies": { | ||
"@ironcorelabs/recrypt-wasm-binding": "0.6.0", | ||
"@stablelib/ed25519": "1.0.2", | ||
"@stablelib/utf8": "1.0.1", | ||
"base64-js": "1.5.1", | ||
"fast-text-encoding": "1.0.4", | ||
"futurejs": "2.2.0", | ||
"sjcl": "1.0.8" | ||
}, | ||
"peerDependencies": { | ||
"@stablelib/utf8": "^0.10", | ||
"base64-js": "^1.2", | ||
"futurejs": "^2" | ||
}, | ||
"devDependencies": { | ||
"@types/base64-js": "^1.2.5", | ||
"@types/jest": "^28.1.6", | ||
"@types/material-ui": "^0.21.7", | ||
"@types/react": "^18.0.0", | ||
"@types/react-dom": "^18.0.0", | ||
"@types/react-tap-event-plugin": "^0.0.30", | ||
"@types/sjcl": "^1.0.28", | ||
"@types/webpack-env": "^1.16.0", | ||
"@typescript-eslint/eslint-plugin": "^5.33.0", | ||
"@typescript-eslint/parser": "^5.33.0", | ||
"animal-id": "^0.0.1", | ||
"chromedriver": "^119.0.1", | ||
"cookie-parser": "^1.4.4", | ||
"eslint": "^8.21.0", | ||
"eslint-plugin-react": "^7.19.0", | ||
"express": "^4.19.2", | ||
"jest": "^28.1.3", | ||
"jest-environment-jsdom": "^28.1.3", | ||
"jest-extended": "^3.0.2", | ||
"jsonwebtoken": "^9.0.0", | ||
"material-ui": "^0.20.2", | ||
"nightwatch": "^2.3.0", | ||
"protobufjs": "^7.2.5", | ||
"protobufjs-cli": "^1.0.2", | ||
"react": "^18.2.0", | ||
"react-dom": "^18.2.0", | ||
"shelljs": "^0.8.5", | ||
"ts-jest": "^28.0.0", | ||
"ts-loader": "^9.3.1", | ||
"typescript": "4.7.4", | ||
"webpack": "^5.76.0", | ||
"webpack-cli": "^4.7.0", | ||
"webpack-dev-server": "^4.10.0", | ||
"worker-loader": "^3.0.8" | ||
}, | ||
"prettier": { | ||
"printWidth": 160, | ||
"tabWidth": 4, | ||
"trailingComma": "es5", | ||
"bracketSpacing": false, | ||
"jsxBracketSameLine": true, | ||
"arrowParens": "always" | ||
} | ||
"license": "AGPL-3.0-only", | ||
"version": "4.2.22", | ||
"scripts": { | ||
"cleanTest": "find dist -type d -name tests -prune -exec rm -rf {} \\;", | ||
"lint": "eslint . --ext .ts,.tsx", | ||
"test": "tsc --noEmit && yarn run lint && yarn run unit --coverage", | ||
"unit": "jest", | ||
"watch": "tsc --noEmit --watch", | ||
"start": "webpack serve --color --config integration/clientHost.webpack.js &! webpack serve --color --config integration/iclHost.webpack.js", | ||
"protocompile": "pbjs -t static-module -w es6 --no-create --no-decode --no-verify --no-convert -o src/frame/protobuf/EncryptedDeks.js src/frame/protobuf/edeks.proto", | ||
"protots": "pbts -o src/frame/protobuf/EncryptedDeks.d.ts src/frame/protobuf/EncryptedDeks.js", | ||
"protobuild": "yarn run protocompile && yarn run protots", | ||
"integrate": "yarn start", | ||
"nightwatch": "nightwatch" | ||
}, | ||
"dependencies": { | ||
"@ironcorelabs/recrypt-wasm-binding": "0.6.0", | ||
"@stablelib/ed25519": "1.0.2", | ||
"@stablelib/utf8": "1.0.1", | ||
"base64-js": "1.5.1", | ||
"fast-text-encoding": "1.0.4", | ||
"futurejs": "2.2.0", | ||
"sjcl": "1.0.8" | ||
}, | ||
"peerDependencies": { | ||
"@stablelib/utf8": "^0.10", | ||
"base64-js": "^1.2", | ||
"futurejs": "^2" | ||
}, | ||
"devDependencies": { | ||
"@types/base64-js": "^1.2.5", | ||
"@types/jest": "^28.1.6", | ||
"@types/material-ui": "^0.21.7", | ||
"@types/react": "^18.0.0", | ||
"@types/react-dom": "^18.0.0", | ||
"@types/react-tap-event-plugin": "^0.0.30", | ||
"@types/sjcl": "^1.0.28", | ||
"@types/webpack-env": "^1.16.0", | ||
"@typescript-eslint/eslint-plugin": "^5.33.0", | ||
"@typescript-eslint/parser": "^5.33.0", | ||
"animal-id": "^0.0.1", | ||
"chromedriver": "^119.0.1", | ||
"cookie-parser": "^1.4.4", | ||
"eslint": "^8.21.0", | ||
"eslint-plugin-react": "^7.19.0", | ||
"express": "^4.19.2", | ||
"jest": "^28.1.3", | ||
"jest-environment-jsdom": "^28.1.3", | ||
"jest-extended": "^3.0.2", | ||
"jsonwebtoken": "^9.0.0", | ||
"material-ui": "^0.20.2", | ||
"nightwatch": "^2.3.0", | ||
"protobufjs": "^7.2.5", | ||
"protobufjs-cli": "^1.0.2", | ||
"react": "^18.2.0", | ||
"react-dom": "^18.2.0", | ||
"shelljs": "^0.8.5", | ||
"ts-jest": "^28.0.0", | ||
"ts-loader": "^9.3.1", | ||
"typescript": "4.7.4", | ||
"webpack": "^5.76.0", | ||
"webpack-cli": "^4.7.0", | ||
"webpack-dev-server": "^4.10.0", | ||
"worker-loader": "^3.0.8" | ||
}, | ||
"prettier": { | ||
"printWidth": 160, | ||
"tabWidth": 4, | ||
"trailingComma": "es5", | ||
"bracketSpacing": false, | ||
"jsxBracketSameLine": true, | ||
"arrowParens": "always" | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
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.