Skip to content

Commit ee63875

Browse files
committed
Add node: for internal modules
1 parent 6545320 commit ee63875

7 files changed

Lines changed: 7 additions & 7 deletions

File tree

JavaScript/1-singletrhead/actors/monitoring.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use strict';
22

33
const ActorSystem = require('../system');
4-
const http = require('http');
4+
const http = require('node:http');
55

66
const URL = 'http://localhost:8000/';
77
const INTERVAL = 2000;

JavaScript/2-multiprocess/actors/monitoring.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use strict';
22

33
const ActorSystem = require('../system');
4-
const http = require('http');
4+
const http = require('node:http');
55

66
const URL = 'http://localhost:8000/';
77
const INTERVAL = 2000;

JavaScript/2-multiprocess/master.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use strict';
22

3-
const cp = require('child_process');
3+
const cp = require('node:child_process');
44

55
const actors = new Map();
66

JavaScript/3-multithread/actors/monitoring.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use strict';
22

33
const ActorSystem = require('../system');
4-
const http = require('http');
4+
const http = require('node:http');
55

66
const URL = 'http://localhost:8000/';
77
const INTERVAL = 2000;

JavaScript/3-multithread/master.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use strict';
22

3-
const threads = require('worker_threads');
3+
const threads = require('node:worker_threads');
44
const { Worker } = threads;
55

66
const actors = new Map();

JavaScript/3-multithread/system.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use strict';
22

3-
const threads = require('worker_threads');
3+
const threads = require('node:worker_threads');
44
const { isMainThread } = threads;
55

66
module.exports = isMainThread ? require('./master') : require('./worker');

JavaScript/3-multithread/worker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use strict';
22

3-
const threads = require('worker_threads');
3+
const threads = require('node:worker_threads');
44
const master = threads.parentPort;
55

66
class ActorSystem {

0 commit comments

Comments
 (0)