contentful-resolve-response
Advanced tools
Comparing version 1.8.0 to 1.8.1
@@ -82,4 +82,3 @@ 'use strict'; | ||
var getIdsFromUrn = function getIdsFromUrn(urn) { | ||
// TODO: Use the regex in resource-names package when it's public. | ||
var regExp = /.*:spaces\/(?<spaceId>[^/]+)(?:\/environments\/(?<environmentId>[^/]+))?\/entries\/(?<entityId>[^/]+)$/; | ||
var regExp = /.*:spaces\/([^/]+)(?:\/environments\/([^/]+))?\/entries\/([^/]+)$/; | ||
@@ -86,0 +85,0 @@ if (!regExp.test(urn)) { |
@@ -74,4 +74,3 @@ 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 getIdsFromUrn = function getIdsFromUrn(urn) { | ||
// TODO: Use the regex in resource-names package when it's public. | ||
var regExp = /.*:spaces\/(?<spaceId>[^/]+)(?:\/environments\/(?<environmentId>[^/]+))?\/entries\/(?<entityId>[^/]+)$/; | ||
var regExp = /.*:spaces\/([^/]+)(?:\/environments\/([^/]+))?\/entries\/([^/]+)$/; | ||
@@ -78,0 +77,0 @@ if (!regExp.test(urn)) { |
{ | ||
"name": "contentful-resolve-response", | ||
"version": "1.8.0", | ||
"version": "1.8.1", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "./dist/cjs/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
20141
414