@akanjs/signal 0.0.4 → 0.0.5

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": "@akanjs/signal",
3
- "version": "0.0.4",
3
+ "version": "0.0.5",
4
4
  "type": "commonjs",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -9,22 +9,5 @@
9
9
  "type": "git",
10
10
  "url": "https://github.com/akan-team/akanjs.git",
11
11
  "directory": "pkgs/@akanjs/signal"
12
- },
13
- "dependencies": {
14
- "@urql/core": "5.1.0",
15
- "bull": "4.16.5",
16
- "dayjs": "1.11.13",
17
- "express": "4.21.2",
18
- "immer": "10.1.1",
19
- "mongoose": "8.9.3",
20
- "next": "15.1.3",
21
- "pluralize": "8.0.0",
22
- "react": "18.2.0",
23
- "react-dom": "18.2.0",
24
- "reflect-metadata": "0.2.2",
25
- "socket.io": "4.8.1",
26
- "socket.io-client": "4.8.1",
27
- "tunnel-ssh": "5.2.0"
28
- },
29
- "main": "./index.js"
12
+ }
30
13
  }
@@ -510,12 +510,9 @@ const copySignal = (sigRef) => {
510
510
  for (const endpointMeta of [...gqlMetaMap.values(), ...resolveFieldMetaMap.values()]) {
511
511
  const argMetas = getArgMetasOnPrototype(sigRef.prototype, endpointMeta.key);
512
512
  setArgMetasOnPrototype(CopiedSignal.prototype, endpointMeta.key, [...argMetas]);
513
- const paramtypes = Reflect.getMetadata(
514
- "design:paramtypes",
515
- sigRef.prototype,
516
- endpointMeta.key
517
- );
518
- Reflect.defineMetadata("design:paramtypes", [...paramtypes], CopiedSignal.prototype, endpointMeta.key);
513
+ const paramtypes = Reflect.getMetadata("design:paramtypes", sigRef.prototype, endpointMeta.key);
514
+ if (paramtypes)
515
+ Reflect.defineMetadata("design:paramtypes", [...paramtypes], CopiedSignal.prototype, endpointMeta.key);
519
516
  }
520
517
  return CopiedSignal;
521
518
  };