Socket
Socket
Sign inDemoInstall

@edge-runtime/vm

Package Overview
Dependencies
Maintainers
1
Versions
101
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@edge-runtime/vm - npm Package Compare versions

Comparing version 1.0.1-beta.4 to 1.0.1-beta.5

5

dist/temp-file.js

@@ -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 {

8

package.json

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc