Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
TooTallNate committed May 25, 2023
1 parent 83ad4b1 commit 3a7b338
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 21 deletions.
11 changes: 7 additions & 4 deletions packages/proxy-agent/test/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -329,10 +329,13 @@ describe('ProxyAgent', () => {
process.env.WSS_PROXY = httpProxyServerUrl.href;
const agent = new ProxyAgent();

const ws = new WebSocket(httpsServerUrl.href.replace('https', 'wss'), {
agent,
rejectUnauthorized: false
});
const ws = new WebSocket(
httpsServerUrl.href.replace('https', 'wss'),
{
agent,
rejectUnauthorized: false,
}
);
const [message] = await once(ws, 'message');
expect(connectionCount).toEqual(1);
expect(requestCount).toEqual(0);
Expand Down
32 changes: 15 additions & 17 deletions scripts/tags.mjs
Original file line number Diff line number Diff line change
@@ -1,24 +1,22 @@
import 'zx/globals';

const sha = process.argv[2] || process.env.GITHUB_SHA;
const sha = process.argv[2] || process.env.GITHUB_SHA || 'HEAD';

await $`git show ${sha}`;
try {
const modifiedPackages =
await $`git show ${sha} --pretty="format:" --name-only -- packages/*/package.json`.nothrow();

const modifiedPackages =
await $`git show ${sha} --pretty="format:" --name-only -- packages/*/package.json`;
const packageJsonPaths = modifiedPackages.stdout.trim().split('\n');

const packageJsonPaths = modifiedPackages.stdout.trim().split('\n');
const packageJsons = await Promise.all(
packageJsonPaths.map((p) => fs.readJson(p))
);

if (packageJsonPaths.length) {
const packageJsons = await Promise.all(
packageJsonPaths.map((p) => fs.readJson(p))
);

for (const packageJson of packageJsons) {
const tag = `${packageJson.name}@${packageJson.version}`;
//await $`git tag ${tag}`;
console.log({ tag })
}
} else {
console.log('No tags need to be created');
for (const packageJson of packageJsons) {
const tag = `${packageJson.name}@${packageJson.version}`;
//await $`git tag ${tag}`;
console.log({ tag });
}
} catch {
console.log('No tags need to be created');
}

1 comment on commit 3a7b338

@vercel
Copy link

@vercel vercel bot commented on 3a7b338 May 25, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

proxy-agents – ./

proxy-agents-tootallnate.vercel.app
proxy-agents-git-main-tootallnate.vercel.app
proxy-agents.vercel.app

Please sign in to comment.