mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-06-02 23:39:58 +00:00
### Description We used to use `typeof fetch === 'undefined'` as condition to detect the environment is Node.js or not. Before Node.js v18, this works. However, in Node.js v18, it introduced `fetch` function, so this check does not work any more. This PR changes the condition to check whether `process`, `process.versions` and `process.versions.node` exists. Checking whether `process` exists is not enough. This is because in some configuration, webpack may polyfill nodejs's process. |
||
|---|---|---|
| .. | ||
| backends | ||
| ort-schema | ||
| attribute-with-cache-key.ts | ||
| attribute.ts | ||
| backend.ts | ||
| execution-plan.ts | ||
| graph.ts | ||
| instrument.ts | ||
| model.ts | ||
| operators.ts | ||
| opset.ts | ||
| session-handler.ts | ||
| session.ts | ||
| tensor.ts | ||
| util.ts | ||