Skip to content

Commit b6cb019

Browse files
chore(deps): update dependencies (#178)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: jkroepke-automation[bot] <210774419+jkroepke-automation[bot]@users.noreply.github.com>
1 parent cfd683e commit b6cb019

File tree

5 files changed

+44
-60
lines changed

5 files changed

+44
-60
lines changed

dist/index.js

Lines changed: 38 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -8814,10 +8814,10 @@ function requireFormdataParser () {
88148814
const { webidl } = requireWebidl();
88158815
const assert = require$$0$1;
88168816
const { isomorphicDecode } = requireInfra();
8817-
const { utf8DecodeBytes } = requireEncoding();
88188817

88198818
const dd = Buffer.from('--');
88208819
const decoder = new TextDecoder();
8820+
const decoderIgnoreBOM = new TextDecoder('utf-8', { ignoreBOM: true });
88218821

88228822
/**
88238823
* @param {string} chars
@@ -8996,7 +8996,7 @@ function requireFormdataParser () {
89968996
// 5.11. Otherwise:
89978997

89988998
// 5.11.1. Let value be the UTF-8 decoding without BOM of body.
8999-
value = utf8DecodeBytes(Buffer.from(body));
8999+
value = decoderIgnoreBOM.decode(Buffer.from(body));
90009000
}
90019001

90029002
// 5.12. Assert: name is a scalar value string and value is either a scalar value string or a File object.
@@ -12262,16 +12262,16 @@ function requireClientH2 () {
1226212262
if (request.onHeaders(Number(statusCode), parseH2Headers(realHeaders), stream.resume.bind(stream), '') === false) {
1226312263
stream.pause();
1226412264
}
12265-
});
1226612265

12267-
stream.on('data', (chunk) => {
12268-
if (request.aborted || request.completed) {
12269-
return
12270-
}
12266+
stream.on('data', (chunk) => {
12267+
if (request.aborted || request.completed) {
12268+
return
12269+
}
1227112270

12272-
if (request.onData(chunk) === false) {
12273-
stream.pause();
12274-
}
12271+
if (request.onData(chunk) === false) {
12272+
stream.pause();
12273+
}
12274+
});
1227512275
});
1227612276

1227712277
stream.once('end', () => {
@@ -13730,7 +13730,7 @@ function requireBalancedPool () {
1373013730
} = requirePoolBase();
1373113731
const Pool = requirePool();
1373213732
const { kUrl } = requireSymbols();
13733-
const { parseOrigin } = requireUtil$5();
13733+
const util = requireUtil$5();
1373413734
const kFactory = Symbol('factory');
1373513735

1373613736
const kOptions = Symbol('options');
@@ -13772,7 +13772,10 @@ function requireBalancedPool () {
1377213772

1377313773
super();
1377413774

13775-
this[kOptions] = opts;
13775+
this[kOptions] = { ...util.deepClone(opts) };
13776+
this[kOptions].interceptors = opts.interceptors
13777+
? { ...opts.interceptors }
13778+
: undefined;
1377613779
this[kIndex] = -1;
1377713780
this[kCurrentWeight] = 0;
1377813781

@@ -13792,7 +13795,7 @@ function requireBalancedPool () {
1379213795
}
1379313796

1379413797
addUpstream (upstream) {
13795-
const upstreamOrigin = parseOrigin(upstream).origin;
13798+
const upstreamOrigin = util.parseOrigin(upstream).origin;
1379613799

1379713800
if (this[kClients].find((pool) => (
1379813801
pool[kUrl].origin === upstreamOrigin &&
@@ -13801,7 +13804,7 @@ function requireBalancedPool () {
1380113804
))) {
1380213805
return this
1380313806
}
13804-
const pool = this[kFactory](upstreamOrigin, Object.assign({}, this[kOptions]));
13807+
const pool = this[kFactory](upstreamOrigin, this[kOptions]);
1380513808

1380613809
this[kAddClient](pool);
1380713810
pool.on('connect', () => {
@@ -13841,7 +13844,7 @@ function requireBalancedPool () {
1384113844
}
1384213845

1384313846
removeUpstream (upstream) {
13844-
const upstreamOrigin = parseOrigin(upstream).origin;
13847+
const upstreamOrigin = util.parseOrigin(upstream).origin;
1384513848

1384613849
const pool = this[kClients].find((pool) => (
1384713850
pool[kUrl].origin === upstreamOrigin &&
@@ -13857,7 +13860,7 @@ function requireBalancedPool () {
1385713860
}
1385813861

1385913862
getUpstream (upstream) {
13860-
const upstreamOrigin = parseOrigin(upstream).origin;
13863+
const upstreamOrigin = util.parseOrigin(upstream).origin;
1386113864

1386213865
return this[kClients].find((pool) => (
1386313866
pool[kUrl].origin === upstreamOrigin &&
@@ -23119,10 +23122,18 @@ function requireCacheHandler () {
2311923122
staleIfError = staleAt + (cacheControlDirectives['stale-if-error'] * 1000);
2312023123
}
2312123124

23122-
if (staleWhileRevalidate === -Infinity && staleIfError === -Infinity) {
23125+
if (cacheControlDirectives.immutable && staleWhileRevalidate === -Infinity && staleIfError === -Infinity) {
2312323126
immutable = now + 31536000000;
2312423127
}
2312523128

23129+
// When no stale directives or immutable flag, add a revalidation buffer
23130+
// equal to the freshness lifetime so the entry survives past staleAt long
23131+
// enough to be revalidated instead of silently disappearing.
23132+
if (staleWhileRevalidate === -Infinity && staleIfError === -Infinity && immutable === -Infinity) {
23133+
const freshnessLifetime = staleAt - now;
23134+
return staleAt + freshnessLifetime
23135+
}
23136+
2312623137
return Math.max(staleAt, staleWhileRevalidate, staleIfError, immutable)
2312723138
}
2312823139

@@ -30287,9 +30298,12 @@ function requireFetch () {
3028730298
/** @type {import('../../..').Agent} */
3028830299
const agent = fetchParams.controller.dispatcher;
3028930300

30301+
const path = url.pathname + url.search;
30302+
const hasTrailingQuestionMark = url.search.length === 0 && url.href[url.href.length - url.hash.length - 1] === '?';
30303+
3029030304
return new Promise((resolve, reject) => agent.dispatch(
3029130305
{
30292-
path: url.href.slice(url.origin.length, url.hash.length ? -url.hash.length : undefined),
30306+
path: hasTrailingQuestionMark ? `${path}?` : path,
3029330307
origin: url.origin,
3029430308
method: request.method,
3029530309
body: agent.isMockActive ? request.body && (request.body.source || request.body.stream) : body,
@@ -33794,9 +33808,6 @@ function requirePermessageDeflate () {
3379433808

3379533809
#options = {}
3379633810

33797-
/** @type {number} */
33798-
#maxDecompressedSize
33799-
3380033811
/** @type {boolean} */
3380133812
#aborted = false
3380233813

@@ -33805,12 +33816,10 @@ function requirePermessageDeflate () {
3380533816

3380633817
/**
3380733818
* @param {Map<string, string>} extensions
33808-
* @param {{ maxDecompressedMessageSize?: number }} [options]
3380933819
*/
33810-
constructor (extensions, options = {}) {
33820+
constructor (extensions) {
3381133821
this.#options.serverNoContextTakeover = extensions.has('server_no_context_takeover');
3381233822
this.#options.serverMaxWindowBits = extensions.get('server_max_window_bits');
33813-
this.#maxDecompressedSize = options.maxDecompressedMessageSize ?? kDefaultMaxDecompressedSize;
3381433823
}
3381533824

3381633825
decompress (chunk, fin, callback) {
@@ -33852,7 +33861,7 @@ function requirePermessageDeflate () {
3385233861

3385333862
this.#inflate[kLength] += data.length;
3385433863

33855-
if (this.#inflate[kLength] > this.#maxDecompressedSize) {
33864+
if (this.#inflate[kLength] > kDefaultMaxDecompressedSize) {
3385633865
this.#aborted = true;
3385733866
this.#inflate.removeAllListeners();
3385833867
this.#inflate.destroy();
@@ -33947,23 +33956,18 @@ function requireReceiver () {
3394733956
/** @type {import('./websocket').Handler} */
3394833957
#handler
3394933958

33950-
/** @type {{ maxDecompressedMessageSize?: number }} */
33951-
#options
33952-
3395333959
/**
3395433960
* @param {import('./websocket').Handler} handler
3395533961
* @param {Map<string, string>|null} extensions
33956-
* @param {{ maxDecompressedMessageSize?: number }} [options]
3395733962
*/
33958-
constructor (handler, extensions, options = {}) {
33963+
constructor (handler, extensions) {
3395933964
super();
3396033965

3396133966
this.#handler = handler;
3396233967
this.#extensions = extensions == null ? new Map() : extensions;
33963-
this.#options = options;
3396433968

3396533969
if (this.#extensions.has('permessage-deflate')) {
33966-
this.#extensions.set('permessage-deflate', new PerMessageDeflate(extensions, options));
33970+
this.#extensions.set('permessage-deflate', new PerMessageDeflate(extensions));
3396733971
}
3396833972
}
3396933973

@@ -34597,8 +34601,6 @@ function requireWebsocket () {
3459734601
#binaryType
3459834602
/** @type {import('./receiver').ByteParser} */
3459934603
#parser
34600-
/** @type {{ maxDecompressedMessageSize?: number }} */
34601-
#options
3460234604

3460334605
/**
3460434606
* @param {string} url
@@ -34644,11 +34646,6 @@ function requireWebsocket () {
3464434646
// 5. Set this's url to urlRecord.
3464534647
this.#url = new URL(urlRecord.href);
3464634648

34647-
// Store options for later use (e.g., maxDecompressedMessageSize)
34648-
this.#options = {
34649-
maxDecompressedMessageSize: options.maxDecompressedMessageSize
34650-
};
34651-
3465234649
// 6. Let client be this's relevant settings object.
3465334650
const client = environmentSettingsObject.settingsObject;
3465434651

@@ -34951,7 +34948,7 @@ function requireWebsocket () {
3495134948
// once this happens, the connection is open
3495234949
this.#handler.socket = response.socket;
3495334950

34954-
const parser = new ByteParser(this.#handler, parsedExtensions, this.#options);
34951+
const parser = new ByteParser(this.#handler, parsedExtensions);
3495534952
parser.on('drain', () => this.#handler.onParserDrain());
3495634953
parser.on('error', (err) => this.#handler.onParserError(err));
3495734954

@@ -35203,19 +35200,6 @@ function requireWebsocket () {
3520335200
{
3520435201
key: 'headers',
3520535202
converter: webidl.nullableConverter(webidl.converters.HeadersInit)
35206-
},
35207-
{
35208-
key: 'maxDecompressedMessageSize',
35209-
converter: webidl.nullableConverter((V) => {
35210-
V = webidl.converters['unsigned long long'](V);
35211-
if (V <= 0) {
35212-
throw webidl.errors.exception({
35213-
header: 'WebSocket constructor',
35214-
message: 'maxDecompressedMessageSize must be greater than 0'
35215-
})
35216-
}
35217-
return V
35218-
})
3521935203
}
3522035204
]);
3522135205

@@ -42138,7 +42122,7 @@ function _getGlobal(key, defaultValue) {
4213842122
const toolName = 'stackit';
4213942123
const githubRepository = 'stackitcloud/stackit-cli';
4214042124
// renovate: github=stackitcloud/stackit-cli
42141-
const defaultVersion = 'v0.55.0';
42125+
const defaultVersion = 'v0.56.0';
4214242126
function binaryName(version, os, arch) {
4214342127
version = semverExports.clean(version) || version;
4214442128
return `stackit-cli_${version}_${os}_${arch}.${os === 'windows' ? 'zip' : 'tar.gz'}`;

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,6 @@
6363
"@rollup/rollup-linux-x64-gnu": "4.59.0"
6464
},
6565
"overrides": {
66-
"undici": "7.24.0"
66+
"undici": "7.24.5"
6767
}
6868
}

src/tool.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export const toolName = 'stackit'
55
export const githubRepository = 'stackitcloud/stackit-cli'
66

77
// renovate: github=stackitcloud/stackit-cli
8-
export const defaultVersion = 'v0.55.0'
8+
export const defaultVersion = 'v0.56.0'
99

1010
export function binaryName(version: string, os: string, arch: string): string {
1111
version = clean(version) || version

0 commit comments

Comments
 (0)