@inferencesh/app 0.1.5 → 0.1.7
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/file.d.ts +4 -0
- package/dist/file.js +4 -0
- package/dist/types.js +1 -1
- package/package.json +1 -1
package/dist/file.d.ts
CHANGED
|
@@ -59,6 +59,10 @@ export declare class File {
|
|
|
59
59
|
* Create a lazy File from a URL or path string.
|
|
60
60
|
* Does NOT download immediately — download happens when `getPath()` is called.
|
|
61
61
|
*
|
|
62
|
+
* Note: This is safe in JS because `getPath()` is async. The Python SDK had to
|
|
63
|
+
* revert to eager download because `.path` is a sync property that blocks the
|
|
64
|
+
* event loop when called from async code (e.g. Playwright + httpx apps).
|
|
65
|
+
*
|
|
62
66
|
* @example
|
|
63
67
|
* ```js
|
|
64
68
|
* const file = File.lazy("https://example.com/image.jpg");
|
package/dist/file.js
CHANGED
|
@@ -97,6 +97,10 @@ export class File {
|
|
|
97
97
|
* Create a lazy File from a URL or path string.
|
|
98
98
|
* Does NOT download immediately — download happens when `getPath()` is called.
|
|
99
99
|
*
|
|
100
|
+
* Note: This is safe in JS because `getPath()` is async. The Python SDK had to
|
|
101
|
+
* revert to eager download because `.path` is a sync property that blocks the
|
|
102
|
+
* event loop when called from async code (e.g. Playwright + httpx apps).
|
|
103
|
+
*
|
|
100
104
|
* @example
|
|
101
105
|
* ```js
|
|
102
106
|
* const file = File.lazy("https://example.com/image.jpg");
|
package/dist/types.js
CHANGED
package/package.json
CHANGED