Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion detection/detect.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const AWS = require('aws-sdk');
const fs = require('fs');
const fs = require('node:fs');
const sharp = require('sharp');

sharp(__dirname + '/Codeimage.jpg')
Expand Down
2 changes: 1 addition & 1 deletion install/installTypings.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ function npmCommand(command, npmArgs, options) {
if (npmArgs == null) npmArgs = [];

const npmBinary = /^win/.test(process.platform) ? 'npm.cmd' : 'npm';
/** @type {import("child_process").SpawnOptions} */
/** @type {import("node:child_process").SpawnOptions} */
const spawnOptions = {
stdio: [options.stdin || process.stdin, options.stdout || process.stdout, options.stderr || process.stderr],
// @ts-ignore This option exists starting with NodeJS 8
Expand Down
4 changes: 2 additions & 2 deletions src-editor/updateBlockly.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// this script updates blockly

const cp = require('child_process');
const fs = require('fs');
const cp = require('node:child_process');
const fs = require('node:fs');

function copyFile(fileName, newName) {
if (fileName.endsWith('/')) {
Expand Down
2 changes: 1 addition & 1 deletion src/lib/debugger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
* IN THE SOFTWARE.
*/
import { join, resolve } from 'node:path';
import { type ReplOptions, type REPLServer, start } from 'repl';
import { type ReplOptions, type REPLServer, start } from 'node:repl';
import {
debuglog as debuglogUtil,
inspect as inspectUtil,
Expand Down
2 changes: 1 addition & 1 deletion src/lib/inspect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import type { WriteStream, ReadStream } from 'node:tty';
// @ts-expect-error no types available
import InspectClient from 'node-inspect/lib/internal/inspect_client';
import type { Debugger, Runtime } from 'node:inspector';
import type { REPLServer } from 'repl';
import type { REPLServer } from 'node:repl';
import createRepl from './debugger';
// const runAsStandalone = typeof __dirname !== 'undefined';

Expand Down
2 changes: 1 addition & 1 deletion src/lib/nodeModulesManagement.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { execFile, type ExecFileException } from 'child_process';
import { execFile, type ExecFileException } from 'node:child_process';

/**
* Request a module name by given url using `npm view`
Expand Down
Loading