Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

couchbase-index-manager

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

couchbase-index-manager - npm Package Compare versions

Comparing version 2.0.0-beta001 to 2.0.0-beta002

3

dist/configuration/index-validation.js

@@ -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;

4

dist/index-manager.js

@@ -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",

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc