@percy/logger
Advanced tools
Comparing version 1.26.2 to 1.26.3-alpha.4
@@ -0,1 +1,6 @@ | ||
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; } | ||
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; } | ||
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } | ||
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); } | ||
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); } | ||
import { colors } from './utils.js'; | ||
@@ -198,6 +203,5 @@ const LINE_PAD_REGEXP = /^(\n*)(.*?)(\n*)$/s; | ||
if (err && this.level !== 'debug') message = err; | ||
this.write({ | ||
...entry, | ||
this.write(_objectSpread(_objectSpread({}, entry), {}, { | ||
message | ||
}); | ||
})); | ||
this.lastlog = timestamp; | ||
@@ -204,0 +208,0 @@ } |
{ | ||
"name": "@percy/logger", | ||
"version": "1.26.2", | ||
"version": "1.26.3-alpha.4", | ||
"license": "MIT", | ||
@@ -12,3 +12,3 @@ "repository": { | ||
"access": "public", | ||
"tag": "latest" | ||
"tag": "alpha" | ||
}, | ||
@@ -36,3 +36,3 @@ "engines": { | ||
}, | ||
"gitHead": "f97b6c463109420a4045dc0396bf9d429c2dc77d" | ||
"gitHead": "d89ab97b8d5169eafd3eb42bdbbef41a2ac624ba" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
17472
359
2