@lexho111/plainblog 0.5.4 → 0.5.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { save as saveToFile, load as loadFromFile } from "./fileModel.js";
1
+ import { save as saveToFile, load as loadFromFile } from "./FileModel.js";
2
2
 
3
3
  export default class FileAdapter {
4
4
  constructor(options) {
@@ -14,7 +14,7 @@ export default class FileAdapter {
14
14
  }
15
15
 
16
16
  async getBlogTitle() {
17
- let blogTitle = "TestBlog";
17
+ const blogTitle = "TestBlog";
18
18
  return new Promise((res, rej) => {
19
19
  res(blogTitle);
20
20
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lexho111/plainblog",
3
- "version": "0.5.4",
3
+ "version": "0.5.6",
4
4
  "description": "A tool for creating and serving a minimalist, single-page blog.",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -21,6 +21,7 @@
21
21
  "child_process": "^1.0.2",
22
22
  "fs": "^0.0.1-security",
23
23
  "http": "^0.0.1-security",
24
+ "node-fetch": "^3.3.2",
24
25
  "path": "^0.12.7",
25
26
  "postcss": "^8.4.35",
26
27
  "sass": "^1.97.1",
@@ -2,7 +2,7 @@ import Blog from "../Blog.js";
2
2
  import Article from "../Article.js";
3
3
  import { fetchData, postData } from "../model/APIModel.js";
4
4
  import { server } from "./simpleServer.js";
5
- import { load as loadFromFile } from "../model/fileModel.js";
5
+ import { load as loadFromFile } from "../model/FileModel.js";
6
6
 
7
7
  function generateRandomContent(length) {
8
8
  let str = "";
File without changes