You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

@netlify/blobs

Package Overview
Dependencies
Maintainers
16
Versions
72
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@netlify/blobs - npm Package Compare versions

Comparing version

to
10.0.4

5

dist/server.js

@@ -14,3 +14,2 @@ import {

import { createReadStream, promises as fs } from "fs";
import { tmpdir } from "os";
import { dirname, join, relative, resolve, sep } from "path";

@@ -203,6 +202,6 @@ import { HTTPServer } from "@netlify/dev-utils";

const metadata = decodeMetadata(metadataHeader);
const tempPath = join(tmpdir(), Math.random().toString());
const tempPath = join(dirname(dataPath), `.${Math.random().toString(36).slice(2)}`);
const body = await req.arrayBuffer();
await fs.mkdir(dirname(dataPath), { recursive: true });
await fs.writeFile(tempPath, Buffer.from(body));
await fs.mkdir(dirname(dataPath), { recursive: true });
await fs.rename(tempPath, dataPath);

@@ -209,0 +208,0 @@ if (metadata) {

2

package.json
{
"name": "@netlify/blobs",
"version": "10.0.3",
"version": "10.0.4",
"description": "TypeScript client for Netlify Blobs",

@@ -5,0 +5,0 @@ "type": "module",

Sorry, the diff of this file is not supported yet