@smartbear/one-report-publisher
Advanced tools
Comparing version 0.0.13 to 0.0.14
@@ -71,3 +71,2 @@ "use strict"; | ||
var ci_environment_1 = __importDefault(require("@cucumber/ci-environment")); | ||
var fast_glob_1 = __importDefault(require("fast-glob")); | ||
var fs_1 = __importDefault(require("fs")); | ||
@@ -80,2 +79,3 @@ var http_1 = __importDefault(require("http")); | ||
var util_1 = require("util"); | ||
var manyglob_js_1 = require("./manyglob.js"); | ||
var readStream_js_1 = require("./readStream.js"); | ||
@@ -117,8 +117,5 @@ var lstat = (0, util_1.promisify)(fs_1.default.lstat); | ||
ciEnv = (0, ci_environment_1.default)(env); | ||
return [4 /*yield*/, Promise.all(globs.reduce(function (prev, glob) { | ||
return prev.concat((0, fast_glob_1.default)(glob)); | ||
}, []))]; | ||
return [4 /*yield*/, (0, manyglob_js_1.manyglob)(globs)]; | ||
case 2: | ||
paths = (_a.sent()) | ||
.flatMap(function (paths) { return paths; }) | ||
.filter(function (path) { return extensions.includes((0, path_1.extname)(path)); }) | ||
@@ -125,0 +122,0 @@ .sort(); |
@@ -11,3 +11,2 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
import ciEnvironment from '@cucumber/ci-environment'; | ||
import fg from 'fast-glob'; | ||
import fs from 'fs'; | ||
@@ -20,2 +19,3 @@ import http from 'http'; | ||
import { promisify } from 'util'; | ||
import { manyglob } from './manyglob.js'; | ||
import { readStream } from './readStream.js'; | ||
@@ -51,6 +51,3 @@ const lstat = promisify(fs.lstat); | ||
const ciEnv = ciEnvironment(env); | ||
const paths = (yield Promise.all(globs.reduce((prev, glob) => { | ||
return prev.concat(fg(glob)); | ||
}, []))) | ||
.flatMap((paths) => paths) | ||
const paths = (yield manyglob(globs)) | ||
.filter((path) => extensions.includes(extname(path))) | ||
@@ -57,0 +54,0 @@ .sort(); |
{ | ||
"name": "@smartbear/one-report-publisher", | ||
"version": "0.0.13", | ||
"version": "0.0.14", | ||
"description": "Publish Test Results to SmartBear OneReport", | ||
@@ -5,0 +5,0 @@ "type": "module", |
@@ -29,3 +29,3 @@ [![Run Tests](https://github.com/SmartBear/one-report-publisher/actions/workflows/test.yaml/badge.svg)](https://github.com/SmartBear/one-report-publisher/actions/workflows/test.yaml) | ||
``` | ||
npx @smartbear/one-report-publisher@v0.0.12 --help | ||
npx @smartbear/one-report-publisher@v0.0.13 --help | ||
@@ -45,3 +45,3 @@ Usage: one-report-publisher [options] | ||
``` | ||
npx @smartbear/one-report-publisher@0.0.12 --organization-id F5222E06-BA05-4C82-949A-2FE537B6F59F --password ${ONE_REPORT_PASSWORD} --reports "./reports/**/*.{xml,json,ndjson,zip}" | ||
npx @smartbear/one-report-publisher@0.0.13 --organization-id F5222E06-BA05-4C82-949A-2FE537B6F59F --password ${ONE_REPORT_PASSWORD} --reports "./reports/**/*.{xml,json,ndjson,zip}" | ||
``` | ||
@@ -51,3 +51,3 @@ | ||
## GitHub Action | ||
## GitHub Actions | ||
@@ -58,3 +58,3 @@ The GitHub Action can be used as follows: | ||
- name: 'Publish to OneReport' | ||
uses: smartbear/one-report-publisher@v0.0.12 | ||
uses: smartbear/one-report-publisher@v0.0.13 | ||
with: | ||
@@ -61,0 +61,0 @@ organization-id: F5222E06-BA05-4C82-949A-2FE537B6F59F |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
177890
103
1708
8
24