socket-function 1.1.41 → 1.1.42

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "socket-function",
3
- "version": "1.1.41",
3
+ "version": "1.1.42",
4
4
  "main": "index.js",
5
5
  "license": "MIT",
6
6
  "dependencies": {
@@ -86,7 +86,8 @@ export function registerClass(classGuid: string, controller: SocketExposedInterf
86
86
  noFunctionMeasure?: boolean;
87
87
  }) {
88
88
  if (!globalThis.isHotReloading?.() && classes[classGuid]) {
89
- throw new Error(`Class ${classGuid} already registered`);
89
+ console.warn(`Class ${classGuid} already registered. This is normal if you are using multiple copies of socket-function at once.`);
90
+ return;
90
91
  }
91
92
 
92
93
  if (!config?.noFunctionMeasure) {