Comparing version 4.0.0-beta.8 to 4.0.0-beta.9
@@ -7,3 +7,3 @@ "use strict"; | ||
const crossPlatform = require("./modules/cross-platform"); | ||
const path = require("path"); | ||
const path = require("node:path"); | ||
const utils = require("./utils"); | ||
@@ -10,0 +10,0 @@ const load_interfaces_1 = require("./load.interfaces"); |
@@ -5,3 +5,3 @@ "use strict"; | ||
const commentParser = require("comment-parser"); | ||
const fs = require("fs"); | ||
const fs = require("node:fs"); | ||
const getTsImportCommentConfig = async (tsRelativePath) => { | ||
@@ -8,0 +8,0 @@ const tsContent = await fs.promises.readFile(tsRelativePath, `utf-8`); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.transpileSync = exports.transpile = void 0; | ||
const fs = require("fs"); | ||
const path = require("path"); | ||
const fs = require("node:fs"); | ||
const path = require("node:path"); | ||
const tsc = require("typescript"); | ||
@@ -7,0 +7,0 @@ const transpile = async (options) => { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.getConfig = void 0; | ||
const path = require("path"); | ||
const path = require("node:path"); | ||
const tsc = require("typescript"); | ||
@@ -6,0 +6,0 @@ const options_defaults_1 = require("options-defaults"); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.getConfig = void 0; | ||
const path = require("path"); | ||
const path = require("node:path"); | ||
const options_defaults_1 = require("options-defaults"); | ||
@@ -6,0 +6,0 @@ const getConfig = (options) => { |
/// <reference types="node" /> | ||
import * as fs from 'fs'; | ||
import * as fs from 'node:fs'; | ||
export declare const checkIfFileExists: (filePath: string) => Promise<fs.Stats>; | ||
export declare const checkIfFileExistsSync: (filePath: string) => fs.Stats; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.checkIfFileExistsSync = exports.checkIfFileExists = void 0; | ||
const fs = require("fs"); | ||
const fs = require("node:fs"); | ||
const checkIfFileExists = async (filePath) => { | ||
@@ -6,0 +6,0 @@ return fs.promises.stat(filePath); |
@@ -1,2 +0,2 @@ | ||
import * as fs from 'fs'; | ||
import * as fs from 'node:fs'; | ||
export declare const isFileNewer: (file1: fs.Stats, file2: fs.Stats) => boolean; |
{ | ||
"name": "ts-import", | ||
"version": "4.0.0-beta.8", | ||
"version": "4.0.0-beta.9", | ||
"description": "Import (compile and cache on the fly) TypeScript files dynamically with ease.", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
69643
5