|
1 | 1 | { |
2 | 2 | "name": "@relationalai/rai-sdk-javascript", |
3 | 3 | "description": "RelationalAI SDK for JavaScript", |
4 | | - "version": "0.5.9", |
| 4 | + "version": "0.5.10", |
5 | 5 | "author": { |
6 | 6 | "name": "RelationalAI", |
7 | 7 | "url": "https://relational.ai" |
|
62 | 62 | "build": "rm -rf ./dist && $npm_execpath run build:web && $npm_execpath run build:node && $npm_execpath run build:node:cjs", |
63 | 63 | "build:web": "microbundle -i ./index.web.ts -o ./dist/web --target web --alias node-fetch=./fetch.ts --external none --define __RAI_SDK_VERSION__=$npm_package_version", |
64 | 64 | "build:node": "microbundle -i ./index.node.ts -o ./dist/node --target node --define __RAI_SDK_VERSION__=$npm_package_version", |
65 | | - "build:node:cjs": "$npm_execpath run build:node -- --format cjs --alias lodash-es=lodash --generateTypes false", |
| 65 | + "build:node:cjs": "$npm_execpath run build:node -- --format cjs --alias lodash-es=lodash,node-fetch=node-fetch-commonjs --generateTypes false", |
66 | 66 | "dev:web": "$npm_execpath run build:web -- -w", |
67 | 67 | "dev:node": "$npm_execpath run build:node -- -w", |
68 | 68 | "format": "prettier --write ./src --loglevel warn", |
|
71 | 71 | "fix": "eslint --cache --fix . --ext js --ext ts --ext tsx", |
72 | 72 | "test": "jest", |
73 | 73 | "test:debug": "npx --node-arg=--inspect jest --runInBand --testTimeout=60000 --verbose --watch", |
| 74 | + "test:bundle": "node ./dist-test/esm-test.mjs && node ./dist-test/cjs-test.cjs", |
74 | 75 | "example": "node --es-module-specifier-resolution=node --loader ts-node/esm" |
75 | 76 | }, |
76 | 77 | "devDependencies": { |
|
99 | 100 | "dependencies": { |
100 | 101 | "apache-arrow": "8.0.0", |
101 | 102 | "config-ini-parser": "1.5.9", |
102 | | - "cross-fetch": "3.1.5", |
103 | 103 | "lodash": "4.17.21", |
104 | 104 | "lodash-es": "4.17.21", |
105 | | - "node-fetch": "3.2.4", |
| 105 | + "node-fetch": "3.1.1", |
| 106 | + "node-fetch-commonjs": "3.1.1", |
106 | 107 | "query-string": "7.1.0" |
107 | 108 | } |
108 | 109 | } |
0 commit comments