create-db 1.0.10-pr57-DC-4763-17610973674.0 → 1.0.10-pr57-DC-4763-17802145860.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +2 -2
- package/package.json +12 -2
package/index.js
CHANGED
|
@@ -73,7 +73,7 @@ const REGION_COORDINATES = {
|
|
|
73
73
|
"us-west-1": { lat: 37.7749, lng: -122.4194 }, // N. California
|
|
74
74
|
};
|
|
75
75
|
|
|
76
|
-
function getRegionClosestToLocation(userLocation) {
|
|
76
|
+
export function getRegionClosestToLocation(userLocation) {
|
|
77
77
|
if (!userLocation) return null;
|
|
78
78
|
|
|
79
79
|
const userLat = parseFloat(userLocation.latitude);
|
|
@@ -139,7 +139,7 @@ async function isOffline() {
|
|
|
139
139
|
}
|
|
140
140
|
}
|
|
141
141
|
|
|
142
|
-
function getCommandName() {
|
|
142
|
+
export function getCommandName() {
|
|
143
143
|
const executable = process.argv[1] || "create-db";
|
|
144
144
|
if (executable.includes("create-pg")) return "create-pg";
|
|
145
145
|
if (executable.includes("create-postgres")) return "create-postgres";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-db",
|
|
3
|
-
"version": "1.0.10-pr57-DC-4763-
|
|
3
|
+
"version": "1.0.10-pr57-DC-4763-17802145860.0",
|
|
4
4
|
"description": "Instantly create a temporary Prisma Postgres database with one command, then claim and persist it in your Prisma Data Platform project when ready.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"author": "",
|
|
@@ -40,5 +40,15 @@
|
|
|
40
40
|
"index.js",
|
|
41
41
|
"README.md",
|
|
42
42
|
"analytics.js"
|
|
43
|
-
]
|
|
43
|
+
],
|
|
44
|
+
"devDependencies": {
|
|
45
|
+
"execa": "^9.6.0",
|
|
46
|
+
"vitest": "^3.2.4"
|
|
47
|
+
},
|
|
48
|
+
"scripts": {
|
|
49
|
+
"test": "vitest run --reporter=verbose",
|
|
50
|
+
"test:watch": "vitest watch",
|
|
51
|
+
"test:coverage": "vitest run --coverage",
|
|
52
|
+
"test:clean": "vitest run"
|
|
53
|
+
}
|
|
44
54
|
}
|