orizu 0.0.2 → 0.0.4
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/http.js +1 -1
- package/dist/index.js +2 -2
- package/package.json +1 -1
- package/src/http.ts +1 -1
- package/src/index.ts +2 -2
package/dist/http.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { loadCredentials, saveCredentials } from './credentials.js';
|
|
2
2
|
export function getBaseUrl() {
|
|
3
|
-
return process.env.ORIZU_BASE_URL || '
|
|
3
|
+
return process.env.ORIZU_BASE_URL || 'https://orizu.ai';
|
|
4
4
|
}
|
|
5
5
|
function isExpired(expiresAt) {
|
|
6
6
|
const nowUnix = Math.floor(Date.now() / 1000);
|
package/dist/index.js
CHANGED
|
@@ -783,8 +783,8 @@ async function downloadAnnotations() {
|
|
|
783
783
|
const filename = outPathArg
|
|
784
784
|
? expandHomePath(outPathArg)
|
|
785
785
|
: fallbackName;
|
|
786
|
-
const
|
|
787
|
-
writeFileSync(filename,
|
|
786
|
+
const bytes = new Uint8Array(await response.arrayBuffer());
|
|
787
|
+
writeFileSync(filename, bytes);
|
|
788
788
|
console.log(`Saved ${format.toUpperCase()} export to ${filename}`);
|
|
789
789
|
}
|
|
790
790
|
async function main() {
|
package/package.json
CHANGED
package/src/http.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { loadCredentials, saveCredentials } from './credentials.js'
|
|
|
2
2
|
import { LoginResponse, StoredCredentials } from './types.js'
|
|
3
3
|
|
|
4
4
|
export function getBaseUrl(): string {
|
|
5
|
-
return process.env.ORIZU_BASE_URL || '
|
|
5
|
+
return process.env.ORIZU_BASE_URL || 'https://orizu.ai'
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
function isExpired(expiresAt: number): boolean {
|
package/src/index.ts
CHANGED
|
@@ -1144,8 +1144,8 @@ async function downloadAnnotations() {
|
|
|
1144
1144
|
? expandHomePath(outPathArg)
|
|
1145
1145
|
: fallbackName
|
|
1146
1146
|
|
|
1147
|
-
const
|
|
1148
|
-
writeFileSync(filename,
|
|
1147
|
+
const bytes = new Uint8Array(await response.arrayBuffer())
|
|
1148
|
+
writeFileSync(filename, bytes)
|
|
1149
1149
|
|
|
1150
1150
|
console.log(`Saved ${format.toUpperCase()} export to ${filename}`)
|
|
1151
1151
|
}
|