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

@nion/extension-json-api-pagination

Package Overview
Dependencies
Maintainers
5
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nion/extension-json-api-pagination - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

12

lib/index.js

@@ -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 @@ },

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