Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SNOW-1915375: Drop copyright header in comments from Snowflake repositories #1009

Merged
merged 1 commit into from
Feb 18, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
/*
* Copyright (c) 2015-2024 Snowflake Computing Inc. All rights reserved.
*/

/**
* The snowflake-sdk module provides an instance to connect to the Snowflake server
* @see [source] {@link https://docs.snowflake.com/en/developer-guide/node-js/nodejs-driver}
Expand Down
4 changes: 0 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
/*
* Copyright (c) 2015-2019 Snowflake Computing Inc. All rights reserved.
*/

module.exports = require('./lib/snowflake');
4 changes: 0 additions & 4 deletions lib/agent/cert_util.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,6 @@
* SOFTWARE.
*/

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

'use strict';

const process = require('process');
Expand Down
4 changes: 0 additions & 4 deletions lib/agent/check.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,6 @@
* SOFTWARE.
*/

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

'use strict';

const http = require('http');
Expand Down
4 changes: 0 additions & 4 deletions lib/agent/https_ocsp_agent.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
/*
* Copyright (c) 2015-2024 Snowflake Computing Inc. All rights reserved.
*/

const HttpsAgent = require('https').Agent;
const SocketUtil = require('./socket_util');

Expand Down
4 changes: 0 additions & 4 deletions lib/agent/https_proxy_agent.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
/*
* Copyright (c) 2015-2024 Snowflake Computing Inc. All rights reserved.
*/

const tls = require('tls');
const { HttpsProxyAgent } = require('https-proxy-agent');
const SocketUtil = require('./socket_util');
Expand Down
4 changes: 0 additions & 4 deletions lib/agent/ocsp_response_cache.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
/*
* Copyright (c) 2015-2024 Snowflake Computing Inc. All rights reserved.
*/

const http = require('http');
const url = require('url');
const util = require('util');
Expand Down
4 changes: 0 additions & 4 deletions lib/agent/socket_util.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
/*
* Copyright (c) 2015-2024 Snowflake Computing Inc. All rights reserved.
*/

const Check = require('./check');
const Logger = require('../logger');
const GlobalConfig = require('../global_config');
Expand Down
4 changes: 0 additions & 4 deletions lib/authentication/auth_default.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
/*
* Copyright (c) 2015-2024 Snowflake Computing Inc. All rights reserved.
*/

const mfaAuthenticator = require ('./authentication_types.js').USER_PWD_MFA_AUTHENTICATOR;

/**
Expand Down
4 changes: 0 additions & 4 deletions lib/authentication/auth_idtoken.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
/*
* Copyright (c) 2015-2024 Snowflake Computing Inc. All rights reserved.
*/

const AuthWeb = require('./auth_web');

/**
Expand Down
4 changes: 0 additions & 4 deletions lib/authentication/auth_keypair.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
/*
* Copyright (c) 2015-2024 Snowflake Computing Inc. All rights reserved.
*/

const util = require('../util');

/**
Expand Down
4 changes: 0 additions & 4 deletions lib/authentication/auth_oauth.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
/*
* Copyright (c) 2015-2024 Snowflake Computing Inc. All rights reserved.
*/

/**
* Creates an oauth authenticator.
*
Expand Down
4 changes: 0 additions & 4 deletions lib/authentication/auth_okta.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
/*
* Copyright (c) 2015-2024 Snowflake Computing Inc. All rights reserved.
*/

const util = require('../util');
const rest = require('../global_config').rest;
const Logger = require('../logger');
Expand Down
4 changes: 0 additions & 4 deletions lib/authentication/auth_web.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
/*
* Copyright (c) 2015-2024 Snowflake Computing Inc. All rights reserved.
*/

const util = require('../util');
const net = require('net');
const querystring = require('querystring');
Expand Down
4 changes: 0 additions & 4 deletions lib/authentication/authentication.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
/*
* Copyright (c) 2015-2024 Snowflake Computing Inc. All rights reserved.
*/

const AuthDefault = require('./auth_default');
const AuthWeb = require('./auth_web');
const AuthKeypair = require('./auth_keypair');
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
/*
* Copyright (c) 2015-2024 Snowflake Computing Inc. All rights reserved.
*/

const path = require('path');
const Logger = require('../../logger');
const fs = require('node:fs/promises');
Expand Down
4 changes: 0 additions & 4 deletions lib/authentication/sso_url_provider.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
/*
* Copyright (c) 2015-2024 Snowflake Computing Inc. All rights reserved.
*/

const Util = require('../util');
const Errors = require('../errors');
const { rest } = require('../global_config');
Expand Down
4 changes: 0 additions & 4 deletions lib/browser.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
/*
* Copyright (c) 2015-2024 Snowflake Computing Inc. All rights reserved.
*/

const core = require('./core');

module.exports = core(
Expand Down
4 changes: 0 additions & 4 deletions lib/configuration/client_configuration.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
/*
* Copyright (c) 2015-2024 Snowflake Computing Inc. All rights reserved.
*/

const os = require('os');
const path = require('path');
const fs = require('fs');
Expand Down
4 changes: 0 additions & 4 deletions lib/configuration/connection_configuration.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
/*
* Copyright (c) 2015-2024 Snowflake Computing Inc. All rights reserved.
*/

const toml = require('toml');
const os = require('os');
const fs = require('fs');
Expand Down
4 changes: 0 additions & 4 deletions lib/connection/bind_uploader.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
/*
* Copyright (c) 2015-2024 Snowflake Computing Inc. All rights reserved.
*/

const Logger = require('../logger');

const fs = require('fs');
Expand Down
4 changes: 0 additions & 4 deletions lib/connection/connection.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
/*
* Copyright (c) 2015-2024 Snowflake Computing Inc. All rights reserved.
*/

const { v4: uuidv4 } = require('uuid');
const Url = require('url');
const QueryString = require('querystring');
Expand Down
4 changes: 0 additions & 4 deletions lib/connection/connection_config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
/*
* Copyright (c) 2015-2024 Snowflake Computing Inc. All rights reserved.
*/

const os = require('os');
const url = require('url');
const Util = require('../util');
Expand Down
4 changes: 0 additions & 4 deletions lib/connection/connection_context.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
/*
* Copyright (c) 2015-2024 Snowflake Computing Inc. All rights reserved.
*/

const Util = require('../util');
const Errors = require('../errors');
const SfService = require('../services/sf');
Expand Down
4 changes: 0 additions & 4 deletions lib/connection/result/chunk.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
/*
* Copyright (c) 2015-2024 Snowflake Computing Inc. All rights reserved.
*/

const EventEmitter = require('events').EventEmitter;
const Util = require('../../util');
const Errors = require('../../errors');
Expand Down
4 changes: 0 additions & 4 deletions lib/connection/result/chunk_cache.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
/*
* Copyright (c) 2015-2024 Snowflake Computing Inc. All rights reserved.
*/

const DoublyLinkedList = require('./doubly_linked_list');

/**
Expand Down
4 changes: 0 additions & 4 deletions lib/connection/result/column.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
/*
* Copyright (c) 2015-2024 Snowflake Computing Inc. All rights reserved.
*/

const Util = require('../../util');
const Errors = require('../../errors');
const BigNumber = require('bignumber.js');
Expand Down
4 changes: 0 additions & 4 deletions lib/connection/result/data_types.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
/*
* Copyright (c) 2015-2024 Snowflake Computing Inc. All rights reserved.
*/

const Util = require('../../util');
const Errors = require('../../errors');

Expand Down
5 changes: 0 additions & 5 deletions lib/connection/result/datetime_format_converter.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
/*
* Copyright (c) 2015-2024 Snowflake Computing Inc. All rights reserved.
*/


/**
* The map of symbols for datatime representation in Snowflake and in Moment.js formatting.
* The order of tags is important Please don't change it
Expand Down
4 changes: 0 additions & 4 deletions lib/connection/result/doubly_linked_list.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
/*
* Copyright (c) 2015-2024 Snowflake Computing Inc. All rights reserved.
*/

function DoublyLinkedList() {
this._length = 0;
this._head = null;
Expand Down
4 changes: 0 additions & 4 deletions lib/connection/result/result.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
/*
* Copyright (c) 2015-2024 Snowflake Computing Inc. All rights reserved.
*/

const EventEmitter = require('events').EventEmitter;
const Util = require('../../util');
const Errors = require('../../errors');
Expand Down
4 changes: 0 additions & 4 deletions lib/connection/result/result_stream.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
/*
* Copyright (c) 2015-2024 Snowflake Computing Inc. All rights reserved.
*/

const EventEmitter = require('events').EventEmitter;
const Util = require('../../util');
const Errors = require('../../errors');
Expand Down
4 changes: 0 additions & 4 deletions lib/connection/result/row_stream.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
/*
* Copyright (c) 2015-2024 Snowflake Computing Inc. All rights reserved.
*/

const Readable = require('stream').Readable;
const Util = require('../../util');
const Errors = require('../../errors');
Expand Down
4 changes: 0 additions & 4 deletions lib/connection/result/sf_timestamp.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
/*
* Copyright (c) 2015-2024 Snowflake Computing Inc. All rights reserved.
*/

const Moment = require('moment-timezone');
const Util = require('../../util');
const datetimeFormatConverter = require('./datetime_format_converter');
Expand Down
4 changes: 0 additions & 4 deletions lib/connection/result/statement_type.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
/*
* Copyright (c) 2015-2024 Snowflake Computing Inc. All rights reserved.
*/

exports.isDml = function (statementTypeId) {
return (statementTypeId >= 0x3000 && statementTypeId < 0x4000);
};
Expand Down
4 changes: 0 additions & 4 deletions lib/connection/result/unique_column_name_creator.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
/*
* Copyright (c) 2015-2024 Snowflake Computing Inc. All rights reserved.
*/

const resultContainsDuplicatedColumns = (rowtype) => {
const columnNames = rowtype.map(rt => rt.name);
return columnNames.length !== new Set(columnNames).size;
Expand Down
4 changes: 0 additions & 4 deletions lib/connection/statement.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
/*
* Copyright (c) 2015-2024 Snowflake Computing Inc. All rights reserved.
*/

const { v4: uuidv4 } = require('uuid');

const Url = require('url');
Expand Down
4 changes: 0 additions & 4 deletions lib/constants/error_messages.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
/*
* Copyright (c) 2015-2024 Snowflake Computing Inc. All rights reserved.
*/

// 400001
exports[400001] = 'An internal error has occurred. Please contact Snowflake support.';
exports[400002] = 'You are using an unsupported version of Node.js. Please use %s or above.';
Expand Down
4 changes: 0 additions & 4 deletions lib/constants/gs_errors.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
/*
* Copyright (c) 2015-2024 Snowflake Computing Inc. All rights reserved.
*/

const code = {};

code.INCORRECT_USERNAME_PASSWORD = '390100';
Expand Down
4 changes: 0 additions & 4 deletions lib/constants/query_status.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
/*
* Copyright (c) 2015-2024 Snowflake Computing Inc. All rights reserved.
*/

const code = {};

code.RUNNING = 'RUNNING';
Expand Down
4 changes: 0 additions & 4 deletions lib/constants/row_mode.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
/*
* Copyright (c) 2015-2024 Snowflake Computing Inc. All rights reserved.
*/

const Errors = require('../errors');

const ErrorCodes = Errors.codes;
Expand Down
4 changes: 0 additions & 4 deletions lib/core.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
/*
* Copyright (c) 2015-2024 Snowflake Computing Inc. All rights reserved.
*/

const Util = require('./util');
const Errors = require('./errors');
const ErrorCodes = Errors.codes;
Expand Down
4 changes: 0 additions & 4 deletions lib/errors.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
/*
* Copyright (c) 2015-2024 Snowflake Computing Inc. All rights reserved.
*/

const Util = require('./util');
const errorMessages = require('./constants/error_messages');

Expand Down
4 changes: 0 additions & 4 deletions lib/file_transfer_agent/azure_util.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
/*
* Copyright (c) 2015-2024 Snowflake Computing Inc. All rights reserved.
*/

const EncryptionMetadata = require('./encrypt_util').EncryptionMetadata;
const FileHeader = require('../file_util').FileHeader;
const expandTilde = require('expand-tilde');
Expand Down
4 changes: 0 additions & 4 deletions lib/file_transfer_agent/encrypt_util.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
/*
* Copyright (c) 2015-2024 Snowflake Computing Inc. All rights reserved.
*/

const path = require('path');
const crypto = require('crypto');
const os = require('os');
Expand Down
4 changes: 0 additions & 4 deletions lib/file_transfer_agent/file_compression_type.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
/*
* Copyright (c) 2015-2024 Snowflake Computing Inc. All rights reserved.
*/

const Types = [
{
'name': 'GZIP',
Expand Down
4 changes: 0 additions & 4 deletions lib/file_transfer_agent/file_transfer_agent.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
/*
* Copyright (c) 2015-2024 Snowflake Computing Inc. All rights reserved.
*/

const binascii = require('binascii');
const crypto = require('crypto');
const fs = require('fs');
Expand Down
4 changes: 0 additions & 4 deletions lib/file_transfer_agent/gcs_util.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
/*
* Copyright (c) 2015-2024 Snowflake Computing Inc. All rights reserved.
*/

const EncryptionMetadata = require('./encrypt_util').EncryptionMetadata;
const FileHeader = require('../file_util').FileHeader;
const getProxyAgent = require('../http/node').getProxyAgent;
Expand Down
4 changes: 0 additions & 4 deletions lib/file_transfer_agent/local_util.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
/*
* Copyright (c) 2015-2024 Snowflake Computing Inc. All rights reserved.
*/

const fs = require('fs');
const path = require('path');
const expandTilde = require('expand-tilde');
Expand Down
Loading
Loading