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 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 || 'http://localhost:3000';
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 buffer = Buffer.from(await response.arrayBuffer());
787
- writeFileSync(filename, buffer);
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "orizu",
3
- "version": "0.0.2",
3
+ "version": "0.0.4",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "bin": {
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 || 'http://localhost:3000'
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 buffer = Buffer.from(await response.arrayBuffer())
1148
- writeFileSync(filename, buffer)
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
  }