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

hikaru-coffee

Package Overview
Dependencies
Maintainers
1
Versions
91
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hikaru-coffee - npm Package Compare versions

Comparing version 1.7.0 to 1.7.1

lib/type.js

17

lib/hikaru.js
// Generated by CoffeeScript 2.3.1
(function() {
var File, Generator, Hikaru, Logger, Processer, Promise, Renderer, Router, Site, Translator, URL, cheerio, coffee, colors, escapeHTML, fse, getPathFn, getURLFn, glob, highlight, marked, moment, nib, nunjucks, paginate, paginateCategories, path, removeControlChars, sortCategories, stylus, yaml;
var Category, File, Generator, Hikaru, Logger, Processer, Promise, Renderer, Router, Site, Tag, Translator, URL, cheerio, coffee, colors, escapeHTML, fse, getPathFn, getURLFn, glob, highlight, marked, moment, nib, nunjucks, paginate, paginateCategories, path, removeControlChars, sortCategories, stylus, yaml;

@@ -37,6 +37,4 @@ fse = require("fs-extra");

Site = require("./site");
({Site, File, Category, Tag} = require("./type"));
File = require("./file");
Renderer = require("./renderer");

@@ -492,7 +490,3 @@

if (!found) {
newCate = {
"name": cateName,
"posts": [post],
"subs": []
};
newCate = new Category(cateName, [post], []);
++categoriesLength;

@@ -555,6 +549,3 @@ postCategories.push(newCate);

if (!found) {
newTag = {
"name": tagName,
"posts": [post]
};
newTag = new Tag(tagName, [post]);
++tagsLength;

@@ -561,0 +552,0 @@ postTags.push(newTag);

// Generated by CoffeeScript 2.3.1
(function() {
var File, Processer, Promise, colors;
var Category, File, Processer, Promise, Site, Tag, colors;

@@ -9,3 +9,3 @@ colors = require("colors/safe");

File = require("./file");
({Site, File, Category, Tag} = require("./type"));

@@ -12,0 +12,0 @@ Processer = class Processer {

// Generated by CoffeeScript 2.3.1
(function() {
var File, Promise, Router, Site, URL, chokidar, colors, fse, getContentType, getPathFn, getURLFn, glob, http, isCurrentPathFn, moment, parseFrontMatter, path, yaml;
var Category, File, Promise, Router, Site, Tag, URL, chokidar, colors, fse, getContentType, getPathFn, getURLFn, glob, http, isCurrentPathFn, moment, parseFrontMatter, path, yaml;

@@ -25,6 +25,4 @@ fse = require("fs-extra");

Site = require("./site");
({Site, File, Category, Tag} = require("./type"));
File = require("./file");
({getPathFn, getURLFn, getContentType, isCurrentPathFn, parseFrontMatter} = require("./utils"));

@@ -36,3 +34,3 @@

this.saveFile = this.saveFile.bind(this);
this.processP = this.processP.bind(this);
this.processFile = this.processFile.bind(this);
this.processPosts = this.processPosts.bind(this);

@@ -132,5 +130,5 @@ this.processPages = this.processPages.bind(this);

async processP(p) {
var err, lang, language, ps;
lang = p["language"] || this.site.get("siteConfig")["language"];
async processFile(f) {
var err, fs, lang, language;
lang = f["language"] || this.site.get("siteConfig")["language"];
if (!(lang in this.translator.list())) {

@@ -147,3 +145,3 @@ try {

}
ps = (await this.processer.process(p, this.site.get("posts"), {
fs = (await this.processer.process(f, this.site.get("posts"), {
"site": this.site.raw(),

@@ -155,13 +153,13 @@ "siteConfig": this.site.get("siteConfig"),

"getPath": this.getPath,
"isCurrentPath": isCurrentPathFn(this.site.get("siteConfig")["rootDir"], p["docPath"]),
"isCurrentPath": isCurrentPathFn(this.site.get("siteConfig")["rootDir"], f["docPath"]),
"__": this.translator.getTranslateFn(lang)
}));
if (!(ps instanceof Array)) {
return [ps];
if (!(fs instanceof Array)) {
return [fs];
}
return ps;
return fs;
}
async processPosts() {
var i, j, l, len, p, processed, ref, ref1, results;
var i, j, l, len, processed, ps, ref, ref1, results;
this.site.get("posts").sort(function(a, b) {

@@ -173,5 +171,5 @@ return -(a["date"] - b["date"]);

for (j = 0, len = ref.length; j < len; j++) {
p = ref[j];
p = (await this.processP(p));
processed = processed.concat(p);
ps = ref[j];
ps = (await this.processFile(ps));
processed = processed.concat(ps);
}

@@ -199,3 +197,3 @@ this.site.set("posts", processed);

ps = ref[j];
ps = (await this.processP(ps));
ps = (await this.processFile(ps));
results.push((function() {

@@ -202,0 +200,0 @@ var l, len1, results1;

// Generated by CoffeeScript 2.3.1
(function() {
var File, Promise, URL, escapeHTML, fm, getContentType, getPathFn, getURLFn, isCurrentPathFn, paginate, paginateCategories, parseFrontMatter, path, removeControlChars, sortCategories;
var Category, File, Promise, Site, Tag, URL, escapeHTML, fm, getContentType, getPathFn, getURLFn, isCurrentPathFn, paginate, paginateCategories, parseFrontMatter, path, removeControlChars, sortCategories;

@@ -13,3 +13,3 @@ fm = require("front-matter");

File = require("./file");
({Site, File, Category, Tag} = require("./type"));

@@ -16,0 +16,0 @@ escapeHTML = function(str) {

{
"name": "hikaru-coffee",
"version": "1.7.0",
"version": "1.7.1",
"description": "A static site generator that generates routes based on directories naturally.",

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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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