supabase 1.99.9 → 1.99.11
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 +2 -2
- package/scripts/postinstall.js +6 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "supabase",
|
|
3
|
-
"version": "1.99.
|
|
3
|
+
"version": "1.99.11",
|
|
4
4
|
"description": "Supabase CLI",
|
|
5
5
|
"repository": "supabase/cli",
|
|
6
6
|
"homepage": "https://supabase.com/docs/reference/cli",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"bin-links": "^4.0.1",
|
|
25
25
|
"node-fetch": "^3.2.10",
|
|
26
|
-
"proxy-agent": "^
|
|
26
|
+
"https-proxy-agent": "^7.0.2",
|
|
27
27
|
"tar": "6.2.0"
|
|
28
28
|
},
|
|
29
29
|
"release": {
|
package/scripts/postinstall.js
CHANGED
|
@@ -8,7 +8,7 @@ import binLinks from "bin-links";
|
|
|
8
8
|
import { createHash } from "crypto";
|
|
9
9
|
import fs from "fs";
|
|
10
10
|
import fetch from "node-fetch";
|
|
11
|
-
import {
|
|
11
|
+
import { HttpsProxyAgent } from "https-proxy-agent";
|
|
12
12
|
import path from "path";
|
|
13
13
|
import tar from "tar";
|
|
14
14
|
import zlib from "zlib";
|
|
@@ -124,7 +124,11 @@ async function main() {
|
|
|
124
124
|
const untar = tar.x({ cwd: binDir }, [binName]);
|
|
125
125
|
|
|
126
126
|
console.info("Downloading", url);
|
|
127
|
-
const
|
|
127
|
+
const proxyUrl =
|
|
128
|
+
process.env.npm_config_https_proxy ||
|
|
129
|
+
process.env.npm_config_http_proxy ||
|
|
130
|
+
process.env.npm_config_proxy;
|
|
131
|
+
const agent = proxyUrl ? new HttpsProxyAgent(proxyUrl) : undefined;
|
|
128
132
|
const resp = await fetch(url, { agent });
|
|
129
133
|
|
|
130
134
|
const hash = createHash("sha256");
|