allure-cypress 3.7.0 → 3.7.2
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/cjs/browser/runtime.js +2 -2
- package/dist/cjs/browser/runtime.js.map +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/index.js.map +4 -4
- package/dist/cjs/utils.js +1 -1
- package/dist/cjs/utils.js.map +1 -1
- package/dist/esm/browser/runtime.js +2 -2
- package/dist/esm/browser/runtime.js.map +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +4 -4
- package/dist/esm/utils.js +1 -1
- package/dist/esm/utils.js.map +1 -1
- package/package.json +3 -3
package/dist/esm/utils.js
CHANGED
|
@@ -13,7 +13,7 @@ export var DEFAULT_RUNTIME_CONFIG = {
|
|
|
13
13
|
* @returns An array of popped items. The first popped item becomes the first element of this array.
|
|
14
14
|
*/
|
|
15
15
|
export var popUntilFindIncluded = (items, pred) => {
|
|
16
|
-
var index = items.
|
|
16
|
+
var index = items.findLastIndex(pred);
|
|
17
17
|
return index !== -1 ? toReversed(items.splice(index)) : [];
|
|
18
18
|
};
|
|
19
19
|
export var toReversed = arr => {
|
package/dist/esm/utils.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","names":["DEFAULT_RUNTIME_CONFIG","stepsFromCommands","maxArgumentLength","maxArgumentDepth","popUntilFindIncluded","items","pred","index","
|
|
1
|
+
{"version":3,"file":"utils.js","names":["DEFAULT_RUNTIME_CONFIG","stepsFromCommands","maxArgumentLength","maxArgumentDepth","popUntilFindIncluded","items","pred","index","findLastIndex","toReversed","splice","arr","len","length","result","Array","i","last","isDefined","value"],"sources":["../../src/utils.ts"],"sourcesContent":["export const DEFAULT_RUNTIME_CONFIG = {\n stepsFromCommands: {\n maxArgumentLength: 128,\n maxArgumentDepth: 3,\n },\n};\n\n/**\n * Pops items from an array into a new one. The item that matches the predicate is the last item to pop.\n * If there is no such item in the array, the array is left unmodified.\n * @param items An array to pop the items from.\n * @param pred A predicate that defines the last item to pop.\n * @returns An array of popped items. The first popped item becomes the first element of this array.\n */\nexport const popUntilFindIncluded = <T>(items: T[], pred: (value: T) => boolean) => {\n const index = items.findLastIndex(pred);\n return index !== -1 ? toReversed(items.splice(index)) : [];\n};\n\nexport const toReversed = <T = unknown>(arr: T[]): T[] => {\n const len = arr.length;\n const result: T[] = new Array(len);\n\n for (let i = 0; i < len; i++) {\n result[len - i - 1] = arr[i];\n }\n\n return result;\n};\n\nexport const last = <T = unknown>(arr: T[]): T | undefined => {\n return arr[arr.length - 1];\n};\n\nexport const isDefined = <T>(value: T | undefined): value is T => typeof value !== \"undefined\";\n"],"mappings":"AAAA,OAAO,IAAMA,sBAAsB,GAAG;EACpCC,iBAAiB,EAAE;IACjBC,iBAAiB,EAAE,GAAG;IACtBC,gBAAgB,EAAE;EACpB;AACF,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,IAAMC,oBAAoB,GAAGA,CAAIC,KAAU,EAAEC,IAA2B,KAAK;EAClF,IAAMC,KAAK,GAAGF,KAAK,CAACG,aAAa,CAACF,IAAI,CAAC;EACvC,OAAOC,KAAK,KAAK,CAAC,CAAC,GAAGE,UAAU,CAACJ,KAAK,CAACK,MAAM,CAACH,KAAK,CAAC,CAAC,GAAG,EAAE;AAC5D,CAAC;AAED,OAAO,IAAME,UAAU,GAAiBE,GAAQ,IAAU;EACxD,IAAMC,GAAG,GAAGD,GAAG,CAACE,MAAM;EACtB,IAAMC,MAAW,GAAG,IAAIC,KAAK,CAACH,GAAG,CAAC;EAElC,KAAK,IAAII,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGJ,GAAG,EAAEI,CAAC,EAAE,EAAE;IAC5BF,MAAM,CAACF,GAAG,GAAGI,CAAC,GAAG,CAAC,CAAC,GAAGL,GAAG,CAACK,CAAC,CAAC;EAC9B;EAEA,OAAOF,MAAM;AACf,CAAC;AAED,OAAO,IAAMG,IAAI,GAAiBN,GAAQ,IAAoB;EAC5D,OAAOA,GAAG,CAACA,GAAG,CAACE,MAAM,GAAG,CAAC,CAAC;AAC5B,CAAC;AAED,OAAO,IAAMK,SAAS,GAAOC,KAAoB,IAAiB,OAAOA,KAAK,KAAK,WAAW","ignoreList":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "allure-cypress",
|
|
3
|
-
"version": "3.7.
|
|
3
|
+
"version": "3.7.2",
|
|
4
4
|
"description": "Allure Cypress integration",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"allure",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"test": "vitest run"
|
|
61
61
|
},
|
|
62
62
|
"dependencies": {
|
|
63
|
-
"allure-js-commons": "3.7.
|
|
63
|
+
"allure-js-commons": "3.7.2"
|
|
64
64
|
},
|
|
65
65
|
"devDependencies": {
|
|
66
66
|
"@babel/cli": "^7.28.0",
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
"@types/babel__preset-env": "^7.10.0",
|
|
73
73
|
"@types/node": "^20.19.0",
|
|
74
74
|
"allure-commandline": "^2.29.0",
|
|
75
|
-
"allure-vitest": "3.7.
|
|
75
|
+
"allure-vitest": "3.7.2",
|
|
76
76
|
"babel-plugin-add-module-exports": "^1.0.4",
|
|
77
77
|
"cypress": "^15.0.0",
|
|
78
78
|
"esbuild": "^0.27.0",
|