New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

allure-js-commons

Package Overview
Dependencies
Maintainers
4
Versions
88
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

allure-js-commons - npm Package Compare versions

Comparing version 3.0.8 to 3.0.9

6

dist/cjs/sdk/reporter/ReporterRuntime.js

@@ -88,3 +88,4 @@ "use strict";

categories,
links: _links
links: _links,
globalLabels
} = _ref;

@@ -98,2 +99,3 @@ _defineProperty(this, "state", new _LifecycleState.LifecycleState());

_defineProperty(this, "linkConfig", void 0);
_defineProperty(this, "globalLabels", []);
_defineProperty(this, "startScope", () => {

@@ -225,2 +227,3 @@ var uuid = (0, _utils.randomUuid)();

});
testResult.labels = [...this.globalLabels, ...testResult.labels];
this.notifier.afterTestResultStop(testResult);

@@ -593,2 +596,3 @@ });

this.linkConfig = _links;
this.globalLabels = globalLabels !== null && globalLabels !== void 0 ? globalLabels : [];
}

@@ -595,0 +599,0 @@ }

@@ -11,2 +11,7 @@ "use strict";

function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
var getStatusFromError = error => {

@@ -59,6 +64,12 @@ switch (true) {

} = error;
return {
var actual = "actual" in error && error.actual !== undefined ? {
actual: serialize(error.actual)
} : {};
var expected = "expected" in error && error.expected !== undefined ? {
expected: serialize(error.expected)
} : {};
return _objectSpread(_objectSpread({
message: message ? stripAnsi(message) : undefined,
trace: stack ? stripAnsi(stack) : undefined
};
}, actual), expected);
};

@@ -65,0 +76,0 @@ exports.getMessageAndTraceFromError = getMessageAndTraceFromError;

@@ -83,3 +83,4 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }

categories,
links: _links
links: _links,
globalLabels
} = _ref;

@@ -93,2 +94,3 @@ _defineProperty(this, "state", new LifecycleState());

_defineProperty(this, "linkConfig", void 0);
_defineProperty(this, "globalLabels", []);
_defineProperty(this, "startScope", () => {

@@ -220,2 +222,3 @@ var uuid = randomUuid();

});
testResult.labels = [...this.globalLabels, ...testResult.labels];
this.notifier.afterTestResultStop(testResult);

@@ -588,4 +591,5 @@ });

this.linkConfig = _links;
this.globalLabels = globalLabels !== null && globalLabels !== void 0 ? globalLabels : [];
}
}
//# sourceMappingURL=ReporterRuntime.js.map
function _wrapRegExp() { _wrapRegExp = function _wrapRegExp(e, r) { return new BabelRegExp(e, void 0, r); }; var e = RegExp.prototype, r = new WeakMap(); function BabelRegExp(e, t, p) { var o = RegExp(e, t); return r.set(o, p || r.get(e)), _setPrototypeOf(o, BabelRegExp.prototype); } function buildGroups(e, t) { var p = r.get(t); return Object.keys(p).reduce(function (r, t) { var o = p[t]; if ("number" == typeof o) r[t] = e[o];else { for (var i = 0; void 0 === e[o[i]] && i + 1 < o.length;) i++; r[t] = e[o[i]]; } return r; }, Object.create(null)); } return _inherits(BabelRegExp, RegExp), BabelRegExp.prototype.exec = function (r) { var t = e.exec.call(this, r); if (t) { t.groups = buildGroups(t, this); var p = t.indices; p && (p.groups = buildGroups(p, this)); } return t; }, BabelRegExp.prototype[Symbol.replace] = function (t, p) { if ("string" == typeof p) { var o = r.get(this); return e[Symbol.replace].call(this, t, p.replace(/\$<([^>]+)>/g, function (e, r) { var t = o[r]; return "$" + (Array.isArray(t) ? t.join("$") : t); })); } if ("function" == typeof p) { var i = this; return e[Symbol.replace].call(this, t, function () { var e = arguments; return "object" != typeof e[e.length - 1] && (e = [].slice.call(e)).push(buildGroups(e, i)), p.apply(this, e); }); } return e[Symbol.replace].call(this, t, p); }, _wrapRegExp.apply(this, arguments); }
function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
import { LabelName, Status } from "../model.js";

@@ -50,6 +55,12 @@ export var getStatusFromError = error => {

} = error;
return {
var actual = "actual" in error && error.actual !== undefined ? {
actual: serialize(error.actual)
} : {};
var expected = "expected" in error && error.expected !== undefined ? {
expected: serialize(error.expected)
} : {};
return _objectSpread(_objectSpread({
message: message ? stripAnsi(message) : undefined,
trace: stack ? stripAnsi(stack) : undefined
};
}, actual), expected);
};

@@ -56,0 +67,0 @@ export var allureIdRegexp = /*#__PURE__*/_wrapRegExp(/(?:^|\s)@?allure\.id[:=]([^\s]+)/, {

@@ -32,2 +32,4 @@ /// <reference types="node" />

trace?: string;
actual?: string;
expected?: string;
}

@@ -34,0 +36,0 @@ interface Executable {

5

dist/types/sdk/reporter/ReporterRuntime.d.ts
/// <reference types="node" />
import { type AttachmentOptions, type FixtureResult, type StepResult, type TestResult } from "../../model.js";
import { type AttachmentOptions, type FixtureResult, type Label, type StepResult, type TestResult } from "../../model.js";
import type { Category, EnvironmentInfo, RuntimeMessage } from "../types.js";

@@ -14,3 +14,4 @@ import type { FixtureType, LinkConfig, ReporterRuntimeConfig, TestScope, Writer } from "./types.js";

linkConfig?: LinkConfig;
constructor({ writer, listeners, environmentInfo, categories, links }: ReporterRuntimeConfig);
globalLabels: Label[];
constructor({ writer, listeners, environmentInfo, categories, links, globalLabels }: ReporterRuntimeConfig);
startScope: () => string;

@@ -17,0 +18,0 @@ updateScope: (uuid: string, updateFunc: (scope: TestScope) => void) => void;

@@ -28,2 +28,3 @@ /// <reference types="node" />

readonly links?: LinkConfig;
readonly globalLabels?: Label[];
readonly listeners?: LifecycleListener[];

@@ -30,0 +31,0 @@ readonly environmentInfo?: EnvironmentInfo;

@@ -12,3 +12,3 @@ import type { FixtureResult, Label, StatusDetails, StepResult, TestResult } from "../model.js";

stack?: string;
}) => Pick<StatusDetails, "message" | "trace">;
}) => StatusDetails;
export declare const allureIdRegexp: RegExp;

@@ -15,0 +15,0 @@ export declare const allureIdRegexpGlobal: RegExp;

{
"name": "allure-js-commons",
"version": "3.0.8",
"version": "3.0.9",
"description": "Allure JS Commons",

@@ -105,6 +105,6 @@ "keywords": [

"typescript": "^5.2.2",
"vitest": "^2.1.5"
"vitest": "^2.1.8"
},
"peerDependencies": {
"allure-playwright": "3.0.8"
"allure-playwright": "3.0.9"
},

@@ -111,0 +111,0 @@ "peerDependenciesMeta": {

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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc