@cypress/github-action 7.4.7 → 7.4.8
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/dist/{849.index.js → 360.index.js} +63 -26
- package/dist/835.index.js +16772 -0
- package/dist/index.js +45554 -36225
- package/package.json +5 -4
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
exports.id =
|
|
3
|
-
exports.ids = [
|
|
2
|
+
exports.id = 360;
|
|
3
|
+
exports.ids = [360];
|
|
4
4
|
exports.modules = {
|
|
5
5
|
|
|
6
6
|
/***/ 12203:
|
|
@@ -342,12 +342,13 @@ module.exports = class CachePolicy {
|
|
|
342
342
|
|
|
343
343
|
/**
|
|
344
344
|
* @param {{headers: Record<string, string>, synchronous: boolean}|undefined} revalidation - Revalidation information, if any.
|
|
345
|
-
* @returns {{response:
|
|
345
|
+
* @returns {{response: HttpResponse, revalidation: {headers: Record<string, string>, synchronous: boolean}|undefined}} An object with a cached response headers and revalidation info.
|
|
346
346
|
*/
|
|
347
347
|
_evaluateRequestHitResult(revalidation) {
|
|
348
348
|
return {
|
|
349
349
|
response: {
|
|
350
350
|
headers: this.responseHeaders(),
|
|
351
|
+
status: this._status,
|
|
351
352
|
},
|
|
352
353
|
revalidation,
|
|
353
354
|
};
|
|
@@ -395,9 +396,9 @@ module.exports = class CachePolicy {
|
|
|
395
396
|
* }
|
|
396
397
|
* ```
|
|
397
398
|
* @param {HttpRequest} req - new incoming HTTP request
|
|
398
|
-
* @returns {{response:
|
|
399
|
+
* @returns {{response: HttpResponse|undefined, revalidation: {headers: Record<string, string>, synchronous: boolean}|undefined}} An object containing keys:
|
|
399
400
|
* - revalidation: { headers: Record<string, string>, synchronous: boolean } Set if you should send this to the origin server
|
|
400
|
-
* - response:
|
|
401
|
+
* - response: HttpResponse Set if you can respond to the client with these cached headers
|
|
401
402
|
*/
|
|
402
403
|
evaluateRequest(req) {
|
|
403
404
|
this._assertRequestHasHeaders(req);
|
|
@@ -492,18 +493,32 @@ module.exports = class CachePolicy {
|
|
|
492
493
|
return true;
|
|
493
494
|
}
|
|
494
495
|
|
|
495
|
-
// A Vary header field-value of "*" always fails to match
|
|
496
|
-
if (this._resHeaders.vary === '*') {
|
|
497
|
-
return false;
|
|
498
|
-
}
|
|
499
|
-
|
|
500
496
|
const fields = this._resHeaders.vary
|
|
501
497
|
.trim()
|
|
502
498
|
.toLowerCase()
|
|
503
499
|
.split(/\s*,\s*/);
|
|
500
|
+
|
|
504
501
|
for (const name of fields) {
|
|
505
|
-
|
|
502
|
+
// A Vary header field-value of "*" always fails to match
|
|
503
|
+
if (name === '*') {
|
|
504
|
+
return false;
|
|
505
|
+
}
|
|
506
|
+
|
|
507
|
+
const newReq = Object.prototype.hasOwnProperty.call(
|
|
508
|
+
req.headers,
|
|
509
|
+
name
|
|
510
|
+
) && req.headers[name];
|
|
511
|
+
|
|
512
|
+
const cachedReq = Object.prototype.hasOwnProperty.call(
|
|
513
|
+
this._reqHeaders,
|
|
514
|
+
name
|
|
515
|
+
) && this._reqHeaders[name];
|
|
516
|
+
|
|
517
|
+
if (newReq !== cachedReq) {
|
|
518
|
+
return false;
|
|
519
|
+
}
|
|
506
520
|
}
|
|
521
|
+
|
|
507
522
|
return true;
|
|
508
523
|
}
|
|
509
524
|
|
|
@@ -564,6 +579,14 @@ module.exports = class CachePolicy {
|
|
|
564
579
|
return headers;
|
|
565
580
|
}
|
|
566
581
|
|
|
582
|
+
/**
|
|
583
|
+
* Returns the status code of the cached response.
|
|
584
|
+
* @returns {number} The response status code.
|
|
585
|
+
*/
|
|
586
|
+
status() {
|
|
587
|
+
return this._status;
|
|
588
|
+
}
|
|
589
|
+
|
|
567
590
|
/**
|
|
568
591
|
* Returns the Date header value from the response or the current time if invalid.
|
|
569
592
|
* @returns {number} Timestamp (in milliseconds) representing the Date header or response time.
|
|
@@ -938,7 +961,7 @@ module.exports = class CachePolicy {
|
|
|
938
961
|
|
|
939
962
|
/***/ }),
|
|
940
963
|
|
|
941
|
-
/***/
|
|
964
|
+
/***/ 44360:
|
|
942
965
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
943
966
|
|
|
944
967
|
|
|
@@ -2810,6 +2833,10 @@ function isUint8ArrayOrArrayBuffer(value) {
|
|
|
2810
2833
|
return uint8array_extras_isUint8Array(value) || uint8array_extras_isArrayBuffer(value);
|
|
2811
2834
|
}
|
|
2812
2835
|
|
|
2836
|
+
function toUint8ArrayIfArrayBuffer(value) {
|
|
2837
|
+
return uint8array_extras_isArrayBuffer(value) ? new Uint8Array(value) : value;
|
|
2838
|
+
}
|
|
2839
|
+
|
|
2813
2840
|
function uint8array_extras_assertUint8Array(value) {
|
|
2814
2841
|
if (!uint8array_extras_isUint8Array(value)) {
|
|
2815
2842
|
throw new TypeError(`Expected \`Uint8Array\`, got \`${typeof value}\``);
|
|
@@ -2839,13 +2866,14 @@ function concatUint8Arrays(arrays, totalLength) {
|
|
|
2839
2866
|
return new Uint8Array(0);
|
|
2840
2867
|
}
|
|
2841
2868
|
|
|
2842
|
-
totalLength ??= arrays.reduce((accumulator, currentValue) => accumulator + currentValue.
|
|
2869
|
+
totalLength ??= arrays.reduce((accumulator, currentValue) => accumulator + currentValue.byteLength, 0);
|
|
2843
2870
|
|
|
2844
2871
|
const returnValue = new Uint8Array(totalLength);
|
|
2845
2872
|
|
|
2846
2873
|
let offset = 0;
|
|
2847
|
-
for (
|
|
2848
|
-
|
|
2874
|
+
for (let array of arrays) {
|
|
2875
|
+
assertUint8ArrayOrArrayBuffer(array);
|
|
2876
|
+
array = toUint8ArrayIfArrayBuffer(array);
|
|
2849
2877
|
returnValue.set(array, offset);
|
|
2850
2878
|
offset += array.length;
|
|
2851
2879
|
}
|
|
@@ -2854,8 +2882,10 @@ function concatUint8Arrays(arrays, totalLength) {
|
|
|
2854
2882
|
}
|
|
2855
2883
|
|
|
2856
2884
|
function areUint8ArraysEqual(a, b) {
|
|
2857
|
-
|
|
2858
|
-
|
|
2885
|
+
assertUint8ArrayOrArrayBuffer(a);
|
|
2886
|
+
assertUint8ArrayOrArrayBuffer(b);
|
|
2887
|
+
a = toUint8ArrayIfArrayBuffer(a);
|
|
2888
|
+
b = toUint8ArrayIfArrayBuffer(b);
|
|
2859
2889
|
|
|
2860
2890
|
if (a === b) {
|
|
2861
2891
|
return true;
|
|
@@ -2876,8 +2906,10 @@ function areUint8ArraysEqual(a, b) {
|
|
|
2876
2906
|
}
|
|
2877
2907
|
|
|
2878
2908
|
function compareUint8Arrays(a, b) {
|
|
2879
|
-
|
|
2880
|
-
|
|
2909
|
+
assertUint8ArrayOrArrayBuffer(a);
|
|
2910
|
+
assertUint8ArrayOrArrayBuffer(b);
|
|
2911
|
+
a = toUint8ArrayIfArrayBuffer(a);
|
|
2912
|
+
b = toUint8ArrayIfArrayBuffer(b);
|
|
2881
2913
|
|
|
2882
2914
|
const length = Math.min(a.length, b.length);
|
|
2883
2915
|
|
|
@@ -2931,7 +2963,8 @@ function base64UrlToBase64(base64url) {
|
|
|
2931
2963
|
const MAX_BLOCK_SIZE = 65_535;
|
|
2932
2964
|
|
|
2933
2965
|
function uint8ArrayToBase64(array, {urlSafe = false} = {}) {
|
|
2934
|
-
|
|
2966
|
+
assertUint8ArrayOrArrayBuffer(array);
|
|
2967
|
+
array = toUint8ArrayIfArrayBuffer(array);
|
|
2935
2968
|
|
|
2936
2969
|
let base64 = '';
|
|
2937
2970
|
|
|
@@ -2962,7 +2995,8 @@ function base64ToString(base64String) {
|
|
|
2962
2995
|
const byteToHexLookupTable = Array.from({length: 256}, (_, index) => index.toString(16).padStart(2, '0'));
|
|
2963
2996
|
|
|
2964
2997
|
function uint8ArrayToHex(array) {
|
|
2965
|
-
|
|
2998
|
+
assertUint8ArrayOrArrayBuffer(array);
|
|
2999
|
+
array = toUint8ArrayIfArrayBuffer(array);
|
|
2966
3000
|
|
|
2967
3001
|
// Concatenating a string is faster than using an array.
|
|
2968
3002
|
let hexString = '';
|
|
@@ -3057,11 +3091,14 @@ function getUintBE(view) {
|
|
|
3057
3091
|
}
|
|
3058
3092
|
|
|
3059
3093
|
/**
|
|
3060
|
-
@param {Uint8Array} array
|
|
3061
|
-
@param {Uint8Array} value
|
|
3094
|
+
@param {Uint8Array | ArrayBuffer} array
|
|
3095
|
+
@param {Uint8Array | ArrayBuffer} value
|
|
3062
3096
|
@returns {number}
|
|
3063
3097
|
*/
|
|
3064
3098
|
function indexOf(array, value) {
|
|
3099
|
+
array = toUint8ArrayIfArrayBuffer(array);
|
|
3100
|
+
value = toUint8ArrayIfArrayBuffer(value);
|
|
3101
|
+
|
|
3065
3102
|
const arrayLength = array.length;
|
|
3066
3103
|
const valueLength = value.length;
|
|
3067
3104
|
|
|
@@ -3093,8 +3130,8 @@ function indexOf(array, value) {
|
|
|
3093
3130
|
}
|
|
3094
3131
|
|
|
3095
3132
|
/**
|
|
3096
|
-
@param {Uint8Array} array
|
|
3097
|
-
@param {Uint8Array} value
|
|
3133
|
+
@param {Uint8Array | ArrayBuffer} array
|
|
3134
|
+
@param {Uint8Array | ArrayBuffer} value
|
|
3098
3135
|
@returns {boolean}
|
|
3099
3136
|
*/
|
|
3100
3137
|
function includes(array, value) {
|
|
@@ -3105,7 +3142,7 @@ function includes(array, value) {
|
|
|
3105
3142
|
var external_node_crypto_ = __webpack_require__(77598);
|
|
3106
3143
|
// EXTERNAL MODULE: external "node:url"
|
|
3107
3144
|
var external_node_url_ = __webpack_require__(73136);
|
|
3108
|
-
;// CONCATENATED MODULE: ./node_modules/
|
|
3145
|
+
;// CONCATENATED MODULE: ./node_modules/is-stream/index.js
|
|
3109
3146
|
function isStream(stream, {checkOpen = true} = {}) {
|
|
3110
3147
|
return stream !== null
|
|
3111
3148
|
&& typeof stream === 'object'
|