speaker-calibration 2.2.247 → 2.2.249

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (121) hide show
  1. package/.eslintignore +71 -71
  2. package/.eslintrc.json +40 -40
  3. package/.gitignore +81 -0
  4. package/.prettierignore +69 -69
  5. package/.prettierrc +14 -14
  6. package/LICENSE +20 -20
  7. package/README.md +133 -133
  8. package/__mocks__/fileMock.js +1 -1
  9. package/__mocks__/styleMock.js +1 -1
  10. package/babel.config.js +3 -3
  11. package/coverage/clover.xml +71 -71
  12. package/coverage/coverage-final.json +224 -224
  13. package/coverage/lcov-report/PythonServerInterface.js.html +265 -265
  14. package/coverage/lcov-report/base.css +354 -354
  15. package/coverage/lcov-report/block-navigation.js +82 -82
  16. package/coverage/lcov-report/index.html +123 -123
  17. package/coverage/lcov-report/prettify.css +101 -101
  18. package/coverage/lcov-report/prettify.js +937 -937
  19. package/coverage/lcov-report/sorter.js +189 -189
  20. package/coverage/lcov-report/src/index.html +121 -121
  21. package/coverage/lcov-report/src/server/PythonServerInterface.js.html +268 -268
  22. package/coverage/lcov-report/src/server/index.html +123 -123
  23. package/coverage/lcov-report/src/tasks/audioCalibrator.js.html +499 -499
  24. package/coverage/lcov-report/src/tasks/audioRecorder.js.html +412 -412
  25. package/coverage/lcov-report/src/tasks/index.html +143 -143
  26. package/coverage/lcov-report/src/tasks/volume/index.html +123 -123
  27. package/coverage/lcov-report/src/tasks/volume/volume.js.html +409 -409
  28. package/coverage/lcov-report/src/utils.js.html +172 -172
  29. package/coverage/lcov.info +91 -91
  30. package/dist/example/NoSleep.min.js +1 -1
  31. package/dist/example/fetch-languages-sheets.js +77 -77
  32. package/dist/example/i18n.js +29654 -30000
  33. package/dist/example/index.html +47 -47
  34. package/dist/example/listener.html +81 -81
  35. package/dist/example/server.js +51 -51
  36. package/dist/example/speaker.html +145 -145
  37. package/dist/example/speakerUI.js +273 -273
  38. package/dist/example/styles.css +152 -152
  39. package/dist/main.js +1 -1
  40. package/dist/mlsGen.js +6814 -6814
  41. package/dist/mlsGen.wasm +0 -0
  42. package/dist/package-lock.json +1018 -1018
  43. package/dist/package.json +18 -18
  44. package/doc/AudioCalibrator.html +417 -417
  45. package/doc/AudioPeer.html +251 -251
  46. package/doc/AudioRecorder.html +195 -195
  47. package/doc/ImpulseResponse.html +215 -215
  48. package/doc/Listener.html +308 -308
  49. package/doc/MlsGenInterface.html +226 -226
  50. package/doc/MyEventEmitter.html +274 -274
  51. package/doc/PythonServerAPI.html +109 -109
  52. package/doc/Speaker.html +276 -276
  53. package/doc/Takes%20a%20target%20element%20where%20html%20elements%20will%20be%20appended..html +128 -128
  54. package/doc/Takes%20the%20url%20of%20the%20current%20site%0Aand%20a%20target%20element%20where%20html%20elements%20will%20be%20appended..html +138 -138
  55. package/doc/Takes%20the%20url%20of%20the%20current%20site%20and%20a%20target%20element%20where%20html%20elements%20will%20be%20appended..html +137 -137
  56. package/doc/Volume.html +88 -88
  57. package/doc/audioCalibrator.js.html +179 -179
  58. package/doc/audioPeer.js.html +175 -175
  59. package/doc/audioRecorder.js.html +163 -163
  60. package/doc/creates%20a%20new%20AudioRecorder%20instance.%20%0ASets%20up%20the%20audio%20context%20and%20file%20reader..html +114 -114
  61. package/doc/fonts/OpenSans-Bold-webfont.svg +1829 -1829
  62. package/doc/fonts/OpenSans-BoldItalic-webfont.svg +1829 -1829
  63. package/doc/fonts/OpenSans-Italic-webfont.svg +1829 -1829
  64. package/doc/fonts/OpenSans-Light-webfont.svg +1830 -1830
  65. package/doc/fonts/OpenSans-LightItalic-webfont.svg +1834 -1834
  66. package/doc/fonts/OpenSans-Regular-webfont.svg +1830 -1830
  67. package/doc/global.html +308 -308
  68. package/doc/index.html +58 -58
  69. package/doc/listener.js.html +170 -170
  70. package/doc/mlsGen_mlsGenInterface.js.html +117 -117
  71. package/doc/myEventEmitter.js.html +124 -124
  72. package/doc/peer-connection_audioPeer.js.html +188 -188
  73. package/doc/peer-connection_listener.js.html +311 -311
  74. package/doc/peer-connection_speaker.js.html +381 -381
  75. package/doc/scripts/linenumber.js +25 -25
  76. package/doc/scripts/prettify/Apache-License-2.0.txt +202 -202
  77. package/doc/scripts/prettify/lang-css.js +24 -24
  78. package/doc/scripts/prettify/prettify.js +640 -640
  79. package/doc/server_PythonServerAPI.js.html +160 -160
  80. package/doc/speaker.js.html +248 -248
  81. package/doc/styles/jsdoc-default.css +371 -371
  82. package/doc/styles/prettify-jsdoc.css +111 -111
  83. package/doc/styles/prettify-tomorrow.css +163 -163
  84. package/doc/tasks_audioCalibrator.js.html +207 -207
  85. package/doc/tasks_audioRecorder.js.html +190 -190
  86. package/doc/tasks_impulse-response_impulseResponse.js.html +442 -442
  87. package/doc/tasks_impulse-response_mlsGen_mlsGenInterface.js.html +175 -175
  88. package/doc/tasks_volume_volume.js.html +185 -185
  89. package/doc/utils.js.html +105 -105
  90. package/jest.config.js +173 -173
  91. package/netlify.toml +26 -26
  92. package/package.json +78 -78
  93. package/src/config/firebase.js +26 -26
  94. package/src/index.html +21 -21
  95. package/src/listener-app/PhonePeer.js +474 -474
  96. package/src/listener-app/listener.js +377 -377
  97. package/src/main.js +22 -22
  98. package/src/myEventEmitter.js +83 -83
  99. package/src/peer-connection/audioPeer.js +100 -100
  100. package/src/peer-connection/listener.js +299 -299
  101. package/src/peer-connection/peerErrors.js +25 -25
  102. package/src/peer-connection/speaker.js +963 -963
  103. package/src/powerCheck.js +110 -110
  104. package/src/server/PythonServerAPI.js +959 -959
  105. package/src/tasks/combination/combination.js +44 -29
  106. package/src/tasks/combination/mlsGen/mlsGen.cpp +98 -98
  107. package/src/tasks/combination/mlsGen/mlsGen.hpp +303 -303
  108. package/src/tasks/combination/mlsGen/mlsGenInterface.js +131 -131
  109. package/src/tasks/combination/mlsGen/mlsGenTest.cpp +180 -180
  110. package/src/tasks/impulse-response/impulseResponse.js +610 -610
  111. package/src/tasks/impulse-response/mlsGen/mlsGen.cpp +98 -98
  112. package/src/tasks/impulse-response/mlsGen/mlsGen.hpp +303 -303
  113. package/src/tasks/impulse-response/mlsGen/mlsGenInterface.js +131 -131
  114. package/src/tasks/impulse-response/mlsGen/mlsGenTest.cpp +180 -180
  115. package/src/tasks/volume/volume.cpp +2 -2
  116. package/src/tasks/volume/volume.hpp +22 -22
  117. package/src/tasks/volume/volume.js +279 -279
  118. package/src/utils.js +205 -205
  119. package/webpack.config.js +65 -65
  120. package/.github/workflows/update-phrases.yml +0 -37
  121. package/makefile +0 -74
package/jest.config.js CHANGED
@@ -1,173 +1,173 @@
1
- /*
2
- * For a detailed explanation regarding each configuration property, visit:
3
- * https://jestjs.io/docs/configuration
4
- */
5
-
6
- module.exports = {
7
- // All imported modules in your tests should be mocked automatically
8
- // automock: false,
9
-
10
- // Stop running tests after `n` failures
11
- // bail: 0,
12
-
13
- // The directory where Jest should store its cached dependency information
14
- // cacheDirectory: "/private/var/folders/cs/1rk8dkgn7y5421407xn0z3200000gn/T/jest_dx",
15
-
16
- // Automatically clear mock calls, instances and results before every test
17
- clearMocks: true,
18
-
19
- // Indicates whether the coverage information should be collected while executing the test
20
- collectCoverage: true,
21
-
22
- // An array of glob patterns indicating a set of files for which coverage information should be collected
23
- // collectCoverageFrom: undefined,
24
-
25
- // The directory where Jest should output its coverage files
26
- coverageDirectory: 'coverage',
27
-
28
- // An array of regexp pattern strings used to skip coverage collection
29
- coveragePathIgnorePatterns: ['/node_modules/'],
30
-
31
- // Indicates which provider should be used to instrument code for coverage
32
- coverageProvider: 'v8',
33
-
34
- // A list of reporter names that Jest uses when writing coverage reports
35
- // coverageReporters: [
36
- // "json",
37
- // "text",
38
- // "lcov",
39
- // "clover"
40
- // ],
41
-
42
- // An object that configures minimum threshold enforcement for coverage results
43
- // coverageThreshold: undefined,
44
-
45
- // A path to a custom dependency extractor
46
- // dependencyExtractor: undefined,
47
-
48
- // Make calling deprecated APIs throw helpful error messages
49
- // errorOnDeprecated: false,
50
-
51
- // Force coverage collection from ignored files using an array of glob patterns
52
- // forceCoverageMatch: [],
53
-
54
- // A path to a module which exports an async function that is triggered once before all test suites
55
- // globalSetup: undefined,
56
-
57
- // A path to a module which exports an async function that is triggered once after all test suites
58
- // globalTeardown: undefined,
59
-
60
- // A set of global variables that need to be available in all test environments
61
- // globals: {},
62
-
63
- // The maximum amount of workers used to run your tests. Can be specified as % or a number. E.g. maxWorkers: 10% will use 10% of your CPU amount + 1 as the maximum worker number. maxWorkers: 2 will use a maximum of 2 workers.
64
- // maxWorkers: "50%",
65
-
66
- // An array of directory names to be searched recursively up from the requiring module's location
67
- moduleDirectories: ['node_modules'],
68
-
69
- // An array of file extensions your modules use
70
- moduleFileExtensions: ['js', 'jsx', 'ts', 'tsx', 'json', 'node'],
71
-
72
- // A map from regular expressions to module names or to arrays of module names that allow to stub out resources with a single module
73
- // moduleNameMapper: {},
74
-
75
- // An array of regexp pattern strings, matched against all module paths before considered 'visible' to the module loader
76
- // modulePathIgnorePatterns: [],
77
-
78
- // Activates notifications for test results
79
- // notify: false,
80
-
81
- // An enum that specifies notification mode. Requires { notify: true }
82
- // notifyMode: "failure-change",
83
-
84
- // A preset that is used as a base for Jest's configuration
85
- // preset: undefined,
86
-
87
- // Run tests from one or more projects
88
- // projects: undefined,
89
-
90
- // Use this configuration option to add custom reporters to Jest
91
- // reporters: undefined,
92
-
93
- // Automatically reset mock state before every test
94
- // resetMocks: false,
95
-
96
- // Reset the module registry before running each individual test
97
- // resetModules: false,
98
-
99
- // A path to a custom resolver
100
- // resolver: undefined,
101
-
102
- // Automatically restore mock state and implementation before every test
103
- // restoreMocks: false,
104
-
105
- // The root directory that Jest should scan for tests and modules within
106
- // rootDir: undefined,
107
-
108
- // A list of paths to directories that Jest should use to search for files in
109
- roots: ['<rootDir>'],
110
-
111
- // Allows you to use a custom runner instead of Jest's default test runner
112
- // runner: "jest-runner",
113
-
114
- // The paths to modules that run some code to configure or set up the testing environment before each test
115
- // setupFiles: [],
116
-
117
- // A list of paths to modules that run some code to configure or set up the testing framework before each test
118
- // setupFilesAfterEnv: [],
119
-
120
- // The number of seconds after which a test is considered as slow and reported as such in the results.
121
- // slowTestThreshold: 5,
122
-
123
- // A list of paths to snapshot serializer modules Jest should use for snapshot testing
124
- // snapshotSerializers: [],
125
-
126
- // The test environment that will be used for testing
127
- testEnvironment: 'jsdom',
128
-
129
- // Options that will be passed to the testEnvironment
130
- // testEnvironmentOptions: {},
131
-
132
- // Adds a location field to test results
133
- // testLocationInResults: false,
134
-
135
- // The glob patterns Jest uses to detect test files
136
- testMatch: ['**/__tests__/**/*.[jt]s?(x)', '**/?(*.)+(spec|test).[tj]s?(x)'],
137
-
138
- // An array of regexp pattern strings that are matched against all test paths, matched tests are skipped
139
- testPathIgnorePatterns: ['/node_modules/'],
140
-
141
- // The regexp pattern or array of patterns that Jest uses to detect test files
142
- // testRegex: [],
143
-
144
- // This option allows the use of a custom results processor
145
- // testResultsProcessor: undefined,
146
-
147
- // This option allows use of a custom test runner
148
- // testRunner: "jest-circus/runner",
149
-
150
- // This option sets the URL for the jsdom environment. It is reflected in properties such as location.href
151
- // testURL: "http://localhost",
152
-
153
- // Setting this value to "fake" allows the use of fake timers for functions such as "setTimeout"
154
- // timers: "real",
155
-
156
- // A map from regular expressions to paths to transformers
157
- transform: {'\\.[jt]sx?$': 'babel-jest'},
158
-
159
- // An array of regexp pattern strings that are matched against all source file paths, matched files will skip transformation
160
- transformIgnorePatterns: ['/node_modules/', '\\.pnp\\.[^\\/]+$'],
161
-
162
- // An array of regexp pattern strings that are matched against all modules before the module loader will automatically return a mock for them
163
- // unmockedModulePathPatterns: undefined,
164
-
165
- // Indicates whether each individual test should be reported during the run
166
- // verbose: undefined,
167
-
168
- // An array of regexp patterns that are matched against all source file paths before re-running tests in watch mode
169
- // watchPathIgnorePatterns: [],
170
-
171
- // Whether to use watchman for file crawling
172
- // watchman: true,
173
- };
1
+ /*
2
+ * For a detailed explanation regarding each configuration property, visit:
3
+ * https://jestjs.io/docs/configuration
4
+ */
5
+
6
+ module.exports = {
7
+ // All imported modules in your tests should be mocked automatically
8
+ // automock: false,
9
+
10
+ // Stop running tests after `n` failures
11
+ // bail: 0,
12
+
13
+ // The directory where Jest should store its cached dependency information
14
+ // cacheDirectory: "/private/var/folders/cs/1rk8dkgn7y5421407xn0z3200000gn/T/jest_dx",
15
+
16
+ // Automatically clear mock calls, instances and results before every test
17
+ clearMocks: true,
18
+
19
+ // Indicates whether the coverage information should be collected while executing the test
20
+ collectCoverage: true,
21
+
22
+ // An array of glob patterns indicating a set of files for which coverage information should be collected
23
+ // collectCoverageFrom: undefined,
24
+
25
+ // The directory where Jest should output its coverage files
26
+ coverageDirectory: 'coverage',
27
+
28
+ // An array of regexp pattern strings used to skip coverage collection
29
+ coveragePathIgnorePatterns: ['/node_modules/'],
30
+
31
+ // Indicates which provider should be used to instrument code for coverage
32
+ coverageProvider: 'v8',
33
+
34
+ // A list of reporter names that Jest uses when writing coverage reports
35
+ // coverageReporters: [
36
+ // "json",
37
+ // "text",
38
+ // "lcov",
39
+ // "clover"
40
+ // ],
41
+
42
+ // An object that configures minimum threshold enforcement for coverage results
43
+ // coverageThreshold: undefined,
44
+
45
+ // A path to a custom dependency extractor
46
+ // dependencyExtractor: undefined,
47
+
48
+ // Make calling deprecated APIs throw helpful error messages
49
+ // errorOnDeprecated: false,
50
+
51
+ // Force coverage collection from ignored files using an array of glob patterns
52
+ // forceCoverageMatch: [],
53
+
54
+ // A path to a module which exports an async function that is triggered once before all test suites
55
+ // globalSetup: undefined,
56
+
57
+ // A path to a module which exports an async function that is triggered once after all test suites
58
+ // globalTeardown: undefined,
59
+
60
+ // A set of global variables that need to be available in all test environments
61
+ // globals: {},
62
+
63
+ // The maximum amount of workers used to run your tests. Can be specified as % or a number. E.g. maxWorkers: 10% will use 10% of your CPU amount + 1 as the maximum worker number. maxWorkers: 2 will use a maximum of 2 workers.
64
+ // maxWorkers: "50%",
65
+
66
+ // An array of directory names to be searched recursively up from the requiring module's location
67
+ moduleDirectories: ['node_modules'],
68
+
69
+ // An array of file extensions your modules use
70
+ moduleFileExtensions: ['js', 'jsx', 'ts', 'tsx', 'json', 'node'],
71
+
72
+ // A map from regular expressions to module names or to arrays of module names that allow to stub out resources with a single module
73
+ // moduleNameMapper: {},
74
+
75
+ // An array of regexp pattern strings, matched against all module paths before considered 'visible' to the module loader
76
+ // modulePathIgnorePatterns: [],
77
+
78
+ // Activates notifications for test results
79
+ // notify: false,
80
+
81
+ // An enum that specifies notification mode. Requires { notify: true }
82
+ // notifyMode: "failure-change",
83
+
84
+ // A preset that is used as a base for Jest's configuration
85
+ // preset: undefined,
86
+
87
+ // Run tests from one or more projects
88
+ // projects: undefined,
89
+
90
+ // Use this configuration option to add custom reporters to Jest
91
+ // reporters: undefined,
92
+
93
+ // Automatically reset mock state before every test
94
+ // resetMocks: false,
95
+
96
+ // Reset the module registry before running each individual test
97
+ // resetModules: false,
98
+
99
+ // A path to a custom resolver
100
+ // resolver: undefined,
101
+
102
+ // Automatically restore mock state and implementation before every test
103
+ // restoreMocks: false,
104
+
105
+ // The root directory that Jest should scan for tests and modules within
106
+ // rootDir: undefined,
107
+
108
+ // A list of paths to directories that Jest should use to search for files in
109
+ roots: ['<rootDir>'],
110
+
111
+ // Allows you to use a custom runner instead of Jest's default test runner
112
+ // runner: "jest-runner",
113
+
114
+ // The paths to modules that run some code to configure or set up the testing environment before each test
115
+ // setupFiles: [],
116
+
117
+ // A list of paths to modules that run some code to configure or set up the testing framework before each test
118
+ // setupFilesAfterEnv: [],
119
+
120
+ // The number of seconds after which a test is considered as slow and reported as such in the results.
121
+ // slowTestThreshold: 5,
122
+
123
+ // A list of paths to snapshot serializer modules Jest should use for snapshot testing
124
+ // snapshotSerializers: [],
125
+
126
+ // The test environment that will be used for testing
127
+ testEnvironment: 'jsdom',
128
+
129
+ // Options that will be passed to the testEnvironment
130
+ // testEnvironmentOptions: {},
131
+
132
+ // Adds a location field to test results
133
+ // testLocationInResults: false,
134
+
135
+ // The glob patterns Jest uses to detect test files
136
+ testMatch: ['**/__tests__/**/*.[jt]s?(x)', '**/?(*.)+(spec|test).[tj]s?(x)'],
137
+
138
+ // An array of regexp pattern strings that are matched against all test paths, matched tests are skipped
139
+ testPathIgnorePatterns: ['/node_modules/'],
140
+
141
+ // The regexp pattern or array of patterns that Jest uses to detect test files
142
+ // testRegex: [],
143
+
144
+ // This option allows the use of a custom results processor
145
+ // testResultsProcessor: undefined,
146
+
147
+ // This option allows use of a custom test runner
148
+ // testRunner: "jest-circus/runner",
149
+
150
+ // This option sets the URL for the jsdom environment. It is reflected in properties such as location.href
151
+ // testURL: "http://localhost",
152
+
153
+ // Setting this value to "fake" allows the use of fake timers for functions such as "setTimeout"
154
+ // timers: "real",
155
+
156
+ // A map from regular expressions to paths to transformers
157
+ transform: {'\\.[jt]sx?$': 'babel-jest'},
158
+
159
+ // An array of regexp pattern strings that are matched against all source file paths, matched files will skip transformation
160
+ transformIgnorePatterns: ['/node_modules/', '\\.pnp\\.[^\\/]+$'],
161
+
162
+ // An array of regexp pattern strings that are matched against all modules before the module loader will automatically return a mock for them
163
+ // unmockedModulePathPatterns: undefined,
164
+
165
+ // Indicates whether each individual test should be reported during the run
166
+ // verbose: undefined,
167
+
168
+ // An array of regexp patterns that are matched against all source file paths before re-running tests in watch mode
169
+ // watchPathIgnorePatterns: [],
170
+
171
+ // Whether to use watchman for file crawling
172
+ // watchman: true,
173
+ };
package/netlify.toml CHANGED
@@ -1,27 +1,27 @@
1
- # Settings in the [build] context are global and are applied to
2
- # all contexts unless otherwise overridden by more specific contexts.
3
- [build]
4
- # Directory to change to before starting a build.
5
- # This is where we will look for package.json/.nvmrc/etc.
6
- # If not set, defaults to the root directory.
7
- base = ""
8
-
9
- # Directory that contains the deploy-ready HTML files and
10
- # assets generated by the build. This is relative to the base
11
- # directory if one has been set, or the root directory if
12
- # a base has not been set.
13
-
14
- publish = "dist/"
15
-
16
- # Default build command.
17
- command = "npm run build:prod"
18
-
19
- # Redirects and headers are GLOBAL for all builds – they do not
20
- # get scoped to contexts no matter where you define them in the file.
21
- # For context-specific rules, use _headers or _redirects files,
22
- # which are PER-DEPLOY.
23
-
24
- # A basic redirect rule
25
- [[redirects]]
26
- from = "/*"
1
+ # Settings in the [build] context are global and are applied to
2
+ # all contexts unless otherwise overridden by more specific contexts.
3
+ [build]
4
+ # Directory to change to before starting a build.
5
+ # This is where we will look for package.json/.nvmrc/etc.
6
+ # If not set, defaults to the root directory.
7
+ base = ""
8
+
9
+ # Directory that contains the deploy-ready HTML files and
10
+ # assets generated by the build. This is relative to the base
11
+ # directory if one has been set, or the root directory if
12
+ # a base has not been set.
13
+
14
+ publish = "dist/"
15
+
16
+ # Default build command.
17
+ command = "npm run build:prod"
18
+
19
+ # Redirects and headers are GLOBAL for all builds – they do not
20
+ # get scoped to contexts no matter where you define them in the file.
21
+ # For context-specific rules, use _headers or _redirects files,
22
+ # which are PER-DEPLOY.
23
+
24
+ # A basic redirect rule
25
+ [[redirects]]
26
+ from = "/*"
27
27
  to = "/example"
package/package.json CHANGED
@@ -1,78 +1,78 @@
1
- {
2
- "name": "speaker-calibration",
3
- "version": "2.2.247",
4
- "description": "Speaker calibration library for auditory testing",
5
- "main": "dist/main.js",
6
- "directories": {
7
- "bin": "dist"
8
- },
9
- "scripts": {
10
- "phrases": "node dist/example/fetch-languages-sheets.js && prettier --write dist/example/i18n.js",
11
- "build:prod": "webpack --mode production --progress",
12
- "build:dev": "webpack --watch --mode development --progress",
13
- "build:dev:analyze": "webpack --watch --mode development --progress --analyze",
14
- "serve:dev": "nodemon ./dist/example/server.js",
15
- "build:wasm": "make rebuild",
16
- "lint": "eslint src --ext .js",
17
- "lint:fix": "npm run lint -- --fix",
18
- "format": "prettier --write \"**/*.{js,json,md,html,css}\"",
19
- "build:doc": "jsdoc src -r -d ./doc",
20
- "test": "jest",
21
- "test:watch": "jest --watchAll --coverage"
22
- },
23
- "keywords": [],
24
- "constributors": [
25
- {
26
- "name": "Hugo De Moraes",
27
- "email": "demoraeshugo@gmail.com",
28
- "url": "https://github.com/demoraeshugo"
29
- }
30
- ],
31
- "license": "MIT",
32
- "repository": "git://github.com/EasyEyes/speaker-calibration.git",
33
- "dependencies": {
34
- "@babel/runtime": "^7.26.0",
35
- "axios": "^1.6.7",
36
- "fftw-js": "^0.1.4",
37
- "firebase": "^9.23.0",
38
- "googleapis": "^140.0.1",
39
- "np": "^7.7.0",
40
- "nvm": "^0.0.4",
41
- "path-browserify": "^1.0.1",
42
- "peerjs": "1.4.7",
43
- "qrcode": "^1.4.4",
44
- "socket.io-client": "^4.4.1",
45
- "sweetalert2": "^11.14.0",
46
- "uuid": "^8.3.2",
47
- "xlsx": "^0.18.5"
48
- },
49
- "devDependencies": {
50
- "@babel/core": "^7.26.0",
51
- "@babel/plugin-transform-async-to-generator": "^7.25.9",
52
- "@babel/plugin-transform-runtime": "^7.25.9",
53
- "@babel/preset-env": "^7.26.0",
54
- "babel-loader": "^9.2.1",
55
- "babel-jest": "^27.5.1",
56
- "core-js": "^3.40.0",
57
- "css-loader": "^5.2.6",
58
- "eslint": "^8.10.0",
59
- "eslint-config-airbnb-base": "^15.0.0",
60
- "eslint-config-prettier": "^8.4.0",
61
- "eslint-plugin-compat": "^4.0.2",
62
- "eslint-plugin-import": "^2.25.4",
63
- "eslint-plugin-jsdoc": "^39.3.4",
64
- "eslint-plugin-no-floating-promise": "^1.0.2",
65
- "express": "^4.17.1",
66
- "jest": "^27.5.1",
67
- "jsdoc": "^4.0.2",
68
- "nodemon": "^2.0.15",
69
- "prettier": "^2.5.1",
70
- "style-loader": "^2.0.0",
71
- "webpack": "^5.90.3",
72
- "webpack-bundle-analyzer": "^4.5.0",
73
- "webpack-cli": "^4.9.2"
74
- },
75
- "browserslist": [
76
- "defaults"
77
- ]
78
- }
1
+ {
2
+ "name": "speaker-calibration",
3
+ "version": "2.2.249",
4
+ "description": "Speaker calibration library for auditory testing",
5
+ "main": "dist/main.js",
6
+ "directories": {
7
+ "bin": "dist"
8
+ },
9
+ "scripts": {
10
+ "phrases": "node dist/example/fetch-languages-sheets.js && prettier --write dist/example/i18n.js",
11
+ "build:prod": "webpack --mode production --progress",
12
+ "build:dev": "webpack --watch --mode development --progress",
13
+ "build:dev:analyze": "webpack --watch --mode development --progress --analyze",
14
+ "serve:dev": "nodemon ./dist/example/server.js",
15
+ "build:wasm": "make rebuild",
16
+ "lint": "eslint src --ext .js",
17
+ "lint:fix": "npm run lint -- --fix",
18
+ "format": "prettier --write \"**/*.{js,json,md,html,css}\"",
19
+ "build:doc": "jsdoc src -r -d ./doc",
20
+ "test": "jest",
21
+ "test:watch": "jest --watchAll --coverage"
22
+ },
23
+ "keywords": [],
24
+ "constributors": [
25
+ {
26
+ "name": "Hugo De Moraes",
27
+ "email": "demoraeshugo@gmail.com",
28
+ "url": "https://github.com/demoraeshugo"
29
+ }
30
+ ],
31
+ "license": "MIT",
32
+ "repository": "git://github.com/EasyEyes/speaker-calibration.git",
33
+ "dependencies": {
34
+ "@babel/runtime": "^7.26.0",
35
+ "axios": "^1.6.7",
36
+ "fftw-js": "^0.1.4",
37
+ "firebase": "^9.23.0",
38
+ "googleapis": "^140.0.1",
39
+ "np": "^7.7.0",
40
+ "nvm": "^0.0.4",
41
+ "path-browserify": "^1.0.1",
42
+ "peerjs": "1.4.7",
43
+ "qrcode": "^1.4.4",
44
+ "socket.io-client": "^4.4.1",
45
+ "sweetalert2": "^11.14.0",
46
+ "uuid": "^8.3.2",
47
+ "xlsx": "^0.18.5"
48
+ },
49
+ "devDependencies": {
50
+ "@babel/core": "^7.26.0",
51
+ "@babel/plugin-transform-async-to-generator": "^7.25.9",
52
+ "@babel/plugin-transform-runtime": "^7.25.9",
53
+ "@babel/preset-env": "^7.26.0",
54
+ "babel-loader": "^9.2.1",
55
+ "babel-jest": "^27.5.1",
56
+ "core-js": "^3.40.0",
57
+ "css-loader": "^5.2.6",
58
+ "eslint": "^8.10.0",
59
+ "eslint-config-airbnb-base": "^15.0.0",
60
+ "eslint-config-prettier": "^8.4.0",
61
+ "eslint-plugin-compat": "^4.0.2",
62
+ "eslint-plugin-import": "^2.25.4",
63
+ "eslint-plugin-jsdoc": "^39.3.4",
64
+ "eslint-plugin-no-floating-promise": "^1.0.2",
65
+ "express": "^4.17.1",
66
+ "jest": "^27.5.1",
67
+ "jsdoc": "^4.0.2",
68
+ "nodemon": "^2.0.15",
69
+ "prettier": "^2.5.1",
70
+ "style-loader": "^2.0.0",
71
+ "webpack": "^5.90.3",
72
+ "webpack-bundle-analyzer": "^4.5.0",
73
+ "webpack-cli": "^4.9.2"
74
+ },
75
+ "browserslist": [
76
+ "defaults"
77
+ ]
78
+ }
@@ -1,26 +1,26 @@
1
- // Import the functions you need from the SDKs you need
2
- import {initializeApp} from 'firebase/app';
3
- import {getDatabase} from 'firebase/database';
4
- import {getFirestore} from 'firebase/firestore';
5
- // TODO: Add SDKs for Firebase products that you want to use
6
- // https://firebase.google.com/docs/web/setup#available-libraries
7
-
8
- // Your web app's Firebase configuration
9
- // For Firebase JS SDK v7.20.0 and later, measurementId is optional
10
- const firebaseConfig = {
11
- apiKey: 'AIzaSyDZopCl6jqND4sFYCSiB1GpCXreXd6-Q9s',
12
- authDomain: 'speaker-calibration.firebaseapp.com',
13
- databaseURL: 'https://speaker-calibration-default-rtdb.firebaseio.com',
14
- projectId: 'speaker-calibration',
15
- storageBucket: 'speaker-calibration.appspot.com',
16
- messagingSenderId: '322038930574',
17
- appId: '1:322038930574:web:d10ca9e7d60b6da9bafddf',
18
- measurementId: 'G-3724GD92R6',
19
- };
20
-
21
- // Initialize Firebase
22
- const app = initializeApp(firebaseConfig);
23
- // const database = getDatabase();
24
- const database = getFirestore(app);
25
-
26
- export default database;
1
+ // Import the functions you need from the SDKs you need
2
+ import {initializeApp} from 'firebase/app';
3
+ import {getDatabase} from 'firebase/database';
4
+ import {getFirestore} from 'firebase/firestore';
5
+ // TODO: Add SDKs for Firebase products that you want to use
6
+ // https://firebase.google.com/docs/web/setup#available-libraries
7
+
8
+ // Your web app's Firebase configuration
9
+ // For Firebase JS SDK v7.20.0 and later, measurementId is optional
10
+ const firebaseConfig = {
11
+ apiKey: 'AIzaSyDZopCl6jqND4sFYCSiB1GpCXreXd6-Q9s',
12
+ authDomain: 'speaker-calibration.firebaseapp.com',
13
+ databaseURL: 'https://speaker-calibration-default-rtdb.firebaseio.com',
14
+ projectId: 'speaker-calibration',
15
+ storageBucket: 'speaker-calibration.appspot.com',
16
+ messagingSenderId: '322038930574',
17
+ appId: '1:322038930574:web:d10ca9e7d60b6da9bafddf',
18
+ measurementId: 'G-3724GD92R6',
19
+ };
20
+
21
+ // Initialize Firebase
22
+ const app = initializeApp(firebaseConfig);
23
+ // const database = getDatabase();
24
+ const database = getFirestore(app);
25
+
26
+ export default database;