@inferencesh/app 0.1.9 → 0.1.10
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/README.md +1 -1
- package/dist/file.js +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -229,7 +229,7 @@ export class App {
|
|
|
229
229
|
- [documentation](https://inference.sh/docs) — getting started guides
|
|
230
230
|
- [app development guide](https://inference.sh/docs/extend/app-code) — writing app logic
|
|
231
231
|
- [client sdk](https://www.npmjs.com/package/@inferencesh/sdk) — calling apps from your code
|
|
232
|
-
- [discord](https://discord.gg/
|
|
232
|
+
- [discord](https://discord.gg/inference) — community support
|
|
233
233
|
|
|
234
234
|
## license
|
|
235
235
|
|
package/dist/file.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createHash } from "node:crypto";
|
|
2
|
-
import { createWriteStream, existsSync, mkdirSync, statSync, renameSync, unlinkSync, writeFileSync } from "node:fs";
|
|
2
|
+
import { createWriteStream, existsSync, mkdirSync, readdirSync, statSync, renameSync, unlinkSync, writeFileSync } from "node:fs";
|
|
3
3
|
import { basename, resolve, join } from "node:path";
|
|
4
4
|
import { homedir } from "node:os";
|
|
5
5
|
import { get as httpsGet } from "node:https";
|
|
@@ -243,7 +243,7 @@ export class File {
|
|
|
243
243
|
const cacheDir = join(File.getCacheDir(), "data_uri", hash);
|
|
244
244
|
// Check for existing cached file
|
|
245
245
|
if (existsSync(cacheDir)) {
|
|
246
|
-
const files =
|
|
246
|
+
const files = readdirSync(cacheDir);
|
|
247
247
|
if (files.length > 0) {
|
|
248
248
|
this._path = join(cacheDir, files[0]);
|
|
249
249
|
this._populateMetadata();
|
package/package.json
CHANGED