Skip to content

Commit

Permalink
Merge branch 'release/v1.2.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
sebelga committed Apr 29, 2017
2 parents 2889961 + a82cdca commit 7a0bb87
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
4 changes: 3 additions & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
'use strict';

/* eslint-disable prefer-template */

const is = require('is');
const Schema = require('./schema');
const Model = require('./model');
Expand Down Expand Up @@ -61,7 +63,7 @@ class Gstore {
// an existing model name. in this case don't read from cache.
if (this.models[name] && options.cache !== false) {
if (schema && schema.instanceOfSchema && schema !== this.models[name].schema) {
throw new Error(`Trying to override ${name} Model Schema`);
throw new Error('Trying to override ' + name + ' Model Schema');
}
return this.models[name];
}
Expand Down
8 changes: 6 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "gstore-node",
"version": "1.1.0",
"version": "1.2.0",
"description": "gstore-node is a Google Datastore Entity Models tools",
"main": "index.js",
"scripts": {
Expand Down Expand Up @@ -34,14 +34,18 @@
"name": "Micah Allen",
"url": "https://github.com/micaww"
},
{
"name": "Ricardo Machado",
"url": "https://github.com/mAiNiNfEcTiOn"
},
{
"name": "jfbenckhuijsen",
"url": "https://github.com/jfbenckhuijsen"
}
],
"license": "ISC",
"dependencies": {
"@google-cloud/datastore": "0.7.1",
"@google-cloud/datastore": "1.0.0",
"arrify": "^1.0.1",
"extend": "^3.0.0",
"is": "^3.2.1",
Expand Down

0 comments on commit 7a0bb87

Please sign in to comment.