@notion-headless-cms/core 0.3.21 → 0.3.22
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/cache/memory.d.mts +25 -2
- package/dist/{memory-BT9rLPr1.d.mts → cache-DS81aOcC.d.mts} +2 -23
- package/dist/config-D4JQ_pmq.d.mts +150 -0
- package/dist/{errors-CC_x98vG.d.mts → errors-DTt9ii0i.d.mts} +12 -1
- package/dist/errors.d.mts +1 -1
- package/dist/errors.mjs +19 -0
- package/dist/errors.mjs.map +1 -1
- package/dist/hooks.d.mts +17 -2
- package/dist/index.d.mts +19 -247
- package/dist/index.mjs +26 -37
- package/dist/index.mjs.map +1 -1
- package/dist/{hooks-C6F2PG8x.d.mts → plugin-B795Ok3X.d.mts} +3 -15
- package/dist/preset/node.d.mts +33 -0
- package/dist/preset/node.mjs +26 -0
- package/dist/preset/node.mjs.map +1 -0
- package/dist/source-author.d.mts +3 -0
- package/dist/source-author.mjs +1 -0
- package/package.json +12 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@notion-headless-cms/core",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.22",
|
|
4
4
|
"description": "Core CMS engine for notion-headless-cms — fetch, transform, cache with stale-while-revalidate strategy",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"notion",
|
|
@@ -42,6 +42,14 @@
|
|
|
42
42
|
"./html": {
|
|
43
43
|
"types": "./dist/html.d.mts",
|
|
44
44
|
"import": "./dist/html.mjs"
|
|
45
|
+
},
|
|
46
|
+
"./source-author": {
|
|
47
|
+
"types": "./dist/source-author.d.mts",
|
|
48
|
+
"import": "./dist/source-author.mjs"
|
|
49
|
+
},
|
|
50
|
+
"./preset/node": {
|
|
51
|
+
"types": "./dist/preset/node.d.mts",
|
|
52
|
+
"import": "./dist/preset/node.mjs"
|
|
45
53
|
}
|
|
46
54
|
},
|
|
47
55
|
"files": [
|
|
@@ -55,16 +63,16 @@
|
|
|
55
63
|
"provenance": true
|
|
56
64
|
},
|
|
57
65
|
"peerDependencies": {
|
|
58
|
-
"@notion-headless-cms/
|
|
66
|
+
"@notion-headless-cms/markdown-html": "1.0.1"
|
|
59
67
|
},
|
|
60
68
|
"peerDependenciesMeta": {
|
|
61
|
-
"@notion-headless-cms/
|
|
69
|
+
"@notion-headless-cms/markdown-html": {
|
|
62
70
|
"optional": true
|
|
63
71
|
}
|
|
64
72
|
},
|
|
65
73
|
"devDependencies": {},
|
|
66
74
|
"scripts": {
|
|
67
|
-
"build": "tsdown src/index.ts src/errors.ts src/hooks.ts src/cache/memory.ts src/html.ts --format esm --dts --sourcemap --out-dir dist",
|
|
75
|
+
"build": "tsdown src/index.ts src/errors.ts src/hooks.ts src/cache/memory.ts src/html.ts src/source-author.ts src/preset/node.ts --format esm --dts --sourcemap --out-dir dist",
|
|
68
76
|
"typecheck": "tsc --noEmit",
|
|
69
77
|
"test": "vitest run",
|
|
70
78
|
"test:coverage": "vitest run --coverage --coverage.reporter=lcov --coverage.reporter=text",
|