Skip to content

Commit 8ccd33c

Browse files
committed
Add node: to all internal modules
1 parent e629720 commit 8ccd33c

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

interfaceWrapper/en/framework.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
// Wrapping function and interface example
44

55
global.api = {};
6-
api.fs = require('fs');
7-
api.vm = require('vm');
6+
api.fs = require('node:fs');
7+
api.vm = require('node:vm');
88

99
// Create a hash for application sandbox
1010
const context = {

interfaceWrapper/ru/framework.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
'use strict';
22

33
global.api = {};
4-
api.fs = require('fs');
5-
api.vm = require('vm');
4+
api.fs = require('node:fs');
5+
api.vm = require('node:vm');
66

77
const wrapFunction = (fnName, fn) => (...args) => {
88
if (args.length > 0) {

sandboxedModule/en/framework.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66

77
// The framework can require core libraries
88
global.api = {};
9-
api.fs = require('fs');
10-
api.vm = require('vm');
9+
api.fs = require('node:fs');
10+
api.vm = require('node:vm');
1111

1212
// Create a hash and turn it into the sandboxed context which will be
1313
// the global context of an application

sandboxedModule/ru/framework.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77

88
// Фреймворк может явно зависеть от библиотек через dependency lookup
99
global.api = {};
10-
api.fs = require('fs');
11-
api.vm = require('vm');
10+
api.fs = require('node:fs');
11+
api.vm = require('node:vm');
1212

1313
// Создаем контекст-песочницу, которая станет глобальным контекстом приложения
1414
const context = {}; // module: {}, /*console: console*/ };

0 commit comments

Comments
 (0)