@rsdk/decorators 5.4.0-next.4 → 5.4.0-next.6

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/CHANGELOG.md CHANGED
@@ -3,6 +3,14 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [5.4.0-next.6](https://github.com/R-Vision/rsdk/compare/v5.4.0-next.5...v5.4.0-next.6) (2024-11-28)
7
+
8
+ **Note:** Version bump only for package @rsdk/decorators
9
+
10
+ ## [5.4.0-next.5](https://github.com/R-Vision/rsdk/compare/v5.4.0-next.4...v5.4.0-next.5) (2024-11-28)
11
+
12
+ **Note:** Version bump only for package @rsdk/decorators
13
+
6
14
  ## [5.4.0-next.4](https://github.com/R-Vision/rsdk/compare/v5.4.0-next.3...v5.4.0-next.4) (2024-11-27)
7
15
 
8
16
  **Note:** Version bump only for package @rsdk/decorators
package/dist/deprecate.js CHANGED
@@ -1,34 +1,11 @@
1
1
  "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
25
2
  Object.defineProperty(exports, "__esModule", { value: true });
26
3
  exports.DeprecateMethod = void 0;
27
- const util = __importStar(require("node:util"));
4
+ const node_util_1 = require("node:util");
28
5
  const DeprecateMethod = (message) => (_, __, descriptor) => {
29
6
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
30
7
  // @ts-ignore
31
- descriptor.value = util.deprecate(descriptor.value, message);
8
+ descriptor.value = (0, node_util_1.deprecate)(descriptor.value, message);
32
9
  };
33
10
  exports.DeprecateMethod = DeprecateMethod;
34
11
  //# sourceMappingURL=deprecate.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"deprecate.js","sourceRoot":"","sources":["../src/deprecate.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,gDAAkC;AAE3B,MAAM,eAAe,GAC1B,CAAC,OAAe,EAAmB,EAAE,CACrC,CAAC,CAAC,EAAE,EAAE,EAAE,UAAU,EAAQ,EAAE;IAC1B,6DAA6D;IAC7D,aAAa;IACb,UAAU,CAAC,KAAK,GAAG,IAAI,CAAC,SAAS,CAAC,UAAU,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;AAC/D,CAAC,CAAC;AANS,QAAA,eAAe,mBAMxB"}
1
+ {"version":3,"file":"deprecate.js","sourceRoot":"","sources":["../src/deprecate.ts"],"names":[],"mappings":";;;AAAA,yCAAsC;AAE/B,MAAM,eAAe,GAC1B,CAAC,OAAe,EAAmB,EAAE,CACrC,CAAC,CAAC,EAAE,EAAE,EAAE,UAAU,EAAQ,EAAE;IAC1B,6DAA6D;IAC7D,aAAa;IACb,UAAU,CAAC,KAAK,GAAG,IAAA,qBAAS,EAAC,UAAU,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;AAC1D,CAAC,CAAC;AANS,QAAA,eAAe,mBAMxB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rsdk/decorators",
3
- "version": "5.4.0-next.4",
3
+ "version": "5.4.0-next.6",
4
4
  "description": "Useful built in decorators and tools for creating custom",
5
5
  "license": "Apache License 2.0",
6
6
  "publishConfig": {
@@ -15,5 +15,5 @@
15
15
  "@rsdk/logging": "*",
16
16
  "reflect-metadata": "^0.1.12 || ^0.2.0"
17
17
  },
18
- "gitHead": "6f7d6802d4dc34620f3c0e8c8ec73887df36a647"
18
+ "gitHead": "acc1405be758b5ba4d2e8eda8d34b3c4f60a813f"
19
19
  }
package/src/deprecate.ts CHANGED
@@ -1,9 +1,9 @@
1
- import * as util from 'node:util';
1
+ import { deprecate } from 'node:util';
2
2
 
3
3
  export const DeprecateMethod =
4
4
  (message: string): MethodDecorator =>
5
5
  (_, __, descriptor): void => {
6
6
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
7
7
  // @ts-ignore
8
- descriptor.value = util.deprecate(descriptor.value, message);
8
+ descriptor.value = deprecate(descriptor.value, message);
9
9
  };