From c605bb5bcb4b7d3510f0649cf3f53b8b99ece0b1 Mon Sep 17 00:00:00 2001 From: Julia Faria Date: Fri, 4 Mar 2022 12:20:43 -0300 Subject: [PATCH] Add checks to prevent breaking when running in the server --- .eslintrc.json | 3 +- demo/demo1.html | 2 +- demo/demo2.html | 2 +- dist/{bundle.js => bundle.browser.js} | 35 ++++--- dist/bundle.min.js | 2 +- dist/bundle.server.js | 25 +++++ dist/src/node/create-advanced-analyser.d.ts | 5 +- dist/src/node/index.d.ts | 2 +- docs/DOC.md | 10 +- docs/classes/AdvancedAnalyserNode.md | 110 ++++++++++---------- docs/enums/EventListenerTypes.md | 10 +- docs/enums/WindowFunctionTypes.md | 18 ++-- package-lock.json | 68 ++++++------ package.json | 5 +- rollup.config.js | 36 +++++-- src/definitions.d.ts | 2 + src/node/advanced-analyser-node.ts | 1 - src/node/create-advanced-analyser.ts | 23 ++-- src/node/index.ts | 2 +- typedoc.json | 1 + 20 files changed, 215 insertions(+), 147 deletions(-) rename dist/{bundle.js => bundle.browser.js} (97%) create mode 100644 dist/bundle.server.js diff --git a/.eslintrc.json b/.eslintrc.json index 47257fd..0e16f50 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -14,7 +14,8 @@ "indent": ["error", 2, { "SwitchCase": 1 }], "semi": ["error", "always"], "lines-between-class-members": ["error", "always"], - "tsdoc/syntax": "warn" + "tsdoc/syntax": "warn", + "no-constant-condition": "off" }, "ignorePatterns": [ "rollup.config.js", diff --git a/demo/demo1.html b/demo/demo1.html index 2958632..22abd92 100644 --- a/demo/demo1.html +++ b/demo/demo1.html @@ -18,7 +18,7 @@

 
-
+
 
+