Demo for query storing
Change-Id: I947bcac841992c3f6cfd01ab337c265b0d01cb70
diff --git a/node_modules/is-valid-glob/index.js b/node_modules/is-valid-glob/index.js
new file mode 100644
index 0000000..6b1899f
--- /dev/null
+++ b/node_modules/is-valid-glob/index.js
@@ -0,0 +1,21 @@
+'use strict';
+
+module.exports = function isValidGlob(glob) {
+ if (typeof glob === 'string' && glob.length > 0) {
+ return true;
+ }
+ if (Array.isArray(glob)) {
+ return glob.length !== 0 && every(glob);
+ }
+ return false;
+};
+
+function every(arr) {
+ var len = arr.length;
+ while (len--) {
+ if (typeof arr[len] !== 'string' || arr[len].length <= 0) {
+ return false;
+ }
+ }
+ return true;
+}