@planetscale/database
Advanced tools
Comparing version 0.6.0 to 0.6.1
@@ -5,3 +5,3 @@ import { format } from './sanitization.js'; | ||
import { decode } from './text.js'; | ||
const PACKAGE_VERSION = '0.5.0'; | ||
import { Version } from './version.js'; | ||
export class DatabaseError extends Error { | ||
@@ -86,3 +86,3 @@ constructor(message, status, body) { | ||
'Content-Type': 'application/json', | ||
'User-Agent': `database-js/${PACKAGE_VERSION}`, | ||
'User-Agent': `database-js/${Version}`, | ||
Authorization: `Basic ${auth}` | ||
@@ -89,0 +89,0 @@ } |
{ | ||
"name": "@planetscale/database", | ||
"version": "0.6.0", | ||
"version": "0.6.1", | ||
"description": "A JavaScript client for PlanetScale databases.", | ||
@@ -30,2 +30,3 @@ "main": "dist/index.js", | ||
"test": "jest", | ||
"version": "echo \"export const Version = '$npm_package_version'\" > src/version.ts && git add src/version.ts && npm run build", | ||
"prepublishOnly": "npm run build", | ||
@@ -32,0 +33,0 @@ "postpublish": "npm publish --ignore-scripts --@planetscale:registry='https://npm.pkg.github.com'" |
26944
11
324