@nion/extension-json-api-pagination
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -9,9 +9,9 @@ 'use strict'; | ||
var _lodash = require('lodash.get'); | ||
var _get = require('lodash/get'); | ||
var _lodash2 = _interopRequireDefault(_lodash); | ||
var _get2 = _interopRequireDefault(_get); | ||
var _lodash3 = require('lodash.mapvalues'); | ||
var _mapValues = require('lodash/mapValues'); | ||
var _lodash4 = _interopRequireDefault(_lodash3); | ||
var _mapValues2 = _interopRequireDefault(_mapValues); | ||
@@ -31,3 +31,3 @@ var _utilities = require('./utilities'); | ||
return (0, _lodash4.default)(extra.links, function (link, key) { | ||
return (0, _mapValues2.default)(extra.links, function (link, key) { | ||
switch (key) { | ||
@@ -52,3 +52,3 @@ case 'next': | ||
composeMeta: function composeMeta(options, resource) { | ||
if ((0, _lodash2.default)(resource, 'extra.links.next')) { | ||
if ((0, _get2.default)(resource, 'extra.links.next')) { | ||
return { canLoadMore: true }; | ||
@@ -55,0 +55,0 @@ } |
@@ -8,5 +8,5 @@ 'use strict'; | ||
var _lodash = require('lodash.get'); | ||
var _get = require('lodash/get'); | ||
var _lodash2 = _interopRequireDefault(_lodash); | ||
var _get2 = _interopRequireDefault(_get); | ||
@@ -22,5 +22,5 @@ var _url = require('url'); | ||
var urlMap = _url2.default.parse(link); | ||
var locationProtocol = (0, _lodash2.default)(document, 'location.protocol'); | ||
var locationProtocol = (0, _get2.default)(document, 'location.protocol'); | ||
if (!(0, _lodash2.default)(urlMap, 'protocol')) { | ||
if (!(0, _get2.default)(urlMap, 'protocol')) { | ||
return locationProtocol + '//' + urlMap.path + (urlMap.hash || ''); | ||
@@ -27,0 +27,0 @@ } else { |
{ | ||
"name": "@nion/extension-json-api-pagination", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "A nion extension for JSON API pagination", | ||
"main": "lib/index.js", | ||
"files": [ | ||
"/lib" | ||
], | ||
"directories": { | ||
@@ -17,4 +20,3 @@ "test": "test" | ||
"dependencies": { | ||
"lodash.get": "^4.4.2", | ||
"lodash.mapvalues": "^4.6.0", | ||
"lodash": "^4.17.20", | ||
"url": "^0.11.0" | ||
@@ -21,0 +23,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
2
4769
4
62
1
+ Addedlodash@^4.17.20
+ Addedlodash@4.17.21(transitive)
- Removedlodash.get@^4.4.2
- Removedlodash.mapvalues@^4.6.0
- Removedlodash.get@4.4.2(transitive)
- Removedlodash.mapvalues@4.6.0(transitive)