spice-couchbase 2.0.33 → 2.0.35

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/index.js CHANGED
@@ -181,9 +181,9 @@ module.exports = class Database {
181
181
 
182
182
  if (!_this3.checkGlobelConnectionObject(_this3.collection_name)) {
183
183
  if (!collection_exists) {
184
- /* await this.createCollection(this.collection_name, this.scope_name);
185
- await this.wait(2000);
186
- await this.createPrimaryIndex(this.scope_name, this.collection_name); */
184
+ yield _this3.createCollection(_this3.collection_name, _this3.scope_name);
185
+ yield _this3.wait(2000);
186
+ yield _this3.createPrimaryIndex(_this3.scope_name, _this3.collection_name);
187
187
  }
188
188
  }
189
189
  } catch (e) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "spice-couchbase",
3
- "version": "2.0.33",
3
+ "version": "2.0.35",
4
4
  "description": "",
5
5
  "main": "build/index.js",
6
6
  "scripts": {
package/src/index.js CHANGED
@@ -179,9 +179,9 @@ module.exports = class Database {
179
179
  );
180
180
  if (!this.checkGlobelConnectionObject(this.collection_name)) {
181
181
  if (!collection_exists) {
182
- /* await this.createCollection(this.collection_name, this.scope_name);
182
+ await this.createCollection(this.collection_name, this.scope_name);
183
183
  await this.wait(2000);
184
- await this.createPrimaryIndex(this.scope_name, this.collection_name); */
184
+ await this.createPrimaryIndex(this.scope_name, this.collection_name);
185
185
  }
186
186
  }
187
187
  } catch (e) {