yanki 0.3.0 → 0.3.1
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.
- package/dist/bin/cli.js +1 -1
- package/dist/lib/index.js +1 -1
- package/dist/sync-fLBwTuxC.js +222 -0
- package/package.json +3 -2
- package/readme.md +2 -2
- package/dist/sync-4dSh1bTq.js +0 -304
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "yanki",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "An ultra-simple CLI tool and TypeScript library for syncing Markdown to Anki flashcards.",
|
|
6
6
|
"repository": {
|
|
@@ -57,6 +57,7 @@
|
|
|
57
57
|
"chalk": "^5.3.0",
|
|
58
58
|
"globby": "^14.0.1",
|
|
59
59
|
"rehype-mathjax": "^6.0.0",
|
|
60
|
+
"rehype-parse": "^9.0.0",
|
|
60
61
|
"yargs": "^17.7.2"
|
|
61
62
|
},
|
|
62
63
|
"devDependencies": {
|
|
@@ -65,6 +66,7 @@
|
|
|
65
66
|
"bumpp": "^9.4.1",
|
|
66
67
|
"deepmerge-ts": "^7.0.3",
|
|
67
68
|
"filenamify": "^6.0.0",
|
|
69
|
+
"hast-util-to-text": "^4.0.2",
|
|
68
70
|
"nanoid": "^5.0.7",
|
|
69
71
|
"path-browserify-esm": "^1.0.4",
|
|
70
72
|
"pkgroll": "^2.1.1",
|
|
@@ -83,7 +85,6 @@
|
|
|
83
85
|
"remark-remove-comments": "^1.0.1",
|
|
84
86
|
"remark-wiki-link": "^2.0.1",
|
|
85
87
|
"sort-keys": "^5.0.0",
|
|
86
|
-
"string-strip-html": "^13.4.8",
|
|
87
88
|
"tsx": "^4.15.4",
|
|
88
89
|
"type-fest": "^4.20.0",
|
|
89
90
|
"typescript": "^5.4.5",
|
package/readme.md
CHANGED
|
@@ -496,9 +496,9 @@ The Yanki TypeScript / JavaScript library is idempotent, so you can run it in a
|
|
|
496
496
|
|
|
497
497
|
There's one exception, the `syncFiles(...)` function, which by default relies on file system access to work.
|
|
498
498
|
|
|
499
|
-
To retain `syncFiles(...)`'s utility in a browser environment, has the optional arguments `readFile` and `
|
|
499
|
+
To retain `syncFiles(...)`'s utility in a browser environment, has the optional arguments `readFile`, `writeFile`, and `rename`, which are implemented by `node:fs/promises` by default in Node environments.
|
|
500
500
|
|
|
501
|
-
Running Yanki in a browser environment
|
|
501
|
+
Running Yanki in a browser environment requires implementing and passing `readFile`, `writeFile`, and `rename` implementations to `syncFiles(...)` that are suited to your particular use case. (A warning will be provided if you neglect to do so.)
|
|
502
502
|
|
|
503
503
|
The rest of the library should work fine in both contexts without special measures.
|
|
504
504
|
|