From 1e4d3e1dc244afafd4d962ac5c38aa4e6305a802 Mon Sep 17 00:00:00 2001 From: Timur Shemsedinov Date: Mon, 3 Oct 2022 23:18:47 +0300 Subject: [PATCH 1/2] Add node: for internal modules --- JavaScript/server.js | 2 +- JavaScript/storage.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/JavaScript/server.js b/JavaScript/server.js index 94125d9..daa7125 100644 --- a/JavaScript/server.js +++ b/JavaScript/server.js @@ -1,6 +1,6 @@ 'use strict'; -const http = require('http'); +const http = require('node:http'); const Client = require('./client.js'); const Session = require('./session.js'); diff --git a/JavaScript/storage.js b/JavaScript/storage.js index 3942632..a114315 100644 --- a/JavaScript/storage.js +++ b/JavaScript/storage.js @@ -1,8 +1,8 @@ 'use strict'; -const fs = require('fs'); -const path = require('path'); -const v8 = require('v8'); +const fs = require('node:fs'); +const path = require('node:path'); +const v8 = require('node:v8'); const PATH = `${__dirname}/sessions`; From 7f52ee67cec6928ee5722dd64782a70b69d53555 Mon Sep 17 00:00:00 2001 From: Timur Shemsedinov Date: Mon, 3 Oct 2022 23:18:53 +0300 Subject: [PATCH 2/2] Update license --- LICENSE | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LICENSE b/LICENSE index e6004fa..a92a662 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2019-2021 How.Programming.Works contributors +Copyright (c) 2019-2022 How.Programming.Works contributors Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal