From bc23d1d947eb8c8c7bdbf7f05720d749f65c8560 Mon Sep 17 00:00:00 2001 From: Ioan CHIRIAC Date: Thu, 16 Nov 2017 19:26:31 +0100 Subject: [PATCH] release build --- dist/grafine.js | 16 ++++++++++++++++ dist/grafine.min.js | 16 ++++++++-------- dist/grafine.min.js.map | 2 +- 3 files changed, 25 insertions(+), 9 deletions(-) diff --git a/dist/grafine.js b/dist/grafine.js index cc4719b..22d0ca6 100644 --- a/dist/grafine.js +++ b/dist/grafine.js @@ -299,6 +299,14 @@ module.exports = function(grafine) { this._changed = false; }; + /** + * Gets the index unique identifier + * @return Number + */ + Index.prototype.id = function() { + return this._id; + }; + /** * Check if current index contains changes * @return {Boolean} @@ -704,6 +712,14 @@ module.exports = function(grafine) { this._changed = false; }; + /** + * Gets the shard ID + * @return Number + */ + Shard.prototype.id = function() { + return this._id; + }; + /** * Checks is the current shard contains changed nodes * @return {Boolean} diff --git a/dist/grafine.min.js b/dist/grafine.min.js index 5745fc2..04f4753 100644 --- a/dist/grafine.min.js +++ b/dist/grafine.min.js @@ -1,12 +1,12 @@ require=function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a="function"==typeof require&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}for(var i="function"==typeof require&&require,o=0;othis._hash&&(size=this._hash);for(var i=0;i0)for(var i=0,size=data.shards.length;i0)for(var i=0,size=data.indexes.length;i0&&inner.push(v.value);toJson.push([entry.value[0],inner])}return[this._size,toJson]},Index.prototype.import=function(data){this._size=data[0];for(var indexMap=[],i=0;i0&&inner.push(v.value);toJson.push([entry.value[0],inner])}return[this._size,toJson]},Index.prototype.import=function(data){this._size=data[0];for(var indexMap=[],i=0;i