From e58aa9e90f31e890ae8522e320f6b5a111a9370e Mon Sep 17 00:00:00 2001 From: Mike Cao Date: Sun, 19 Jul 2020 13:11:08 -0700 Subject: [PATCH] Updated scripts. --- package.json | 4 +++- public/umami.js | 2 +- scripts/umami/index.js | 1 - 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 2b105439..d293153f 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,9 @@ "dev": "next dev -p 8000", "build": "next build", "start": "next start", - "build-script": "rollup -c" + "build-script": "rollup -c", + "build-schema": "prisma introspect", + "build-client": "prisma generate" }, "lint-staged": { "**/*.js": [ diff --git a/public/umami.js b/public/umami.js index 22773f3c..492d02aa 100644 --- a/public/umami.js +++ b/public/umami.js @@ -1 +1 @@ -!function(){"use strict";function e(e){var n=this.constructor;return this.then((function(t){return n.resolve(e()).then((function(){return t}))}),(function(t){return n.resolve(e()).then((function(){return n.reject(t)}))}))}var n=setTimeout;function t(e){return Boolean(e&&void 0!==e.length)}function r(){}function o(e){if(!(this instanceof o))throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],f(e,this)}function i(e,n){for(;3===e._state;)e=e._value;0!==e._state?(e._handled=!0,o._immediateFn((function(){var t=1===e._state?n.onFulfilled:n.onRejected;if(null!==t){var r;try{r=t(e._value)}catch(e){return void s(n.promise,e)}u(n.promise,r)}else(1===e._state?u:s)(n.promise,e._value)}))):e._deferreds.push(n)}function u(e,n){try{if(n===e)throw new TypeError("A promise cannot be resolved with itself.");if(n&&("object"==typeof n||"function"==typeof n)){var t=n.then;if(n instanceof o)return e._state=3,e._value=n,void a(e);if("function"==typeof t)return void f((r=t,i=n,function(){r.apply(i,arguments)}),e)}e._state=1,e._value=n,a(e)}catch(n){s(e,n)}var r,i}function s(e,n){e._state=2,e._value=n,a(e)}function a(e){2===e._state&&0===e._deferreds.length&&o._immediateFn((function(){e._handled||o._unhandledRejectionFn(e._value)}));for(var n=0,t=e._deferreds.length;n { listeners.forEach(([element, type, listener]) => { - console.log('removed', element.tagName, type); element.removeEventListener(type, listener, true); }); listeners.length = 0;