Compare commits
2 Commits
68e4de75bf
...
d70e660a79
Author | SHA1 | Date |
---|---|---|
|
d70e660a79 | |
|
4cda747412 |
|
@ -1,5 +1,7 @@
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
|
var fs = require('fs').promises;
|
||||||
|
|
||||||
function create(Desi, options) {
|
function create(Desi, options) {
|
||||||
var fsapi = Desi.fsapi;
|
var fsapi = Desi.fsapi;
|
||||||
options.blogdir = options.blogdir || options.working_path;
|
options.blogdir = options.blogdir || options.working_path;
|
||||||
|
@ -33,7 +35,7 @@ function create(Desi, options) {
|
||||||
|
|
||||||
fsapi.getCache = function () {
|
fsapi.getCache = function () {
|
||||||
return fs
|
return fs
|
||||||
.readFileAsync(options.blogdir, "/cache.json")
|
.readFile(options.blogdir, "/cache.json")
|
||||||
.catch(function (/*e*/) {
|
.catch(function (/*e*/) {
|
||||||
return {};
|
return {};
|
||||||
})
|
})
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "desirae",
|
"name": "desirae",
|
||||||
"version": "0.12.1",
|
"version": "0.12.2",
|
||||||
"lockfileVersion": 1,
|
"lockfileVersion": 1,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "desirae",
|
"name": "desirae",
|
||||||
"version": "0.12.1",
|
"version": "0.12.2",
|
||||||
"description": "An in-browser static blog library and static site generator. Similar to Jekyll, Octopress, Nanoc, etc",
|
"description": "An in-browser static blog library and static site generator. Similar to Jekyll, Octopress, Nanoc, etc",
|
||||||
"main": "desirae.js",
|
"main": "desirae.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|
Loading…
Reference in New Issue