@parcel/diagnostic
Advanced tools
Comparing version 2.0.0-nightly.214 to 2.0.0-nightly.219
@@ -19,6 +19,2 @@ "use strict"; | ||
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (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 = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } | ||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } | ||
@@ -52,5 +48,5 @@ | ||
return error.diagnostics.map(d => { | ||
return _objectSpread({}, d, { | ||
return { ...d, | ||
origin: realOrigin || d.origin || 'unknown' | ||
}); | ||
}; | ||
}); | ||
@@ -113,5 +109,5 @@ } | ||
let pos = (0, _nullthrows.default)(map.pointers[key]); | ||
return _objectSpread({}, getJSONSourceLocation(pos, type), { | ||
return { ...getJSONSourceLocation(pos, type), | ||
message | ||
}); | ||
}; | ||
}); | ||
@@ -118,0 +114,0 @@ } |
{ | ||
"name": "@parcel/diagnostic", | ||
"version": "2.0.0-nightly.214+52fd6741", | ||
"version": "2.0.0-nightly.219+f9f7320b", | ||
"license": "MIT", | ||
@@ -21,3 +21,3 @@ "publishConfig": { | ||
}, | ||
"gitHead": "52fd6741a0ea1f2e043c628cf6b7be0715b1c837" | ||
"gitHead": "f9f7320bed19a9a2a7d75d5c6da657272b4b44ef" | ||
} |
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
10528
302