mirror of
https://github.com/logos-messaging/js-waku.git
synced 2026-01-07 16:23:09 +00:00
chore: update ecmascript version (#1352)
* updates to ES2022
* 🚿 cleanup
This commit is contained in:
parent
a543d4ba71
commit
97d5659c47
@ -103,7 +103,8 @@ export class ConnectionManager {
|
|||||||
|
|
||||||
this.dialAttemptsForPeer.delete(peerId.toString());
|
this.dialAttemptsForPeer.delete(peerId.toString());
|
||||||
return;
|
return;
|
||||||
} catch (error: any) {
|
} catch (e) {
|
||||||
|
const error = e as AggregateError;
|
||||||
this.dialErrorsForPeer.set(peerId.toString(), error);
|
this.dialErrorsForPeer.set(peerId.toString(), error);
|
||||||
log(`Error dialing peer ${peerId.toString()} - ${error.errors}`);
|
log(`Error dialing peer ${peerId.toString()} - ${error.errors}`);
|
||||||
|
|
||||||
|
|||||||
@ -1,9 +1,9 @@
|
|||||||
{
|
{
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"incremental": true,
|
"incremental": true,
|
||||||
"target": "es2020",
|
"target": "ES2022",
|
||||||
"moduleResolution": "node16",
|
"moduleResolution": "node16",
|
||||||
"module": "es2020",
|
"module": "ES2022",
|
||||||
"declaration": true,
|
"declaration": true,
|
||||||
"sourceMap": true,
|
"sourceMap": true,
|
||||||
"esModuleInterop": true /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */,
|
"esModuleInterop": true /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */,
|
||||||
@ -38,7 +38,7 @@
|
|||||||
// "experimentalDecorators": true /* Enables experimental support for ES7 decorators. */,
|
// "experimentalDecorators": true /* Enables experimental support for ES7 decorators. */,
|
||||||
// "emitDecoratorMetadata": true /* Enables experimental support for emitting type metadata for decorators. */,
|
// "emitDecoratorMetadata": true /* Enables experimental support for emitting type metadata for decorators. */,
|
||||||
|
|
||||||
"lib": ["es2020", "dom"],
|
"lib": ["es2022", "dom"],
|
||||||
"types": ["node", "mocha"],
|
"types": ["node", "mocha"],
|
||||||
"typeRoots": ["node_modules/@types"]
|
"typeRoots": ["node_modules/@types"]
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user