@tsed/hooks 8.9.5 → 8.10.0-rc.1
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
|
+
(function(i,c){typeof exports=="object"&&typeof module<"u"?c(exports):typeof define=="function"&&define.amd?define(["exports"],c):(i=typeof globalThis<"u"?globalThis:i||self,c(i["@tsed/hooks"]={}))})(this,function(i){"use strict";var y=i=>{throw TypeError(i)};var w=(i,c,r)=>c.has(i)||y("Cannot "+r);var h=(i,c,r)=>(w(i,c,"read from private field"),r?r.call(i):c.get(i)),u=(i,c,r)=>c.has(i)?y("Cannot add the same private member more than once"):c instanceof WeakSet?c.add(i):c.set(i,r);var l;function c(d,s){return!d||!s.ref||d&&s.ref===d}class r{constructor(){u(this,l,new Map)}has(s){var t;return!!((t=h(this,l).get(s))!=null&&t.length)}on(s,t,e){let n=t;e||(e=n,n=void 0);const o=h(this,l).get(s)||[];return o.push({cb:e,ref:n}),h(this,l).set(s,o),this}once(s,t,e){e||(e=t);const n=(...o)=>{e(...o),this.off(s,n)};return this.on(s,t,n),this}off(s,t){const e=(n,o)=>{o.length?h(this,l).set(n,o):h(this,l).delete(n)};if(typeof s=="string"&&t){let n=h(this,l).get(s);n&&e(s,n.filter(o=>o.cb!==t))}else{const n=s;h(this,l).forEach((o,a)=>{e(a,o.filter(E=>E.ref!==n))})}return this}emit(s,t,e){Array.isArray(t)&&(e=t,t=void 0),e||(e=[]);const n=h(this,l).get(s);if(n!=null&&n.length)for(const o of n)c(t,o)&&o.cb.apply(null,e)}async asyncEmit(s,t,e){Array.isArray(t)&&(e=t,t=void 0);const n=h(this,l).get(s);if(n!=null&&n.length){const o=n.filter(a=>c(t,a)).map(a=>a.cb.apply(null,e));await Promise.all(o)}}alter(s,t,e=[],n=null){const o=h(this,l).get(s);if(o!=null&&o.length)for(const{cb:a}of o)t=a.call(n,t,...e);return t}async asyncAlter(s,t,e=[],n=null){const o=h(this,l).get(s);if(o!=null&&o.length)for(const a of o)t=await a.cb.call(n,t,...e);return t}destroy(){h(this,l).clear()}}l=new WeakMap;const f=new r,$=f.on.bind(f),g=f.once.bind(f),m=f.off.bind(f),b=f.emit.bind(f),p=f.asyncEmit.bind(f),A=f.alter.bind(f),k=f.asyncAlter.bind(f);i.$alter=A,i.$asyncAlter=k,i.$asyncEmit=p,i.$emit=b,i.$off=m,i.$on=$,i.$once=g,i.Hooks=r,i.hooks=f,Object.defineProperty(i,Symbol.toStringTag,{value:"Module"})});
|
package/package.json
CHANGED
|
@@ -2,29 +2,24 @@
|
|
|
2
2
|
"name": "@tsed/hooks",
|
|
3
3
|
"description": "Hooks module for Ts.ED Framework",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"version": "8.
|
|
5
|
+
"version": "8.10.0-rc.1",
|
|
6
6
|
"source": "./src/index.ts",
|
|
7
7
|
"main": "./lib/esm/index.js",
|
|
8
8
|
"module": "./lib/esm/index.js",
|
|
9
9
|
"typings": "./lib/types/index.d.ts",
|
|
10
|
-
"browser": "./lib/browser/
|
|
10
|
+
"browser": "./lib/browser/hooks.umd.cjs",
|
|
11
11
|
"exports": {
|
|
12
12
|
".": {
|
|
13
13
|
"tsed-source": "./src/index.ts",
|
|
14
14
|
"types": "./lib/types/index.d.ts",
|
|
15
|
-
"browser": "./lib/browser/hooks.umd.
|
|
15
|
+
"browser": "./lib/browser/hooks.umd.cjs",
|
|
16
16
|
"import": "./lib/esm/index.js",
|
|
17
17
|
"default": "./lib/esm/index.js"
|
|
18
|
-
},
|
|
19
|
-
"./**/*.js": {
|
|
20
|
-
"types": "./lib/types/**/*.d.ts",
|
|
21
|
-
"import": "./lib/esm/**/*.js",
|
|
22
|
-
"default": "./lib/esm/**/*.js"
|
|
23
18
|
}
|
|
24
19
|
},
|
|
25
20
|
"scripts": {
|
|
26
21
|
"build": "yarn build:ts && yarn run build:browser",
|
|
27
|
-
"build:browser": "
|
|
22
|
+
"build:browser": "vite build",
|
|
28
23
|
"build:ts": "tsc --build tsconfig.esm.json",
|
|
29
24
|
"test": "vitest run",
|
|
30
25
|
"test:ci": "vitest run --coverage.thresholds.autoUpdate=true"
|
|
@@ -34,14 +29,13 @@
|
|
|
34
29
|
"tslib": "2.7.0"
|
|
35
30
|
},
|
|
36
31
|
"devDependencies": {
|
|
37
|
-
"@tsed/monorepo-utils": "2.3.
|
|
38
|
-
"@tsed/typescript": "8.
|
|
39
|
-
"@tsed/vitest": "8.
|
|
32
|
+
"@tsed/monorepo-utils": "2.3.13",
|
|
33
|
+
"@tsed/typescript": "8.10.0-rc.1",
|
|
34
|
+
"@tsed/vitest": "8.10.0-rc.1",
|
|
40
35
|
"eslint": "9.12.0",
|
|
41
36
|
"typescript": "5.4.5",
|
|
42
|
-
"vite": "6.
|
|
43
|
-
"vitest": "3.1.4"
|
|
44
|
-
"webpack": "^5.75.0"
|
|
37
|
+
"vite": "6.2.2",
|
|
38
|
+
"vitest": "3.1.4"
|
|
45
39
|
},
|
|
46
40
|
"peerDependencies": {},
|
|
47
41
|
"repository": "https://github.com/tsedio/tsed",
|
|
@@ -50,5 +44,8 @@
|
|
|
50
44
|
},
|
|
51
45
|
"homepage": "https://github.com/tsedio/tsed/tree/production/packages/hooks",
|
|
52
46
|
"author": "Romain Lenzotti",
|
|
53
|
-
"license": "MIT"
|
|
47
|
+
"license": "MIT",
|
|
48
|
+
"publishConfig": {
|
|
49
|
+
"tag": "rc"
|
|
50
|
+
}
|
|
54
51
|
}
|
package/vite.config.mts
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import {defineConfig} from "vite";
|
|
2
|
+
import {resolve} from "path";
|
|
3
|
+
|
|
4
|
+
// https://vitejs.dev/config/
|
|
5
|
+
export default defineConfig({
|
|
6
|
+
plugins: [
|
|
7
|
+
// dts({
|
|
8
|
+
// outDir: "lib/browser/types",
|
|
9
|
+
// include: ["src"],
|
|
10
|
+
// exclude: ["**/*.spec.{ts,tsx}", "**/*.stories.{ts,tsx}"],
|
|
11
|
+
// })
|
|
12
|
+
],
|
|
13
|
+
build: {
|
|
14
|
+
outDir: "lib/browser",
|
|
15
|
+
lib: {
|
|
16
|
+
entry: resolve(import.meta.dirname, "src/index.ts"),
|
|
17
|
+
formats: ["umd"],
|
|
18
|
+
name: "@tsed/hooks",
|
|
19
|
+
fileName: "hooks",
|
|
20
|
+
},
|
|
21
|
+
}
|
|
22
|
+
});
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["@tsed/hooks"]=t():e["@tsed/hooks"]=t()}(self,(()=>(()=>{"use strict";var e={d:(t,s)=>{for(var n in s)e.o(s,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:s[n]})},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 s(e,t){return!e||!t.ref||e&&t.ref===e}e.r(t),e.d(t,{$alter:()=>a,$asyncAlter:()=>h,$asyncEmit:()=>f,$emit:()=>c,$off:()=>l,$on:()=>o,$once:()=>i,Hooks:()=>n,hooks:()=>r});class n{#e=new Map;has(e){return!!this.#e.get(e)?.length}on(e,t,s){let n=t;s||(s=n,n=void 0);const r=this.#e.get(e)||[];return r.push({cb:s,ref:n}),this.#e.set(e,r),this}once(e,t,s){s||(s=t);const n=(...t)=>{s(...t),this.off(e,n)};return this.on(e,t,n),this}off(e,t){const s=(e,t)=>{t.length?this.#e.set(e,t):this.#e.delete(e)};if("string"==typeof e&&t){let n=this.#e.get(e);n&&s(e,n.filter((e=>e.cb!==t)))}else{const t=e;this.#e.forEach(((e,n)=>{s(n,e.filter((e=>e.ref!==t)))}))}return this}emit(e,t,n){Array.isArray(t)&&(n=t,t=void 0),n||=[];const r=this.#e.get(e);if(r?.length)for(const e of r)s(t,e)&&e.cb.apply(null,n)}async asyncEmit(e,t,n){Array.isArray(t)&&(n=t,t=void 0);const r=this.#e.get(e);if(r?.length){const e=r.filter((e=>s(t,e))).map((e=>e.cb.apply(null,n)));await Promise.all(e)}}alter(e,t,s=[],n=null){const r=this.#e.get(e);if(r?.length)for(const{cb:e}of r)t=e.call(n,t,...s);return t}async asyncAlter(e,t,s=[],n=null){const r=this.#e.get(e);if(r?.length)for(const e of r)t=await e.cb.call(n,t,...s);return t}destroy(){this.#e.clear()}}const r=new n,o=r.on.bind(r),i=r.once.bind(r),l=r.off.bind(r),c=r.emit.bind(r),f=r.asyncEmit.bind(r),a=r.alter.bind(r),h=r.asyncAlter.bind(r);return t})()));
|
|
2
|
-
//# sourceMappingURL=hooks.umd.min.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"hooks.umd.min.js","mappings":"CAAA,SAA2CA,EAAMC,GAC1B,iBAAZC,SAA0C,iBAAXC,OACxCA,OAAOD,QAAUD,IACQ,mBAAXG,QAAyBA,OAAOC,IAC9CD,OAAO,GAAIH,GACe,iBAAZC,QACdA,QAAQ,eAAiBD,IAEzBD,EAAK,eAAiBC,GACvB,CATD,CASGK,MAAM,I,mBCRT,IAAIC,EAAsB,CCA1BA,EAAwB,CAACL,EAASM,KACjC,IAAI,IAAIC,KAAOD,EACXD,EAAoBG,EAAEF,EAAYC,KAASF,EAAoBG,EAAER,EAASO,IAC5EE,OAAOC,eAAeV,EAASO,EAAK,CAAEI,YAAY,EAAMC,IAAKN,EAAWC,IAE1E,ECNDF,EAAwB,CAACQ,EAAKC,IAAUL,OAAOM,UAAUC,eAAeC,KAAKJ,EAAKC,GCClFT,EAAyBL,IACH,oBAAXkB,QAA0BA,OAAOC,aAC1CV,OAAOC,eAAeV,EAASkB,OAAOC,YAAa,CAAEC,MAAO,WAE7DX,OAAOC,eAAeV,EAAS,aAAc,CAAEoB,OAAO,GAAO,G,KCA9D,SAASC,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ack://@tsed/hooks/webpack/runtime/define property getters","webpack://@tsed/hooks/webpack/runtime/hasOwnProperty shorthand","webpack://@tsed/hooks/webpack/runtime/make namespace object","webpack://@tsed/hooks/./src/Hooks.ts"],"sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"@tsed/hooks\"] = factory();\n\telse\n\t\troot[\"@tsed/hooks\"] = factory();\n})(self, () => {\nreturn ","// The require scope\nvar __webpack_require__ = {};\n\n","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","export type HookRef = string | symbol | any | Function;\nexport type HookListener = Function;\n\ntype HookItem = {cb: HookListener; ref?: HookRef};\n\nfunction match(ref: HookRef | unknown[] | undefined, item: HookItem) {\n return !ref || !item.ref || (ref && item.ref === ref);\n}\n\nexport class Hooks {\n #listeners: Map<string, HookItem[]> = new Map();\n\n /**\n * Check if an event has listeners\n * @param event\n */\n has(event: string) {\n return !!this.#listeners.get(event)?.length;\n }\n\n /**\n * Listen a hook event\n * @param event The event name\n * @param ref The reference of the listener\n * @param cb The callback\n */\n on(event: string, ref: HookRef, cb: HookListener): this;\n /**\n * Listen a hook event\n * @param event The event name\n * @param cb The callback\n */\n on(event: string, cb: HookListener): this;\n on(event: string, cbORef: HookRef | HookListener, cb?: HookListener) {\n let ref: HookRef | HookListener | undefined = cbORef;\n\n if (!cb) {\n cb = ref as HookListener;\n ref = undefined;\n }\n\n const items = this.#listeners.get(event) || [];\n\n items.push({\n cb,\n ref\n });\n\n this.#listeners.set(event, items);\n\n return this;\n }\n\n /**\n * Listen a hook event once\n *\n * @param event The event name\n * @param ref The reference of the listener\n * @param cb The callback\n */\n once(event: string, ref: HookRef, cb: HookListener): this;\n /**\n * Listen a hook event once\n * @param event\n * @param cb\n */\n once(event: string, cb: HookListener): this;\n once(event: string, ref: HookRef | HookListener, cb?: HookListener) {\n if (!cb) {\n cb = ref as HookListener;\n }\n\n const onceCb = (...args: unknown[]) => {\n cb(...args);\n this.off(event, onceCb);\n };\n\n this.on(event, ref, onceCb);\n\n return this;\n }\n\n /**\n * Remove a listener attached to an event\n * @param ref\n */\n off(ref: HookRef): this;\n /**\n * Remove a listener attached to an event\n * @param event\n * @param cb\n */\n off(event: string, cb: HookListener): this;\n off(event: string | HookRef, cb?: HookListener) {\n const set = (event: string, items: HookItem[]) => {\n if (items.length) {\n this.#listeners.set(event, items);\n } else {\n this.#listeners.delete(event);\n }\n };\n\n if (typeof event === \"string\" && cb) {\n let items = this.#listeners.get(event);\n\n if (items) {\n set(\n event,\n items.filter((item) => item.cb !== cb)\n );\n }\n } else {\n const ref = event as HookRef;\n\n this.#listeners.forEach((items, event) => {\n set(\n event,\n items.filter((item) => item.ref !== ref)\n );\n });\n }\n\n return this;\n }\n\n /**\n * Trigger an event without arguments.\n * @param event The event name\n */\n emit(event: string): void;\n /**\n * Trigger an event and call listener.\n * @param event\n * @param args\n * @param callThis\n */\n emit(event: string, args: unknown[]): void;\n /**\n * Trigger an event with arguments and call only listener attached to the given ref.\n * @param event The event name\n * @param ref The reference of the listener\n * @param args The arguments\n */\n emit(event: string, ref: HookRef, args?: unknown[]): void;\n emit(event: string, ref?: HookRef | unknown[], args?: unknown[]): void {\n if (Array.isArray(ref)) {\n args = ref;\n ref = undefined;\n }\n\n args ||= [];\n\n const items = this.#listeners.get(event);\n\n if (items?.length) {\n for (const item of items) {\n if (match(ref, item)) {\n item.cb.apply(null, args);\n }\n }\n }\n }\n\n /**\n * Trigger an event and call async listener.\n * @param event The event name\n */\n async asyncEmit(event: string): Promise<void>;\n async asyncEmit(event: string, args: unknown[]): Promise<void>;\n async asyncEmit(event: string, ref: HookRef, args?: unknown[]): Promise<void>;\n async asyncEmit(event: string, ref?: HookRef | unknown[], args?: unknown[]): Promise<void> {\n if (Array.isArray(ref)) {\n args = ref;\n ref = undefined;\n }\n\n const items = this.#listeners.get(event);\n\n if (items?.length) {\n const promises = items.filter((item) => match(ref, item)).map((item) => item.cb.apply(null, args));\n\n await Promise.all(promises);\n }\n }\n\n /**\n * Trigger an event, listener alter given value and return it.\n * @param event\n * @param value\n * @param args\n * @param callThis\n */\n alter<Arg = unknown, AlteredArg = Arg>(event: string, value: Arg, args: unknown[] = [], callThis: unknown = null): AlteredArg {\n const items = this.#listeners.get(event);\n\n if (items?.length) {\n for (const {cb} of items) {\n value = cb.call(callThis, value, ...args);\n }\n }\n\n return value as unknown as AlteredArg;\n }\n\n /**\n * Trigger an event, async listener alter given value and return it.\n * @param event\n * @param value\n * @param args\n * @param callThis\n */\n async asyncAlter<Arg = unknown, AlteredArg = Arg>(\n event: string,\n value: Arg,\n args: unknown[] = [],\n callThis: unknown = null\n ): Promise<AlteredArg> {\n const items = this.#listeners.get(event);\n\n if (items?.length) {\n for (const item of items) {\n value = await item.cb.call(callThis, value, ...args);\n }\n }\n\n return value as unknown as AlteredArg;\n }\n\n destroy() {\n this.#listeners.clear();\n }\n}\n\nexport const hooks = new Hooks();\nexport const $on: typeof hooks.on = hooks.on.bind(hooks);\nexport const $once: typeof hooks.once = hooks.once.bind(hooks);\nexport const $off: typeof hooks.off = hooks.off.bind(hooks);\nexport const $emit: typeof hooks.emit = hooks.emit.bind(hooks);\nexport const $asyncEmit: typeof hooks.asyncEmit = hooks.asyncEmit.bind(hooks);\nexport const $alter: typeof hooks.alter = hooks.alter.bind(hooks);\nexport const $asyncAlter: typeof hooks.asyncAlter = hooks.asyncAlter.bind(hooks);\n"],"names":["root","factory","exports","module","define","amd","self","__webpack_require__","definition","key","o","Object","defineProperty","enumerable","get","obj","prop","prototype","hasOwnProperty","call","Symbol","toStringTag","value","match","ref","item","Hooks","Map","has","event","this","length","on","cbORef","cb","undefined","items","push","set","once","onceCb","args","off","delete","filter","forEach","emit","Array","isArray","apply","asyncEmit","promises","map","Promise","all","alter","callThis","asyncAlter","destroy","clear","hooks","$on","bind","$once","$off","$emit","$asyncEmit","$alter","$asyncAlter"],"sourceRoot":""}
|
package/webpack.config.cjs
DELETED