dse-driver
Advanced tools
Comparing version 2.3.0 to 2.3.1
@@ -299,16 +299,15 @@ /** | ||
export class ExecutionProfile { | ||
consistency: number; | ||
loadBalancing: policies.loadBalancing.LoadBalancingPolicy; | ||
consistency?: number; | ||
loadBalancing?: policies.loadBalancing.LoadBalancingPolicy; | ||
name: string; | ||
readTimeout: number; | ||
retry: policies.retry.RetryPolicy; | ||
serialConsistency: number; | ||
readTimeout?: number; | ||
retry?: policies.retry.RetryPolicy; | ||
serialConsistency?: number; | ||
constructor(name: string, options: { | ||
consistency: number; | ||
loadBalancing: policies.loadBalancing.LoadBalancingPolicy; | ||
name: string; | ||
readTimeout: number; | ||
retry: policies.retry.RetryPolicy; | ||
serialConsistency: number; | ||
consistency?: number; | ||
loadBalancing?: policies.loadBalancing.LoadBalancingPolicy; | ||
readTimeout?: number; | ||
retry?: policies.retry.RetryPolicy; | ||
serialConsistency?: number; | ||
}); | ||
@@ -315,0 +314,0 @@ } |
@@ -177,3 +177,3 @@ /** | ||
IdempotenceAwareRetryPolicy.prototype.onRequestError = function (info, consistency, err) { | ||
if (info.options.isIdempotent) { | ||
if (info.executionOptions.isIdempotent()) { | ||
return this._childPolicy.onRequestError(info, consistency, err); | ||
@@ -192,3 +192,3 @@ } | ||
IdempotenceAwareRetryPolicy.prototype.onWriteTimeout = function (info, consistency, received, blockFor, writeType) { | ||
if (info.options.isIdempotent) { | ||
if (info.executionOptions.isIdempotent()) { | ||
return this._childPolicy.onWriteTimeout(info, consistency, received, blockFor, writeType); | ||
@@ -195,0 +195,0 @@ } |
@@ -249,2 +249,4 @@ /** | ||
MutableLong.prototype.multiply = function multiply(multiplier) { | ||
let negate = false; | ||
if (this.isZero() || multiplier.isZero()) { | ||
@@ -254,10 +256,10 @@ return this.toZero(); | ||
if (this.isNegative()) { | ||
if (multiplier.isNegative()) { | ||
return this.negate().multiply(multiplier.clone().negate()); | ||
} | ||
return this.negate().multiply(multiplier).negate(); | ||
this.negate(); | ||
negate = !negate; | ||
} | ||
else if (multiplier.isNegative()) { | ||
return this.multiply(multiplier.clone().negate()).negate(); | ||
if (multiplier.isNegative()) { | ||
multiplier = multiplier.clone().negate(); | ||
negate = !negate; | ||
} | ||
// We can skip products that would overflow. | ||
@@ -289,2 +291,7 @@ let c48 = 0, c32 = 0, c16 = 0, c00 = 0; | ||
this._arr[3] = c48 & 0xffff; | ||
if (negate) { | ||
this.negate(); | ||
} | ||
return this; | ||
@@ -291,0 +298,0 @@ }; |
{ | ||
"name": "dse-driver", | ||
"version": "2.3.0", | ||
"version": "2.3.1", | ||
"description": "DataStax Enterprise Node.js Driver", | ||
@@ -5,0 +5,0 @@ "author": "DataStax", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
28760
1020454