New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@nitunity/api-compiler

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nitunity/api-compiler - npm Package Compare versions

Comparing version 0.1.7 to 0.1.8

modules/paginator/index.js

12

modules/index.js
const request = require('./request')
const destroy = require('./unlink')
const engine = require('./engine')
const paginator = require('./support/pagination')
const paginator = require('./paginator')

@@ -59,7 +59,7 @@ module.exports.run = async (config) => {

.then((response) => {
let counter = 0
let counter = 1
let interval = setInterval( () => {
if (counter >= response.length) {
clearInterval(interval)
counter = 0
counter = 1
return

@@ -78,2 +78,3 @@ }

console.log('CategoryPosts is compiled')
cnt++
})

@@ -83,3 +84,2 @@ .catch(e => {

})
cnt++
} else {

@@ -156,3 +156,4 @@ clearInterval(int)

let slug = response[counter]
request.tagPosts(slug)
let cnt = 1;
request.tagPosts(slug, cnt)
.then((res) => {

@@ -164,2 +165,3 @@ params.tag = res

console.log('TagPosts is compiled')
cnt++
})

@@ -166,0 +168,0 @@ .catch(e => {

@@ -55,3 +55,3 @@ const fetch = require('node-fetch')

}
async tagPosts()
async tagPosts(slug, counter)
{

@@ -58,0 +58,0 @@ const response = await fetch(`${process.env.API_URL}/tags/${slug}?path=${process.env.APP_NAME}&page=${counter}`)

{
"name": "@nitunity/api-compiler",
"version": "0.1.7",
"version": "0.1.8",
"description": "This package is API for compiling HTML templates using Nunjucks template engine",

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