This repository was archived by the owner on Nov 29, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 8 files changed +2171
-3368
lines changed Expand file tree Collapse file tree 8 files changed +2171
-3368
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ repo_path: &repo_path
1313
1414job_config : &job_config
1515 docker :
16- - image : ' circleci/node:12.9.1 -browsers'
16+ - image : ' circleci/node:12.22.3 -browsers'
1717 working_directory : *repo_path
1818
1919setup_envvars : &setup_envvars
Original file line number Diff line number Diff line change @@ -31,7 +31,6 @@ _NB: use semver_
3131
3232_ => Renaming in codebase will be made progressively._
3333
34-
3534## License
3635
3736[ MIT] ( LICENSE ) © [ UNS] ( https://unikname.com )
Original file line number Diff line number Diff line change 11import { LifeCycleGrades , throwIfNotAllowedToVote , UNSClient } from "../../src" ;
22import { mockWalletTokens , NETWORK } from "./__fixtures__/tests-commons" ;
3- import * as functions from "../../src/functions/unik" ;
3+ import * as functions from "../../src/functions/unik/functions " ;
44
55const unsClient = new UNSClient ( ) ;
66unsClient . init ( { network : NETWORK } ) ;
Original file line number Diff line number Diff line change @@ -13,7 +13,13 @@ module.exports = {
1313 "@typescript-eslint/adjacent-overload-signatures" : "error" ,
1414 "@typescript-eslint/array-type" : "error" ,
1515 "@typescript-eslint/ban-types" : "error" ,
16- "@typescript-eslint/class-name-casing" : "error" ,
16+ "@typescript-eslint/naming-convention" : [
17+ "error" ,
18+ {
19+ selector : "class" ,
20+ format : [ "PascalCase" ] ,
21+ } ,
22+ ] ,
1723 "@typescript-eslint/explicit-member-accessibility" : [
1824 "error" ,
1925 {
Original file line number Diff line number Diff line change 5353 "devDependencies" : {
5454 "@commitlint/cli" : " ^12.1.1" ,
5555 "@commitlint/config-conventional" : " ^12.1.1" ,
56- "@release-it/conventional-changelog" : " ^2 .0.1" ,
56+ "@release-it/conventional-changelog" : " ^3 .0.1" ,
5757 "@types/elliptic" : " ^6.4.12" ,
58- "@types/jest" : " ^25.1.2 " ,
58+ "@types/jest" : " ^26.0.24 " ,
5959 "@types/nanoid" : " ^2.1.0" ,
60- "@typescript-eslint/eslint-plugin" : " ^2.19.2 " ,
61- "@typescript-eslint/eslint-plugin-tslint" : " ^2.19.2 " ,
62- "@typescript-eslint/parser" : " ^2.19.2 " ,
60+ "@typescript-eslint/eslint-plugin" : " ^4.28.4 " ,
61+ "@typescript-eslint/eslint-plugin-tslint" : " ^4.28.4 " ,
62+ "@typescript-eslint/parser" : " ^4.28.4 " ,
6363 "cross-env" : " ^7.0.0" ,
6464 "del" : " ^5.1.0" ,
6565 "del-cli" : " ^3.0.0" ,
66- "eslint" : " ^6.8 .0" ,
66+ "eslint" : " ^7.31 .0" ,
6767 "husky" : " ^6.0.0" ,
68- "jest" : " ^25.1.0 " ,
68+ "jest" : " ^27.0.6 " ,
6969 "lint-staged" : " ^10.0.7" ,
7070 "nock" : " ^12.0.0" ,
7171 "prettier" : " ^1.18.2" ,
7272 "release-it" : " ^14.6.1" ,
73- "ts-jest" : " ^25.2.0 " ,
73+ "ts-jest" : " ^27.0.3 " ,
7474 "ts-loader" : " ^6.0.4" ,
7575 "tslint" : " ^5.0.0" ,
7676 "typescript" : " ^3.7.5"
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ const DID_PATTERN = new RegExp(TOKEN_PATTERN.source + TYPE_PATTERN.source + ID_P
2323
2424const DID_TYPES : string [ ] = Object . keys ( DIDTypes ) . map ( type => type . toLowerCase ( ) ) ;
2525
26- export const allowedTypesByToken : { } = {
26+ export const allowedTypesByToken : Record < string , unknown > = {
2727 unik : DID_TYPES ,
2828} ;
2929
Original file line number Diff line number Diff line change @@ -29,6 +29,6 @@ export type VerifiedJWT = {
2929 payload : PropertyVerifierJWTPayload | VoucherJWTPayload ;
3030 doc : DIDDocument ;
3131 issuer : string ;
32- signer : object ;
32+ signer : object ; // eslint-disable-line @typescript-eslint/ban-types
3333 jwt : string ;
3434} ;
Load Diff Large diffs are not rendered by default.
You can’t perform that action at this time.
0 commit comments