@studiocms/cfetch 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/index.mjs +3 -4
- package/dist/stub.mjs +1 -2
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defaultConfig } from "./consts.mjs";
|
|
2
2
|
import { addVirtualImports, createResolver } from "./utils/integration.mjs";
|
|
3
|
-
import
|
|
3
|
+
import stub from "./stub.mjs";
|
|
4
4
|
import { Duration, Duration as Duration$1 } from "effect";
|
|
5
5
|
|
|
6
6
|
//#region src/index.ts
|
|
@@ -50,13 +50,12 @@ function cFetch(opts) {
|
|
|
50
50
|
"astro:config:done": ({ injectTypes }) => {
|
|
51
51
|
injectTypes({
|
|
52
52
|
filename: "cfetch.d.ts",
|
|
53
|
-
content:
|
|
53
|
+
content: stub
|
|
54
54
|
});
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
57
|
};
|
|
58
58
|
}
|
|
59
|
-
var src_default = cFetch;
|
|
60
59
|
|
|
61
60
|
//#endregion
|
|
62
|
-
export { Duration, cFetch,
|
|
61
|
+
export { Duration, cFetch, cFetch as default };
|
package/dist/stub.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@studiocms/cfetch",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"description": "Astro integration that allows you to have a cached fetch function in your Astro SSR project.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://studiocms.dev",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"@types/node": "^22.0.0",
|
|
55
55
|
"jest-extended": "^7.0.0",
|
|
56
56
|
"astro": "^5.17.1",
|
|
57
|
-
"effect": "^3.19.
|
|
57
|
+
"effect": "^3.19.16"
|
|
58
58
|
},
|
|
59
59
|
"peerDependencies": {
|
|
60
60
|
"astro": ">=5.16.6",
|