From a82cdca87b60c112c2305137b18ab14cdae9450a Mon Sep 17 00:00:00 2001 From: sebelga Date: Sat, 29 Apr 2017 17:50:54 +0200 Subject: [PATCH] update @google-cloud/datastore dependency ---> v1.0.0 --- lib/index.js | 4 +++- package.json | 8 ++++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/lib/index.js b/lib/index.js index 5c77b42..1576f4d 100644 --- a/lib/index.js +++ b/lib/index.js @@ -1,5 +1,7 @@ 'use strict'; +/* eslint-disable prefer-template */ + const is = require('is'); const Schema = require('./schema'); const Model = require('./model'); @@ -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]; } diff --git a/package.json b/package.json index 116e5de..b946bc1 100644 --- a/package.json +++ b/package.json @@ -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": { @@ -34,6 +34,10 @@ "name": "Micah Allen", "url": "https://github.com/micaww" }, + { + "name": "Ricardo Machado", + "url": "https://github.com/mAiNiNfEcTiOn" + }, { "name": "jfbenckhuijsen", "url": "https://github.com/jfbenckhuijsen" @@ -41,7 +45,7 @@ ], "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",