Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

snowflake-sdk

Package Overview
Dependencies
Maintainers
2
Versions
64
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

snowflake-sdk - npm Package Compare versions

Comparing version 1.10.1 to 1.11.0

index.d.ts

2

lib/agent/cert_util.js

@@ -26,3 +26,3 @@ /*

/*
* Copyright (c) 2015-2019 Snowflake Computing Inc. All rights reserved.
* Copyright (c) 2015-2024 Snowflake Computing Inc. All rights reserved.
*/

@@ -29,0 +29,0 @@

@@ -25,2 +25,6 @@ /*

/*
* Copyright (c) 2015-2024 Snowflake Computing Inc. All rights reserved.
*/
'use strict';

@@ -27,0 +31,0 @@

/*
* Copyright (c) 2015-2019 Snowflake Computing Inc. All rights reserved.
* Copyright (c) 2015-2024 Snowflake Computing Inc. All rights reserved.
*/

@@ -4,0 +4,0 @@

/*
* Copyright (c) 2015-2023 Snowflake Computing Inc. All rights reserved.
* Copyright (c) 2015-2024 Snowflake Computing Inc. All rights reserved.
*/

@@ -4,0 +4,0 @@

/*
* Copyright (c) 2015-2021 Snowflake Computing Inc. All rights reserved.
* Copyright (c) 2015-2024 Snowflake Computing Inc. All rights reserved.
*/

@@ -4,0 +4,0 @@

/*
* Copyright (c) 2015-2021 Snowflake Computing Inc. All rights reserved.
* Copyright (c) 2015-2024 Snowflake Computing Inc. All rights reserved.
*/

@@ -4,0 +4,0 @@

/*
* Copyright (c) 2015-2021 Snowflake Computing Inc. All rights reserved.
* Copyright (c) 2015-2024 Snowflake Computing Inc. All rights reserved.
*/

@@ -4,0 +4,0 @@

/*
* Copyright (c) 2015-2021 Snowflake Computing Inc. All rights reserved.
* Copyright (c) 2015-2024 Snowflake Computing Inc. All rights reserved.
*/

@@ -4,0 +4,0 @@

/*
* Copyright (c) 2015-2021 Snowflake Computing Inc. All rights reserved.
* Copyright (c) 2015-2024 Snowflake Computing Inc. All rights reserved.
*/

@@ -4,0 +4,0 @@

/*
* Copyright (c) 2015-2021 Snowflake Computing Inc. All rights reserved.
* Copyright (c) 2015-2024 Snowflake Computing Inc. All rights reserved.
*/

@@ -247,5 +247,7 @@

// intended destination url to Snowflake.
if (postBackUrl.substring(0, 20) !== fullUrl.substring(0, 20)) {
throw new Error(util.format('The specified authenticator and destination URL ' +
'in the SAML assertion do not match: expected: %s postback: %s', fullUrl, postBackUrl));
if (!connectionConfig.getDisableSamlURLCheck()) {
if (postBackUrl.substring(0, 20) !== fullUrl.substring(0, 20)) {
throw new Error(util.format('The specified authenticator and destination URL ' +
'in the SAML assertion do not match: expected: %s postback: %s', fullUrl, postBackUrl));
}
}

@@ -252,0 +254,0 @@ samlResponse = responseHtml;

/*
* Copyright (c) 2015-2021 Snowflake Computing Inc. All rights reserved.
* Copyright (c) 2015-2024 Snowflake Computing Inc. All rights reserved.
*/

@@ -4,0 +4,0 @@

/*
* Copyright (c) 2015-2021 Snowflake Computing Inc. All rights reserved.
* Copyright (c) 2015-2024 Snowflake Computing Inc. All rights reserved.
*/

@@ -4,0 +4,0 @@

/*
* Copyright (c) 2015-2023 Snowflake Computing Inc. All rights reserved.
* Copyright (c) 2015-2024 Snowflake Computing Inc. All rights reserved.
*/

@@ -4,0 +4,0 @@

/*
* Copyright (c) 2015-2019 Snowflake Computing Inc. All rights reserved.
* Copyright (c) 2015-2024 Snowflake Computing Inc. All rights reserved.
*/

@@ -4,0 +4,0 @@

/*
* Copyright (c) 2023 Snowflake Computing Inc. All rights reserved.
* Copyright (c) 2015-2024 Snowflake Computing Inc. All rights reserved.
*/
const os = require('os');

@@ -5,0 +6,0 @@ const path = require('path');

/*
* Copyright (c) 2015-2021 Snowflake Computing Inc. All rights reserved.
* Copyright (c) 2015-2024 Snowflake Computing Inc. All rights reserved.
*/
const Logger = require('../logger');

@@ -5,0 +6,0 @@

/*
* Copyright (c) 2015-2021 Snowflake Computing Inc. All rights reserved.
* Copyright (c) 2015-2024 Snowflake Computing Inc. All rights reserved.
*/

@@ -15,2 +15,3 @@

const RowMode = require('./../constants/row_mode');
const DataTypes = require('./result/data_types');
const WAIT_FOR_BROWSER_ACTION_TIMEOUT = 120000;

@@ -56,3 +57,7 @@ const DEFAULT_PARAMS =

'retryTimeout',
'forceGCPUseDownscopedCredential'
'disableConsoleLogin',
'forceGCPUseDownscopedCredential',
'disableSamlUrlCheck',
'representNullAsStringNull',
'disableSamlURLCheck'
];

@@ -496,2 +501,17 @@ const Logger = require('../logger');

if (Util.exists(options.representNullAsStringNull)) {
Errors.checkArgumentValid(Util.isBoolean(options.representNullAsStringNull),
ErrorCodes.ERR_CONN_CREATE_INVALID_REPRESENT_NULL_AS_STRING_NULL);
DataTypes.setIsRepresentNullAsStringNull(options.representNullAsStringNull);
}
let disableSamlURLCheck = false;
if (Util.exists(options.disableSamlURLCheck)) {
Errors.checkArgumentValid(Util.isBoolean(options.disableSamlURLCheck),
ErrorCodes.ERR_CONN_CREATE_INVALID_DISABLE_SAML_URL_CHECK);
disableSamlURLCheck = options.disableSamlURLCheck;
}
/**

@@ -777,2 +797,11 @@ * Returns an object that contains information about the proxy hostname, port,

/**
* Returns whether the SAML URL check is enabled or not.
*
* @returns {Boolean}
*/
this.getDisableSamlURLCheck = function () {
return disableSamlURLCheck;
};
// save config options

@@ -779,0 +808,0 @@ this.username = options.username;

/*
* Copyright (c) 2015-2019 Snowflake Computing Inc. All rights reserved.
* Copyright (c) 2015-2024 Snowflake Computing Inc. All rights reserved.
*/

@@ -4,0 +4,0 @@

/*
* Copyright (c) 2015-2021 Snowflake Computing Inc. All rights reserved.
* Copyright (c) 2015-2024 Snowflake Computing Inc. All rights reserved.
*/
const { v4: uuidv4 } = require('uuid');

@@ -5,0 +6,0 @@ const Url = require('url');

/*
* Copyright (c) 2015-2021 Snowflake Computing Inc. All rights reserved.
* Copyright (c) 2015-2024 Snowflake Computing Inc. All rights reserved.
*/

@@ -4,0 +4,0 @@

/*
* Copyright (c) 2015-2021 Snowflake Computing Inc. All rights reserved.
* Copyright (c) 2015-2024 Snowflake Computing Inc. All rights reserved.
*/

@@ -4,0 +4,0 @@

/*
* Copyright (c) 2015-2019 Snowflake Computing Inc. All rights reserved.
* Copyright (c) 2015-2024 Snowflake Computing Inc. All rights reserved.
*/

@@ -11,7 +11,6 @@

const SfTimestamp = require('./sf_timestamp');
const DataTypes = require('./data_types');
const SqlTypes = require('./data_types').SqlTypes;
const bigInt = require('big-integer');
const NULL_UPPERCASE = 'NULL';
/**

@@ -577,3 +576,3 @@ * Creates a new Column.

function toStringFromNumber(columnValue) {
return (columnValue !== null) ? columnValue.raw : NULL_UPPERCASE;
return (columnValue !== null) ? columnValue.raw : DataTypes.getNullValue();
}

@@ -590,3 +589,3 @@

return (columnValue !== null) ? String(columnValue).toUpperCase() :
NULL_UPPERCASE;
DataTypes.getNullValue();
}

@@ -602,3 +601,3 @@

function toStringFromDate(columnValue) {
return (columnValue !== null) ? columnValue.toJSON() : NULL_UPPERCASE;
return (columnValue !== null) ? columnValue.toJSON() : DataTypes.getNullValue();
}

@@ -614,3 +613,3 @@

function toStringFromTime(columnValue) {
return (columnValue !== null) ? columnValue.toJSON() : NULL_UPPERCASE;
return (columnValue !== null) ? columnValue.toJSON() : DataTypes.getNullValue();
}

@@ -626,3 +625,3 @@

function toStringFromTimestamp(columnValue) {
return (columnValue !== null) ? columnValue.toJSON() : NULL_UPPERCASE;
return (columnValue !== null) ? columnValue.toJSON() : DataTypes.getNullValue();
}

@@ -638,3 +637,3 @@

function toStringFromVariant(columnValue) {
return (columnValue !== null) ? JSON.stringify(columnValue) : NULL_UPPERCASE;
return (columnValue !== null) ? JSON.stringify(columnValue) : DataTypes.getNullValue();
}

@@ -650,3 +649,3 @@

function toStringFromString(columnValue) {
return (columnValue !== null) ? columnValue : NULL_UPPERCASE;
return (columnValue !== null) ? columnValue : DataTypes.getNullValue();
}

@@ -662,3 +661,3 @@

function toStringFromBinary(columnValue) {
return (columnValue !== null) ? columnValue.toStringSf() : NULL_UPPERCASE;
return (columnValue !== null) ? columnValue.toStringSf() : DataTypes.getNullValue();
}

@@ -665,0 +664,0 @@

/*
* Copyright (c) 2015-2019 Snowflake Computing Inc. All rights reserved.
* Copyright (c) 2015-2024 Snowflake Computing Inc. All rights reserved.
*/

@@ -224,2 +224,12 @@

let isRepresentNullAsStringNull = true;
exports.setIsRepresentNullAsStringNull = function (option) {
isRepresentNullAsStringNull = option;
};
exports.getNullValue = function () {
return isRepresentNullAsStringNull ? 'NULL' : null;
};
const sqlTypeValues = sqlTypes.values;

@@ -226,0 +236,0 @@ const nativeTypeValues = nativeTypes.values;

/*
* Copyright (c) 2015-2019 Snowflake Computing Inc. All rights reserved.
* Copyright (c) 2015-2024 Snowflake Computing Inc. All rights reserved.
*/

@@ -4,0 +4,0 @@

/*
* Copyright (c) 2015-2021 Snowflake Computing Inc. All rights reserved.
* Copyright (c) 2015-2024 Snowflake Computing Inc. All rights reserved.
*/

@@ -4,0 +4,0 @@

/*
* Copyright (c) 2015-2021 Snowflake Computing Inc. All rights reserved.
* Copyright (c) 2015-2024 Snowflake Computing Inc. All rights reserved.
*/

@@ -4,0 +4,0 @@

/*
* Copyright (c) 2015-2019 Snowflake Computing Inc. All rights reserved.
* Copyright (c) 2015-2024 Snowflake Computing Inc. All rights reserved.
*/

@@ -4,0 +4,0 @@

/*
* Copyright (c) 2015-2019 Snowflake Computing Inc. All rights reserved.
* Copyright (c) 2015-2024 Snowflake Computing Inc. All rights reserved.
*/

@@ -63,5 +63,5 @@

// create a moment object that includes the epoch seconds and the incremental nano seconds
let moment = Moment(epochSeconds * 1000);
moment.nanoSeconds = nanoSeconds;
// Milliseconds are truncated to avoid rounding issues, and the decimal part is not useful since Moment only supports milliseconds precision
const milliseconds = Math.trunc(nanoSeconds / 1000000);
let moment = Moment((epochSeconds * 1000) + milliseconds);

@@ -68,0 +68,0 @@ // set the moment's timezone

/*
* Copyright (c) 2015-2019 Snowflake Computing Inc. All rights reserved.
* Copyright (c) 2015-2024 Snowflake Computing Inc. All rights reserved.
*/

@@ -4,0 +4,0 @@

/*
* Copyright (c) 2015-2023 Snowflake Computing Inc. All rights reserved.
* Copyright (c) 2015-2024 Snowflake Computing Inc. All rights reserved.
*/

@@ -4,0 +4,0 @@

/*
* Copyright (c) 2015-2019 Snowflake Computing Inc. All rights reserved.
* Copyright (c) 2015-2024 Snowflake Computing Inc. All rights reserved.
*/

@@ -4,0 +4,0 @@

/*
* Copyright (c) 2015-2019 Snowflake Computing Inc. All rights reserved.
* Copyright (c) 2015-2024 Snowflake Computing Inc. All rights reserved.
*/

@@ -68,3 +68,3 @@

exports[404040] = 'Invalid browser timeout value. The specified value must be a positive number.';
exports[404041] = 'Invalid disablQueryContextCache. The specified value must be a boolean.';
exports[404041] = 'Invalid disableQueryContextCache. The specified value must be a boolean.';
exports[404042] = 'Invalid includeRetryReason. The specified value must be a boolean.';

@@ -76,3 +76,5 @@ exports[404043] = 'Invalid clientConfigFile value. The specified value must be a string.';

exports[404047] = 'Invalid disableConsoleLogin. The specified value must be a boolean';
exports[404048] = 'Invalid disableGCPTokenUpload. The specified value must be a boolean';
exports[404048] = 'Invalid forceGCPUseDownscopedCredential. The specified value must be a boolean';
exports[404050] = 'Invalid representNullAsStringNull. The specified value must be a boolean';
exports[404051] = 'Invalid disableSamlURLCheck. The specified value must be a boolean';

@@ -79,0 +81,0 @@ // 405001

/*
* Copyright (c) 2015-2019 Snowflake Computing Inc. All rights reserved.
* Copyright (c) 2015-2024 Snowflake Computing Inc. All rights reserved.
*/

@@ -4,0 +4,0 @@

/*
* Copyright (c) 2023 Snowflake Computing Inc. All rights reserved.
* Copyright (c) 2015-2024 Snowflake Computing Inc. All rights reserved.
*/

@@ -4,0 +4,0 @@

/*
* Copyright (c) 2015-2019 Snowflake Computing Inc. All rights reserved.
* Copyright (c) 2015-2024 Snowflake Computing Inc. All rights reserved.
*/
const Errors = require('../errors');

@@ -5,0 +6,0 @@

/*
* Copyright (c) 2015-2019 Snowflake Computing Inc. All rights reserved.
* Copyright (c) 2015-2024 Snowflake Computing Inc. All rights reserved.
*/

@@ -4,0 +4,0 @@

/*
* Copyright (c) 2015-2019 Snowflake Computing Inc. All rights reserved.
* Copyright (c) 2015-2024 Snowflake Computing Inc. All rights reserved.
*/

@@ -81,2 +81,4 @@

codes.ERR_CONN_CREATE_INVALID_FORCE_GCP_USE_DOWNSCOPED_CREDENTIAL = 404048;
codes.ERR_CONN_CREATE_INVALID_REPRESENT_NULL_AS_STRING_NULL = 404050;
codes.ERR_CONN_CREATE_INVALID_DISABLE_SAML_URL_CHECK = 404051;

@@ -83,0 +85,0 @@ // 405001

@@ -1,4 +0,4 @@

///*
// * Copyright (c) 2015-2021 Snowflake Computing Inc. All rights reserved.
// */
/*
* Copyright (c) 2015-2024 Snowflake Computing Inc. All rights reserved.
*/

@@ -5,0 +5,0 @@ const EncryptionMetadata = require('./encrypt_util').EncryptionMetadata;

/*
* Copyright (c) 2015-2021 Snowflake Computing Inc. All rights reserved.
* Copyright (c) 2015-2024 Snowflake Computing Inc. All rights reserved.
*/

@@ -4,0 +4,0 @@

/*
* Copyright (c) 2015-2021 Snowflake Computing Inc. All rights reserved.
* Copyright (c) 2015-2024 Snowflake Computing Inc. All rights reserved.
*/

@@ -628,3 +628,3 @@

const currFileObj = {};
currFileObj['srcFileName'] = matchingFileName.substring(matchingFileName.lastIndexOf('/') + 1);
currFileObj['srcFileName'] = path.basename(matchingFileName);
currFileObj['srcFilePath'] = matchingFileName;

@@ -631,0 +631,0 @@ currFileObj['srcFileSize'] = fileInfo.size;

/*
* Copyright (c) 2015-2021 Snowflake Computing Inc. All rights reserved.
* Copyright (c) 2015-2024 Snowflake Computing Inc. All rights reserved.
*/

@@ -4,0 +4,0 @@

/*
* Copyright (c) 2015-2021 Snowflake Computing Inc. All rights reserved.
* Copyright (c) 2015-2024 Snowflake Computing Inc. All rights reserved.
*/

@@ -4,0 +4,0 @@

/*
* Copyright (c) 2015-2021 Snowflake Computing Inc. All rights reserved.
* Copyright (c) 2015-2024 Snowflake Computing Inc. All rights reserved.
*/

@@ -4,0 +4,0 @@

/*
* Copyright (c) 2015-2021 Snowflake Computing Inc. All rights reserved.
* Copyright (c) 2015-2024 Snowflake Computing Inc. All rights reserved.
*/

@@ -4,0 +4,0 @@

/*
* Copyright (c) 2015-2021 Snowflake Computing Inc. All rights reserved.
* Copyright (c) 2015-2024 Snowflake Computing Inc. All rights reserved.
*/

@@ -4,0 +4,0 @@

/*
* Copyright (c) 2015-2021 Snowflake Computing Inc. All rights reserved.
* Copyright (c) 2015-2024 Snowflake Computing Inc. All rights reserved.
*/

@@ -4,0 +4,0 @@

/*
* Copyright (c) 2015-2019 Snowflake Computing Inc. All rights reserved.
* Copyright (c) 2015-2024 Snowflake Computing Inc. All rights reserved.
*/

@@ -4,0 +4,0 @@

/*
* Copyright (c) 2015-2019 Snowflake Computing Inc. All rights reserved.
* Copyright (c) 2015-2024 Snowflake Computing Inc. All rights reserved.
*/

@@ -4,0 +4,0 @@

/*
* Copyright (c) 2015-2019 Snowflake Computing Inc. All rights reserved.
* Copyright (c) 2015-2024 Snowflake Computing Inc. All rights reserved.
*/

@@ -4,0 +4,0 @@

/*
* Copyright (c) 2015-2019 Snowflake Computing Inc. All rights reserved.
* Copyright (c) 2015-2024 Snowflake Computing Inc. All rights reserved.
*/

@@ -4,0 +4,0 @@

/*
* Copyright (c) 2015-2023 Snowflake Computing Inc. All rights reserved.
* Copyright (c) 2015-2024 Snowflake Computing Inc. All rights reserved.
*/

@@ -4,0 +4,0 @@

/*
* Copyright (c) 2015-2023 Snowflake Computing Inc. All rights reserved.
* Copyright (c) 2015-2024 Snowflake Computing Inc. All rights reserved.
*/

@@ -4,0 +4,0 @@

/*
* Copyright (c) 2023 Snowflake Computing Inc. All rights reserved.
* Copyright (c) 2015-2024 Snowflake Computing Inc. All rights reserved.
*/
const os = require('os');

@@ -5,0 +6,0 @@ const path = require('path');

/*
* Copyright (c) 2015-2023 Snowflake Computing Inc. All rights reserved.
* Copyright (c) 2015-2024 Snowflake Computing Inc. All rights reserved.
*/

@@ -4,0 +4,0 @@

/*
* Copyright (c) 2015-2019 Snowflake Computing Inc. All rights reserved.
* Copyright (c) 2015-2024 Snowflake Computing Inc. All rights reserved.
*/

@@ -4,0 +4,0 @@

/*
* Copyright (c) 2023 Snowflake Computing Inc. All rights reserved.
* Copyright (c) 2015-2024 Snowflake Computing Inc. All rights reserved.
*/

@@ -4,0 +4,0 @@

/*
* Copyright (c) 2021 Snowflake Computing Inc. All rights reserved.
* Copyright (c) 2015-2024 Snowflake Computing Inc. All rights reserved.
*/

@@ -4,0 +4,0 @@

/*
* Copyright (c) 2015-2019 Snowflake Computing Inc. All rights reserved.
* Copyright (c) 2015-2024 Snowflake Computing Inc. All rights reserved.
*/

@@ -4,0 +4,0 @@

/*
* Copyright (c) 2015-2021 Snowflake Computing Inc. All rights reserved.
* Copyright (c) 2015-2024 Snowflake Computing Inc. All rights reserved.
*/

@@ -4,0 +4,0 @@

/*
* Copyright (c) 2015-2021 Snowflake Computing Inc. All rights reserved.
* Copyright (c) 2015-2024 Snowflake Computing Inc. All rights reserved.
*/

@@ -4,0 +4,0 @@

/*
* Copyright (c) 2015-2023 Snowflake Computing Inc. All rights reserved.
* Copyright (c) 2015-2024 Snowflake Computing Inc. All rights reserved.
*/
const Logger = require('./logger');

@@ -5,0 +6,0 @@

/*
* Copyright (c) 2015-2021 Snowflake Computing Inc. All rights reserved.
*
* Copyright (c) 2015-2024 Snowflake Computing Inc. All rights reserved.
*/

@@ -5,0 +4,0 @@

{
"name": "snowflake-sdk",
"version": "1.10.1",
"version": "1.11.0",
"description": "Node.js driver for Snowflake",

@@ -11,3 +11,2 @@ "dependencies": {

"@techteamer/ocsp": "1.0.1",
"agent-base": "^6.0.2",
"asn1.js-rfc2560": "^5.0.0",

@@ -21,9 +20,7 @@ "asn1.js-rfc5280": "^3.0.0",

"browser-request": "^0.3.3",
"debug": "^3.2.6",
"expand-tilde": "^2.0.2",
"extend": "^3.0.2",
"fast-xml-parser": "^4.2.5",
"fastest-levenshtein": "^1.0.16",
"generic-pool": "^3.8.2",
"glob": "^9.0.0",
"glob": "^10.0.0",
"https-proxy-agent": "^7.0.2",

@@ -60,2 +57,3 @@ "jsonwebtoken": "^9.0.0",

},
"typings": "./index.d.ts",
"scripts": {

@@ -84,2 +82,2 @@ "lint:check": "eslint",

"license": "Apache-2.0"
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc