Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

contentful-resolve-response

Package Overview
Dependencies
Maintainers
4
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

contentful-resolve-response - npm Package Compare versions

Comparing version 1.6.2 to 1.6.3

13

dist/cjs/index.js

@@ -7,2 +7,4 @@ 'use strict';

var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"]) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } }; }();
var _fastCopy = require('fast-copy');

@@ -88,10 +90,13 @@

var regExp = /.*:spaces\/(?<spaceId>[A-Za-z0-9]*)\/entries\/(?<entryId>[A-Za-z0-9]*)/;
var regExp = /.*:spaces\/([A-Za-z0-9]*)\/entries\/([A-Za-z0-9]*)/;
if (!regExp.test(urn)) {
return UNRESOLVED_LINK;
}
var _urn$match$groups = urn.match(regExp).groups,
spaceId = _urn$match$groups.spaceId,
_entryId = _urn$match$groups.entryId;
var _urn$match = urn.match(regExp),
_urn$match2 = _slicedToArray(_urn$match, 3),
_ = _urn$match2[0],
spaceId = _urn$match2[1],
_entryId = _urn$match2[2];
var extractedLinkType = linkType.split(':')[1];

@@ -98,0 +103,0 @@ return lookupInEntityMap(entityMap, { linkType: extractedLinkType, entryId: _entryId, spaceId }) || UNRESOLVED_LINK;

var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"]) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } }; }();
function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }

@@ -79,10 +81,13 @@

var regExp = /.*:spaces\/(?<spaceId>[A-Za-z0-9]*)\/entries\/(?<entryId>[A-Za-z0-9]*)/;
var regExp = /.*:spaces\/([A-Za-z0-9]*)\/entries\/([A-Za-z0-9]*)/;
if (!regExp.test(urn)) {
return UNRESOLVED_LINK;
}
var _urn$match$groups = urn.match(regExp).groups,
spaceId = _urn$match$groups.spaceId,
_entryId = _urn$match$groups.entryId;
var _urn$match = urn.match(regExp),
_urn$match2 = _slicedToArray(_urn$match, 3),
_ = _urn$match2[0],
spaceId = _urn$match2[1],
_entryId = _urn$match2[2];
var extractedLinkType = linkType.split(':')[1];

@@ -89,0 +94,0 @@ return lookupInEntityMap(entityMap, { linkType: extractedLinkType, entryId: _entryId, spaceId: spaceId }) || UNRESOLVED_LINK;

{
"name": "contentful-resolve-response",
"version": "1.6.2",
"version": "1.6.3",
"description": "",

@@ -31,4 +31,4 @@ "main": "./dist/cjs/index.js",

"devDependencies": {
"@commitlint/cli": "^16.2.1",
"@commitlint/config-conventional": "^16.2.1",
"@commitlint/cli": "^17.4.0",
"@commitlint/config-conventional": "^17.4.0",
"@contentful/eslint-config-backend": "^10.0.0",

@@ -55,3 +55,3 @@ "@semantic-release/changelog": "^6.0.1",

"prettier": "^2.5.1",
"semantic-release": "^19.0.2"
"semantic-release": "^19.0.5"
},

@@ -58,0 +58,0 @@ "files": [

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc