@microsoft/decorators 1.23.2 → 1.24.0-beta.2
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/decorators_none_0c4956820a57433e125d.js +1 -0
- package/dist/f97266fb-ccb7-430e-9384-4124d05295d3.manifest.json +3 -3
- package/dist/tsdoc-metadata.json +1 -1
- package/lib-commonjs/index.js +26 -11
- package/lib-commonjs/override.js +15 -10
- package/lib-commonjs/sealed.js +15 -9
- package/lib-commonjs/virtual.js +15 -10
- package/{lib → lib-esm}/index.js +3 -3
- package/{lib → lib-esm}/override.js +5 -6
- package/{lib → lib-esm}/sealed.js +5 -5
- package/{lib → lib-esm}/virtual.js +5 -6
- package/package.json +29 -2
- package/dist/decorators_none_3871e2b81005af6ce520.js +0 -1
- package/lib/index.d.ts.map +0 -1
- package/lib/override.d.ts.map +0 -1
- package/lib/sealed.d.ts.map +0 -1
- package/lib/virtual.d.ts.map +0 -1
- /package/{lib → lib-dts}/index.d.ts +0 -0
- /package/{lib → lib-dts}/override.d.ts +0 -0
- /package/{lib → lib-dts}/sealed.d.ts +0 -0
- /package/{lib → lib-dts}/virtual.d.ts +0 -0
- /package/{lib → lib-esm}/decorators.manifest.json +0 -0
|
@@ -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.
|
|
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": "
|
|
17
|
-
"integrity": "sha256-
|
|
16
|
+
"path": "decorators_none_0c4956820a57433e125d.js",
|
|
17
|
+
"integrity": "sha256-gGhYhGwrMLYELvemv60gIVX2LZKglqMCUYyqKa7Pf8o="
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
20
|
}
|
package/dist/tsdoc-metadata.json
CHANGED
package/lib-commonjs/index.js
CHANGED
|
@@ -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", {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
var
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
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
|
package/lib-commonjs/override.js
CHANGED
|
@@ -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
|
-
|
|
14
|
-
|
|
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
|
-
|
|
17
|
-
|
|
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
|
-
|
|
20
|
-
//# sourceMappingURL
|
|
24
|
+
|
|
25
|
+
//# sourceMappingURL=./override.js.map
|
package/lib-commonjs/sealed.js
CHANGED
|
@@ -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
|
-
|
|
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
|
-
|
|
15
|
-
|
|
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
|
-
|
|
18
|
-
//# sourceMappingURL
|
|
23
|
+
|
|
24
|
+
//# sourceMappingURL=./sealed.js.map
|
package/lib-commonjs/virtual.js
CHANGED
|
@@ -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
|
-
|
|
15
|
-
|
|
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
|
-
|
|
18
|
-
|
|
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
|
-
|
|
21
|
-
//# sourceMappingURL
|
|
25
|
+
|
|
26
|
+
//# sourceMappingURL=./virtual.js.map
|
package/{lib → lib-esm}/index.js
RENAMED
|
@@ -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
|
-
|
|
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
|
-
|
|
14
|
-
|
|
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
|
-
|
|
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
|
-
|
|
12
|
-
|
|
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
|
-
|
|
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
|
-
|
|
15
|
-
|
|
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
|
-
|
|
15
|
+
|
|
16
|
+
//# sourceMappingURL=./virtual.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@microsoft/decorators",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.24.0-beta.2",
|
|
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,8 +8,35 @@
|
|
|
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"
|
|
@@ -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})());
|
package/lib/index.d.ts.map
DELETED
|
@@ -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"}
|
package/lib/override.d.ts.map
DELETED
|
@@ -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"}
|
package/lib/sealed.d.ts.map
DELETED
|
@@ -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"}
|
package/lib/virtual.d.ts.map
DELETED
|
@@ -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
|