提交 b21cca1d 编写于 作者: X xleili

docs(cloud):update nodejs import outdated rest pkg for 3.0

上级 d9490624
const { options, connect } = require("@tdengine/client");
const { options, connect } = require("@tdengine/rest");
function checkError(result) {
if (result.getErrCode() !== undefined) {
......
......@@ -5,6 +5,6 @@
"license": "MIT",
"dependencies": {
"@tdengine/client": "^3.0.1",
"@tdengine/rest": "^3.0.0"
"@tdengine/rest": "^3.0.1"
}
}
const { options, connect } = require("@tdengine/client");
const { options, connect } = require("@tdengine/rest");
function checkError(result) {
if (result.getErrCode() !== undefined) {
......
const { options, connect } = require("td2.0-rest-connector");
const { options, connect } = require("@tdengine/rest");
options.url = process.env.TDENGINE_CLOUD_URL;
options.query = { token: process.env.TDENGINE_CLOUD_TOKEN };
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册