Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(deps): update dependency got to v13 #14346

Merged
merged 6 commits into from
Sep 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
15 changes: 6 additions & 9 deletions actions/promote/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,12 @@
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/

'use strict';

const core = require('@actions/core');
const execa = require('execa');
const glob = require('fast-glob');
const fs = require('fs-extra');
const got = require('got');
const path = require('path');
import core from '@actions/core';
import execa from 'execa';
import glob from 'fast-glob';
import fs from 'fs-extra';
import got from 'got';
import path from 'path';

const denylist = new Set(['carbon-components', '@carbon/icons-vue']);

Expand Down
3 changes: 2 additions & 1 deletion actions/promote/package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
{
"name": "promote-packages-to-latest",
"private": true,
"type": "module",
"dependencies": {
"@actions/core": "^1.8.2",
"execa": "^5.1.1",
"fast-glob": "^3.2.11",
"fs-extra": "^11.0.0",
"got": "^11.8.0"
"got": "^13.0.0"
}
}
5 changes: 3 additions & 2 deletions actions/wait-for-it/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"private": true,
"version": "0.0.0",
"license": "Apache-2.0",
"type": "module",
"repository": {
"type": "git",
"url": "https://github.com/carbon-design-system/carbon.git",
Expand All @@ -17,7 +18,7 @@
"react"
],
"dependencies": {
"@actions/core": "^1.2.3",
"got": "^11.8.5"
"@actions/core": "^1.10.0",
"got": "^13.0.0"
}
}
12 changes: 6 additions & 6 deletions actions/wait-for-it/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,8 @@
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/

'use strict';

const core = require('@actions/core');
const got = require('got');
import core from '@actions/core';
import got from 'got';

async function main() {
let url = core.getInput('URL', {
Expand All @@ -23,6 +20,9 @@ async function main() {
url = url.replace('localhost', '172.17.0.1');
}

// As of got v12, legacy Url instances are not supported anymore. You need to use WHATWG URL instead.
url = new URL(url);

core.info(`Waiting for a 200 response from ${url}`);

try {
Expand All @@ -32,7 +32,7 @@ async function main() {
limit: 10,
maxRetryAfter: 1000,
},
timeout: 1000,
timeout: { request: 1000 },
});
core.info(`Received a 200 response from ${url}`);
} catch (error) {
Expand Down
Loading
Loading