From b9713894e07e98736d15c8f357f4863ac19583eb Mon Sep 17 00:00:00 2001 From: viskin Date: Sat, 1 Aug 2015 19:08:08 +0300 Subject: [PATCH] Changed company name --- Gruntfile.js | 2 +- bower.json | 4 ++-- dist/webSqlTracer.min.js | 2 +- package.json | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Gruntfile.js b/Gruntfile.js index 22fe087..dc01a8c 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -10,7 +10,7 @@ module.exports = function(grunt) { uglify: { options: { sourceMap: true, - banner: '/* <%= grunt.task.current.target %> v<%= pkg.version %> <%= grunt.template.today("dd-mm-yyyy") %> (C) 2015 Terikon Software */\n' + banner: '/* <%= grunt.task.current.target %> v<%= pkg.version %> <%= grunt.template.today("dd-mm-yyyy") %> (C) 2015 Terikon Apps */\n' }, webSqlTracer: { diff --git a/bower.json b/bower.json index c94e084..9895fc0 100644 --- a/bower.json +++ b/bower.json @@ -1,12 +1,12 @@ { "name": "websqltracer", "main": "webSqlTracer.js", - "version": "1.0.2", + "version": "1.0.3", "description": "Console tracer for Web SQL or SQLite", "homepage": "https://github.com/terikon/webSqlTracer", "authors": [ { - "name": "Terikon Software", + "name": "Terikon Apps", "email": "npm@terikon.com", "homepage": "http://il.linkedin.com/in/romanviskin" } diff --git a/dist/webSqlTracer.min.js b/dist/webSqlTracer.min.js index 88e8f80..66560db 100644 --- a/dist/webSqlTracer.min.js +++ b/dist/webSqlTracer.min.js @@ -1,4 +1,4 @@ -/* webSqlTracer v1.0.2 17-04-2015 (C) 2015 Terikon Software */ +/* webSqlTracer v1.0.3 01-08-2015 (C) 2015 Terikon Apps */ !function(a,b){"use strict";"function"==typeof define&&define.amd?define(["underscore","jquery"],b.bind(null,a)):"undefined"!=typeof module&&null!==module&&null!=module.exports?module.exports.webSqlTracer=b(a,require("underscore"),require("jquery")):a.webSqlTracer=b(a,a._,a.jQuery)}(this,function(a,b,c){"use strict";var d,e,f,g,h=!1,i=[],j=[],k=!1,l={};return{traceOnOpen:function(c,d){var e,f=this;if(h)throw new Error("Call stopTraceOnOpen() before calling traceOnOpen() for second time.");h=!0,g||(g=a.openDatabase),b.isString(c)&&(e=c,c=function(a){return a===e}),a.openDatabase=function(a,b){var e=g.apply(this,arguments);return c(a)&&f.startTrace(e,a,b).then(function(){d&&d(e)}),e}},stopTraceOnOpen:function(){if(!h)throw new Error("Cannot call stopTraceOnOpen() before calling traceOnOpen().");h=!1,a.openDatabase=g},startTrace:function(a,g,h){var m,n,o=new c.Deferred;if(g&&(n=l[g],b.isUndefined(n)&&(n=0),l[g]=n+1,n>0&&(g=g+"("+n+")"),console.log("SQL TRACE : started tracing database "+g+(b.isUndefined(h)?"":" version '"+h+"'"))),b.indexOf(i,a)>=0)throw new Error("startTrace was already started for this db");if(k)o.resolve();else{a.transaction(function(a){var c=Object.getPrototypeOf(a);d||(d=c.executeSql),c.executeSql=function(a,c){var e,f,g=this,h=g._transactionDb,k=b.indexOf(i,h);k>=0&&(e=j[k],f=e||"",console.log("SQL TRACE "+f+": '"+a+"'"+(c&&!b.isEmpty(c)?", args="+JSON.stringify(c):""))),d.apply(this,arguments)},setTimeout(function(){o.resolve()},0)}),m=Object.getPrototypeOf(a),e||(e=m.transaction,f=m.readTransaction);var p=function(a){return function(b,c,d){var e=this;a.call(this,function(a){a._transactionDb=e,b(a)},c,d)}};m.transaction=p(e),m.readTransaction=p(f),k=!0}return i.push(a),j.push(g),o.promise()},stopTrace:function(a){var g,h,l=new c.Deferred,m=b.indexOf(i,a);if(0>m)throw new Error("cannot stopTrace, trace was not started for this db");if(g=1===i.length){var n=Object.getPrototypeOf(a);n.transaction=e,n.readTransaction=f,a.transaction(function(a){var b=Object.getPrototypeOf(a);b.executeSql=d,l.resolve()}),k=!1}return h=j[m],console.log("SQL TRACE : stopped tracing database"+(h?" "+h:"")),i.splice(m,1),j.splice(m,1),g||l.resolve(),l.promise()}}}); //# sourceMappingURL=webSqlTracer.min.js.map \ No newline at end of file diff --git a/package.json b/package.json index 006d0c6..4da9599 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "websqltracer", "title": "webSqlTracer", - "version": "1.0.2", + "version": "1.0.3", "description": "Console tracer for Web SQL or SQLite", "main": "webSqlTracer.js", "scripts": { @@ -23,7 +23,7 @@ "profiler" ], "author": { - "name": "Terikon Software", + "name": "Terikon Apps", "email": "npm@terikon.com", "url": "http://il.linkedin.com/in/romanviskin" },