@eleven-am/pondsocket 0.1.91 → 0.1.92

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 (2) hide show
  1. package/nest.js +4 -4
  2. package/package.json +1 -1
package/nest.js CHANGED
@@ -23,6 +23,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
23
23
  exports.PondSocketModule = exports.Endpoint = exports.Channel = exports.EndpointInstance = exports.ChannelInstance = exports.OnConnectionRequest = exports.OnEvent = exports.OnLeaveEvent = exports.OnJoinRequest = exports.GetConnectionQuery = exports.GetConnectionHeaders = exports.GetConnectionParams = exports.GetConnectionRequestId = exports.GetConnectionResponse = exports.GetConnectionRequest = exports.GetEventRequest = exports.GetEventResponse = exports.GetEventQuery = exports.GetEventParams = exports.GetEventPayload = exports.GetUserPresences = exports.GetInternalChannel = exports.GetUserData = exports.GetJoinParams = exports.GetJoinResponse = exports.GetJoinRequest = void 0;
24
24
  const http_1 = require("http");
25
25
  const common_1 = require("@nestjs/common");
26
+ // eslint-disable-next-line import/no-unresolved
26
27
  const core_1 = require("@nestjs/core");
27
28
  require("reflect-metadata");
28
29
  const pondSocket_1 = require("./server/pondSocket");
@@ -589,14 +590,13 @@ function EndpointInstance() {
589
590
  exports.EndpointInstance = EndpointInstance;
590
591
  const Channel = (path = '*') => createClassDecorator(channelClassKey, path);
591
592
  exports.Channel = Channel;
592
- const SetEndpoint = (path = '*') => createClassDecorator(endpointClassKey, path);
593
- const SetChannels = (channels) => createClassDecorator(channelsClassKey, channels);
593
+ const setEndpoint = (path = '*') => createClassDecorator(endpointClassKey, path);
594
+ const setChannels = (channels) => createClassDecorator(channelsClassKey, channels);
594
595
  const getChannels = (target) => {
595
596
  var _a;
596
597
  return (_a = getClassMetadata(channelsClassKey, target)) !== null && _a !== void 0 ? _a : [];
597
598
  };
598
- // eslint-disable-next-line new-cap
599
- const Endpoint = (metadata) => (0, common_1.applyDecorators)(SetChannels(metadata.channels), SetEndpoint(metadata.path));
599
+ const Endpoint = (metadata) => (0, common_1.applyDecorators)(setChannels(metadata.channels), setEndpoint(metadata.path));
600
600
  exports.Endpoint = Endpoint;
601
601
  class PondSocketService {
602
602
  constructor(moduleRef, adapterHost, endpoints) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eleven-am/pondsocket",
3
- "version": "0.1.91",
3
+ "version": "0.1.92",
4
4
  "description": "PondSocket is a fast simple socket server",
5
5
  "keywords": [
6
6
  "socket",