contentful 10.12.0 → 10.12.2

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.
@@ -205,6 +205,10 @@ var getResolvedLink = function getResolvedLink(entityMap, link) {
205
205
  linkType = _link$sys.linkType;
206
206
 
207
207
  if (type === 'ResourceLink') {
208
+ if (!linkType.startsWith('Contentful:')) {
209
+ return UNRESOLVED_LINK;
210
+ }
211
+
208
212
  var urn = link.sys.urn;
209
213
 
210
214
  var _getIdsFromUrn = getIdsFromUrn(urn),
@@ -5061,7 +5065,7 @@ function createClient(params) {
5061
5065
  environment: 'master',
5062
5066
  };
5063
5067
  const config = Object.assign(Object.assign({}, defaultConfig), params);
5064
- const userAgentHeader = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.getUserAgentHeader)(`contentful.js/${"10.12.0"}`, config.application, config.integration);
5068
+ const userAgentHeader = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.getUserAgentHeader)(`contentful.js/${"10.12.2"}`, config.application, config.integration);
5065
5069
  config.headers = Object.assign(Object.assign({}, config.headers), { 'Content-Type': 'application/vnd.contentful.delivery.v1+json', 'X-Contentful-User-Agent': userAgentHeader });
5066
5070
  const http = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.createHttpClient)(axios__WEBPACK_IMPORTED_MODULE_4__["default"], config);
5067
5071
  if (!http.defaults.baseURL) {
@@ -5407,7 +5411,7 @@ function createContentfulApi({ http, getGlobalOptions }, options) {
5407
5411
  http.defaults.baseURL = getGlobalOptions().environmentBaseUrl;
5408
5412
  }
5409
5413
  return {
5410
- version: "10.12.0",
5414
+ version: "10.12.2",
5411
5415
  getSpace,
5412
5416
  getContentType,
5413
5417
  getContentTypes,