polyapi 0.13.0 → 0.13.1
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.
|
@@ -34,8 +34,8 @@ const getSocket = () => {
|
|
|
34
34
|
const value = target[property];
|
|
35
35
|
|
|
36
36
|
if (property === 'emit') {
|
|
37
|
-
return function emit(...
|
|
38
|
-
const [event] =
|
|
37
|
+
return function emit(...args) {
|
|
38
|
+
const [event] = args;
|
|
39
39
|
|
|
40
40
|
if (event.match(/^register/)) {
|
|
41
41
|
listenersCount+=1;
|
|
@@ -49,7 +49,7 @@ const getSocket = () => {
|
|
|
49
49
|
socket.disconnect();
|
|
50
50
|
socket = null;
|
|
51
51
|
} else {
|
|
52
|
-
return value.apply(this === receiver ? target : this,
|
|
52
|
+
return value.apply(this === receiver ? target : this, args);
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
55
|
}
|
|
@@ -14,12 +14,10 @@ export declare class BasicAuth {
|
|
|
14
14
|
}
|
|
15
15
|
export declare class BearerAuth {
|
|
16
16
|
type: 'bearer';
|
|
17
|
-
bearer:
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
}
|
|
22
|
-
];
|
|
17
|
+
bearer: {
|
|
18
|
+
key: string;
|
|
19
|
+
value: string;
|
|
20
|
+
}[];
|
|
23
21
|
}
|
|
24
22
|
export declare class ApiKeyAuth {
|
|
25
23
|
type: 'apikey';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../../../model/src/auth.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,IAAI,GAAG,SAAS,GAAG,UAAU,GAAG,UAAU,GAAG,MAAM,CAAC;AAEhE,qBAAa,SAAS;IACpB,IAAI,EAAE,OAAO,CAAC;IACd,KAAK,EAAE;QACL;YACE,GAAG,EAAE,UAAU,CAAC;YAChB,KAAK,EAAE,MAAM,CAAC;SACf;QACD;YACE,GAAG,EAAE,UAAU,CAAC;YAChB,KAAK,EAAE,MAAM,CAAC;SACf;KACF,CAAC;CACH;AAED,qBAAa,UAAU;IACrB,IAAI,EAAE,QAAQ,CAAC;IACf,MAAM,EAAE;
|
|
1
|
+
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../../../model/src/auth.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,IAAI,GAAG,SAAS,GAAG,UAAU,GAAG,UAAU,GAAG,MAAM,CAAC;AAEhE,qBAAa,SAAS;IACpB,IAAI,EAAE,OAAO,CAAC;IACd,KAAK,EAAE;QACL;YACE,GAAG,EAAE,UAAU,CAAC;YAChB,KAAK,EAAE,MAAM,CAAC;SACf;QACD;YACE,GAAG,EAAE,UAAU,CAAC;YAChB,KAAK,EAAE,MAAM,CAAC;SACf;KACF,CAAC;CACH;AAED,qBAAa,UAAU;IACrB,IAAI,EAAE,QAAQ,CAAC;IACf,MAAM,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;CAC1C;AAED,qBAAa,UAAU;IACrB,IAAI,EAAE,QAAQ,CAAC;IACf,MAAM,EAAE;QACN;YACE,GAAG,EAAE,IAAI,CAAC;YACV,KAAK,EAAE,QAAQ,GAAG,OAAO,CAAC;SAC3B;QACD;YACE,GAAG,EAAE,KAAK,CAAC;YACX,KAAK,EAAE,MAAM,CAAC;SACf;QACD;YACE,GAAG,EAAE,OAAO,CAAC;YACb,KAAK,EAAE,MAAM,CAAC;SACf;KACF,CAAC;CACH;AAED,qBAAa,MAAM;IACjB,IAAI,EAAE,QAAQ,CAAC;IACf,MAAM,EAAE,EAAE,CAAC;CACZ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth.js","sourceRoot":"","sources":["../../../../model/src/auth.ts"],"names":[],"mappings":";;;AAEA,MAAa,SAAS;CAYrB;AAZD,8BAYC;AAED,MAAa,UAAU;
|
|
1
|
+
{"version":3,"file":"auth.js","sourceRoot":"","sources":["../../../../model/src/auth.ts"],"names":[],"mappings":";;;AAEA,MAAa,SAAS;CAYrB;AAZD,8BAYC;AAED,MAAa,UAAU;CAGtB;AAHD,gCAGC;AAED,MAAa,UAAU;CAgBtB;AAhBD,gCAgBC;AAED,MAAa,MAAM;CAGlB;AAHD,wBAGC"}
|