create-flow-os 0.0.17 → 0.0.18
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/package.json +2 -2
- package/src/init/scaffold.ts +4 -1
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-flow-os",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.18",
|
|
4
4
|
"license": "PolyForm-Shield-1.0.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@flow-os/client": "^0.0.
|
|
7
|
+
"@flow-os/client": "^0.0.18"
|
|
8
8
|
},
|
|
9
9
|
"bin": {
|
|
10
10
|
"create-flow-os": "./src/index.ts"
|
package/src/init/scaffold.ts
CHANGED
|
@@ -29,7 +29,10 @@ function isCreateFlowOsDev(): boolean {
|
|
|
29
29
|
export async function fetchFlowClientVersion(): Promise<string | undefined> {
|
|
30
30
|
const tag = isCreateFlowOsDev() ? "dev" : "latest";
|
|
31
31
|
try {
|
|
32
|
-
const res = await fetch(`${NPM_REGISTRY}/@flow-os/client
|
|
32
|
+
const res = await fetch(`${NPM_REGISTRY}/@flow-os/client?t=${Date.now()}`, {
|
|
33
|
+
cache: "no-store",
|
|
34
|
+
headers: { "Cache-Control": "no-cache", Pragma: "no-cache" },
|
|
35
|
+
});
|
|
33
36
|
if (!res.ok) return undefined;
|
|
34
37
|
const data = (await res.json()) as { "dist-tags"?: Record<string, string> };
|
|
35
38
|
const version = data["dist-tags"]?.[tag] ?? data["dist-tags"]?.["latest"];
|