Comparing version 0.4.1 to 0.4.2
@@ -17,6 +17,2 @@ 'use strict'; | ||
var _assert = require('assert'); | ||
var _assert2 = _interopRequireDefault(_assert); | ||
var _Table2 = require('./Table'); | ||
@@ -26,2 +22,4 @@ | ||
var debug = require('debug')('nothinkdb:Environment'); | ||
var Environment = (function () { | ||
@@ -45,3 +43,6 @@ function Environment() { | ||
_assert2['default'].equal(this.hasTable(tableName), false, 'tableName: \'' + tableName + '\' is already defined'); | ||
if (this.hasTable(tableName)) { | ||
debug('[createTable] tableName: \'' + tableName + '\' is already defined'); | ||
return this.getTable(tableName); | ||
} | ||
@@ -48,0 +49,0 @@ var table = new this.Table(options); |
{ | ||
"name": "nothinkdb", | ||
"version": "0.4.1", | ||
"version": "0.4.2", | ||
"description": "Functional toolkit for rethinkdb", | ||
@@ -5,0 +5,0 @@ "main": "lib/nothinkdb.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
30165
631