@edge-runtime/vm
Advanced tools
Comparing version 1.0.1-beta.4 to 1.0.1-beta.5
@@ -7,6 +7,7 @@ "use strict"; | ||
exports.tempFile = void 0; | ||
const uuid_1 = require("uuid"); | ||
const fs_1 = __importDefault(require("fs")); | ||
const os_1 = __importDefault(require("os")); | ||
const path_1 = __importDefault(require("path")); | ||
const primitives_1 = __importDefault(require("@edge-runtime/primitives")); | ||
const { crypto } = primitives_1.default; | ||
/** | ||
@@ -18,3 +19,3 @@ * Creates a temporary file with the provided content and returns the | ||
function tempFile(code) { | ||
const filepath = path_1.default.join(os_1.default.tmpdir(), (0, uuid_1.v4)()); | ||
const filepath = path_1.default.join(os_1.default.tmpdir(), crypto.randomUUID()); | ||
fs_1.default.writeFileSync(filepath, code); | ||
@@ -21,0 +22,0 @@ return { |
@@ -5,3 +5,3 @@ { | ||
"homepage": "https://edge-runtime.vercel.app/packages/vm", | ||
"version": "1.0.1-beta.4", | ||
"version": "1.0.1-beta.5", | ||
"main": "dist/index.js", | ||
@@ -26,5 +26,3 @@ "repository": { | ||
"dependencies": { | ||
"@edge-runtime/primitives": "^1.0.1-beta.4", | ||
"@types/uuid": "8.3.4", | ||
"uuid": "8.3.2" | ||
"@edge-runtime/primitives": "^1.0.1-beta.5" | ||
}, | ||
@@ -54,3 +52,3 @@ "files": [ | ||
"types": "dist/index.d.ts", | ||
"gitHead": "7d6c359c5454c3b3846a03dfdc91de877e2211a1" | ||
"gitHead": "4bda69ccf3f585f873a4b8d3e2790d2668fb771e" | ||
} |
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
40825
1
295
- Removed@types/uuid@8.3.4
- Removeduuid@8.3.2
- Removed@types/uuid@8.3.4(transitive)
- Removeduuid@8.3.2(transitive)