chatgpt-to-markdown 1.2.0 → 1.3.0

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.
Files changed (3) hide show
  1. package/README.md +1 -0
  2. package/index.js +1 -0
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -97,6 +97,7 @@ git push --follow-tags
97
97
 
98
98
  ## Release notes
99
99
 
100
+ - 1.3.0: 29 Sep 2023. Set create and update dates from chat
100
101
  - 1.2.0: 28 Sep 2023. Added test cases
101
102
  - 1.1.0: 26 Sep 2023. Add date format option
102
103
  - 1.0.0: 26 Sep 2023. Initial release
package/index.js CHANGED
@@ -108,6 +108,7 @@ async function chatgptToMarkdown(json, sourceDir, { dateFormat } = { dateFormat:
108
108
  .join("");
109
109
  const markdownContent = `${title}\n${metadata}\n${messages}`;
110
110
  await fs.writeFile(filePath, markdownContent, "utf8");
111
+ await fs.utimes(filePath, conversation.update_time, conversation.create_time);
111
112
  }
112
113
  }
113
114
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chatgpt-to-markdown",
3
- "version": "1.2.0",
3
+ "version": "1.3.0",
4
4
  "description": "Convert ChatGPT exported conversations.json to Markdown",
5
5
  "main": "index.js",
6
6
  "type": "module",