deep-cache
Advanced tools
Comparing version 1.10.0 to 1.12.0
@@ -221,3 +221,3 @@ /** | ||
default: | ||
throw new _Exception.Exception(`Missing driver ${ name }`); | ||
throw new _Exception.Exception(`Missing driver ${name}`); | ||
} | ||
@@ -224,0 +224,0 @@ |
@@ -221,3 +221,3 @@ /** | ||
value: function _buildKey(key) { | ||
return `${ this._buildId }:${ this._namespace }#${ key }`; | ||
return `${this._buildId}:${this._namespace}#${key}`; | ||
} | ||
@@ -224,0 +224,0 @@ |
@@ -58,3 +58,3 @@ /** | ||
value: function _buildKey(key) { | ||
return `${ this._directory }/${ AbstractFsDriver._hash(key, 'sha1') }.${ AbstractFsDriver._hash(key, 'md5') }`; | ||
return `${this._directory}/${AbstractFsDriver._hash(key, 'sha1')}.${AbstractFsDriver._hash(key, 'md5')}`; | ||
} | ||
@@ -61,0 +61,0 @@ |
@@ -162,3 +162,3 @@ /** | ||
value: function _buildKey(key) { | ||
return key instanceof _SharedKey.SharedKey ? this._asset.locate(`@${ key.microservice }:${ _get2(CloudFrontDriver.prototype.__proto__ || Object.getPrototypeOf(CloudFrontDriver.prototype), '_buildKey', this).call(this, key.toString()) }`) : this._asset.locate(`@${ this._microservice }:${ _get2(CloudFrontDriver.prototype.__proto__ || Object.getPrototypeOf(CloudFrontDriver.prototype), '_buildKey', this).call(this, key) }`); | ||
return key instanceof _SharedKey.SharedKey ? this._asset.locate(`@${key.microservice}:${_get2(CloudFrontDriver.prototype.__proto__ || Object.getPrototypeOf(CloudFrontDriver.prototype), '_buildKey', this).call(this, key.toString())}`) : this._asset.locate(`@${this._microservice}:${_get2(CloudFrontDriver.prototype.__proto__ || Object.getPrototypeOf(CloudFrontDriver.prototype), '_buildKey', this).call(this, key)}`); | ||
} | ||
@@ -165,0 +165,0 @@ |
@@ -32,3 +32,3 @@ /** | ||
return _possibleConstructorReturn(this, (MethodNotAvailableException.__proto__ || Object.getPrototypeOf(MethodNotAvailableException)).call(this, `Method '${ name }' is not available`)); | ||
return _possibleConstructorReturn(this, (MethodNotAvailableException.__proto__ || Object.getPrototypeOf(MethodNotAvailableException)).call(this, `Method '${name}' is not available`)); | ||
} | ||
@@ -35,0 +35,0 @@ |
@@ -32,3 +32,3 @@ /** | ||
return _possibleConstructorReturn(this, (MissingCacheException.__proto__ || Object.getPrototypeOf(MissingCacheException)).call(this, `Missing key ${ cacheKey } from cache`)); | ||
return _possibleConstructorReturn(this, (MissingCacheException.__proto__ || Object.getPrototypeOf(MissingCacheException)).call(this, `Missing key ${cacheKey} from cache`)); | ||
} | ||
@@ -35,0 +35,0 @@ |
@@ -37,3 +37,3 @@ /** | ||
var _this = _possibleConstructorReturn(this, (RedisClusterException.__proto__ || Object.getPrototypeOf(RedisClusterException)).call(this, `Redis cluster operation failed: ${ errorPlain }`)); | ||
var _this = _possibleConstructorReturn(this, (RedisClusterException.__proto__ || Object.getPrototypeOf(RedisClusterException)).call(this, `Redis cluster operation failed: ${errorPlain}`)); | ||
@@ -40,0 +40,0 @@ _this._originalException = originalException; |
@@ -81,3 +81,3 @@ /** | ||
hosts.forEach(host => { | ||
options.sentinels.push(`redis://${ host }/`); | ||
options.sentinels.push(`redis://${host}/`); | ||
}); | ||
@@ -84,0 +84,0 @@ |
@@ -61,3 +61,3 @@ /** | ||
let requestIdentifier = action.source[request.isLambda ? 'original' : 'api']; | ||
let keyString = `${ requestIdentifier }#${ SharedCache._stringifyPayload(request.payload) }`; | ||
let keyString = `${requestIdentifier}#${SharedCache._stringifyPayload(request.payload)}`; | ||
@@ -75,3 +75,3 @@ return new _SharedKey.SharedKey(keyString, microservice); | ||
value: function buildKeyFromLambdaRuntime(runtime) { | ||
return runtime.context && runtime.context.has('invokedFunctionArn') ? `${ runtime.context.getOption('invokedFunctionArn') }#${ SharedCache._stringifyPayload(runtime.request.data) }` : null; | ||
return runtime.context && runtime.context.has('invokedFunctionArn') ? `${runtime.context.getOption('invokedFunctionArn')}#${SharedCache._stringifyPayload(runtime.request.data)}` : null; | ||
} | ||
@@ -78,0 +78,0 @@ |
{ | ||
"name": "deep-cache", | ||
"version": "1.10.0", | ||
"version": "1.12.0", | ||
"description": "DEEP Cache Library", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
80733