@moostjs/event-http 0.2.8 → 0.2.9

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/dist/index.cjs CHANGED
@@ -497,15 +497,6 @@ function isConstructor(v) {
497
497
  return typeof v === 'function' && Object.getOwnPropertyNames(v).includes('prototype') && !Object.getOwnPropertyNames(v).includes('caller') && !!v.name;
498
498
  }
499
499
 
500
- const banner = () => `[prostojs/mate][${new Date().toISOString().replace('T', ' ').replace(/\.\d{3}z$/i, '')}] `;
501
-
502
- function warn(text) {
503
- console.log('' + banner() + text + '');
504
- }
505
- function logError(error) {
506
- console.error('' + '' + banner() + error + '');
507
- }
508
-
509
500
  const classMetadata = {};
510
501
  const paramMetadata = {};
511
502
  const root = typeof global === 'object' ? global : typeof self === 'object' ? self : {};
@@ -542,19 +533,20 @@ else {
542
533
  'metadata',
543
534
  ];
544
535
  const target = root.Reflect;
545
- let isOriginalReflectMetadata = true;
546
536
  for (const func of funcs) {
547
537
  if (typeof target[func] !== 'function') {
548
538
  Object.defineProperty(target, func, { configurable: true, writable: true, value: _reflect[func] });
549
- isOriginalReflectMetadata = false;
550
539
  }
551
540
  }
552
- if (!isOriginalReflectMetadata) {
553
- warn('A limited \'reflect-metadata\' implementation is used. In case of any issues include original \'reflect-metadata\' package and require it before any @prostojs/mate import.');
554
- }
555
541
  }
556
542
  const Reflect$1 = _reflect;
557
543
 
544
+ const banner = () => `[prostojs/mate][${new Date().toISOString().replace('T', ' ').replace(/\.\d{3}z$/i, '')}] `;
545
+
546
+ function logError(error) {
547
+ console.error('' + '' + banner() + error + '');
548
+ }
549
+
558
550
  function panic(error) {
559
551
  logError(error);
560
552
  return new Error(error);
package/dist/index.mjs CHANGED
@@ -495,15 +495,6 @@ function isConstructor(v) {
495
495
  return typeof v === 'function' && Object.getOwnPropertyNames(v).includes('prototype') && !Object.getOwnPropertyNames(v).includes('caller') && !!v.name;
496
496
  }
497
497
 
498
- const banner = () => `[prostojs/mate][${new Date().toISOString().replace('T', ' ').replace(/\.\d{3}z$/i, '')}] `;
499
-
500
- function warn(text) {
501
- console.log('' + banner() + text + '');
502
- }
503
- function logError(error) {
504
- console.error('' + '' + banner() + error + '');
505
- }
506
-
507
498
  const classMetadata = {};
508
499
  const paramMetadata = {};
509
500
  const root = typeof global === 'object' ? global : typeof self === 'object' ? self : {};
@@ -540,19 +531,20 @@ else {
540
531
  'metadata',
541
532
  ];
542
533
  const target = root.Reflect;
543
- let isOriginalReflectMetadata = true;
544
534
  for (const func of funcs) {
545
535
  if (typeof target[func] !== 'function') {
546
536
  Object.defineProperty(target, func, { configurable: true, writable: true, value: _reflect[func] });
547
- isOriginalReflectMetadata = false;
548
537
  }
549
538
  }
550
- if (!isOriginalReflectMetadata) {
551
- warn('A limited \'reflect-metadata\' implementation is used. In case of any issues include original \'reflect-metadata\' package and require it before any @prostojs/mate import.');
552
- }
553
539
  }
554
540
  const Reflect$1 = _reflect;
555
541
 
542
+ const banner = () => `[prostojs/mate][${new Date().toISOString().replace('T', ' ').replace(/\.\d{3}z$/i, '')}] `;
543
+
544
+ function logError(error) {
545
+ console.error('' + '' + banner() + error + '');
546
+ }
547
+
556
548
  function panic(error) {
557
549
  logError(error);
558
550
  return new Error(error);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moostjs/event-http",
3
- "version": "0.2.8",
3
+ "version": "0.2.9",
4
4
  "description": "@moostjs/event-http",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.mjs",
@@ -28,7 +28,7 @@
28
28
  },
29
29
  "homepage": "https://github.com/moostjs/moostjs/tree/main/packages/event-http#readme",
30
30
  "peerDependencies": {
31
- "moost": "0.2.8",
31
+ "moost": "0.2.9",
32
32
  "wooks": "^0.2.5",
33
33
  "@wooksjs/event-core": "^0.2.5"
34
34
  },