mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00
refactor: Use node protocol when importing builtins
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { Readable } from 'stream';
|
||||
import { Readable } from 'node:stream';
|
||||
import { exportJWK, generateKeyPair } from 'jose';
|
||||
import type * as Koa from 'koa';
|
||||
import type { ErrorHandler } from '../../../../src/http/output/error/ErrorHandler';
|
||||
|
||||
@@ -14,7 +14,7 @@ import { InternalServerError } from '../../../../../../src/util/errors/InternalS
|
||||
|
||||
const STORAGE_TYPE = 'clientCredentials';
|
||||
const secret = 'verylongstringof64bytes';
|
||||
jest.mock('crypto', (): any => ({ randomBytes: (): string => secret }));
|
||||
jest.mock('node:crypto', (): any => ({ randomBytes: (): string => secret }));
|
||||
|
||||
describe('A BaseClientCredentialsStore', (): void => {
|
||||
const webId = 'http://example.com/card#me';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { ServerResponse } from 'http';
|
||||
import type { ServerResponse } from 'node:http';
|
||||
import { createResponse } from 'node-mocks-http';
|
||||
import { RepresentationMetadata } from '../../../../../../src/http/representation/RepresentationMetadata';
|
||||
import { OwnerMetadataWriter } from '../../../../../../src/identity/interaction/pod/util/OwnerMetadataWriter';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Readable } from 'stream';
|
||||
import { Readable } from 'node:stream';
|
||||
import { DataFactory } from 'n3';
|
||||
import type { Quad } from 'n3';
|
||||
import rdfDereferencer from 'rdf-dereference';
|
||||
|
||||
Reference in New Issue
Block a user