supabase 1.1.6 → 1.1.7
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/package.json +1 -1
- package/scripts/preinstall.js +5 -5
package/package.json
CHANGED
package/scripts/preinstall.js
CHANGED
|
@@ -67,17 +67,17 @@ async function parsePackageJson() {
|
|
|
67
67
|
// strip the 'v' if necessary v0.0.1 => 0.0.1
|
|
68
68
|
if (version[0] === "v") version = version.substr(1);
|
|
69
69
|
|
|
70
|
-
// Binary name on Windows has .exe suffix
|
|
71
|
-
if (process.platform === "win32") {
|
|
72
|
-
binName += ".exe";
|
|
73
|
-
}
|
|
74
|
-
|
|
75
70
|
// Interpolate variables in URL, if necessary
|
|
76
71
|
url = url.replace(/{{arch}}/g, ARCH_MAPPING[process.arch]);
|
|
77
72
|
url = url.replace(/{{platform}}/g, PLATFORM_MAPPING[process.platform]);
|
|
78
73
|
url = url.replace(/{{version}}/g, version);
|
|
79
74
|
url = url.replace(/{{bin_name}}/g, binName);
|
|
80
75
|
|
|
76
|
+
// Binary name on Windows has .exe suffix
|
|
77
|
+
if (process.platform === "win32") {
|
|
78
|
+
binName += ".exe";
|
|
79
|
+
}
|
|
80
|
+
|
|
81
81
|
return { binName, binPath, url, version };
|
|
82
82
|
}
|
|
83
83
|
|