ft-next-url-mapper
Advanced tools
Comparing version 1.3.0 to 1.3.3
{ | ||
"name": "ft-next-url-mapper", | ||
"version": "1.3.0", | ||
"version": "1.3.3", | ||
"description": "Holds the structure of Falcon (old-ft) to enable mapping between section pages (hopefully)", | ||
@@ -5,0 +5,0 @@ "main": "main.js", |
'use strict'; | ||
var capiHost = 'http://api.ft.com'; | ||
var internalCapiHost = 'http://contentapi.ft.com/'; | ||
module.exports = { | ||
endpoints : { | ||
search : capiHost+'/content/search/v1', | ||
ukNavigation : internalCapiHost+'/site/v1/navigations/ft-uk', | ||
intNavigation : internalCapiHost+'/site/v1/navigations/ft-intl' | ||
search : capiHost + '/content/search/v1', | ||
ukNavigation : capiHost + '/site/v1/navigations/ft-uk', | ||
intNavigation : capiHost + '/site/v1/navigations/ft-intl' | ||
} | ||
}; |
@@ -22,3 +22,2 @@ 'use strict'; | ||
return fetchBrands(url).then(function(response) { | ||
console.log(response); | ||
response.results[0].facets[0].facetElements.forEach(function (item, index) { | ||
@@ -25,0 +24,0 @@ data[0][index] = item.name.toLowerCase(); |
@@ -11,2 +11,3 @@ /*global it, describe, before */ | ||
before(function(){ | ||
this.timeout(5000); | ||
return brands.update(); | ||
@@ -13,0 +14,0 @@ }); |
@@ -11,2 +11,3 @@ /*global it, describe, before */ | ||
before(function(){ | ||
this.timeout(5000); | ||
return sections.update(); | ||
@@ -13,0 +14,0 @@ }); |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
22677
22
4