Skip to content

Commit

Permalink
chore: bump typescript (run-llama#1205)
Browse files Browse the repository at this point in the history
  • Loading branch information
himself65 authored Sep 13, 2024
1 parent 24a3f05 commit 7eb3317
Show file tree
Hide file tree
Showing 18 changed files with 1,635 additions and 1,306 deletions.
2 changes: 1 addition & 1 deletion apps/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"docusaurus-plugin-typedoc": "1.0.5",
"typedoc": "0.26.6",
"typedoc-plugin-markdown": "4.2.6",
"typescript": "^5.5.4"
"typescript": "^5.6.2"
},
"browserslist": {
"production": [
Expand Down
2 changes: 1 addition & 1 deletion examples/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"devDependencies": {
"@types/node": "^22.5.1",
"tsx": "^4.19.0",
"typescript": "^5.5.4"
"typescript": "^5.6.2"
},
"scripts": {
"lint": "eslint ."
Expand Down
2 changes: 1 addition & 1 deletion examples/readers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@
"devDependencies": {
"@types/node": "^22.5.1",
"tsx": "^4.19.0",
"typescript": "^5.5.4"
"typescript": "^5.6.2"
}
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"prettier": "^3.3.3",
"prettier-plugin-organize-imports": "^4.0.0",
"turbo": "^2.1.0",
"typescript": "^5.5.4"
"typescript": "^5.6.2"
},
"packageManager": "[email protected]",
"pnpm": {
Expand Down
2 changes: 1 addition & 1 deletion packages/autotool/examples/02_nextjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@
"cross-env": "^7.0.3",
"postcss": "^8.4.41",
"tailwindcss": "^3.4.10",
"typescript": "^5.5.4"
"typescript": "^5.6.2"
}
}
2 changes: 1 addition & 1 deletion packages/autotool/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
"next": "14.2.7",
"rollup": "^4.21.2",
"tsx": "^4.19.0",
"typescript": "^5.5.4",
"typescript": "^5.6.2",
"vitest": "^2.0.5",
"webpack": "^5.94.0"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/workflow/context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export class Context {
this.#streamingQueue.push(event);
}

async *streamEvents(): AsyncGenerator<WorkflowEvent, void, undefined> {
async *streamEvents(): AsyncGenerator<WorkflowEvent, void, void> {
while (true) {
const event = this.#streamingQueue.shift();
if (event) {
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/workflow/workflow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export class Workflow {
return stepInfo.inputs.includes(eventType);
}

async *streamEvents(): AsyncGenerator<WorkflowEvent, void, unknown> {
async *streamEvents(): AsyncGenerator<WorkflowEvent, void> {
if (this.#contexts.size > 1) {
throw new Error(
"This workflow has multiple concurrent runs in progress and cannot stream events. " +
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"@cloudflare/workers-types": "^4.20240821.1",
"@vitest/runner": "1.5.3",
"@vitest/snapshot": "1.5.3",
"typescript": "^5.5.4",
"typescript": "^5.6.2",
"vitest": "1.5.3",
"wrangler": "^3.73.0"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/llamaindex/e2e/examples/nextjs-agent/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@
"eslint-config-next": "14.2.7",
"postcss": "^8.4.41",
"tailwindcss": "^3.4.10",
"typescript": "^5.5.4"
"typescript": "^5.6.2"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@
"@types/node": "^22.5.1",
"@types/react": "^18.3.5",
"@types/react-dom": "^18.3.0",
"typescript": "^5.5.4"
"typescript": "^5.6.2"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@
"eslint-config-next": "14.2.7",
"postcss": "^8.4.41",
"tailwindcss": "^3.4.10",
"typescript": "^5.5.4"
"typescript": "^5.6.2"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"@types/react-dom": "18.3.0",
"autoprefixer": "10.4.20",
"tailwindcss": "3.4.10",
"typescript": "5.5.4",
"typescript": "5.6.2",
"vite-plugin-wasm": "^3.3.0"
}
}
2 changes: 1 addition & 1 deletion packages/llamaindex/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
"glob": "^11.0.0",
"pg": "^8.12.0",
"pgvector": "0.2.0",
"typescript": "^5.5.4"
"typescript": "^5.6.2"
},
"engines": {
"node": ">=18.0.0"
Expand Down
4 changes: 2 additions & 2 deletions packages/llamaindex/src/llm/portkey.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ export class Portkey extends BaseLLM {
this.baseURL = baseURL;
this.session = getPortkeySession({
...rest,
apiKey: this.apiKey,
baseURL: this.baseURL,
apiKey: this.apiKey ?? null,
baseURL: this.baseURL ?? null,
});
}

Expand Down
6 changes: 3 additions & 3 deletions packages/llamaindex/src/readers/LlamaParseReader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -245,13 +245,13 @@ export class LlamaParseReader extends FileReader {
) {
super();
Object.assign(this, params);
params.apiKey = params.apiKey ?? getEnv("LLAMA_CLOUD_API_KEY");
if (!params.apiKey) {
const apiKey = params.apiKey ?? getEnv("LLAMA_CLOUD_API_KEY");
if (!apiKey) {
throw new Error(
"API Key is required for LlamaParseReader. Please pass the apiKey parameter or set the LLAMA_CLOUD_API_KEY environment variable.",
);
}
this.apiKey = params.apiKey;
this.apiKey = apiKey;

if (params.gpt4oMode) {
params.gpt4oApiKey =
Expand Down
2 changes: 1 addition & 1 deletion packages/wasm-tools/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"@swc/cli": "^0.4.0",
"@swc/core": "^1.7.22",
"assemblyscript": "^0.27.27",
"typescript": "^5.5.4"
"typescript": "^5.6.2"
},
"engines": {
"node": ">=18.0.0"
Expand Down
Loading

0 comments on commit 7eb3317

Please sign in to comment.