svix-cli 1.98.0 → 2.0.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/README.md CHANGED
@@ -39,13 +39,13 @@ svix-cli --help
39
39
  Pre-built binaries are available for Linux, macOS via shell script installers.
40
40
 
41
41
  ```
42
- curl --proto '=https' --tlsv1.2 -LsSf https://github.com/svix/svix-webhooks/releases/download/v1.98.0/svix-cli-installer.sh | sh
42
+ curl --proto '=https' --tlsv1.2 -LsSf https://github.com/svix/svix-webhooks/releases/download/v2.0.0/svix-cli-installer.sh | sh
43
43
  ```
44
44
 
45
45
  For Windows users, installation can be done via powershell:
46
46
 
47
47
  ```
48
- powershell -ExecutionPolicy ByPass -c "irm https://github.com/svix-onelson/svix-webhooks/releases/download/v1.98.0/svix-cli-installer.ps1 | iex"
48
+ powershell -ExecutionPolicy ByPass -c "irm https://github.com/svix-onelson/svix-webhooks/releases/download/v2.0.0/svix-cli-installer.ps1 | iex"
49
49
  ```
50
50
 
51
51
  These scripts will install the binaries to `~/.svix/bin` and also add this directory to your `PATH` by default.
package/binary-install.js CHANGED
@@ -1,10 +1,17 @@
1
- const { createWriteStream, existsSync, mkdirSync, mkdtemp } = require("fs");
1
+ const {
2
+ createWriteStream,
3
+ existsSync,
4
+ mkdirSync,
5
+ mkdtemp,
6
+ rmSync,
7
+ } = require("fs");
2
8
  const { join, sep } = require("path");
3
9
  const { spawnSync } = require("child_process");
4
10
  const { tmpdir } = require("os");
5
11
 
6
- const axios = require("axios");
7
- const rimraf = require("rimraf");
12
+ const https = require("node:https");
13
+ const http = require("node:http");
14
+
8
15
  const tmpDir = tmpdir();
9
16
 
10
17
  const error = (msg) => {
@@ -12,6 +19,135 @@ const error = (msg) => {
12
19
  process.exit(1);
13
20
  };
14
21
 
22
+ function getProxyForUrl(urlString) {
23
+ const url = new URL(urlString);
24
+ const isHttps = url.protocol === "https:";
25
+
26
+ const noProxy = process.env.NO_PROXY || process.env.no_proxy || "";
27
+ if (noProxy === "*") return null;
28
+ if (noProxy) {
29
+ const hostname = url.hostname.toLowerCase();
30
+ const noProxyList = noProxy.split(",").map((s) => s.trim().toLowerCase());
31
+ for (const entry of noProxyList) {
32
+ if (hostname === entry || hostname.endsWith("." + entry)) {
33
+ return null;
34
+ }
35
+ }
36
+ }
37
+
38
+ const proxyEnv = isHttps
39
+ ? process.env.HTTPS_PROXY || process.env.https_proxy
40
+ : process.env.HTTP_PROXY || process.env.http_proxy;
41
+
42
+ if (!proxyEnv) return null;
43
+
44
+ const proxyUrl = new URL(proxyEnv);
45
+
46
+ let auth = null;
47
+ if (proxyUrl.username || proxyUrl.password) {
48
+ auth = `${proxyUrl.username}:${proxyUrl.password}`;
49
+ }
50
+
51
+ return {
52
+ hostname: proxyUrl.hostname,
53
+ port: proxyUrl.port || (proxyUrl.protocol === "https:" ? 443 : 80),
54
+ auth: auth,
55
+ };
56
+ }
57
+
58
+ function connectThroughProxy(proxy, target) {
59
+ return new Promise((resolve, reject) => {
60
+ const headers = {};
61
+ if (proxy.auth) {
62
+ headers["Proxy-Authorization"] =
63
+ "Basic " + Buffer.from(proxy.auth).toString("base64");
64
+ }
65
+
66
+ const connectReq = http.request({
67
+ hostname: proxy.hostname,
68
+ port: proxy.port,
69
+ method: "CONNECT",
70
+ path: `${target.hostname}:${target.port || 443}`,
71
+ headers,
72
+ });
73
+ connectReq.on("connect", (res, socket) => {
74
+ if (res.statusCode === 200) {
75
+ resolve(socket);
76
+ } else {
77
+ reject(new Error(`Proxy CONNECT failed with status ${res.statusCode}`));
78
+ }
79
+ });
80
+ connectReq.on("error", reject);
81
+ connectReq.end();
82
+ });
83
+ }
84
+
85
+ function download(urlString, maxRedirects) {
86
+ if (maxRedirects === undefined) maxRedirects = 5;
87
+ return new Promise((resolve, reject) => {
88
+ if (maxRedirects < 0) {
89
+ return reject(new Error("Too many redirects"));
90
+ }
91
+
92
+ const parsed = new URL(urlString);
93
+ const isHttps = parsed.protocol === "https:";
94
+ const mod = isHttps ? https : http;
95
+ const proxy = getProxyForUrl(urlString);
96
+
97
+ const doRequest = (extraOptions) => {
98
+ const options = Object.assign(
99
+ {
100
+ hostname: parsed.hostname,
101
+ port: parsed.port || (isHttps ? 443 : 80),
102
+ path: parsed.pathname + parsed.search,
103
+ method: "GET",
104
+ headers: { "User-Agent": "cargo-dist-npm-installer" },
105
+ },
106
+ extraOptions || {},
107
+ );
108
+
109
+ if (proxy && !isHttps) {
110
+ // HTTP through HTTP proxy: request the full URL via the proxy
111
+ options.hostname = proxy.hostname;
112
+ options.port = proxy.port;
113
+ options.path = urlString;
114
+ if (proxy.auth) {
115
+ options.headers["Proxy-Authorization"] =
116
+ "Basic " + Buffer.from(proxy.auth).toString("base64");
117
+ }
118
+ }
119
+
120
+ const req = mod.request(options, (res) => {
121
+ if (
122
+ res.statusCode >= 300 &&
123
+ res.statusCode < 400 &&
124
+ res.headers.location
125
+ ) {
126
+ res.resume();
127
+ const nextUrl = new URL(res.headers.location, urlString).toString();
128
+ return download(nextUrl, maxRedirects - 1).then(resolve, reject);
129
+ }
130
+ if (res.statusCode < 200 || res.statusCode >= 300) {
131
+ res.resume();
132
+ return reject(new Error(`HTTP ${res.statusCode} from ${urlString}`));
133
+ }
134
+ resolve(res);
135
+ });
136
+ req.on("error", reject);
137
+ req.end();
138
+ };
139
+
140
+ if (proxy && isHttps) {
141
+ connectThroughProxy(proxy, parsed).then(
142
+ (socket) => doRequest({ socket, agent: false }),
143
+ reject,
144
+ );
145
+ } else {
146
+ doRequest();
147
+ }
148
+ });
149
+ }
150
+
15
151
  class Package {
16
152
  constructor(platform, name, url, filename, zipExt, binaries) {
17
153
  let errors = [];
@@ -72,7 +208,7 @@ class Package {
72
208
  return true;
73
209
  }
74
210
 
75
- install(fetchOptions, suppressLogs = false) {
211
+ install(suppressLogs = false) {
76
212
  if (this.exists()) {
77
213
  if (!suppressLogs) {
78
214
  console.error(
@@ -82,8 +218,10 @@ class Package {
82
218
  return Promise.resolve();
83
219
  }
84
220
 
85
- if (existsSync(this.installDirectory)) {
86
- rimraf.sync(this.installDirectory);
221
+ try {
222
+ rmSync(this.installDirectory, { recursive: true, force: true });
223
+ } catch {
224
+ // ignore - directory may not exist
87
225
  }
88
226
 
89
227
  mkdirSync(this.installDirectory, { recursive: true });
@@ -92,12 +230,13 @@ class Package {
92
230
  console.error(`Downloading release from ${this.url}`);
93
231
  }
94
232
 
95
- return axios({ ...fetchOptions, url: this.url, responseType: "stream" })
233
+ return download(this.url)
96
234
  .then((res) => {
97
235
  return new Promise((resolve, reject) => {
98
236
  mkdtemp(`${tmpDir}${sep}`, (err, directory) => {
237
+ if (err) return reject(err);
99
238
  let tempFile = join(directory, this.filename);
100
- const sink = res.data.pipe(createWriteStream(tempFile));
239
+ const sink = res.pipe(createWriteStream(tempFile));
101
240
  sink.on("error", (err) => reject(err));
102
241
  sink.on("close", () => {
103
242
  if (/\.tar\.*/.test(this.zipExt)) {
@@ -178,10 +317,8 @@ class Package {
178
317
  });
179
318
  }
180
319
 
181
- run(binaryName, fetchOptions) {
182
- const promise = !this.exists()
183
- ? this.install(fetchOptions, true)
184
- : Promise.resolve();
320
+ run(binaryName) {
321
+ const promise = !this.exists() ? this.install(true) : Promise.resolve();
185
322
 
186
323
  promise
187
324
  .then(() => {
@@ -204,7 +341,6 @@ class Package {
204
341
  })
205
342
  .catch((e) => {
206
343
  error(e.message);
207
- process.exit(1);
208
344
  });
209
345
  }
210
346
  }
package/binary.js CHANGED
@@ -1,8 +1,6 @@
1
1
  const { Package } = require("./binary-install");
2
2
  const os = require("os");
3
- const cTable = require("console.table");
4
3
  const libc = require("detect-libc");
5
- const { configureProxy } = require("axios-proxy-builder");
6
4
 
7
5
  const error = (msg) => {
8
6
  console.error(msg);
@@ -11,13 +9,15 @@ const error = (msg) => {
11
9
 
12
10
  const {
13
11
  name,
14
- artifactDownloadUrl,
12
+ artifactDownloadUrls,
15
13
  supportedPlatforms,
16
14
  glibcMinimum,
17
15
  } = require("./package.json");
18
16
 
17
+ // FIXME: implement NPM installer handling of fallback download URLs
18
+ const artifactDownloadUrl = artifactDownloadUrls[0];
19
19
  const builderGlibcMajorVersion = glibcMinimum.major;
20
- const builderGlibcMInorVersion = glibcMinimum.series;
20
+ const builderGlibcMinorVersion = glibcMinimum.series;
21
21
 
22
22
  const getPlatform = () => {
23
23
  const rawOsType = os.type();
@@ -63,7 +63,7 @@ const getPlatform = () => {
63
63
  let libcMinorVersion = splitLibcVersion[1];
64
64
  if (
65
65
  libcMajorVersion != builderGlibcMajorVersion ||
66
- libcMinorVersion < builderGlibcMInorVersion
66
+ libcMinorVersion < builderGlibcMinorVersion
67
67
  ) {
68
68
  // We can't run the glibc binaries, but we can run the static musl ones
69
69
  // if they exist
@@ -106,17 +106,15 @@ const install = (suppressLogs) => {
106
106
  console.warn("in demo mode, not installing binaries");
107
107
  return;
108
108
  }
109
- const package = getPackage();
110
- const proxy = configureProxy(package.url);
109
+ const pkg = getPackage();
111
110
 
112
- return package.install(proxy, suppressLogs);
111
+ return pkg.install(suppressLogs);
113
112
  };
114
113
 
115
114
  const run = (binaryName) => {
116
- const package = getPackage();
117
- const proxy = configureProxy(package.url);
115
+ const pkg = getPackage();
118
116
 
119
- package.run(binaryName, proxy);
117
+ pkg.run(binaryName);
120
118
  };
121
119
 
122
120
  module.exports = {
@@ -7,139 +7,19 @@
7
7
  "svix": "run-svix.js"
8
8
  },
9
9
  "dependencies": {
10
- "axios": "^1.13.2",
11
- "axios-proxy-builder": "^0.1.2",
12
- "console.table": "^0.10.0",
13
- "detect-libc": "^2.1.2",
14
- "rimraf": "^6.1.2"
10
+ "detect-libc": "^2.1.2"
15
11
  },
16
12
  "devDependencies": {
17
- "prettier": "^3.7.4"
13
+ "prettier": "^3.8.3"
18
14
  },
19
15
  "engines": {
20
- "node": ">=14",
16
+ "node": ">=14.14",
21
17
  "npm": ">=6"
22
18
  },
23
19
  "hasInstallScript": true,
24
20
  "license": "MIT",
25
21
  "name": "svix-cli",
26
- "version": "1.98.0"
27
- },
28
- "node_modules/@isaacs/balanced-match": {
29
- "engines": {
30
- "node": "20 || >=22"
31
- },
32
- "integrity": "sha512-yzMTt9lEb8Gv7zRioUilSglI0c0smZ9k5D65677DLWLtWJaXIS3CqcGyUFByYKlnUj6TkjLVs54fBl6+TiGQDQ==",
33
- "license": "MIT",
34
- "resolved": "https://registry.npmjs.org/@isaacs/balanced-match/-/balanced-match-4.0.1.tgz",
35
- "version": "4.0.1"
36
- },
37
- "node_modules/@isaacs/brace-expansion": {
38
- "dependencies": {
39
- "@isaacs/balanced-match": "^4.0.1"
40
- },
41
- "engines": {
42
- "node": "20 || >=22"
43
- },
44
- "integrity": "sha512-ZT55BDLV0yv0RBm2czMiZ+SqCGO7AvmOM3G/w2xhVPH+te0aKgFjmBvGlL1dH+ql2tgGO3MVrbb3jCKyvpgnxA==",
45
- "license": "MIT",
46
- "resolved": "https://registry.npmjs.org/@isaacs/brace-expansion/-/brace-expansion-5.0.0.tgz",
47
- "version": "5.0.0"
48
- },
49
- "node_modules/asynckit": {
50
- "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==",
51
- "license": "MIT",
52
- "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz",
53
- "version": "0.4.0"
54
- },
55
- "node_modules/axios": {
56
- "dependencies": {
57
- "follow-redirects": "^1.15.6",
58
- "form-data": "^4.0.4",
59
- "proxy-from-env": "^1.1.0"
60
- },
61
- "integrity": "sha512-VPk9ebNqPcy5lRGuSlKx752IlDatOjT9paPlm8A7yOuW2Fbvp4X3JznJtT4f0GzGLLiWE9W8onz51SqLYwzGaA==",
62
- "license": "MIT",
63
- "resolved": "https://registry.npmjs.org/axios/-/axios-1.13.2.tgz",
64
- "version": "1.13.2"
65
- },
66
- "node_modules/axios-proxy-builder": {
67
- "dependencies": {
68
- "tunnel": "^0.0.6"
69
- },
70
- "integrity": "sha512-6uBVsBZzkB3tCC8iyx59mCjQckhB8+GQrI9Cop8eC7ybIsvs/KtnNgEBfRMSEa7GqK2VBGUzgjNYMdPIfotyPA==",
71
- "license": "MIT",
72
- "resolved": "https://registry.npmjs.org/axios-proxy-builder/-/axios-proxy-builder-0.1.2.tgz",
73
- "version": "0.1.2"
74
- },
75
- "node_modules/call-bind-apply-helpers": {
76
- "dependencies": {
77
- "es-errors": "^1.3.0",
78
- "function-bind": "^1.1.2"
79
- },
80
- "engines": {
81
- "node": ">= 0.4"
82
- },
83
- "integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==",
84
- "license": "MIT",
85
- "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz",
86
- "version": "1.0.2"
87
- },
88
- "node_modules/clone": {
89
- "engines": {
90
- "node": ">=0.8"
91
- },
92
- "integrity": "sha512-JQHZ2QMW6l3aH/j6xCqQThY/9OH4D/9ls34cgkUBiEeocRTU04tHfKPBsUK1PqZCUQM7GiA0IIXJSuXHI64Kbg==",
93
- "license": "MIT",
94
- "optional": true,
95
- "resolved": "https://registry.npmjs.org/clone/-/clone-1.0.4.tgz",
96
- "version": "1.0.4"
97
- },
98
- "node_modules/combined-stream": {
99
- "dependencies": {
100
- "delayed-stream": "~1.0.0"
101
- },
102
- "engines": {
103
- "node": ">= 0.8"
104
- },
105
- "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==",
106
- "license": "MIT",
107
- "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz",
108
- "version": "1.0.8"
109
- },
110
- "node_modules/console.table": {
111
- "dependencies": {
112
- "easy-table": "1.1.0"
113
- },
114
- "engines": {
115
- "node": "> 0.10"
116
- },
117
- "integrity": "sha512-dPyZofqggxuvSf7WXvNjuRfnsOk1YazkVP8FdxH4tcH2c37wc79/Yl6Bhr7Lsu00KMgy2ql/qCMuNu8xctZM8g==",
118
- "license": "MIT",
119
- "resolved": "https://registry.npmjs.org/console.table/-/console.table-0.10.0.tgz",
120
- "version": "0.10.0"
121
- },
122
- "node_modules/defaults": {
123
- "dependencies": {
124
- "clone": "^1.0.2"
125
- },
126
- "funding": {
127
- "url": "https://github.com/sponsors/sindresorhus"
128
- },
129
- "integrity": "sha512-eFuaLoy/Rxalv2kr+lqMlUnrDWV+3j4pljOIJgLIhI058IQfWJ7vXhyEIHu+HtC738klGALYxOKDO0bQP3tg8A==",
130
- "license": "MIT",
131
- "optional": true,
132
- "resolved": "https://registry.npmjs.org/defaults/-/defaults-1.0.4.tgz",
133
- "version": "1.0.4"
134
- },
135
- "node_modules/delayed-stream": {
136
- "engines": {
137
- "node": ">=0.4.0"
138
- },
139
- "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==",
140
- "license": "MIT",
141
- "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz",
142
- "version": "1.0.0"
22
+ "version": "2.0.0"
143
23
  },
144
24
  "node_modules/detect-libc": {
145
25
  "engines": {
@@ -150,309 +30,6 @@
150
30
  "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.1.2.tgz",
151
31
  "version": "2.1.2"
152
32
  },
153
- "node_modules/dunder-proto": {
154
- "dependencies": {
155
- "call-bind-apply-helpers": "^1.0.1",
156
- "es-errors": "^1.3.0",
157
- "gopd": "^1.2.0"
158
- },
159
- "engines": {
160
- "node": ">= 0.4"
161
- },
162
- "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==",
163
- "license": "MIT",
164
- "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz",
165
- "version": "1.0.1"
166
- },
167
- "node_modules/easy-table": {
168
- "integrity": "sha512-oq33hWOSSnl2Hoh00tZWaIPi1ievrD9aFG82/IgjlycAnW9hHx5PkJiXpxPsgEE+H7BsbVQXFVFST8TEXS6/pA==",
169
- "license": "MIT",
170
- "optionalDependencies": {
171
- "wcwidth": ">=1.0.1"
172
- },
173
- "resolved": "https://registry.npmjs.org/easy-table/-/easy-table-1.1.0.tgz",
174
- "version": "1.1.0"
175
- },
176
- "node_modules/es-define-property": {
177
- "engines": {
178
- "node": ">= 0.4"
179
- },
180
- "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==",
181
- "license": "MIT",
182
- "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz",
183
- "version": "1.0.1"
184
- },
185
- "node_modules/es-errors": {
186
- "engines": {
187
- "node": ">= 0.4"
188
- },
189
- "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==",
190
- "license": "MIT",
191
- "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz",
192
- "version": "1.3.0"
193
- },
194
- "node_modules/es-object-atoms": {
195
- "dependencies": {
196
- "es-errors": "^1.3.0"
197
- },
198
- "engines": {
199
- "node": ">= 0.4"
200
- },
201
- "integrity": "sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==",
202
- "license": "MIT",
203
- "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.1.tgz",
204
- "version": "1.1.1"
205
- },
206
- "node_modules/es-set-tostringtag": {
207
- "dependencies": {
208
- "es-errors": "^1.3.0",
209
- "get-intrinsic": "^1.2.6",
210
- "has-tostringtag": "^1.0.2",
211
- "hasown": "^2.0.2"
212
- },
213
- "engines": {
214
- "node": ">= 0.4"
215
- },
216
- "integrity": "sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA==",
217
- "license": "MIT",
218
- "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.1.0.tgz",
219
- "version": "2.1.0"
220
- },
221
- "node_modules/follow-redirects": {
222
- "engines": {
223
- "node": ">=4.0"
224
- },
225
- "funding": [
226
- {
227
- "type": "individual",
228
- "url": "https://github.com/sponsors/RubenVerborgh"
229
- }
230
- ],
231
- "integrity": "sha512-wWN62YITEaOpSK584EZXJafH1AGpO8RVgElfkuXbTOrPX4fIfOyEpW/CsiNd8JdYrAoOvafRTOEnvsO++qCqFA==",
232
- "license": "MIT",
233
- "peerDependenciesMeta": {
234
- "debug": {
235
- "optional": true
236
- }
237
- },
238
- "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.6.tgz",
239
- "version": "1.15.6"
240
- },
241
- "node_modules/form-data": {
242
- "dependencies": {
243
- "asynckit": "^0.4.0",
244
- "combined-stream": "^1.0.8",
245
- "es-set-tostringtag": "^2.1.0",
246
- "hasown": "^2.0.2",
247
- "mime-types": "^2.1.12"
248
- },
249
- "engines": {
250
- "node": ">= 6"
251
- },
252
- "integrity": "sha512-KrGhL9Q4zjj0kiUt5OO4Mr/A/jlI2jDYs5eHBpYHPcBEVSiipAvn2Ko2HnPe20rmcuuvMHNdZFp+4IlGTMF0Ow==",
253
- "license": "MIT",
254
- "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.4.tgz",
255
- "version": "4.0.4"
256
- },
257
- "node_modules/function-bind": {
258
- "funding": {
259
- "url": "https://github.com/sponsors/ljharb"
260
- },
261
- "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==",
262
- "license": "MIT",
263
- "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz",
264
- "version": "1.1.2"
265
- },
266
- "node_modules/get-intrinsic": {
267
- "dependencies": {
268
- "call-bind-apply-helpers": "^1.0.2",
269
- "es-define-property": "^1.0.1",
270
- "es-errors": "^1.3.0",
271
- "es-object-atoms": "^1.1.1",
272
- "function-bind": "^1.1.2",
273
- "get-proto": "^1.0.1",
274
- "gopd": "^1.2.0",
275
- "has-symbols": "^1.1.0",
276
- "hasown": "^2.0.2",
277
- "math-intrinsics": "^1.1.0"
278
- },
279
- "engines": {
280
- "node": ">= 0.4"
281
- },
282
- "funding": {
283
- "url": "https://github.com/sponsors/ljharb"
284
- },
285
- "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==",
286
- "license": "MIT",
287
- "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz",
288
- "version": "1.3.0"
289
- },
290
- "node_modules/get-proto": {
291
- "dependencies": {
292
- "dunder-proto": "^1.0.1",
293
- "es-object-atoms": "^1.0.0"
294
- },
295
- "engines": {
296
- "node": ">= 0.4"
297
- },
298
- "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==",
299
- "license": "MIT",
300
- "resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz",
301
- "version": "1.0.1"
302
- },
303
- "node_modules/glob": {
304
- "dependencies": {
305
- "minimatch": "^10.1.1",
306
- "minipass": "^7.1.2",
307
- "path-scurry": "^2.0.0"
308
- },
309
- "engines": {
310
- "node": "20 || >=22"
311
- },
312
- "funding": {
313
- "url": "https://github.com/sponsors/isaacs"
314
- },
315
- "integrity": "sha512-tvZgpqk6fz4BaNZ66ZsRaZnbHvP/jG3uKJvAZOwEVUL4RTA5nJeeLYfyN9/VA8NX/V3IBG+hkeuGpKjvELkVhA==",
316
- "license": "BlueOak-1.0.0",
317
- "resolved": "https://registry.npmjs.org/glob/-/glob-13.0.0.tgz",
318
- "version": "13.0.0"
319
- },
320
- "node_modules/gopd": {
321
- "engines": {
322
- "node": ">= 0.4"
323
- },
324
- "funding": {
325
- "url": "https://github.com/sponsors/ljharb"
326
- },
327
- "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==",
328
- "license": "MIT",
329
- "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz",
330
- "version": "1.2.0"
331
- },
332
- "node_modules/has-symbols": {
333
- "engines": {
334
- "node": ">= 0.4"
335
- },
336
- "funding": {
337
- "url": "https://github.com/sponsors/ljharb"
338
- },
339
- "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==",
340
- "license": "MIT",
341
- "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz",
342
- "version": "1.1.0"
343
- },
344
- "node_modules/has-tostringtag": {
345
- "dependencies": {
346
- "has-symbols": "^1.0.3"
347
- },
348
- "engines": {
349
- "node": ">= 0.4"
350
- },
351
- "funding": {
352
- "url": "https://github.com/sponsors/ljharb"
353
- },
354
- "integrity": "sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==",
355
- "license": "MIT",
356
- "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.2.tgz",
357
- "version": "1.0.2"
358
- },
359
- "node_modules/hasown": {
360
- "dependencies": {
361
- "function-bind": "^1.1.2"
362
- },
363
- "engines": {
364
- "node": ">= 0.4"
365
- },
366
- "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==",
367
- "license": "MIT",
368
- "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz",
369
- "version": "2.0.2"
370
- },
371
- "node_modules/lru-cache": {
372
- "engines": {
373
- "node": "20 || >=22"
374
- },
375
- "integrity": "sha512-B5Y16Jr9LB9dHVkh6ZevG+vAbOsNOYCX+sXvFWFu7B3Iz5mijW3zdbMyhsh8ANd2mSWBYdJgnqi+mL7/LrOPYg==",
376
- "license": "BlueOak-1.0.0",
377
- "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-11.2.4.tgz",
378
- "version": "11.2.4"
379
- },
380
- "node_modules/math-intrinsics": {
381
- "engines": {
382
- "node": ">= 0.4"
383
- },
384
- "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==",
385
- "license": "MIT",
386
- "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz",
387
- "version": "1.1.0"
388
- },
389
- "node_modules/mime-db": {
390
- "engines": {
391
- "node": ">= 0.6"
392
- },
393
- "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==",
394
- "license": "MIT",
395
- "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz",
396
- "version": "1.52.0"
397
- },
398
- "node_modules/mime-types": {
399
- "dependencies": {
400
- "mime-db": "1.52.0"
401
- },
402
- "engines": {
403
- "node": ">= 0.6"
404
- },
405
- "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==",
406
- "license": "MIT",
407
- "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz",
408
- "version": "2.1.35"
409
- },
410
- "node_modules/minimatch": {
411
- "dependencies": {
412
- "@isaacs/brace-expansion": "^5.0.0"
413
- },
414
- "engines": {
415
- "node": "20 || >=22"
416
- },
417
- "funding": {
418
- "url": "https://github.com/sponsors/isaacs"
419
- },
420
- "integrity": "sha512-enIvLvRAFZYXJzkCYG5RKmPfrFArdLv+R+lbQ53BmIMLIry74bjKzX6iHAm8WYamJkhSSEabrWN5D97XnKObjQ==",
421
- "license": "BlueOak-1.0.0",
422
- "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.1.1.tgz",
423
- "version": "10.1.1"
424
- },
425
- "node_modules/minipass": {
426
- "engines": {
427
- "node": ">=16 || 14 >=14.17"
428
- },
429
- "integrity": "sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==",
430
- "license": "ISC",
431
- "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.2.tgz",
432
- "version": "7.1.2"
433
- },
434
- "node_modules/package-json-from-dist": {
435
- "integrity": "sha512-UEZIS3/by4OC8vL3P2dTXRETpebLI2NiI5vIrjaD/5UtrkFX/tNbwjTSRAGC/+7CAo2pIcBaRgWmcBBHcsaCIw==",
436
- "license": "BlueOak-1.0.0",
437
- "resolved": "https://registry.npmjs.org/package-json-from-dist/-/package-json-from-dist-1.0.1.tgz",
438
- "version": "1.0.1"
439
- },
440
- "node_modules/path-scurry": {
441
- "dependencies": {
442
- "lru-cache": "^11.0.0",
443
- "minipass": "^7.1.2"
444
- },
445
- "engines": {
446
- "node": "20 || >=22"
447
- },
448
- "funding": {
449
- "url": "https://github.com/sponsors/isaacs"
450
- },
451
- "integrity": "sha512-oWyT4gICAu+kaA7QWk/jvCHWarMKNs6pXOGWKDTr7cw4IGcUbW+PeTfbaQiLGheFRpjo6O9J0PmyMfQPjH71oA==",
452
- "license": "BlueOak-1.0.0",
453
- "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-2.0.1.tgz",
454
- "version": "2.0.1"
455
- },
456
33
  "node_modules/prettier": {
457
34
  "bin": {
458
35
  "prettier": "bin/prettier.cjs"
@@ -464,56 +41,12 @@
464
41
  "funding": {
465
42
  "url": "https://github.com/prettier/prettier?sponsor=1"
466
43
  },
467
- "integrity": "sha512-v6UNi1+3hSlVvv8fSaoUbggEM5VErKmmpGA7Pl3HF8V6uKY7rvClBOJlH6yNwQtfTueNkGVpOv/mtWL9L4bgRA==",
468
- "license": "MIT",
469
- "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.7.4.tgz",
470
- "version": "3.7.4"
471
- },
472
- "node_modules/proxy-from-env": {
473
- "integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==",
474
- "license": "MIT",
475
- "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz",
476
- "version": "1.1.0"
477
- },
478
- "node_modules/rimraf": {
479
- "bin": {
480
- "rimraf": "dist/esm/bin.mjs"
481
- },
482
- "dependencies": {
483
- "glob": "^13.0.0",
484
- "package-json-from-dist": "^1.0.1"
485
- },
486
- "engines": {
487
- "node": "20 || >=22"
488
- },
489
- "funding": {
490
- "url": "https://github.com/sponsors/isaacs"
491
- },
492
- "integrity": "sha512-cFCkPslJv7BAXJsYlK1dZsbP8/ZNLkCAQ0bi1hf5EKX2QHegmDFEFA6QhuYJlk7UDdc+02JjO80YSOrWPpw06g==",
493
- "license": "BlueOak-1.0.0",
494
- "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-6.1.2.tgz",
495
- "version": "6.1.2"
496
- },
497
- "node_modules/tunnel": {
498
- "engines": {
499
- "node": ">=0.6.11 <=0.7.0 || >=0.7.3"
500
- },
501
- "integrity": "sha512-1h/Lnq9yajKY2PEbBadPXj3VxsDDu844OnaAo52UVmIzIvwwtBPIuNvkjuzBlTWpfJyUbG3ez0KSBibQkj4ojg==",
502
- "license": "MIT",
503
- "resolved": "https://registry.npmjs.org/tunnel/-/tunnel-0.0.6.tgz",
504
- "version": "0.0.6"
505
- },
506
- "node_modules/wcwidth": {
507
- "dependencies": {
508
- "defaults": "^1.0.3"
509
- },
510
- "integrity": "sha512-XHPEwS0q6TaxcvG85+8EYkbiCux2XtWG2mkc47Ng2A77BQu9+DqIOJldST4HgPkuea7dvKSj5VgX3P1d4rW8Tg==",
44
+ "integrity": "sha512-7igPTM53cGHMW8xWuVTydi2KO233VFiTNyF5hLJqpilHfmn8C8gPf+PS7dUT64YcXFbiMGZxS9pCSxL/Dxm/Jw==",
511
45
  "license": "MIT",
512
- "optional": true,
513
- "resolved": "https://registry.npmjs.org/wcwidth/-/wcwidth-1.0.1.tgz",
514
- "version": "1.0.1"
46
+ "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.8.3.tgz",
47
+ "version": "3.8.3"
515
48
  }
516
49
  },
517
50
  "requires": true,
518
- "version": "1.98.0"
51
+ "version": "2.0.0"
519
52
  }
package/package.json CHANGED
@@ -1,22 +1,20 @@
1
1
  {
2
- "artifactDownloadUrl": "https://github.com/svix/svix-webhooks/releases/download/v1.98.0",
2
+ "artifactDownloadUrls": [
3
+ "https://github.com/svix/svix-webhooks/releases/download/v2.0.0"
4
+ ],
3
5
  "author": "Svix Inc. <oss@svix.com>",
4
6
  "bin": {
5
7
  "svix": "run-svix.js"
6
8
  },
7
9
  "dependencies": {
8
- "axios": "^1.13.2",
9
- "axios-proxy-builder": "^0.1.2",
10
- "console.table": "^0.10.0",
11
- "detect-libc": "^2.1.2",
12
- "rimraf": "^6.1.2"
10
+ "detect-libc": "^2.1.2"
13
11
  },
14
12
  "description": "A CLI to interact with the Svix API.",
15
13
  "devDependencies": {
16
- "prettier": "^3.7.4"
14
+ "prettier": "^3.8.3"
17
15
  },
18
16
  "engines": {
19
- "node": ">=14",
17
+ "node": ">=14.14",
20
18
  "npm": ">=6"
21
19
  },
22
20
  "glibcMinimum": {
@@ -107,7 +105,7 @@
107
105
  "zipExt": ".tar.xz"
108
106
  }
109
107
  },
110
- "version": "1.98.0",
108
+ "version": "2.0.0",
111
109
  "volta": {
112
110
  "node": "18.14.1",
113
111
  "npm": "9.5.0"