@parcel/utils 2.0.0-nightly.1034 → 2.0.0-nightly.1041

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/lib/index.js CHANGED
@@ -32782,7 +32782,7 @@ function $4ca1027d34905147$export$2115c2c0a84eef61(expectedValues, actualValue)
32782
32782
  );
32783
32783
  }
32784
32784
  $4ca1027d34905147$var$validateSchema.diagnostic = function(schema, data, origin, message1) {
32785
- if ('source' in data && 'data' in data && typeof data.source !== 'string' && !data) throw new Error('At least one of data.source and data.source must be defined!');
32785
+ if ('source' in data && 'data' in data && typeof data.source !== 'string' && !data) throw new Error('At least one of data.source and data.data must be defined!');
32786
32786
  var _data;
32787
32787
  let object = data.map ? data.map.data : (_data = data.data) !== null && _data !== void 0 ? _data : JSON.parse(data.source);
32788
32788
  let errors = $4ca1027d34905147$var$validateSchema(schema, object);