New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@planetscale/database

Package Overview
Dependencies
Maintainers
6
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@planetscale/database - npm Package Compare versions

Comparing version 1.4.1 to 1.5.0

7

dist/index.js

@@ -75,6 +75,4 @@ import { format } from './sanitization.js';

const sql = args ? formatter(query, args) : query;
const start = Date.now();
const saved = await postJSON(this.config, url, { query: sql, session: this.session });
const time = Date.now() - start;
const { result, session, error } = saved;
const { result, session, error, timing } = saved;
if (error) {

@@ -94,2 +92,3 @@ throw new DatabaseError(error.message, 400, error);

const types = fields.reduce(typeByName, {});
const timingSeconds = timing ?? 0;
return {

@@ -104,3 +103,3 @@ headers,

statement: sql,
time
time: timingSeconds * 1000
};

@@ -107,0 +106,0 @@ }

@@ -1,1 +0,1 @@

export declare const Version = "1.4.1";
export declare const Version = "1.5.0";

@@ -1,1 +0,1 @@

export const Version = '1.4.1';
export const Version = '1.5.0';
{
"name": "@planetscale/database",
"version": "1.4.1",
"version": "1.5.0",
"description": "A Fetch API-compatible PlanetScale database driver",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

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