@microsoft/decorators 1.23.2 → 1.24.0-beta.3

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.
@@ -0,0 +1 @@
1
+ define("f97266fb-ccb7-430e-9384-4124d05295d3_1.24.0",[],()=>(()=>{"use strict";var a={};a.d=(b,c)=>{for(var d in c)a.o(c,d)&&!a.o(b,d)&&Object.defineProperty(b,d,{enumerable:!0,get:c[d]})},a.o=(a,b)=>Object.prototype.hasOwnProperty.call(a,b),a.r=a=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(a,"__esModule",{value:!0})};var b={};function c(a,b,c){}function d(a){}function e(a,b,c){}return a.r(b),a.d(b,{override:()=>e,sealed:()=>d,virtual:()=>c}),b})());
@@ -2,7 +2,7 @@
2
2
  "id": "f97266fb-ccb7-430e-9384-4124d05295d3",
3
3
  "alias": "Decorators",
4
4
  "componentType": "Library",
5
- "version": "1.23.2",
5
+ "version": "1.24.0",
6
6
  "manifestVersion": 2,
7
7
  "loaderConfig": {
8
8
  "internalModuleBaseUrls": [
@@ -13,8 +13,8 @@
13
13
  "decorators": {
14
14
  "type": "path",
15
15
  "path": {
16
- "path": "decorators_none_3871e2b81005af6ce520.js",
17
- "integrity": "sha256-RGzk80CPqCvsvqT9IVBW4XsnwT6AYooxllrNHujx0Ns="
16
+ "path": "decorators_none_0d823fa301525f82a3cf.js",
17
+ "integrity": "sha256-gGhYhGwrMLYELvemv60gIVX2LZKglqMCUYyqKa7Pf8o="
18
18
  }
19
19
  }
20
20
  }
@@ -5,7 +5,7 @@
5
5
  "toolPackages": [
6
6
  {
7
7
  "packageName": "@microsoft/api-extractor",
8
- "packageVersion": "7.57.7"
8
+ "packageVersion": "7.58.12"
9
9
  }
10
10
  ]
11
11
  }
@@ -1,4 +1,3 @@
1
- "use strict";
2
1
  /**
3
2
  * A conservative set of decorators intended for use in both NodeJS and web browser projects.
4
3
  *
@@ -9,13 +8,29 @@
9
8
  * general toolkit of language extensions or helpful macros.
10
9
  *
11
10
  * @packagedocumentation
12
- */
13
- Object.defineProperty(exports, "__esModule", { value: true });
14
- exports.override = exports.sealed = exports.virtual = void 0;
15
- var virtual_1 = require("./virtual");
16
- Object.defineProperty(exports, "virtual", { enumerable: true, get: function () { return virtual_1.virtual; } });
17
- var sealed_1 = require("./sealed");
18
- Object.defineProperty(exports, "sealed", { enumerable: true, get: function () { return sealed_1.sealed; } });
19
- var override_1 = require("./override");
20
- Object.defineProperty(exports, "override", { enumerable: true, get: function () { return override_1.override; } });
21
- //# sourceMappingURL=index.js.map
11
+ */ "use strict";
12
+ Object.defineProperty(exports, "__esModule", {
13
+ value: true
14
+ });
15
+ function _export(target, all) {
16
+ for(var name in all)Object.defineProperty(target, name, {
17
+ enumerable: true,
18
+ get: all[name]
19
+ });
20
+ }
21
+ _export(exports, {
22
+ override: function() {
23
+ return _override.override;
24
+ },
25
+ sealed: function() {
26
+ return _sealed.sealed;
27
+ },
28
+ virtual: function() {
29
+ return _virtual.virtual;
30
+ }
31
+ });
32
+ const _virtual = require("./virtual");
33
+ const _sealed = require("./sealed");
34
+ const _override = require("./override");
35
+
36
+ //# sourceMappingURL=./index.js.map
@@ -1,6 +1,3 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.override = void 0;
4
1
  /**
5
2
  * This decorator is applied to a class's member function or property.
6
3
  * It indicates that the definition overrides another definition (of the same name)
@@ -9,12 +6,20 @@ exports.override = void 0;
9
6
  * In the future, it may be enforced at runtime.
10
7
  *
11
8
  * @public
12
- */
13
- function override(target, propertyKey,
14
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
9
+ */ "use strict";
10
+ Object.defineProperty(exports, "__esModule", {
11
+ value: true
12
+ });
13
+ Object.defineProperty(exports, "override", {
14
+ enumerable: true,
15
+ get: function() {
16
+ return override;
17
+ }
18
+ });
19
+ function override(target, propertyKey, // eslint-disable-next-line @typescript-eslint/no-explicit-any
15
20
  descriptor) {
16
- // Eventually we may implement runtime validation (e.g. in DEBUG builds)
17
- // but currently this decorator is only used by the build tools.
21
+ // Eventually we may implement runtime validation (e.g. in DEBUG builds)
22
+ // but currently this decorator is only used by the build tools.
18
23
  }
19
- exports.override = override;
20
- //# sourceMappingURL=override.js.map
24
+
25
+ //# sourceMappingURL=./override.js.map
@@ -1,6 +1,3 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.sealed = void 0;
4
1
  /**
5
2
  * This decorator is applied to a class (but NOT member function or property).
6
3
  * It indicates that subclasses must not inherit from this class.
@@ -8,11 +5,20 @@ exports.sealed = void 0;
8
5
  * In the future, it may be enforced at runtime.
9
6
  *
10
7
  * @public
11
- */
12
- // eslint-disable-next-line @typescript-eslint/no-unsafe-function-type
8
+ */ // eslint-disable-next-line @typescript-eslint/no-unsafe-function-type
9
+ "use strict";
10
+ Object.defineProperty(exports, "__esModule", {
11
+ value: true
12
+ });
13
+ Object.defineProperty(exports, "sealed", {
14
+ enumerable: true,
15
+ get: function() {
16
+ return sealed;
17
+ }
18
+ });
13
19
  function sealed(target) {
14
- // Eventually we may implement runtime validation (e.g. in DEBUG builds)
15
- // but currently this decorator is only used by the build tools.
20
+ // Eventually we may implement runtime validation (e.g. in DEBUG builds)
21
+ // but currently this decorator is only used by the build tools.
16
22
  }
17
- exports.sealed = sealed;
18
- //# sourceMappingURL=sealed.js.map
23
+
24
+ //# sourceMappingURL=./sealed.js.map
@@ -1,6 +1,3 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.virtual = void 0;
4
1
  /**
5
2
  * This decorator is applied to a class's member function or property.
6
3
  * It indicates that the definition may optionally be overridden in a
@@ -10,12 +7,20 @@ exports.virtual = void 0;
10
7
  * In the future, it may be enforced at runtime.
11
8
  *
12
9
  * @public
13
- */
14
- function virtual(target, propertyKey,
15
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
10
+ */ "use strict";
11
+ Object.defineProperty(exports, "__esModule", {
12
+ value: true
13
+ });
14
+ Object.defineProperty(exports, "virtual", {
15
+ enumerable: true,
16
+ get: function() {
17
+ return virtual;
18
+ }
19
+ });
20
+ function virtual(target, propertyKey, // eslint-disable-next-line @typescript-eslint/no-explicit-any
16
21
  descriptor) {
17
- // Eventually we may implement runtime validation (e.g. in DEBUG builds)
18
- // but currently this decorator is only used by the build tools.
22
+ // Eventually we may implement runtime validation (e.g. in DEBUG builds)
23
+ // but currently this decorator is only used by the build tools.
19
24
  }
20
- exports.virtual = virtual;
21
- //# sourceMappingURL=virtual.js.map
25
+
26
+ //# sourceMappingURL=./virtual.js.map
@@ -8,8 +8,8 @@
8
8
  * general toolkit of language extensions or helpful macros.
9
9
  *
10
10
  * @packagedocumentation
11
- */
12
- export { virtual } from './virtual';
11
+ */ export { virtual } from './virtual';
13
12
  export { sealed } from './sealed';
14
13
  export { override } from './override';
15
- //# sourceMappingURL=index.js.map
14
+
15
+ //# sourceMappingURL=./index.js.map
@@ -6,11 +6,10 @@
6
6
  * In the future, it may be enforced at runtime.
7
7
  *
8
8
  * @public
9
- */
10
- export function override(target, propertyKey,
11
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
9
+ */ export function override(target, propertyKey, // eslint-disable-next-line @typescript-eslint/no-explicit-any
12
10
  descriptor) {
13
- // Eventually we may implement runtime validation (e.g. in DEBUG builds)
14
- // but currently this decorator is only used by the build tools.
11
+ // Eventually we may implement runtime validation (e.g. in DEBUG builds)
12
+ // but currently this decorator is only used by the build tools.
15
13
  }
16
- //# sourceMappingURL=override.js.map
14
+
15
+ //# sourceMappingURL=./override.js.map
@@ -5,10 +5,10 @@
5
5
  * In the future, it may be enforced at runtime.
6
6
  *
7
7
  * @public
8
- */
9
- // eslint-disable-next-line @typescript-eslint/no-unsafe-function-type
8
+ */ // eslint-disable-next-line @typescript-eslint/no-unsafe-function-type
10
9
  export function sealed(target) {
11
- // Eventually we may implement runtime validation (e.g. in DEBUG builds)
12
- // but currently this decorator is only used by the build tools.
10
+ // Eventually we may implement runtime validation (e.g. in DEBUG builds)
11
+ // but currently this decorator is only used by the build tools.
13
12
  }
14
- //# sourceMappingURL=sealed.js.map
13
+
14
+ //# sourceMappingURL=./sealed.js.map
@@ -7,11 +7,10 @@
7
7
  * In the future, it may be enforced at runtime.
8
8
  *
9
9
  * @public
10
- */
11
- export function virtual(target, propertyKey,
12
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
10
+ */ export function virtual(target, propertyKey, // eslint-disable-next-line @typescript-eslint/no-explicit-any
13
11
  descriptor) {
14
- // Eventually we may implement runtime validation (e.g. in DEBUG builds)
15
- // but currently this decorator is only used by the build tools.
12
+ // Eventually we may implement runtime validation (e.g. in DEBUG builds)
13
+ // but currently this decorator is only used by the build tools.
16
14
  }
17
- //# sourceMappingURL=virtual.js.map
15
+
16
+ //# sourceMappingURL=./virtual.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@microsoft/decorators",
3
- "version": "1.23.2",
3
+ "version": "1.24.0-beta.3",
4
4
  "description": "A very conservative set of decorators for TypeScript projects",
5
5
  "homepage": "http://aka.ms/spfx",
6
6
  "license": "https://aka.ms/spfx/license",
@@ -8,14 +8,41 @@
8
8
  "node": ">=18.17.1 <19.0.0 || >=22.14.0 < 23.0.0"
9
9
  },
10
10
  "main": "lib-commonjs/index.js",
11
- "module": "lib/index.js",
11
+ "module": "lib-esm/index.js",
12
12
  "typings": "dist/index-internal.d.ts",
13
+ "exports": {
14
+ ".": {
15
+ "types": "./dist/index-internal.d.ts",
16
+ "import": "./lib-esm/index.js",
17
+ "require": "./lib-commonjs/index.js"
18
+ },
19
+ "./lib/*.resx": "./lib-esm/*.resx.json",
20
+ "./lib/*": {
21
+ "types": "./lib-dts/*.d.ts",
22
+ "import": "./lib-esm/*.js",
23
+ "require": "./lib-commonjs/*.js"
24
+ },
25
+ "./lib-commonjs/*.resx": "./lib-esm/*.resx.json",
26
+ "./lib-commonjs/*": {
27
+ "types": "./lib-dts/*.d.ts",
28
+ "import": "./lib-esm/*.js",
29
+ "require": "./lib-commonjs/*.js"
30
+ },
31
+ "./package.json": "./package.json"
32
+ },
33
+ "typesVersions": {
34
+ "*": {
35
+ "lib/*": [
36
+ "lib-dts/*"
37
+ ]
38
+ }
39
+ },
13
40
  "dependencies": {
14
41
  "@swc/helpers": "^0.5.12",
15
42
  "tslib": "2.3.1"
16
43
  },
17
44
  "devDependencies": {
18
- "@rushstack/heft": "1.2.17",
45
+ "@rushstack/heft": "1.2.22",
19
46
  "eslint": "9.37.0",
20
47
  "@msinternal/spfx-internal-web-build-rig": "0.1.0"
21
48
  },
@@ -1 +0,0 @@
1
- define("f97266fb-ccb7-430e-9384-4124d05295d3_1.23.2",[],()=>(()=>{"use strict";var e={d:(t,n)=>{for(var a in n)e.o(n,a)&&!e.o(t,a)&&Object.defineProperty(t,a,{enumerable:!0,get:n[a]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};function n(e,t,n){}function a(e){}function i(e,t,n){}return e.r(t),e.d(t,{override:()=>i,sealed:()=>a,virtual:()=>n}),t})());
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"override.d.ts","sourceRoot":"","sources":["../src/override.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,wBAAgB,QAAQ,CACtB,MAAM,EAAE,MAAM,EACd,WAAW,EAAE,MAAM,GAAG,MAAM,EAE5B,UAAU,EAAE,uBAAuB,CAAC,GAAG,CAAC,GACvC,IAAI,CAGN"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"sealed.d.ts","sourceRoot":"","sources":["../src/sealed.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,wBAAgB,MAAM,CAAC,MAAM,EAAE,QAAQ,GAAG,IAAI,CAG7C"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"virtual.d.ts","sourceRoot":"","sources":["../src/virtual.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,wBAAgB,OAAO,CACrB,MAAM,EAAE,MAAM,EACd,WAAW,EAAE,MAAM,GAAG,MAAM,EAE5B,UAAU,EAAE,uBAAuB,CAAC,GAAG,CAAC,GACvC,IAAI,CAGN"}
File without changes
File without changes
File without changes
File without changes
File without changes