@credal/actions 0.2.10 → 0.2.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7,7 +7,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
7
7
  step((generator = generator.apply(thisArg, _arguments || [])).next());
8
8
  });
9
9
  };
10
- import { createConnection } from "snowflake-sdk";
10
+ import snowflake from "snowflake-sdk";
11
11
  import * as forge from "node-forge";
12
12
  const getPrivateKeyCorrectFormat = (privateKey) => {
13
13
  try {
@@ -26,7 +26,7 @@ export function getSnowflakeConnection(snowflakeData, authParams) {
26
26
  const { account, username, warehouse, database } = snowflakeData;
27
27
  if (authToken) {
28
28
  // Always try to use Nango-Snowflake OAuth (unused for now)
29
- return createConnection({
29
+ return snowflake.createConnection({
30
30
  account: account,
31
31
  username: username,
32
32
  authenticator: "OAUTH",
@@ -38,7 +38,7 @@ export function getSnowflakeConnection(snowflakeData, authParams) {
38
38
  }
39
39
  else if (apiKey) {
40
40
  const privateKeyCorrectFormatString = getPrivateKeyCorrectFormat(apiKey);
41
- return createConnection({
41
+ return snowflake.createConnection({
42
42
  account: account,
43
43
  username: username,
44
44
  privateKey: privateKeyCorrectFormatString,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@credal/actions",
3
- "version": "0.2.10",
3
+ "version": "0.2.11",
4
4
  "type": "module",
5
5
  "description": "AI Actions by Credal AI",
6
6
  "sideEffects": false,
@@ -10,7 +10,7 @@
10
10
  "test": "npx ts-node -r tsconfig-paths/register --project tsconfig.json ",
11
11
  "jest-test": "jest",
12
12
  "build": "tsc",
13
- "dev": "ts-node-dev -r tsconfig-paths/register src/app.ts",
13
+ "dev": "node --loader ts-node/esm src/app.ts",
14
14
  "generate:types": "ts-node -r tsconfig-paths/register src/actions/parse.ts",
15
15
  "prepare": "npm run build",
16
16
  "lint": "eslint 'src/**/*.{js,ts}'",