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

@tinypudding/puddy-lib

Package Overview
Dependencies
Maintainers
1
Versions
58
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tinypudding/puddy-lib - npm Package Compare versions

Comparing version 1.1.32 to 1.1.33

19

get/pagination.js
module.exports = function (query, page, total, url = '', extraClass = '', extraClass2 = '') {
// Fix URL
if (url) {
// Final URL Result
const finalURLResult = function (sqT = '') {
if (query) { return sqT + query + '&page='; } else { return 'page='; };
};
// Param Fixed
const params = require('../get/queryUrlJSON')(url);
if (Object.keys(params).length > 0) {
if (params.page) {
url = url.replace('&' + query + '=' + params.page, '').replace('?' + query + '=' + params.page, '?').replace('?&', '?');
url = url.replace(finalURLResult('&') + params.page, '').replace('?' + query + '=' + params.page, '?').replace('?&', '?');
if (Object.keys(params).length === 1) {
url += query + '=';
url += finalURLResult();
} else {
url += '&' + query + '=';
url += finalURLResult('&');
}
} else {
url += '&' + query + '=';
url += finalURLResult('&');
}
} else {
url += '?' + query + '=';
url += finalURLResult('?');
}
}

@@ -21,0 +30,0 @@

{
"name": "@tinypudding/puddy-lib",
"version": "1.1.32",
"version": "1.1.33",
"description": "Essential codes to run the other repositories from the Tiny Pudding Account.",

@@ -5,0 +5,0 @@ "main": "index.js",

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