couchbase-index-manager
Advanced tools
Comparing version 2.0.0-beta001 to 2.0.0-beta002
@@ -80,5 +80,2 @@ "use strict"; | ||
var _a; | ||
if (!!this.scope !== !!this.collection) { | ||
throw new Error('if scope is supplied collection must also be supplied'); | ||
} | ||
if (!this.is_primary) { | ||
@@ -85,0 +82,0 @@ const isDrop = this.lifecycle && this.lifecycle.drop; |
@@ -41,3 +41,3 @@ "use strict"; | ||
function getKeyspace(bucket, scope = exports.DEFAULT_SCOPE, collection = exports.DEFAULT_COLLECTION) { | ||
if (scope === exports.DEFAULT_SCOPE) { | ||
if (scope === exports.DEFAULT_SCOPE && collection === exports.DEFAULT_COLLECTION) { | ||
return (0, util_1.ensureEscaped)(bucket); | ||
@@ -150,3 +150,3 @@ } | ||
let statement; | ||
if (scope === exports.DEFAULT_SCOPE) { | ||
if (scope === exports.DEFAULT_SCOPE && collection === exports.DEFAULT_COLLECTION) { | ||
// We need to use the old syntax for the default collection for backward compatibilty | ||
@@ -153,0 +153,0 @@ statement = `ALTER INDEX ${(0, util_1.ensureEscaped)(this.bucketName)}.${(0, util_1.ensureEscaped)(indexName)} WITH `; |
@@ -21,3 +21,3 @@ "use strict"; | ||
get displayName() { | ||
if (this.scope === index_manager_1.DEFAULT_SCOPE) { | ||
if (this.scope === index_manager_1.DEFAULT_SCOPE && this.collection === index_manager_1.DEFAULT_COLLECTION) { | ||
return this.name; | ||
@@ -24,0 +24,0 @@ } |
@@ -129,3 +129,3 @@ "use strict"; | ||
for (const collection of collections) { | ||
if (collection.scope === index_manager_1.DEFAULT_SCOPE) { | ||
if (collection.scope === index_manager_1.DEFAULT_SCOPE && collection.collection === index_manager_1.DEFAULT_COLLECTION) { | ||
this.options.logger.info(chalk_1.default.greenBright('Building indexes...')); | ||
@@ -132,0 +132,0 @@ } |
{ | ||
"name": "couchbase-index-manager", | ||
"version": "2.0.0-beta001", | ||
"version": "2.0.0-beta002", | ||
"description": "Manage Couchbase indexes during the CI/CD process", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
151494
1
3708