Socket
Socket
Sign inDemoInstall

snowflake-promise

Package Overview
Dependencies
301
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.11.0 to 2.0.0

build/src/index.d.ts

27

CHANGELOG.md

@@ -0,1 +1,26 @@

### 2.0.0
2019-09-13
* **BREAKING CHANGE**: Minimum supported Node version is 6.9.5, the same as the underlying
Snowflake SDK.
* Update to `snowflake-sdk` 1.3.0
* Update dev dependencies to latest versions
* Move the repository from Bitbucket to Github
* Support the new `ocspFailOpen` configuration option — thank you @thoean (Markus Thurner)
* Bugfix for `getStatementId` - thank you @jasonstitt (Jason Stitt)
The biggest change is to support the `ocspFailOpen` option in the underlying
Snowflake SDK driver.
This setting is enabled by default. if OCSP verification fails due to an invalid response
from the certificate authority, the connection will still be established. (If OCSP
verification shows that the certificate is revoked, the connection will be dropped.)
This prevents connection failures that previously happened when an OCSP provider had an
outage. The earlier workaround was to set the `insecureConnect` option. That is deprecated
and will be ignored. The new defaults accomplish the same thing in a more secure manner.
For more information, see: <https://www.snowflake.com/blog/changes-to-how-snowflake-handles-ocsp/>
### 1.11.0

@@ -19,3 +44,3 @@

* Workaround for OCSP errors when creating the client:
* [DEPRECATED in 1.12.0] Workaround for OCSP errors when creating the client:

@@ -22,0 +47,0 @@ ```

26

package.json
{
"name": "snowflake-promise",
"version": "1.11.0",
"version": "2.0.0",
"description": "A Promise-based, TypeScript-friendly wrapper for the Snowflake SDK",
"repository": "bitbucket:adp-developers/snowflake-promise.git",
"bugs": "https://bitbucket.org/adp-developers/snowflake-promise/issues",
"repository": "github:natesilva/snowflake-promise",
"bugs": "https://github.com/natesilva/snowflake-promise/issues",
"license": "MIT",

@@ -15,21 +15,21 @@ "author": "Nate Silva <nate@natesilva.com>",

],
"main": "prod/index.js",
"types": "prod/index.d.ts",
"main": "build/src/index.js",
"types": "build/src/index.d.ts",
"scripts": {
"prepare": "del-cli prod && tsc"
"prepare": "del-cli build && tsc"
},
"engines": {
"node": ">=4.0.0"
"node": ">=6.9.5"
},
"devDependencies": {
"@types/node": "^11.13.17",
"del-cli": "^2.0.0",
"np": "^5.0.3",
"@types/node": "^11.13.20",
"del-cli": "^3.0.0",
"np": "^5.1.0",
"ts-node": "^8.3.0",
"tslint": "^5.18.0",
"typescript": "^3.5.3"
"tslint": "^5.20.0",
"typescript": "^3.6.3"
},
"dependencies": {
"snowflake-sdk": "^1.1.15"
"snowflake-sdk": "^1.3.0"
}
}

@@ -41,7 +41,25 @@ # snowflake-promise [![npm](https://img.shields.io/npm/v/snowflake-promise.svg)](https://www.npmjs.com/package/snowflake-promise) [![node](https://img.shields.io/node/v/snowflake-promise.svg)](https://www.npmjs.com/package/snowflake-promise)

## Connecting
The constructor takes up to three arguments:
`new Snowflake(connectionOptions, [ loggingOptions, [ configureOptions ] ])`
* `connectionOptions`
* Supported options are here: <https://docs.snowflake.net/manuals/user-guide/nodejs-driver-use.html#required-connection-options>
* `loggingOptions`
* `logSql` (optional, function): If provided, this function will be called to log SQL
statements. For example, set `logSql` to `console.log` to log all issued SQL
statements to the console.
* `logLevel` (optional: `'error' | 'warn' | 'debug' | 'info' | 'trace'`): Turns on
SDK-level logging.
* `configureOptions`
* `ocspFailOpen` (optional, boolean) (default: `true`): Enables OCSP fail-open
functionality. See <https://www.snowflake.com/blog/latest-changes-to-how-snowflake-handles-ocsp/> for more information.
## More examples
* [Streaming result rows](https://bitbucket.org/adp-developers/snowflake-promise/src/master/examples/streaming.js)
* [Using traditional Promise `then` syntax (and older versions of Node.js)](https://bitbucket.org/adp-developers/snowflake-promise/src/master/examples/oldSchool.js)
* Node 4.0.0 is the oldest supported version
* [Turn on logging](https://bitbucket.org/adp-developers/snowflake-promise/src/master/examples/logging.js)
* [Streaming result rows](examples/streaming.js)
* [Using traditional Promise `then` syntax (and older versions of Node.js)](examples/oldSchool.js)
* Node v6.9.5 is the oldest supported version
* [Turn on logging](examples/logging.js)
SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc