diff --git a/tests/examples/nodejs/node-example-raw.js b/tests/examples/nodejs/node-example-raw.js index 71425a89865fcdc4fd40f2b74076a510198d79b3..a644051ce149f4505b58b092fdd2b903da00e56f 100644 --- a/tests/examples/nodejs/node-example-raw.js +++ b/tests/examples/nodejs/node-example-raw.js @@ -5,7 +5,7 @@ */ // Get the td-connector package -const taos = require('td-connector'); +const taos = require('td2.0-connector'); /* We will connect to TDengine by passing an object comprised of connection options to taos.connect and store the * connection to the variable conn diff --git a/tests/examples/nodejs/node-example.js b/tests/examples/nodejs/node-example.js index 117977cc4f60ef4a55537b6c9943760a8e72cb1d..ce77af9d7cce8602dbefc1112895f7865b2e35b8 100644 --- a/tests/examples/nodejs/node-example.js +++ b/tests/examples/nodejs/node-example.js @@ -1,7 +1,7 @@ /* This example is to show the preferred way to use the td-connector */ /* To run, enter node path/to/node-example.js */ // Get the td-connector package -const taos = require('td-connector'); +const taos = require('td2.0-connector'); /* We will connect to TDengine by passing an object comprised of connection options to taos.connect and store the * connection to the variable conn