plugin-tls 3.5.1 → 4.0.0
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/Destroyable-BqvuD4gL-Cmk1ocqj.cjs +1 -0
- package/dist/Destroyable-BqvuD4gL-D50ZO9eN.js +129 -0
- package/dist/createTierModeOptionsPluginHost-C3kmxB00.cjs +1 -0
- package/dist/createTierModeOptionsPluginHost-CeND_z6P.js +852 -0
- package/dist/index-com.d.ts +3 -0
- package/dist/index-com.d.ts.map +1 -0
- package/dist/index-node.cjs +1 -0
- package/dist/index-node.d.ts +3 -0
- package/dist/index-node.d.ts.map +1 -0
- package/dist/index-node.js +256 -0
- package/dist/index-web.cjs +1 -0
- package/dist/index-web.d.ts +3 -0
- package/dist/index-web.d.ts.map +1 -0
- package/dist/index-web.js +326 -0
- package/dist/index.cjs +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +388 -1466
- package/dist/options/index-node.d.ts +2 -0
- package/dist/options/index-node.d.ts.map +1 -0
- package/dist/options/index-web.d.ts +2 -0
- package/dist/options/index-web.d.ts.map +1 -0
- package/dist/options/index.d.ts +3 -3
- package/dist/options/index.d.ts.map +1 -1
- package/dist/options/options-plugin-host/{index.d.ts → index-com.d.ts} +1 -1
- package/dist/options/options-plugin-host/index-com.d.ts.map +1 -0
- package/dist/options/options-plugin-host/index-node.d.ts +4 -0
- package/dist/options/options-plugin-host/index-node.d.ts.map +1 -0
- package/dist/options/options-plugin-host/index-web.d.ts +4 -0
- package/dist/options/options-plugin-host/index-web.d.ts.map +1 -0
- package/dist/options/options-plugin-host/tier-mode-options/TierModeOptionsPluginHost.d.ts +1 -1
- package/dist/options/options-plugin-host/tier-mode-options/TierModeOptionsPluginHost.d.ts.map +1 -1
- package/dist/options/options-plugin-host/tier-mode-options/TierModeOptionsPluginHostEventEmitter.d.ts +2 -2
- package/dist/options/options-plugin-host/tier-mode-options/TierModeOptionsPluginHostEventEmitter.d.ts.map +1 -1
- package/dist/options/options-plugin-host/tier-mode-options/TierModeOptionsPluginHostEventTarget.d.ts +1 -1
- package/dist/options/options-plugin-host/tier-mode-options/TierModeOptionsPluginHostEventTarget.d.ts.map +1 -1
- package/dist/options/options-plugin-host/tier-mode-options/index.d.ts +0 -2
- package/dist/options/options-plugin-host/tier-mode-options/index.d.ts.map +1 -1
- package/dist/options/options-plugin-host/tier-options/TierOptionsPluginHost.d.ts +1 -1
- package/dist/options/options-plugin-host/tier-options/TierOptionsPluginHost.d.ts.map +1 -1
- package/dist/options/options-plugin-host/tier-options/TierOptionsPluginHostEventEmitter.d.ts +2 -2
- package/dist/options/options-plugin-host/tier-options/TierOptionsPluginHostEventEmitter.d.ts.map +1 -1
- package/dist/options/options-plugin-host/tier-options/TierOptionsPluginHostEventTarget.d.ts +1 -1
- package/dist/options/options-plugin-host/tier-options/TierOptionsPluginHostEventTarget.d.ts.map +1 -1
- package/dist/options/options-plugin-host/tier-options/index.d.ts +0 -2
- package/dist/options/options-plugin-host/tier-options/index.d.ts.map +1 -1
- package/dist/plugin-host/PluginHostEventEmitter.d.ts +2 -2
- package/dist/plugin-host/PluginHostEventEmitter.d.ts.map +1 -1
- package/dist/plugin-host/PluginHostEventTarget.d.ts +1 -1
- package/dist/plugin-host/PluginHostEventTarget.d.ts.map +1 -1
- package/dist/plugin-host/index-node.d.ts +2 -0
- package/dist/plugin-host/index-node.d.ts.map +1 -0
- package/dist/plugin-host/index-web.d.ts +2 -0
- package/dist/plugin-host/index-web.d.ts.map +1 -0
- package/dist/plugin-host/index.d.ts +0 -2
- package/dist/plugin-host/index.d.ts.map +1 -1
- package/dist/plugin-manager/IExtend.d.ts +3 -0
- package/dist/plugin-manager/IExtend.d.ts.map +1 -1
- package/dist/plugin-manager/mixin.d.ts +4 -0
- package/dist/plugin-manager/mixin.d.ts.map +1 -1
- package/package.json +23 -6
- package/dist/index.umd.cjs +0 -1
- package/dist/options/options-plugin-host/index.d.ts.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-node.d.ts","sourceRoot":"","sources":["../../src/options/index-node.ts"],"names":[],"mappings":"AAAA,cAAc,kCAAkC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-web.d.ts","sourceRoot":"","sources":["../../src/options/index-web.ts"],"names":[],"mappings":"AAAA,cAAc,iCAAiC,CAAA"}
|
package/dist/options/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from "./options-manager";
|
|
2
|
-
export * from "./options-plugin-host";
|
|
3
|
-
export * from "./plugins";
|
|
1
|
+
export * from "./options-manager/index";
|
|
2
|
+
export * from "./options-plugin-host/index-com";
|
|
3
|
+
export * from "./plugins/index";
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/options/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/options/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAA;AACvC,cAAc,iCAAiC,CAAA;AAC/C,cAAc,iBAAiB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-com.d.ts","sourceRoot":"","sources":["../../../src/options/options-plugin-host/index-com.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAA;AACpC,cAAc,2BAA2B,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-node.d.ts","sourceRoot":"","sources":["../../../src/options/options-plugin-host/index-node.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,2DAA2D,CAAA;AACzE,cAAc,kDAAkD,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-web.d.ts","sourceRoot":"","sources":["../../../src/options/options-plugin-host/index-web.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,0DAA0D,CAAA;AACxE,cAAc,iDAAiD,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { AbstractConstructor, ClassType } from "type-tls";
|
|
2
2
|
import { TierModeOptions } from "../../options-manager/TierModeOptions";
|
|
3
|
-
import { PluginHost } from "../../../plugin-host";
|
|
3
|
+
import { PluginHost } from "../../../plugin-host/PluginHost";
|
|
4
4
|
/**
|
|
5
5
|
* 层级模式选项插件的宿主
|
|
6
6
|
* @remarks
|
package/dist/options/options-plugin-host/tier-mode-options/TierModeOptionsPluginHost.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TierModeOptionsPluginHost.d.ts","sourceRoot":"","sources":["../../../../src/options/options-plugin-host/tier-mode-options/TierModeOptionsPluginHost.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAC,SAAS,EAAE,MAAM,UAAU,CAAC;AAC9D,OAAO,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAC;AACxE,OAAO,EAAE,UAAU,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"TierModeOptionsPluginHost.d.ts","sourceRoot":"","sources":["../../../../src/options/options-plugin-host/tier-mode-options/TierModeOptionsPluginHost.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAC,SAAS,EAAE,MAAM,UAAU,CAAC;AAC9D,OAAO,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAC;AACxE,OAAO,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAK7D;;;;;;;;GAQG;AACH,qBAAa,yBAAyB,CAAC,IAAI,EAAC,SAAS,SAAS,mBAAmB,CAAC,IAAI,CAAC,GAAG,SAAS,CAAC,IAAI,CAAC,EAAC,OAAO,SAAS,EAAE,GAAG,GAAG,EAAE,IAAI,SAAS,MAAM,GAAG,MAAM,GAAG,MAAM,CAAG,SAAQ,UAAU,CAAC,IAAI,EAAC,SAAS,CAAC;IAC5M;;OAEG;IACH,MAAM,CAAC,QAAQ,CAAC,WAAW,+BAAoD;IAE/E;;OAEG;IACH,IAAI,WAAW,mCAEd;IACD,SAAS,CAAC,YAAY,EAAG,eAAe,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IAExD,IAAI,IAAI,SAEP;IACD,IAAI,IAAI,CAAC,KAAK,MAAA,EAEb;IAED,IAAI,OAAO,YAEV;gBAGW,OAAO,EAAE,OAAO;CAI7B"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TierModeOptions } from "../../options-manager/TierModeOptions";
|
|
2
|
-
import { PluginHostEventEmitter } from "../../../plugin-host";
|
|
3
|
-
import type { EventMap } from "../../../plugin-host";
|
|
2
|
+
import { PluginHostEventEmitter } from "../../../plugin-host/PluginHostEventEmitter";
|
|
3
|
+
import type { EventMap } from "../../../plugin-host/PluginHostEventEmitter";
|
|
4
4
|
import type { AbstractConstructor, ClassType } from "type-tls";
|
|
5
5
|
/**
|
|
6
6
|
* 层级模式选项插件的宿主
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TierModeOptionsPluginHostEventEmitter.d.ts","sourceRoot":"","sources":["../../../../src/options/options-plugin-host/tier-mode-options/TierModeOptionsPluginHostEventEmitter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAC;AACxE,OAAO,EAAE,sBAAsB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"TierModeOptionsPluginHostEventEmitter.d.ts","sourceRoot":"","sources":["../../../../src/options/options-plugin-host/tier-mode-options/TierModeOptionsPluginHostEventEmitter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAC;AACxE,OAAO,EAAE,sBAAsB,EAAE,MAAM,6CAA6C,CAAC;AACrF,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,6CAA6C,CAAC;AAE5E,OAAO,KAAK,EAAE,mBAAmB,EAAC,SAAS,EAAE,MAAM,UAAU,CAAC;AAG9D;;;;;;;;GAQG;AACH,qBAAa,qCAAqC,CAAC,IAAI,EAAE,SAAS,SAAS,mBAAmB,CAAC,IAAI,CAAC,GAAG,SAAS,CAAC,IAAI,CAAC,EAAE,OAAO,SAAS,EAAE,GAAG,GAAG,EAAE,IAAI,SAAS,MAAM,GAAG,MAAM,GAAG,MAAM,EAAE,EAAE,SAAS,QAAQ,CAAC,EAAE,CAAC,GAAG,GAAG,CAAE,SAAQ,sBAAsB,CAAC,IAAI,EAAE,SAAS,EAAE,EAAE,CAAC;IACzQ;;OAEG;IACH,MAAM,CAAC,QAAQ,CAAC,WAAW,+BAAoD;IAE/E;;OAEG;IACH,IAAI,WAAW,mCAEd;IACD,SAAS,CAAC,YAAY,EAAG,eAAe,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IAExD,IAAI,IAAI,SAEP;IACD,IAAI,IAAI,CAAC,KAAK,MAAA,EAEb;IAED,IAAI,OAAO,YAEV;gBAGW,OAAO,EAAE,OAAO;CAI7B"}
|
package/dist/options/options-plugin-host/tier-mode-options/TierModeOptionsPluginHostEventTarget.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TierModeOptions } from "../../options-manager/TierModeOptions";
|
|
2
|
-
import { PluginHostEventTarget } from "../../../plugin-host";
|
|
2
|
+
import { PluginHostEventTarget } from "../../../plugin-host/PluginHostEventTarget";
|
|
3
3
|
import type { AbstractConstructor, ClassType } from "type-tls";
|
|
4
4
|
/**
|
|
5
5
|
* 层级模式选项插件的宿主
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TierModeOptionsPluginHostEventTarget.d.ts","sourceRoot":"","sources":["../../../../src/options/options-plugin-host/tier-mode-options/TierModeOptionsPluginHostEventTarget.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAC;AACxE,OAAO,EAAE,qBAAqB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"TierModeOptionsPluginHostEventTarget.d.ts","sourceRoot":"","sources":["../../../../src/options/options-plugin-host/tier-mode-options/TierModeOptionsPluginHostEventTarget.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAC;AACxE,OAAO,EAAE,qBAAqB,EAAE,MAAM,4CAA4C,CAAC;AAEnF,OAAO,KAAK,EAAE,mBAAmB,EAAC,SAAS,EAAE,MAAM,UAAU,CAAC;AAI9D;;;;;;;;GAQG;AACH,qBAAa,oCAAoC,CAAC,IAAI,EAAE,SAAS,SAAS,mBAAmB,CAAC,IAAI,CAAC,GAAG,SAAS,CAAC,IAAI,CAAC,EAAE,OAAO,SAAS,EAAE,GAAG,GAAG,EAAE,IAAI,SAAS,MAAM,GAAG,MAAM,GAAG,MAAM,EAAC,EAAE,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAE,SAAQ,qBAAqB,CAAC,IAAI,EAAE,SAAS,EAAE,EAAE,CAAC;IAC7R;;OAEG;IACH,MAAM,CAAC,QAAQ,CAAC,WAAW,+BAAoD;IAE/E;;OAEG;IACH,IAAI,WAAW,mCAEd;IACD,SAAS,CAAC,YAAY,EAAG,eAAe,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IAExD,IAAI,IAAI,SAEP;IACD,IAAI,IAAI,CAAC,KAAK,MAAA,EAEb;IAED,IAAI,OAAO,YAEV;gBAGW,OAAO,EAAE,OAAO;CAI7B"}
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
export * from "./type";
|
|
2
2
|
export * from "./TierModeOptionsPluginHost";
|
|
3
|
-
export * from "./TierModeOptionsPluginHostEventEmitter";
|
|
4
|
-
export * from "./TierModeOptionsPluginHostEventTarget";
|
|
5
3
|
export * from "./createTierModeOptionsPluginHost";
|
|
6
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/options/options-plugin-host/tier-mode-options/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAA;AACtB,cAAc,6BAA6B,CAAA;AAC3C,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/options/options-plugin-host/tier-mode-options/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAA;AACtB,cAAc,6BAA6B,CAAA;AAC3C,cAAc,mCAAmC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TierOptionsPluginHost.d.ts","sourceRoot":"","sources":["../../../../src/options/options-plugin-host/tier-options/TierOptionsPluginHost.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAC1D,OAAO,EAAE,UAAU,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"TierOptionsPluginHost.d.ts","sourceRoot":"","sources":["../../../../src/options/options-plugin-host/tier-options/TierOptionsPluginHost.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAC1D,OAAO,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAC7D,OAAO,KAAK,EAAE,mBAAmB,EAAC,SAAS,EAAE,MAAM,UAAU,CAAC;AAO9D;;;;;;;;GAQG;AACH,qBAAa,qBAAqB,CAAC,IAAI,EAAE,SAAS,SAAS,mBAAmB,CAAC,IAAI,CAAC,GAAG,SAAS,CAAC,IAAI,CAAC,EAAE,OAAO,SAAS,EAAE,GAAG,GAAG,CAAE,SAAQ,UAAU,CAAC,IAAI,EAAE,SAAS,CAAC;IACnK;;OAEG;IACH,MAAM,CAAC,QAAQ,CAAC,cAAc,mBAA0B;IAGxD;;OAEG;IACH,IAAI,cAAc,yBAEjB;IACD,SAAS,CAAC,eAAe,EAAG,WAAW,CAAC,OAAO,CAAC,CAAC;gBAErC,OAAO,EAAE,OAAO;CAI7B"}
|
package/dist/options/options-plugin-host/tier-options/TierOptionsPluginHostEventEmitter.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TierOptions } from "../../options-manager/index";
|
|
2
|
-
import { PluginHostEventEmitter } from "../../../plugin-host/
|
|
3
|
-
import type { EventMap } from "../../../plugin-host/
|
|
2
|
+
import { PluginHostEventEmitter } from "../../../plugin-host/PluginHostEventEmitter";
|
|
3
|
+
import type { EventMap } from "../../../plugin-host/PluginHostEventEmitter";
|
|
4
4
|
import type { AbstractConstructor, ClassType } from "type-tls";
|
|
5
5
|
/**
|
|
6
6
|
* 层级选项插件的宿主,继承自 PluginHostEventEmitter
|
package/dist/options/options-plugin-host/tier-options/TierOptionsPluginHostEventEmitter.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TierOptionsPluginHostEventEmitter.d.ts","sourceRoot":"","sources":["../../../../src/options/options-plugin-host/tier-options/TierOptionsPluginHostEventEmitter.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAC1D,OAAO,EAAE,sBAAsB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"TierOptionsPluginHostEventEmitter.d.ts","sourceRoot":"","sources":["../../../../src/options/options-plugin-host/tier-options/TierOptionsPluginHostEventEmitter.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAC1D,OAAO,EAAE,sBAAsB,EAAE,MAAM,6CAA6C,CAAC;AACrF,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,6CAA6C,CAAC;AAC5E,OAAO,KAAK,EAAE,mBAAmB,EAAC,SAAS,EAAE,MAAM,UAAU,CAAC;AAM9D;;;;;;;;GAQG;AACH,qBAAa,iCAAiC,CAAC,IAAI,EAAE,SAAS,SAAS,mBAAmB,CAAC,IAAI,CAAC,GAAG,SAAS,CAAC,IAAI,CAAC,EAAE,OAAO,SAAS,EAAE,GAAG,GAAG,EAAC,EAAE,SAAS,QAAQ,CAAC,EAAE,CAAC,GAAG,GAAG,CAAE,SAAQ,sBAAsB,CAAC,IAAI,EAAE,SAAS,EAAE,EAAE,CAAC;IAC7N;;OAEG;IACH,MAAM,CAAC,QAAQ,CAAC,cAAc,mBAA0B;IAGxD;;OAEG;IACH,IAAI,cAAc,yBAEjB;IACD,SAAS,CAAC,eAAe,EAAG,WAAW,CAAC,OAAO,CAAC,CAAC;gBAErC,OAAO,EAAE,OAAO;CAI7B"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TierOptions } from "../../options-manager/index";
|
|
2
|
-
import { PluginHostEventTarget } from "../../../plugin-host/
|
|
2
|
+
import { PluginHostEventTarget } from "../../../plugin-host/PluginHostEventTarget";
|
|
3
3
|
import type { AbstractConstructor, ClassType } from "type-tls";
|
|
4
4
|
/**
|
|
5
5
|
* 层级选项插件的宿主,继承自 PluginHostEventEmitter
|
package/dist/options/options-plugin-host/tier-options/TierOptionsPluginHostEventTarget.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TierOptionsPluginHostEventTarget.d.ts","sourceRoot":"","sources":["../../../../src/options/options-plugin-host/tier-options/TierOptionsPluginHostEventTarget.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAC1D,OAAO,EAAE,qBAAqB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"TierOptionsPluginHostEventTarget.d.ts","sourceRoot":"","sources":["../../../../src/options/options-plugin-host/tier-options/TierOptionsPluginHostEventTarget.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAC1D,OAAO,EAAE,qBAAqB,EAAE,MAAM,4CAA4C,CAAC;AACnF,OAAO,KAAK,EAAE,mBAAmB,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAO/D;;;;;;;;GAQG;AACH,qBAAa,gCAAgC,CAAC,IAAI,EAAE,SAAS,SAAS,mBAAmB,CAAC,IAAI,CAAC,GAAG,SAAS,CAAC,IAAI,CAAC,EAAE,OAAO,SAAS,EAAE,GAAG,GAAG,EAAC,EAAE,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAE,SAAQ,qBAAqB,CAAC,IAAI,EAAE,SAAS,EAAE,EAAE,CAAC;IAClP;;OAEG;IACH,MAAM,CAAC,QAAQ,CAAC,cAAc,mBAA0B;IAGxD;;OAEG;IACH,IAAI,cAAc,yBAEjB;IACD,SAAS,CAAC,eAAe,EAAG,WAAW,CAAC,OAAO,CAAC,CAAC;gBAErC,OAAO,EAAE,OAAO;CAI7B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/options/options-plugin-host/tier-options/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAA;AACvC,cAAc
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/options/options-plugin-host/tier-options/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAA;AACvC,cAAc,+BAA+B,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PluginExtendManager } from "../plugin-manager";
|
|
2
2
|
import type { ExtendOptions, IAnyExtend, IPlugin, PluginUseArgs, PluginUseReturn } from "../plugin-manager/index";
|
|
3
|
-
import { DestroyableEventEmitter } from "@gby/destroyable";
|
|
4
|
-
import type { EventMap } from "@gby/destroyable";
|
|
3
|
+
import { DestroyableEventEmitter } from "@gby/destroyable/node";
|
|
4
|
+
import type { EventMap } from "@gby/destroyable/node";
|
|
5
5
|
import type { IPluginHost } from "./type";
|
|
6
6
|
import type { AbstractConstructor, ClassType } from "type-tls";
|
|
7
7
|
export type { EventMap };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PluginHostEventEmitter.d.ts","sourceRoot":"","sources":["../../src/plugin-host/PluginHostEventEmitter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,KAAK,EAAE,aAAa,EAAE,UAAU,EAAE,OAAO,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAElH,OAAO,EAAE,uBAAuB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"PluginHostEventEmitter.d.ts","sourceRoot":"","sources":["../../src/plugin-host/PluginHostEventEmitter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,KAAK,EAAE,aAAa,EAAE,UAAU,EAAE,OAAO,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAElH,OAAO,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AAChE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC;AAC1C,OAAO,KAAK,EAAE,mBAAmB,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAE/D,YAAY,EAAE,QAAQ,EAAC,CAAA;AAGvB;;;;;;;;;;GAUG;AACH,qBAAa,sBAAsB,CAAC,IAAI,EAAE,SAAS,SAAS,mBAAmB,CAAC,IAAI,CAAC,GAAG,SAAS,CAAC,IAAI,CAAC,EAAE,EAAE,SAAS,QAAQ,CAAC,EAAE,CAAC,GAAG,GAAG,CAAE,SAAQ,uBAAuB,CAAC,EAAE,CAAE,YAAW,WAAW,CAAC,IAAI,EAAE,SAAS,CAAC;IACjN;;;OAGG;IACH,MAAM,CA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";
|
|
2
2
|
import type { ExtendOptions, IAnyExtend, IPlugin, PluginUseArgs, PluginUseReturn } from "../plugin-manager/index";
|
|
3
|
-
import { DestroyableEventTarget } from "@gby/destroyable";
|
|
3
|
+
import { DestroyableEventTarget } from "@gby/destroyable/web";
|
|
4
4
|
import type { IPluginHost } from "./type";
|
|
5
5
|
import type { AbstractConstructor, ClassType } from "type-tls";
|
|
6
6
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PluginHostEventTarget.d.ts","sourceRoot":"","sources":["../../src/plugin-host/PluginHostEventTarget.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,KAAK,EAAE,aAAa,EAAE,UAAU,EAAE,OAAO,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAElH,OAAO,EAAE,sBAAsB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"PluginHostEventTarget.d.ts","sourceRoot":"","sources":["../../src/plugin-host/PluginHostEventTarget.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,KAAK,EAAE,aAAa,EAAE,UAAU,EAAE,OAAO,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAElH,OAAO,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AAC9D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC;AAC1C,OAAO,KAAK,EAAE,mBAAmB,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAK/D;;;;;;;;;;GAUG;AACH,qBAAa,qBAAqB,CAAC,IAAI,EAAE,SAAS,SAAS,mBAAmB,CAAC,IAAI,CAAC,GAAG,SAAS,CAAC,IAAI,CAAC,EAAE,EAAE,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE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,EAAC,GAAG,GAAG,GAAG;IAItB;;;OAGG;IACM,WAAW;CAQrB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-node.d.ts","sourceRoot":"","sources":["../../src/plugin-host/index-node.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-web.d.ts","sourceRoot":"","sources":["../../src/plugin-host/index-web.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/plugin-host/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/plugin-host/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,aAAa,CAAC"}
|
|
@@ -50,6 +50,9 @@ export declare function pickHostExtendMembers<Ext>(extendOptions: Ext): IExtendH
|
|
|
50
50
|
* @remarks
|
|
51
51
|
* 该方法 与 mixin 的区别是:
|
|
52
52
|
* - 该方法会自动排除 IExtend 类型的生命周期方法,但是如果与 IExtend 类型的生命周期同名的成员的值不是函数类型,并不会被排除
|
|
53
|
+
*
|
|
54
|
+
* 在进行混合的时候,该方法可以防止触发扩展中的计算属性
|
|
55
|
+
*
|
|
53
56
|
* @param target - 扩展的目标
|
|
54
57
|
* @param ext - 扩展对象
|
|
55
58
|
* @returns 返回扩展后的 target 对象
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IExtend.d.ts","sourceRoot":"","sources":["../../src/plugin-manager/IExtend.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAA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CAAC,EAAE,GAAG,IAAI,EAAE,qBAAqB,CAAC,SAAS,CAAC,GAAG,GAAG,CAAC;IAEzF;;;;OAIG;IACH,MAAM,CAAC,CAAC,IAAI,EAAE,YAAY,CAAC,SAAS,CAAC,EAAE,GAAG,IAAI,EAAE,GAAG,GAAG,GAAG,CAAC;IAE1D;;;OAGG;IACH,SAAS,CAAC,CAAC,IAAI,EAAE,YAAY,CAAC,SAAS,CAAC,GAAG,GAAG,CAAC;CAChD;AAID;;;;GAIG;AACH,MAAM,WAAW,UAAU,CAAC,SAAS,SAAS,mBAAmB,CAAE,SAAQ,OAAO,CAAC,SAAS,CAAC;IAC3F,CAAC,GAAG,EAAE,WAAW,GAAG,GAAG,CAAC;CACzB;AAQD;;;;GAIG;AACH,MAAM,MAAM,kBAAkB,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,EAAE,MAAM,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC;AAGhE;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,GAAG,EAAE,aAAa,EAAE,GAAG,GAAG,kBAAkB,CAAC,GAAG,CAAC,CAUtF;AAMD;;;;;;;;;;;GAWG;AACH,wBAAgB,YAAY,CAAC,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,GAAG,kBAAkB,CAAC,CAAC,CAAC,CAW/E;AAUD;;;;;;;GAOG;AACH,MAAM,MAAM,YAAY,CAAC,SAAS,SAAS,mBAAmB,EAAE,GAAG,IAAI,WAAW,CAAC,SAAS,EAAE,kBAAkB,CAAC,GAAG,CAAC,CAAC,CAAC"}
|
|
@@ -33,6 +33,8 @@ export declare function mixin<T, S1, S2, S3, S4>(target: T, source1: S1, source2
|
|
|
33
33
|
export declare function mixin(target: any, ...sources: any[]): any;
|
|
34
34
|
/**
|
|
35
35
|
* 混合对象,省略指定的属性
|
|
36
|
+
* @remarks
|
|
37
|
+
* 在进行混合的时候,该方法可以防止触发source中的计算属性
|
|
36
38
|
* @param target - 目标对象,所有 源对象 的属性都要被混入进到 目标对象中
|
|
37
39
|
* @param source - 源对象,所有 源对象 的属性都要被混入进到 目标对象中
|
|
38
40
|
* @param omitProps - 要省略的属性,这些属性不会被混入到 目标对象中
|
|
@@ -41,6 +43,8 @@ export declare function mixin(target: any, ...sources: any[]): any;
|
|
|
41
43
|
export declare function mixinByOmit<T, S, Prop extends PropertyKey>(target: T, source: S, omitProps?: Iterable<Prop> | null): T & Omit<S, Prop>;
|
|
42
44
|
/**
|
|
43
45
|
* 混合对象,只包含指定的属性
|
|
46
|
+
* @remarks
|
|
47
|
+
* 在进行混合的时候,该方法可以防止触发source中的计算属性
|
|
44
48
|
* @param target - 目标对象,所有 源对象 的属性都要被混入进到 目标对象中
|
|
45
49
|
* @param source - 源对象,所有 源对象 的属性都要被混入进到 目标对象中
|
|
46
50
|
* @param pickProps - 要包含的属性,只有这些属性才会被混入到 目标对象中
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mixin.d.ts","sourceRoot":"","sources":["../../src/plugin-manager/mixin.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,wBAAgB,KAAK,CAAC,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AACzD;;;GAGG;AACH,wBAAgB,KAAK,CAAC,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,MAAM,EAAE,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,CAAC;AACnF;;;GAGG;AACH,wBAAgB,KAAK,CAAC,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,MAAM,EAAE,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,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AC,KAAK,SAAS,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,14 +1,31 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "plugin-tls",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0",
|
|
4
4
|
"description": "plugin-tls 是插件系统相应的工具,可快速地让任何模块具备插件机制",
|
|
5
|
-
"main": "./dist/index.
|
|
5
|
+
"main": "./dist/index.cjs",
|
|
6
6
|
"module": "./dist/index.js",
|
|
7
7
|
"types": "./dist/index.d.ts",
|
|
8
8
|
"exports": {
|
|
9
|
-
"
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
"./web": {
|
|
10
|
+
"require": "./dist/index-web.cjs",
|
|
11
|
+
"types": "./dist/index-web.d.ts",
|
|
12
|
+
"import": "./dist/index-web.js"
|
|
13
|
+
},
|
|
14
|
+
"./node": {
|
|
15
|
+
"require": "./dist/index-node.cjs",
|
|
16
|
+
"types": "./dist/index-node.d.ts",
|
|
17
|
+
"import": "./dist/index-node.js"
|
|
18
|
+
},
|
|
19
|
+
".": {
|
|
20
|
+
"browser": {
|
|
21
|
+
"require": "./dist/index-web.cjs",
|
|
22
|
+
"types": "./dist/index-web.d.ts",
|
|
23
|
+
"import": "./dist/index-web.js"
|
|
24
|
+
},
|
|
25
|
+
"require": "./dist/index.cjs",
|
|
26
|
+
"types": "./dist/index.d.ts",
|
|
27
|
+
"import": "./dist/index.js"
|
|
28
|
+
}
|
|
12
29
|
},
|
|
13
30
|
"type": "module",
|
|
14
31
|
"sideEffects": false,
|
|
@@ -52,7 +69,7 @@
|
|
|
52
69
|
"vite-node": "latest"
|
|
53
70
|
},
|
|
54
71
|
"dependencies": {
|
|
55
|
-
"@gby/destroyable": "^
|
|
72
|
+
"@gby/destroyable": "^4.0.0",
|
|
56
73
|
"com-tools": "^2.22.1",
|
|
57
74
|
"deepmerge-ts": "^7.1.5",
|
|
58
75
|
"type-tls": "^3.11.0"
|
package/dist/index.umd.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(function(r,h){typeof exports=="object"&&typeof module<"u"?h(exports,require("@gby/destroyable"),require("com-tools"),require("deepmerge-ts")):typeof define=="function"&&define.amd?define(["exports","@gby/destroyable","com-tools","deepmerge-ts"],h):(r=typeof globalThis<"u"?globalThis:r||self,h(r.PluginTls={},r.destroyable,r.comTools,r.deepmergeTs))})(this,(function(r,h,p,m){"use strict";function d(i,...t){for(const e of t){const n=Object.getOwnPropertyDescriptors(e);Object.defineProperties(i,n)}return i}function I(i,t,e){let n=Object.getOwnPropertyDescriptors(t);return e&&p.omitMembers(n,e),Object.defineProperties(i,n),i}function S(i,t,e){let n=Object.getOwnPropertyDescriptors(t);return e?Object.defineProperties(i,p.removeUndefined(p.pickMembers(n,e))):Object.defineProperties(i,n),i}function B(i,t){return t}function q(){return function(t){return t}}function A(i,t){return d(i,t),t}function $(i){return function(e){return d(i,e),e}}function f(i,t){return d(i,t),i}function z(i){return function(e){return d(i,e),i}}function K(i,t){return t}function R(){return function(t){return t}}function W(i,t){return d(i.prototype,t),t}function G(i){return function(e){return d(i.prototype,e),e}}function J(i,t){return d(i.prototype,t),i}function L(i){return function(e){return d(i.prototype,e),i}}const H=["onCreate","onInit","onDestroy"];function Q(i){const t={...i};for(const e of H)typeof t[e]=="function"&&delete t[e];return t}function x(i,t){let e=Object.getOwnPropertyDescriptors(t);for(const n of H)typeof t[n]=="function"&&delete e[n];return Object.defineProperties(i,e),i}function C(i){return i&&typeof i.onUse=="function"}class X extends h.Destroyable{host;plugins=new Map;constructor(t){super(),t&&(this.host=t)}destroyThis(){return this.plugins.clear(),this.host=null,super.destroyThis()}hasUsed(t){return this.plugins.has(t)}use(t,...e){const{plugins:n}=this;if(n.has(t))return n.get(t);const s=t.onUse(this.host,...e);return n.set(t,s),s}instUse(t,e,...n){const{plugins:s}=this;if(s.has(e))return s.get(e);const o=this.use(e,...n);return e.onCreate?.(t),o}onCreate(t,...e){const n=[];for(const[s]of this.plugins)s.onCreate&&n.push(s.onCreate.bind(s));return p.serialCallFuns(n,void 0,[t,...e])}onInit(t,...e){const n=[];for(const[s]of this.plugins)s.onInit&&n.push(s.onInit.bind(s));return p.serialCallFuns(n,void 0,[t,...e])}onDestroy(t){const e=[];for(const[n]of this.plugins)n.onDestroy&&e.push(n.onDestroy.bind(n));return e.reverse(),p.serialCallFuns(e,void 0,[t])}}class Y extends h.Destroyable{host;plugins=new Set;constructor(t){super(),t&&(this.host=t)}destroyThis(){return this.plugins.clear(),this.host=null,super.destroyThis()}hasUsed(t){return this.plugins.has(t)}use(t){const{plugins:e}=this;return e.has(t)||(x(this.host.prototype,t),e.add(t)),t}instUse(t,e,...n){const{plugins:s}=this;return s.has(e)||(this.use(e),e.onCreate?.call(t,t,...n)),e}onCreate(t,...e){const n=[];for(const s of this.plugins)s.onCreate&&n.push(s.onCreate);return p.serialCallFuns(n,t,[t,...e])}onInit(t,...e){const n=[];for(const s of this.plugins)s.onInit&&n.push(s.onInit);return p.serialCallFuns(n,t,[t,...e])}onDestroy(t){const e=[];for(const n of this.plugins)n.onDestroy&&e.push(n.onDestroy);return e.reverse(),p.serialCallFuns(e,t,[t])}}const M=Symbol("extend");class g extends h.Destroyable{host;plugins=new Map;constructor(t){super(),t&&(this.host=t)}destroyThis(){return this.plugins.clear(),this.host=null,super.destroyThis()}hasUsed(t){return this.plugins.has(t)}isPlugin(t){const{plugins:e}=this;return e.has(t)?e.get(t)!==M:C(t)}useExtend(t){const{plugins:e}=this;return e.has(t)?e.get(t):(x(this.host.prototype,t),e.set(t,M),t)}instUseExtend(t,e,...n){const{plugins:s}=this;return s.has(e)?s.get(e):(this.useExtend(e),e.onCreate?.call(t,t,...n),e)}usePlugin(t,...e){const{plugins:n}=this;if(n.has(t))return n.get(t);const s=t.onUse(this.host,...e);return n.set(t,s),s}instUsePlugin(t,e,...n){const{plugins:s}=this;if(s.has(e))return s.get(e);const o=this.usePlugin(e,...n);return e.onCreate?.(t),o}onCreate(t,...e){const n=[];for(const[s,o]of this.plugins)if(s.onCreate){const u=o===M?s.onCreate:s.onCreate.bind(s);n.push(u)}return p.serialCallFuns(n,t,[t,...e])}onInit(t,...e){const n=[];for(const[s,o]of this.plugins)if(s.onInit){const u=o===M?s.onInit:s.onInit.bind(s);n.push(u)}return p.serialCallFuns(n,t,[t,...e])}onDestroy(t){const e=[];for(const[n,s]of this.plugins)if(n.onDestroy){const o=s===M?n.onDestroy:n.onDestroy.bind(n);e.push(o)}return e.reverse(),p.serialCallFuns(e,t,[t])}}function Z(i,t){const e=t??"defaultOptions",n=`_${e}`;return function(o){const u=f(o,{get[e](){return i}});f(u.prototype,{get[e](){return this[n]||(this[n]=structuredClone(u.defaultOptions))}})}}function tt(i,t,e){const n=`_${t}`;return f(i.prototype,{get[t](){return this[n]||(this[n]=structuredClone(i[t]))}}),e}function E(i){const t=i.split(".");return t[0]===""&&t.shift(),t}function y(i,t){for(const e of t)if(i=i[e],i==null)return;return i}function et(i,t){return y(i,E(t))}function w(i,t,e){const n=t.pop(),s=t.length;let o=0;for(;o<s;){const u=i[t[o]];if(u==null)break;i=u,o++}t=t.slice(o);for(const u of t)i=i[u]={};return i[n]=e,i}function nt(i,t,e){return w(i,E(t),e)}const T={UndefinedAndNull:function(t){return t==null},Undefined:function(t){return t===void 0},Null:function(t){return t===null}};class N{freezeMember=!0;fullOption=new Proxy(this,{get:function(t,e,n){const s=t.plainFullOption[e];return t.freezeMember?Object.freeze(s):s},set:function(t,e,n,s){return t.setMember(e,n,!1),!0},has:function(t,e){return e in t.plainFullOption},getOwnPropertyDescriptor:function(t,e){return Object.getOwnPropertyDescriptor(t.plainFullOption,e)},ownKeys:function(t){return Reflect.ownKeys(t.plainFullOption)},deleteProperty:function(t,e){return t.setMember(e,void 0),!0},defineProperty:function(t,e,n){return Object.defineProperty(t.option,e,n),!0}});setOption(t,e){const n=e?m.deepmergeInto(this.option,t):Object.assign(this.option,t);return this.updateFullOption(),n}get undefinedValue(){return this._undefinedValue}set undefinedValue(t){this._undefinedValue=t,this.isUndefined=T[t]||T.UndefinedAndNull}_undefinedValue="UndefinedAndNull";isUndefined=T.UndefinedAndNull;getMember(t){return this.option[t]}setMember(t,e,n){const s=this.option;if(e===void 0)delete s[t];else{const o=s[t];n&&o&&typeof o=="object"?m.deepmergeInto(o,e):s[t]=e}this.updateFullOption()}getValue(t){return y(this.option,t)}setValue(t,e,n){const s=this.option;let o;n&&(o=y(s,t))&&typeof o=="object"?m.deepmergeInto(o,e):w(this.option,t,e),this.updateFullOption()}}class a extends N{constructor(t,e){super(),t&&(this.option=t),e&&(this.extends=e)}get extends(){return this._extends}set extends(t){this._extends=t,this.updateFullOption()}_extends=null;option={};get plainFullOption(){let t=this._plainFullOption;if(t)return t;const{extends:e,option:n}=this;if(t=n,e){const s=e.plainFullOption;t=m.deepmerge(s,n)}return this._plainFullOption=t}_plainFullOption=null;updateFullOption(){this._plainFullOption=null}getMember(t){const e=this.option[t];if(!this.isUndefined(e))return e;const n=this.extends;if(n)return n.getMember(t)}getValue(t){const e=super.getValue(t);if(!this.isUndefined(e))return e;const n=this.extends;if(n)return n.getValue(t)}}function it(i,t){const{name:e}=t,n=`_${e}`;return{get:function(){return this[n]||(this[n]=new a(void 0,this.constructor[e]))}}}class V extends N{constructor(t,e){super(),e&&this.setModeOption(t,e),this.mode=t}modes={};get mode(){return this._mode||(this.mode=this.modeNames[0])}set mode(t){this._mode=t,this.hasMode(t)||this.setModeOption(t,{}),this.updateFullOption()}_mode;get modeNames(){return this._modeNames||(this._modeNames=this.getModeNames())}_modeNames=null;getModeNames(){return Object.keys(this.modes)}hasMode(t){return!!this.modes[t]}get optionManager(){return this.modes[this.mode]}get option(){return this.optionManager.option}get plainFullOption(){return this._plainFullOption??(this._plainFullOption=this.getFullModeOption(this.mode))}_plainFullOption=null;updateFullOption(){this._plainFullOption=null,this._modeNames=null}getModeOption(t){return this.modes[t].option}getFullModeOption(t){return this.modes[t]?.plainFullOption}setModeOption(t,e,n,s){const{modes:o}=this,u=o[t]||(o[t]=new a);if(u.setOption(e,n),s){const c=o[s];c&&(u.extends=c)}return this.updateFullOption(),u}}class l extends V{constructor(t,e,n){super(t,e),n&&(this.extends=n)}get extends(){return this._extends}set extends(t){this._extends=t,this.updateFullOption()}_extends=null;getFullModeOption(t){const{modes:e,extends:n}=this,s=e[t]?.plainFullOption;if(n){const o=n.getFullModeOption(t);return s?m.deepmerge(o,s):o}return s}getModeNames(){const{modes:t,extends:e}=this,n=Object.keys(t);if(!e)return n;const s=e.getModeNames();return[...new Set([...n,...s])]}hasModeOnTier(t){if(this.hasMode(t))return!0;const e=this.extends;return e?e.hasModeOnTier(t):!1}get optionManager(){return this.getModeOptionManager(this.mode)}getModeOptionManager(t){const e=this.modes[t];return e||(this.extends?.getModeOptionManager(t)?this.setModeOption(t,{}):null)}getMember(t){const e=this.optionManager.getMember(t);if(!this.isUndefined(e))return e;const n=this.extends;if(n)return n.getMember(t)}getValue(t){const e=this.optionManager.getValue(t);if(!this.isUndefined(e))return e;const n=this.extends;if(n)return n.getValue(t)}}function st(i,t){const{name:e}=t,n=`_${e}`;return{get:function(){return this[n]||(this[n]=new l(this.constructor[e].mode,void 0,this.constructor[e]))}}}class b extends h.Destroyable{static isolatedPluginManager=!1;static get pluginManager(){return this.isolatedPluginManager&&!this.hasOwnProperty("_pluginManager")&&(this._pluginManager=new g(this)),this._pluginManager}static _pluginManager=new g(this);get pluginManager(){return this.constructor.pluginManager}static usePlugin(t,...e){return this.pluginManager.usePlugin(t,...e)}static useExtend(t){return this.pluginManager.useExtend(t)}static hasUsed(t){return this.pluginManager.hasUsed(t)}usePlugin(t,...e){return this.pluginManager.instUsePlugin(this,t,...e)}useExtend(t,...e){return this.pluginManager.instUseExtend(this,t,...e)}init(...t){return this.pluginManager.onInit(this,...t)}destroyThis(){const t=this.pluginManager.onDestroy(this);return t instanceof Promise?t.finally(()=>super.destroyThis()):super.destroyThis()}}class U extends h.DestroyableEventEmitter{static isolatedPluginManager=!1;static get pluginManager(){return this.isolatedPluginManager&&!this.hasOwnProperty("_pluginManager")&&(this._pluginManager=new g(this)),this._pluginManager}static _pluginManager=new g(this);get pluginManager(){return this.constructor.pluginManager}static usePlugin(t,...e){return this.pluginManager.usePlugin(t,...e)}static useExtend(t){return this.pluginManager.useExtend(t)}static hasUsed(t){return this.pluginManager.hasUsed(t)}usePlugin(t,...e){return this.pluginManager.instUsePlugin(this,t,...e)}useExtend(t,...e){return this.pluginManager.instUseExtend(this,t,...e)}init(...t){return this.pluginManager.onInit(this,...t)}destroyThis(){const t=this.pluginManager.onDestroy(this);return t instanceof Promise?t.finally(()=>super.destroyThis()):super.destroyThis()}}class v extends h.DestroyableEventTarget{static isolatedPluginManager=!1;static get pluginManager(){return this.isolatedPluginManager&&!this.hasOwnProperty("_pluginManager")&&(this._pluginManager=new g(this)),this._pluginManager}static _pluginManager=new g(this);get pluginManager(){return this.constructor.pluginManager}static usePlugin(t,...e){return this.pluginManager.usePlugin(t,...e)}static useExtend(t){return this.pluginManager.useExtend(t)}static hasUsed(t){return this.pluginManager.hasUsed(t)}usePlugin(t,...e){return this.pluginManager.instUsePlugin(this,t,...e)}useExtend(t,...e){return this.pluginManager.instUseExtend(this,t,...e)}init(...t){return this.pluginManager.onInit(this,...t)}destroyThis(){const t=this.pluginManager.onDestroy(this);return t instanceof Promise?t.finally(()=>super.destroyThis()):super.destroyThis()}}function D(i){const t=h.createDestroyableSubClass(i);return class extends t{static isolatedPluginManager=!1;static get pluginManager(){return this.isolatedPluginManager&&!this.hasOwnProperty("_pluginManager")&&(this._pluginManager=new g(this)),this._pluginManager}static _pluginManager=new g(this);get pluginManager(){return this.constructor.pluginManager}static usePlugin(n,...s){return this.pluginManager.usePlugin(n,...s)}static useExtend(n){return this.pluginManager.useExtend(n)}static hasUsed(n){return this.pluginManager.hasUsed(n)}usePlugin(n,...s){return this.pluginManager.instUsePlugin(this,n,...s)}useExtend(n,...s){return this.pluginManager.instUseExtend(this,n,...s)}init(...n){return this.pluginManager.onInit(this,...n)}destroyThis(){const n=this.pluginManager.onDestroy(this);return n instanceof Promise?n.finally(()=>super.destroyThis()):super.destroyThis()}}}function j(i){const t=f(i,{isolatedPluginManager:!1,get pluginManager(){return(!this._pluginManager||this.isolatedPluginManager&&!this.hasOwnProperty("_pluginManager"))&&(this._pluginManager=new g(this)),this._pluginManager},usePlugin(e,...n){return this.pluginManager.usePlugin(e,...n)},useExtend(e){return this.pluginManager.useExtend(e)},hasUsed(e){return this.pluginManager.hasUsed(e)}});return f(t.prototype,{get pluginManager(){return this.constructor.pluginManager},usePlugin(e,...n){return this.pluginManager.instUsePlugin(this,e,...n)},useExtend(e,...n){return this.pluginManager.instUseExtend(this,e,...n)},async init(...e){return super.init&&await super.init(...e),this.pluginManager.onInit(this,...e)},async destroy(){if(await this.pluginManager.onDestroy(this),super.destroy)return super.destroy()}}),i}function rt(i){const t=j(i);return new Proxy(t,{construct:function(e,n,s){const o=new e(...n);return t.pluginManager.onCreate(this,...n),o}})}function ot(i){return class extends i{static isolatedPluginManager=!1;static get pluginManager(){return this.isolatedPluginManager&&!this.hasOwnProperty("_pluginManager")&&(this._pluginManager=new g(this)),this._pluginManager}static _pluginManager=new g(this);get pluginManager(){return this.constructor.pluginManager}static usePlugin(e,...n){return this.pluginManager.usePlugin(e,...n)}static useExtend(e){return this.pluginManager.useExtend(e)}static hasUsed(e){return this.pluginManager.hasUsed(e)}constructor(...e){super(...e),this.pluginManager.onCreate(this,...e)}usePlugin(e,...n){return this.pluginManager.instUsePlugin(this,e,...n)}useExtend(e,...n){return this.pluginManager.instUseExtend(this,e,...n)}init(...e){if(super.init){const n=super.init(...e);if(n instanceof Promise)return n.then(()=>this.pluginManager.onInit(this,...e))}return this.pluginManager.onInit(this,...e)}destroy(){const e=this.pluginManager.onDestroy(this);return super.destroy?e instanceof Promise?e.finally(()=>super.destroy()):super.destroy():e}}}class ut extends b{static defaultOptions=new a;get defaultOptions(){return this._defaultOptions||(this._defaultOptions=new a(void 0,this.constructor.defaultOptions))}_defaultOptions;constructor(t){super(),this.defaultOptions.option=t}}class at extends U{static defaultOptions=new a;get defaultOptions(){return this._defaultOptions||(this._defaultOptions=new a(void 0,this.constructor.defaultOptions))}_defaultOptions;constructor(t){super(),this.defaultOptions.option=t}}class lt extends v{static defaultOptions=new a;get defaultOptions(){return this._defaultOptions||(this._defaultOptions=new a(void 0,this.constructor.defaultOptions))}_defaultOptions;constructor(t){super(),this.defaultOptions.option=t}}function dt(i){const t=D(i);return class extends t{static defaultOptions=new a;get defaultOptions(){return this._defaultOptions||(this._defaultOptions=new a(void 0,this.constructor.defaultOptions))}_defaultOptions;constructor(n){super(),this.defaultOptions.option=n}}}const O="common";class pt extends b{static modeOptions=new l(O);get modeOptions(){return this._modeOptions||(this._modeOptions=new l(O,void 0,this.constructor.modeOptions))}_modeOptions;get mode(){return this.modeOptions.mode}set mode(t){this.modeOptions.mode=t}get options(){return this.modeOptions.plainFullOption}constructor(t){super(),this.modeOptions.setOption(t)}}class gt extends U{static modeOptions=new l(O);get modeOptions(){return this._modeOptions||(this._modeOptions=new l(O,void 0,this.constructor.modeOptions))}_modeOptions;get mode(){return this.modeOptions.mode}set mode(t){this.modeOptions.mode=t}get options(){return this.modeOptions.plainFullOption}constructor(t){super(),this.modeOptions.setOption(t)}}class ct extends v{static modeOptions=new l(O);get modeOptions(){return this._modeOptions||(this._modeOptions=new l(O,void 0,this.constructor.modeOptions))}_modeOptions;get mode(){return this.modeOptions.mode}set mode(t){this.modeOptions.mode=t}get options(){return this.modeOptions.plainFullOption}constructor(t){super(),this.modeOptions.setOption(t)}}function ht(i){const t=D(i);return class extends t{static modeOptions=new l(O);get modeOptions(){return this._modeOptions||(this._modeOptions=new l(O,void 0,this.constructor.modeOptions))}_modeOptions;get mode(){return this.modeOptions.mode}set mode(n){this.modeOptions.mode=n}get options(){return this.modeOptions.plainFullOption}constructor(n){super(),this.modeOptions.setOption(n)}}}function ft(i,t,e){const n=f(i,{modeOptions:new l(t,e)});return f(n.prototype,{get modeOptions(){return this._modeOptions||(this._modeOptions=new l(t,void 0,this.constructor.modeOptions))},get mode(){return this.modeOptions.mode},set mode(s){this.modeOptions.mode=s},get options(){return this.modeOptions.fullOption}}),i}const Ot={onUse(i,t,e){const n=t??O;d(i,{modeOptions:new l(n,void 0,e)}),d(i.prototype,{get modeOptions(){const s=this,o=i;return s._modeOptions||(s._modeOptions=new l(o.modeOptions.mode,void 0,o.modeOptions))},get mode(){return this.modeOptions.mode},set mode(s){const o=this;o.modeOptions.mode=s},get options(){return this.modeOptions.plainFullOption}})},onCreate(i,t){i.modeOptions.setOption(t)}},Mt={onUse(i,t,e){d(i,{defaultOptions:new a(t,e)}),d(i.prototype,{get defaultOptions(){return this._defaultOptions||(this._defaultOptions=new a(void 0,i.defaultOptions))}})},onCreate(i,t){i.defaultOptions.option=t}};function mt(i,t){const e=f(i,{defaultOptions:new a(t)});return f(e.prototype,{get defaultOptions(){return this._defaultOptions||(this._defaultOptions=new a(void 0,this.constructor.defaultOptions))}}),i}function F(i,t){const e=[{target:i,props:t}];let n;for(;n=e.shift();){const{target:s,props:o}=n;for(const[u,c]of Object.entries(o)){if(c!=null&&typeof c=="object"&&(!c.constructor||c.constructor===Object)){e.push({target:s[u],props:c});continue}s[u]=c}}return i}function k(i,t){const e={},n=[{target:i,props:t,targetProps:e}];let s;for(;s=n.shift();){const{target:o,props:u,targetProps:c}=s;for(const[_,P]of Object.entries(u)){if(P!=null&&typeof P=="object"&&(!P.constructor||P.constructor===Object)){n.push({target:o[_],props:P,targetProps:c[_]={}});continue}c[_]=o[_]}}return e}function Pt(i,t){const e=k(i,t);function n(){F(i,t)}function s(){F(i,e)}return{set:n,unset:s}}r.ExtendManager=Y,r.ModeOptions=V,r.PluginExtendManager=g,r.PluginHost=b,r.PluginHostEventEmitter=U,r.PluginHostEventTarget=v,r.PluginManager=X,r.TierModeOptions=l,r.TierModeOptionsPluginHost=pt,r.TierModeOptionsPluginHostEventEmitter=gt,r.TierModeOptionsPluginHostEventTarget=ct,r.TierOptions=a,r.TierOptionsPluginHost=ut,r.TierOptionsPluginHostEventEmitter=at,r.TierOptionsPluginHostEventTarget=lt,r.addDefaultOptions=Z,r.addInstOptions=tt,r.becomePluginHost=j,r.becomePluginHost_Extends=ot,r.becomePluginHost_Proxy=rt,r.becomeTierModeOptionsHost=ft,r.becomeTierOptionsHost=mt,r.commonModeName=O,r.createDefineExtend=R,r.createDefineMixin=q,r.createExtendTarget=L,r.createMixinTarget=z,r.createPluginHost=D,r.createPropertySetter=Pt,r.createTargetExtend=G,r.createTargetMixin=$,r.createTierModeOptionsPluginHost=ht,r.createTierOptionsPluginHost=dt,r.defineExtend=K,r.defineMixin=B,r.extendMark=M,r.extendTarget=J,r.getPropertyValue=y,r.getPropertyValueByPath=et,r.getTargetProperties=k,r.isPlugin=C,r.mergeProperties=F,r.mixin=d,r.mixinByOmit=I,r.mixinByPick=S,r.mixinIExtend=x,r.mixinTarget=f,r.parsePropertyPath=E,r.pickHostExtendMembers=Q,r.setPropertyValue=w,r.setPropertyValueByPath=nt,r.targetExtend=W,r.targetMixin=A,r.tierModeOptionsDecorator=st,r.tierModeOptionsPlugin=Ot,r.tierOptionsDecorator=it,r.tierOptionsPlugin=Mt,Object.defineProperty(r,Symbol.toStringTag,{value:"Module"})}));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/options/options-plugin-host/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAA;AACpC,cAAc,2BAA2B,CAAA"}
|