Skip to content

Commit

Permalink
feat: update deps (#380)
Browse files Browse the repository at this point in the history
  • Loading branch information
martines3000 authored Aug 8, 2023
1 parent c97c316 commit f73f0fe
Show file tree
Hide file tree
Showing 128 changed files with 5,303 additions and 5,855 deletions.
18 changes: 18 additions & 0 deletions .changeset/nervous-turkeys-sneeze.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
'@blockchain-lab-um/oidc-client-plugin': patch
'@blockchain-lab-um/did-provider-ebsi': patch
'@blockchain-lab-um/did-provider-key': patch
'@blockchain-lab-um/veramo-datamanager': patch
'@blockchain-lab-um/oidc-rp-plugin': patch
'@blockchain-lab-um/oidc-verifier': patch
'@blockchain-lab-um/masca-connector': patch
'@blockchain-lab-um/oidc-issuer': patch
'@blockchain-lab-um/oidc-types': patch
'@blockchain-lab-um/masca-types': patch
'@blockchain-lab-um/dapp': patch
'@blockchain-lab-um/masca-docs': patch
'@blockchain-lab-um/masca': patch
'@blockchain-lab-um/utils': patch
---

Update dependencies to latest
8 changes: 4 additions & 4 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ module.exports = {
extends: [
'airbnb-base',
'airbnb-typescript/base',
'plugin:@typescript-eslint/recommended',
'plugin:@typescript-eslint/recommended-requiring-type-checking',
'plugin:@typescript-eslint/recommended-type-checked',
'plugin:@typescript-eslint/stylistic-type-checked',
'prettier',
],
overrides: [
Expand All @@ -30,7 +30,7 @@ module.exports = {
env: { jest: true },
},
],
plugins: ['@typescript-eslint/eslint-plugin', 'unused-imports'],
plugins: ['@typescript-eslint', 'unused-imports'],
parser: '@typescript-eslint/parser',
rules: {
// other rules
Expand All @@ -48,6 +48,7 @@ module.exports = {
format: ['PascalCase'],
},
],
'@typescript-eslint/prefer-nullish-coalescing': 'off',
// FIXME: Turn this on and fix in separate PR
'no-unused-vars': [
'off',
Expand Down Expand Up @@ -96,7 +97,6 @@ module.exports = {
],
'import/extensions': 'off',
},

ignorePatterns: [
'**/node_modules/**',
'**/dist/**',
Expand Down
2 changes: 1 addition & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"decorators-legacy",
"importAssertions"
],
"importOrderTypeScriptVersion": "4.9.5",
"importOrderTypeScriptVersion": "5.1.6",
"plugins": [
"prettier-plugin-packagejson",
"@ianvs/prettier-plugin-sort-imports",
Expand Down
2 changes: 1 addition & 1 deletion apps/oidc/issuer/jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export default {
'^multiformats/(.*)$': '<rootDir>/node_modules/multiformats/src/$1.js',
'^multiformats$': '<rootDir>/node_modules/multiformats/src/index.js',
uint8arrays:
'<rootDir>/../../../node_modules/.pnpm/uint8arrays@4.0.3/node_modules/uint8arrays/src/index.ts',
'<rootDir>/../../../node_modules/.pnpm/uint8arrays@4.0.6/node_modules/uint8arrays/src/index.ts',
},
extensionsToTreatAsEsm: ['.ts'],
transformIgnorePatterns: ['/node_modules/(?!@veramo)/'],
Expand Down
92 changes: 46 additions & 46 deletions apps/oidc/issuer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,77 +29,77 @@
"@blockchain-lab-um/oidc-rp-plugin": "0.0.2-beta.0",
"@blockchain-lab-um/oidc-types": "0.0.2-beta.0",
"@blockchain-lab-um/utils": "1.3.1-beta.0",
"@ethereumjs/util": "^8.0.6",
"@ethereumjs/util": "^8.1.0",
"@fastify/formbody": "^7.4.0",
"@nestjs/common": "^9.4.2",
"@nestjs/config": "^2.3.2",
"@nestjs/core": "^9.4.2",
"@nestjs/platform-fastify": "^9.4.2",
"@nestjs/schedule": "^2.2.2",
"@nestjs/common": "^10.1.3",
"@nestjs/config": "^3.0.0",
"@nestjs/core": "^10.1.3",
"@nestjs/platform-fastify": "^10.1.3",
"@nestjs/schedule": "^3.0.2",
"@sphereon/openid4vci-client": "^0.4.0",
"@veramo/core": "5.2.0",
"@veramo/credential-eip712": "5.2.0",
"@veramo/credential-ld": "5.2.0",
"@veramo/credential-w3c": "5.2.0",
"@veramo/data-store": "5.2.0",
"@veramo/did-jwt": "5.2.0",
"@veramo/did-manager": "5.1.2",
"@veramo/did-provider-ethr": "5.1.2",
"@veramo/did-resolver": "5.2.0",
"@veramo/key-manager": "5.1.2",
"@veramo/kms-local": "5.1.2",
"@veramo/message-handler": "5.1.2",
"@veramo/utils": "5.2.0",
"better-sqlite3": "^8.4.0",
"@veramo/core": "5.4.1",
"@veramo/credential-eip712": "5.4.1",
"@veramo/credential-ld": "5.4.1",
"@veramo/credential-w3c": "5.4.1",
"@veramo/data-store": "5.4.1",
"@veramo/did-jwt": "5.4.1",
"@veramo/did-manager": "5.4.1",
"@veramo/did-provider-ethr": "5.4.1",
"@veramo/did-resolver": "5.4.1",
"@veramo/key-manager": "5.4.1",
"@veramo/kms-local": "5.4.1",
"@veramo/message-handler": "5.4.1",
"@veramo/utils": "5.4.1",
"better-sqlite3": "^8.5.0",
"class-transformer": "^0.5.1",
"did-jwt": "^7.2.0",
"did-jwt": "^7.2.5",
"did-resolver": "^4.1.0",
"elliptic": "^6.5.4",
"ethereum-cryptography": "^2.0.0",
"ethr-did-resolver": "^8.0.0",
"fastify": "^4.17.0",
"ethereum-cryptography": "^2.1.2",
"ethr-did-resolver": "^8.1.2",
"fastify": "^4.21.0",
"joi": "^17.9.2",
"jose": "^4.13.1",
"multiformats": "^11.0.2",
"qs": "^6.11.2",
"reflect-metadata": "^0.1.13",
"rimraf": "^5.0.1",
"rxjs": "^7.8.1",
"typeorm": "^0.3.16",
"uint8arrays": "^4.0.3"
"typeorm": "^0.3.17",
"uint8arrays": "^4.0.6"
},
"devDependencies": {
"@ianvs/prettier-plugin-sort-imports": "^4.0.1",
"@jest/globals": "^29.5.0",
"@nestjs/cli": "^9.5.0",
"@nestjs/schematics": "^9.2.0",
"@nestjs/testing": "^9.4.2",
"@ianvs/prettier-plugin-sort-imports": "^4.1.0",
"@jest/globals": "^29.6.2",
"@nestjs/cli": "^10.1.11",
"@nestjs/schematics": "^10.0.2",
"@nestjs/testing": "^10.1.3",
"@swc/core": "1.3.52",
"@swc/jest": "0.2.26",
"@types/cron": "^2.0.1",
"@types/cron": "^2.4.0",
"@types/elliptic": "^6",
"@types/jest": "29.5.2",
"@types/jest": "29.5.3",
"@types/node": "^18.15.3",
"@types/qs": "^6.9.7",
"@types/supertest": "^2.0.12",
"@types/uuid": "^9.0.0",
"@typescript-eslint/eslint-plugin": "^5.59.8",
"@typescript-eslint/parser": "^5.59.8",
"eslint": "^8.36.0",
"eslint-config-prettier": "^8.7.0",
"eslint-plugin-import": "^2.27.5",
"@types/uuid": "^9.0.2",
"@typescript-eslint/eslint-plugin": "^6.3.0",
"@typescript-eslint/parser": "^6.3.0",
"eslint": "^8.46.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-import": "^2.28.0",
"eslint-plugin-jest": "^27.1.6",
"eslint-plugin-unused-imports": "^2.0.0",
"jest": "29.5.0",
"lint-staged": "^13.2.2",
"prettier": "^2.8.0",
"prettier-plugin-packagejson": "^2.4.3",
"eslint-plugin-unused-imports": "^3.0.0",
"jest": "29.6.2",
"lint-staged": "^13.2.3",
"prettier": "^3.0.1",
"prettier-plugin-packagejson": "^2.4.5",
"rimraf": "^4.4.0",
"source-map-support": "^0.5.21",
"supertest": "^6.3.3",
"ts-loader": "^9.4.3",
"ts-loader": "^9.4.4",
"ts-node": "^10.9.1",
"typescript": "5.1.3",
"typescript": "5.1.6",
"uuid": "^9.0.0"
}
}
13 changes: 6 additions & 7 deletions apps/oidc/issuer/src/app.module.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,12 @@ import {
type TokenResponse,
} from '@blockchain-lab-um/oidc-types';
import { qsCustomDecoder } from '@blockchain-lab-um/utils';
import { HttpServer } from '@nestjs/common';
import {
FastifyAdapter,
NestFastifyApplication,
} from '@nestjs/platform-fastify';
import { Test, TestingModule } from '@nestjs/testing';
import { FastifyInstance } from 'fastify';
import { RawServerDefault } from 'fastify';
import qs from 'qs';
import request from 'supertest';

Expand All @@ -32,7 +31,7 @@ import { AgentService } from './modules/agent/agent.service.js';
const compareTypes = (first: string[], second: string[]) =>
first.length === second.length && first.every((ele, i) => ele === second[i]);

const credOfferAndTokenRequest = async (server: HttpServer<any, any>) => {
const credOfferAndTokenRequest = async (server: RawServerDefault) => {
const credentialRequestData: CredentialOfferRequest = {
credentials: ['GmCredential'],
grants: ['urn:ietf:params:oauth:grant-type:pre-authorized_code'],
Expand Down Expand Up @@ -126,7 +125,7 @@ const credOfferAndTokenRequest = async (server: HttpServer<any, any>) => {

describe('Issuer controller', () => {
let app: NestFastifyApplication;
let server: HttpServer;
let server: RawServerDefault;
// let configService: ConfigService<IConfig, true>;

beforeEach(async () => {
Expand Down Expand Up @@ -161,13 +160,13 @@ describe('Issuer controller', () => {
app.useGlobalFilters(new AllExceptionsFilter());
await app.init();

await (app.getHttpAdapter().getInstance() as FastifyInstance).ready();
server = app.getHttpServer() as HttpServer;
await app.getHttpAdapter().getInstance().ready();
server = app.getHttpServer();
});

afterAll(async () => {
app.enableShutdownHooks();
await server.close();
server.close();

await app.close();
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@ export interface DataStoreObject<T> {
created: number;
}

export interface DataStore<T> {
[id: string]: DataStoreObject<T>;
}
export type DataStore<T> = Record<string, DataStoreObject<T>>;

export interface UserSession {
credentials: Credentials;
Expand Down
4 changes: 2 additions & 2 deletions apps/oidc/issuer/tests/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { Agent } from './testAgent.js';

const { ec: EC } = elliptic;

type CreateJWTProofParams = {
interface CreateJWTProofParams {
privateKey: string;
audience?: string;
bindingType: 'kid' | 'jwk' | 'x5c';
Expand All @@ -23,7 +23,7 @@ type CreateJWTProofParams = {
invalidHeader?: boolean;
invalidFragment?: boolean;
headerExtra?: any;
};
}

export const createJWTProof = async ({
privateKey,
Expand Down
3 changes: 2 additions & 1 deletion apps/oidc/issuer/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
"baseUrl": "./",
"strictBindCallApply": false,
"noFallthroughCasesInSwitch": false,
"resolveJsonModule": true
"resolveJsonModule": true,
"types": ["node", "jest"]
},
"include": ["src/**/*", "tests/**/*", "config.ts"]
}
4 changes: 0 additions & 4 deletions apps/oidc/verifier/.eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,4 @@ module.exports = {
project: './tsconfig.eslint.json',
sourceType: 'module',
},
env: {
node: true,
jest: true,
},
};
2 changes: 1 addition & 1 deletion apps/oidc/verifier/jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export default {
'^multiformats/(.*)$': '<rootDir>/node_modules/multiformats/src/$1.js',
'^multiformats$': '<rootDir>/node_modules/multiformats/src/index.js',
uint8arrays:
'<rootDir>/../../../node_modules/.pnpm/uint8arrays@4.0.3/node_modules/uint8arrays/src/index.ts',
'<rootDir>/../../../node_modules/.pnpm/uint8arrays@4.0.6/node_modules/uint8arrays/src/index.ts',
},
extensionsToTreatAsEsm: ['.ts'],
transformIgnorePatterns: ['/node_modules/(?!@veramo)/'],
Expand Down
Loading

0 comments on commit f73f0fe

Please sign in to comment.