@credal/actions 0.2.6 → 0.2.7

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 * as snowflake from "snowflake-sdk";
10
+ import { createConnection } 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 snowflake.createConnection({
29
+ return 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 snowflake.createConnection({
41
+ return 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.6",
3
+ "version": "0.2.7",
4
4
  "type": "module",
5
5
  "description": "AI Actions by Credal AI",
6
6
  "main": "dist/index.js",