chat-pane 2.4.26 → 2.4.27

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.
@@ -222,7 +222,8 @@ module.exports = class ContextResolver {
222
222
  'a same-origin policy (ensure the server uses CORS if you are ' +
223
223
  'using client-side JavaScript), too many redirects, a ' +
224
224
  'non-JSON response, or more than one HTTP Link Header was ' +
225
- 'provided for a remote context.',
225
+ 'provided for a remote context. ' +
226
+ `URL: "${url}".`,
226
227
  'jsonld.InvalidUrl',
227
228
  {code: 'loading remote context failed', url, cause: e});
228
229
  }
@@ -231,7 +232,8 @@ module.exports = class ContextResolver {
231
232
  if(!_isObject(context)) {
232
233
  throw new JsonLdError(
233
234
  'Dereferencing a URL did not result in a JSON object. The ' +
234
- 'response was valid JSON, but it was not a JSON object.',
235
+ 'response was valid JSON, but it was not a JSON object. ' +
236
+ `URL: "${url}".`,
235
237
  'jsonld.InvalidUrl', {code: 'invalid remote context', url});
236
238
  }
237
239
 
@@ -4533,7 +4535,7 @@ async function _expandObject({
4533
4535
  });
4534
4536
  }
4535
4537
 
4536
- const container = _getContextValue(termCtx, key, '@container') || [];
4538
+ const container = _getContextValue(activeCtx, key, '@container') || [];
4537
4539
 
4538
4540
  if(container.includes('@language') && _isObject(value)) {
4539
4541
  const direction = _getContextValue(termCtx, key, '@direction');