From 8ce610cdf6cfd02bf32c69f9576179ad72c1dacf Mon Sep 17 00:00:00 2001 From: Ali Mihandoost Date: Wed, 20 Sep 2023 03:12:30 +0330 Subject: [PATCH 1/3] chore(demo): cleanup --- demo/CHANGELOG.md | 353 ------------------ demo/crypto/benchmark.ts | 40 -- demo/crypto/hash.ts | 16 - demo/crypto/rand.ts | 8 - demo/crypto/token.ts | 55 --- demo/crypto/user.ts | 47 --- demo/es-bench/bench.ts | 25 -- demo/es-bench/compare.ts | 28 -- demo/es-bench/date-locale.ts | 42 --- demo/es-bench/flat-str.ts | 40 -- demo/es-bench/for-in-vs-of.ts | 80 ---- demo/es-bench/import-tmp.ts | 3 - demo/es-bench/import.ts | 17 - demo/es-bench/index.html | 28 -- demo/es-bench/logger.ts | 39 -- demo/es-bench/many-bind.ts | 53 --- demo/es-bench/memory-arrow-func.ts | 31 -- demo/es-bench/memory-many-func.js | 39 -- demo/es-bench/node-exist.ts | 23 -- demo/es-bench/object-vs-map.ts | 56 --- demo/es-bench/reg-cost.ts | 26 -- demo/fetch/index.html | 49 --- demo/fetch/index.ts | 28 -- demo/fetch/node.ts | 14 - demo/fetch/style.css | 64 ---- demo/finite-state-machine/index.html | 13 - demo/finite-state-machine/light-machine.ts | 143 ------- demo/finite-state-machine2/light-machine.ts | 60 --- demo/logger/index.html | 18 - demo/logger/index.ts | 38 -- demo/math/index.html | 18 - demo/math/translate-unicode-digits.ts | 29 -- demo/package.json | 17 +- demo/router/index.html | 48 --- demo/router/index.ts | 29 -- demo/server-context/api-request.ts | 13 - demo/server-context/index.html | 13 - demo/server-context/server-context.ts | 11 - demo/server-context/server-request.ts | 13 - demo/signal/index.html | 20 - demo/signal/index.ts | 27 -- demo/signal2/context/index.html | 24 -- demo/signal2/context/index.ts | 33 -- demo/signal2/multithread-context/index.html | 19 - demo/signal2/multithread-context/index.ts | 6 - demo/signal2/multithread-context/main.ts | 16 - .../multithread-context/share-context.ts | 9 - demo/signal2/multithread-context/worker.ts | 24 -- demo/signal2/simple/index.html | 22 -- demo/signal2/simple/index.ts | 32 -- demo/storage-client/benchmark.ts | 88 ----- demo/storage-client/index.ts | 64 ---- demo/storage-engine/benchmark.ts | 38 -- demo/storage-engine/index.ts | 54 --- demo/validator/index.html | 19 - demo/validator/phone.ts | 46 --- demo/validator/validator.ts | 132 ------- 57 files changed, 1 insertion(+), 2339 deletions(-) delete mode 100644 demo/CHANGELOG.md delete mode 100644 demo/crypto/benchmark.ts delete mode 100644 demo/crypto/hash.ts delete mode 100644 demo/crypto/rand.ts delete mode 100644 demo/crypto/token.ts delete mode 100644 demo/crypto/user.ts delete mode 100644 demo/es-bench/bench.ts delete mode 100644 demo/es-bench/compare.ts delete mode 100644 demo/es-bench/date-locale.ts delete mode 100644 demo/es-bench/flat-str.ts delete mode 100644 demo/es-bench/for-in-vs-of.ts delete mode 100644 demo/es-bench/import-tmp.ts delete mode 100644 demo/es-bench/import.ts delete mode 100644 demo/es-bench/index.html delete mode 100644 demo/es-bench/logger.ts delete mode 100644 demo/es-bench/many-bind.ts delete mode 100644 demo/es-bench/memory-arrow-func.ts delete mode 100644 demo/es-bench/memory-many-func.js delete mode 100644 demo/es-bench/node-exist.ts delete mode 100644 demo/es-bench/object-vs-map.ts delete mode 100644 demo/es-bench/reg-cost.ts delete mode 100644 demo/fetch/index.html delete mode 100644 demo/fetch/index.ts delete mode 100644 demo/fetch/node.ts delete mode 100644 demo/fetch/style.css delete mode 100644 demo/finite-state-machine/index.html delete mode 100644 demo/finite-state-machine/light-machine.ts delete mode 100644 demo/finite-state-machine2/light-machine.ts delete mode 100644 demo/logger/index.html delete mode 100644 demo/logger/index.ts delete mode 100644 demo/math/index.html delete mode 100644 demo/math/translate-unicode-digits.ts delete mode 100644 demo/router/index.html delete mode 100644 demo/router/index.ts delete mode 100644 demo/server-context/api-request.ts delete mode 100644 demo/server-context/index.html delete mode 100644 demo/server-context/server-context.ts delete mode 100644 demo/server-context/server-request.ts delete mode 100644 demo/signal/index.html delete mode 100644 demo/signal/index.ts delete mode 100644 demo/signal2/context/index.html delete mode 100644 demo/signal2/context/index.ts delete mode 100644 demo/signal2/multithread-context/index.html delete mode 100644 demo/signal2/multithread-context/index.ts delete mode 100644 demo/signal2/multithread-context/main.ts delete mode 100644 demo/signal2/multithread-context/share-context.ts delete mode 100644 demo/signal2/multithread-context/worker.ts delete mode 100644 demo/signal2/simple/index.html delete mode 100644 demo/signal2/simple/index.ts delete mode 100644 demo/storage-client/benchmark.ts delete mode 100644 demo/storage-client/index.ts delete mode 100644 demo/storage-engine/benchmark.ts delete mode 100644 demo/storage-engine/index.ts delete mode 100644 demo/validator/index.html delete mode 100644 demo/validator/phone.ts delete mode 100644 demo/validator/validator.ts diff --git a/demo/CHANGELOG.md b/demo/CHANGELOG.md deleted file mode 100644 index 6f31cb3f..00000000 --- a/demo/CHANGELOG.md +++ /dev/null @@ -1,353 +0,0 @@ -# Change Log - -All notable changes to this project will be documented in this file. -See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. - -# [0.32.0](https://github.com/AliMD/fract/compare/v0.31.0...v0.32.0) (2023-05-27) - -### Bug Fixes - -- import util/node ([ca9e995](https://github.com/AliMD/fract/commit/ca9e995567ad267c1730e1c98f9dbbd03ab90331)) - -### Features - -- **es-bench:** enhance with optional count and warning ([0d21ee7](https://github.com/AliMD/fract/commit/0d21ee79210cf86b6b94904afdac09d5698c3cec)) -- **es-bench:** test flatStr ([961fe4e](https://github.com/AliMD/fract/commit/961fe4edb9bb686cc5da8325726eb19099149173)) - -# [0.31.0](https://github.com/AliMD/fract/compare/v0.30.0...v0.31.0) (2023-05-08) - -### Bug Fixes - -- build issues ([e1060bc](https://github.com/AliMD/fract/commit/e1060bccbfe3c775c32b85e9b8eb601e48b2998c)) -- **demo/crypto:** `logger`s & `token` ([3a777fb](https://github.com/AliMD/fract/commit/3a777fb8c7d4deba682c1a84c472c502604f1d2b)) -- **demo/crypto:** log ([0e12cfd](https://github.com/AliMD/fract/commit/0e12cfd5fc97a4099353bc12a32d1db179be4720)) -- **demo/crypto:** revert last demo ([8a350a5](https://github.com/AliMD/fract/commit/8a350a5554907329cf2c6efc61ea8fef23a0a548)) -- **demo/crypto:** use all token status ([66ae2b7](https://github.com/AliMD/fract/commit/66ae2b7286bd8b422e31296f2c17fc477656ab29)) -- **demo/fsm:** new demo for new fsm ([32fa215](https://github.com/AliMD/fract/commit/32fa2155d73be3c1328b4926273176ee47505c39)) -- **demo/icon:** remove preloadIcon in demo ([72fe224](https://github.com/AliMD/fract/commit/72fe224aeebe4abd6508d0132e4f1943efbd9123)) -- **demo/storage-engine:** use save ([b21408f](https://github.com/AliMD/fract/commit/b21408f430608249bb82c418fcaf08b35f4d166e)) -- **demo/token:** import type ([046403a](https://github.com/AliMD/fract/commit/046403ab5e3a01642e9a171e2953f087d35c15c5)) -- **demo:** fix demo based on latest `fsm`s changes ([551e5fe](https://github.com/AliMD/fract/commit/551e5fe75fa106bc3252bbbbf108a68bf0dc19e7)) -- **demo:** token ([ad03a19](https://github.com/AliMD/fract/commit/ad03a19fc4970c01c39ac1b40e8d933a8d0539a0)) -- **es-bench:** logger dev mode ([c2d6cf3](https://github.com/AliMD/fract/commit/c2d6cf3753d28cd3c760ab9cd34efa3d3cc50232)) -- **es-bench:** remove `stat` ([9dc52c7](https://github.com/AliMD/fract/commit/9dc52c7801cde62d90e962c69635162c416e55ee)) -- **fsm/demo:** signalList ([d53202c](https://github.com/AliMD/fract/commit/d53202c7daf3f55682e47e78f9a8a1b8bc70441d)) -- **lint:** ignore es-bench ([a6f59e4](https://github.com/AliMD/fract/commit/a6f59e433f6104b934b24ae90676fd0273eea3e8)) -- new logger api ([9d83a7d](https://github.com/AliMD/fract/commit/9d83a7dc5c103bc3bb4282dacfd85fa998915300)) -- **storage-engine:** dev mode ([65491ce](https://github.com/AliMD/fract/commit/65491ce7b7ff0756d8e475442d175b880b9894db)) - -### Features - -- **bench:** improve bench mark logs ([8d3121b](https://github.com/AliMD/fract/commit/8d3121be52493440906c9788a90c69e4c8d05789)) -- **bench:** test logger benchmark impact ([8ed98d8](https://github.com/AliMD/fract/commit/8ed98d8764834431c6806545660ba3a77eadc9c6)) -- **bench:** test object vs map ([f60a9fc](https://github.com/AliMD/fract/commit/f60a9fce1ca9491e3916fd40fb7a1443927f9d65)) -- **com-pwa/sign-in:** use simple hash for phoneNumber ([4b88494](https://github.com/AliMD/fract/commit/4b884940a536f02928692fbf8686c5ca04dea23a)) -- **crypto/hash:** new crc length strategy ([7a6c27e](https://github.com/AliMD/fract/commit/7a6c27e2f1b78df4aaa03a764f1b57477f1220fc)) -- **crypto:** add `user factory` demo ([94236c8](https://github.com/AliMD/fract/commit/94236c8ece66a1ced6cbf3f35603d2716ab1d5c1)) -- **demo/crypto:** random ([d820445](https://github.com/AliMD/fract/commit/d8204451e356c60572df3862edbdb02c06bf6b9f)) -- **demo/fsm:** new demo for state machine ([136b563](https://github.com/AliMD/fract/commit/136b563220310d8ec637b4e776c48c1d3bb62ecc)) -- **demo/fsm:** update ([6080469](https://github.com/AliMD/fract/commit/60804694ccab53b5c22ea636992f54ef1dde6a4b)) -- **demo/fsm:** update with new api ([9170694](https://github.com/AliMD/fract/commit/917069457630eecfa24c6fe83b7d34fb281a9d2d)) -- **demo:** crypto hash ([445b865](https://github.com/AliMD/fract/commit/445b8650a1abd98696b7fe954bcfca23f76afba8)) -- **es-bench:** compare `bind` vs `class` ([b949f87](https://github.com/AliMD/fract/commit/b949f87234353cd7238730aa26c353422fb06951)) -- **es-bench:** date locale ([7591331](https://github.com/AliMD/fract/commit/7591331f08adf1cad855cfcaeca98122d3045009)) -- **es-bench:** new bench model ([3ef68b0](https://github.com/AliMD/fract/commit/3ef68b034562a96a927d969d35a54966997aff6e)) -- **es-bench:** test node exist methods ([73bb495](https://github.com/AliMD/fract/commit/73bb495deea5df537e42f7c604ab262dba17026a)) -- **fsm:** custom signal callback ([47c22e9](https://github.com/AliMD/fract/commit/47c22e92a8a8085148b44b316d649b695ff8071a)) -- **validator:** add `phone` validation ([e5c19ca](https://github.com/AliMD/fract/commit/e5c19ca67e7c804cf3e63841890e68c11620d796)) - -# [0.30.0](https://github.com/AliMD/fract/compare/v0.29.0...v0.30.0) (2023-03-06) - -### Bug Fixes - -- **demo/fsm:** context object ([1fa8aac](https://github.com/AliMD/fract/commit/1fa8aac30ca6b1e15fd29309384466962b4b9f64)) -- **demo/math:** remove getClientId ([8be5a4a](https://github.com/AliMD/fract/commit/8be5a4a5c85c1129387667f4f6ceab56ebfb97e6)) -- **fsm:** demo ([079abf9](https://github.com/AliMD/fract/commit/079abf9b46bd0a271a30b942dcb0405993010be6)) -- **fsm:** every signal mather ([0dc504d](https://github.com/AliMD/fract/commit/0dc504dacbb1ec68f154244619d644ff8e43cc04)) - -### Features - -- Alwatr Finite State Machines ([d5900b4](https://github.com/AliMD/fract/commit/d5900b4ee8685b120188888871405853f5a69417)) -- **demo:** fsm light machine ([fe168e3](https://github.com/AliMD/fract/commit/fe168e373fa0463124acb5f9b3bf971d1d64a596)) -- es bench ([a6ec86b](https://github.com/AliMD/fract/commit/a6ec86bc71dba2aec4dc6c4b42a64af75bb2b012)) -- **fsm:** $all and $self state ([69adf41](https://github.com/AliMD/fract/commit/69adf41064ca0f55497484c50e298ebc26c42dcc)) -- **fsm:** enhance types ([3b13046](https://github.com/AliMD/fract/commit/3b130463a102f59c38603b0de470be5c87ee88c9)) -- **fsm:** share state events ([de42522](https://github.com/AliMD/fract/commit/de42522a97fdf6be8bee73d91a35820e2a5e6efb)) - -# [0.29.0](https://github.com/AliMD/fract/compare/v0.28.0...v0.29.0) (2023-02-10) - -### Features - -- **demo/router:** enhance demo ([3595b83](https://github.com/AliMD/fract/commit/3595b83b49e34b9d3d7b172bd12509b258839d0b)) -- **i18n:** add replaceNumber and auto detect setLocale from html ([3413471](https://github.com/AliMD/fract/commit/341347149f8685bc259034f5593048aa7db0b927)) -- **math:** getDeviceUuid ([946dad3](https://github.com/AliMD/fract/commit/946dad3544f2741462ff239edab8b4a9ea323bd6)) -- **math:** rename deviceId to clientId ([b211fd4](https://github.com/AliMD/fract/commit/b211fd42245d51d7109186ddb2f41574d0f0b786)) -- review ([53726b7](https://github.com/AliMD/fract/commit/53726b77274be429c87b2fd322fe2d939b048c77)) -- **signal:** new demo ([10ffc20](https://github.com/AliMD/fract/commit/10ffc2061a463b980da0dcd65d4afb2f850e2553)) - -# [0.28.0](https://github.com/AliMD/fract/compare/v0.27.0...v0.28.0) (2023-01-20) - -### Bug Fixes - -- review issue ([e5d192c](https://github.com/AliMD/fract/commit/e5d192cbee6917c2de01146cf8bd026895724ab8)) -- **validator:** remove extra trim ([ee9b601](https://github.com/AliMD/fract/commit/ee9b601198ea8dded43497df6824e09f65be86b3)) -- **validator:** validate boolean ([c0cfdc2](https://github.com/AliMD/fract/commit/c0cfdc21a99cf02bb4d56c00ba186429e72d3aa2)) - -### Features - -- **validator:** demo ([9e577ca](https://github.com/AliMD/fract/commit/9e577cad18be45942d36d633932ef0aa2c2ec512)) -- **validator:** demo ([b48a30b](https://github.com/AliMD/fract/commit/b48a30bac9f02f0b7edb3b4069c324f835f6d49b)) -- **validator:** update demo ([d49929f](https://github.com/AliMD/fract/commit/d49929fca0007aa94482010b7a6245f0bb360bc0)) -- **validator:** update demo ([cc21a90](https://github.com/AliMD/fract/commit/cc21a906b371f51696c3619fc0df0f392be99dee)) -- **validator:** update demo ([4f11b61](https://github.com/AliMD/fract/commit/4f11b61af433f348cc4a4bd5f837848c6c1298a4)) - -# [0.27.0](https://github.com/AliMD/fract/compare/v0.26.0...v0.27.0) (2022-12-29) - -**Note:** Version bump only for package @alwatr/demo - -# [0.26.0](https://github.com/AliMD/fract/compare/v0.25.0...v0.26.0) (2022-12-22) - -### Bug Fixes - -- **demo/storage-client:** getStorage ([21b2361](https://github.com/AliMD/fract/commit/21b2361a2de49097a5e70ff5282a3df0d393e3d2)) -- set correct path ([d01ce6f](https://github.com/AliMD/fract/commit/d01ce6ffa749a5e3e0e11e35b4ed61d75d61fec9)) -- tsconfig ([e96dcd3](https://github.com/AliMD/fract/commit/e96dcd30774a9f06f7d051e0504192cbbe019e35)) -- tsconfig path ([02a1fdf](https://github.com/AliMD/fract/commit/02a1fdfc8491e0fade218f00c6790e1409fafcaa)) -- **packages/\*:** package path in refrences ([841d86d](https://github.com/AliMD/fract/commit/841d86dc2555fdc86a950b490ea2eb9fffe4df2d)) - -### Features - -- improve error debugging ([1fba504](https://github.com/AliMD/fract/commit/1fba50400a1e8ececc10bbe8ea11cc8dcea2289c)) - -# [0.25.0](https://github.com/AliMD/fract/compare/v0.24.1...v0.25.0) (2022-12-07) - -**Note:** Version bump only for package @alwatr/demo - -## [0.24.1](https://github.com/AliMD/fract/compare/v0.24.0...v0.24.1) (2022-12-01) - -**Note:** Version bump only for package @alwatr/demo - -# [0.24.0](https://github.com/AliMD/fract/compare/v0.23.0...v0.24.0) (2022-11-28) - -### Bug Fixes - -- **demo/storage-client:** set default token ([f7a8962](https://github.com/AliMD/fract/commit/f7a896202e4a6acd2c248904cdc32dae2773550b)) -- **demo/storage-client:** update config ([2c71396](https://github.com/AliMD/fract/commit/2c71396f628942e776814a8bc08705bac679e5ab)) -- **demo:** update types ([010b123](https://github.com/AliMD/fract/commit/010b123075d073c8583f557608a9781064d7cc5c)) -- remove \_updatedBy ([d8d5c83](https://github.com/AliMD/fract/commit/d8d5c83884bbd30566001ff84faf9e840503471c)) -- update types ([44cc57f](https://github.com/AliMD/fract/commit/44cc57f97a99ed810dae3fde39c9525bd0e8ff3c)) -- use ~ for package version ([4e027ff](https://github.com/AliMD/fract/commit/4e027ff63875e03b088ebcdc1bdf2495f4494eec)) - -# [0.23.0](https://github.com/AliMD/fract/compare/v0.22.1...v0.23.0) (2022-11-23) - -**Note:** Version bump only for package @alwatr/demo - -## [0.22.1](https://github.com/AliMD/fract/compare/v0.22.0...v0.22.1) (2022-11-21) - -**Note:** Version bump only for package @alwatr/demo - -# [0.22.0](https://github.com/AliMD/fract/compare/v0.21.0...v0.22.0) (2022-11-20) - -### Bug Fixes - -- **demo/storage-client:** handle document not found ([fb73532](https://github.com/AliMD/fract/commit/fb73532fd1a1b52552d0b79f97847db059444785)) -- **demo/storage-client:** use host in config ([f3bd04d](https://github.com/AliMD/fract/commit/f3bd04dd047afebd99650f57fe6a2715b014dfb2)) -- **storage-client:** demo ([83fa9d0](https://github.com/AliMD/fract/commit/83fa9d0bde2a65a02c225bcb9829a87667606fb6)) -- **storage-client:** demo get not found ([5070912](https://github.com/AliMD/fract/commit/507091267f06a8f854833ccac5b9a3f77c46ae70)) -- **storage-client:** demo security issue ([85a71d4](https://github.com/AliMD/fract/commit/85a71d496bd9e62863ce85c5abb994648f69a36c)) -- **storage-client:** handle 404 in benchmark ([b149c85](https://github.com/AliMD/fract/commit/b149c857ae8ec46ae854eb5fd3893395945d5da2)) -- **storage:** performance demo test ([17b2c1a](https://github.com/AliMD/fract/commit/17b2c1a54132b524b2389976fb2e21f84e20e9c1)) -- **tsconfig:** rename storage to storage-engine ([229dd77](https://github.com/AliMD/fract/commit/229dd77a0aa928013f93ac43514309e163631a29)) - -### Features - -- **demo:** forAll storage-client ([a856099](https://github.com/AliMD/fract/commit/a856099f5644a0b059fd0ff25521376d5f9b97eb)) -- **demo:** storage-client ([e19abc4](https://github.com/AliMD/fract/commit/e19abc4ecd59200204be7f26ce0021157a26e262)) -- **fetch:** support nodejs ([2ed2ef4](https://github.com/AliMD/fract/commit/2ed2ef42e9f204d4896ada4e20b839cfabdc7284)) -- **storage-client:** benchmark test ([7c0fc92](https://github.com/AliMD/fract/commit/7c0fc92fa910168775459dc2be484844a6a178cb)) -- **storage-client:** performance demo ([186832c](https://github.com/AliMD/fract/commit/186832cfea21b02aa6f7c9ec3eba768fa0ea64ed)) - -### Performance Improvements - -- **storage-client:** refactor for perf improve and keep alive ([ed0b743](https://github.com/AliMD/fract/commit/ed0b743a8936602b63d92c216d2d65f6a31d74cf)) - -# [0.21.0](https://github.com/AliMD/fract/compare/v0.20.0...v0.21.0) (2022-11-13) - -**Note:** Version bump only for package @alwatr/demo - -# [0.20.0](https://github.com/AliMD/fract/compare/v0.19.0...v0.20.0) (2022-11-05) - -### Features - -- **`alwatr-icon`:** icon component ([4a24cdc](https://github.com/AliMD/fract/commit/4a24cdcfbb55bdc3928dd39ca9e6372caec386b2)) -- **demo:** dynamic icon demo ([f9c57f5](https://github.com/AliMD/fract/commit/f9c57f52bb8ebcbe5f2d26d2aa3287cda48df5c5)) -- **demo:** fetch revalidateCallback ([55a58b7](https://github.com/AliMD/fract/commit/55a58b7174065bc01b52de32816505e189cbdf34)) -- **fetch:** update demo ([441c084](https://github.com/AliMD/fract/commit/441c08418c67283cf192ca192bfd5f0e238ecdc5)) - -# [0.19.0](https://github.com/AliMD/fract/compare/v0.18.0...v0.19.0) (2022-11-01) - -### Bug Fixes - -- **font:** review ([a371bf2](https://github.com/AliMD/fract/commit/a371bf2bcf6477487ceeadeaa596919066f5c468)) - -### Features - -- **`demo`:** improve icon demo ([6519f6f](https://github.com/AliMD/fract/commit/6519f6f05567b8a4ce3db0bd3a442139902a01d4)) -- **demo:** improve demo dark mode ([b89217e](https://github.com/AliMD/fract/commit/b89217eb2bd271e1d62ebe29b41ac2599852d7da)) -- **demo:** seprate fonts ([222e014](https://github.com/AliMD/fract/commit/222e014d488416042bf1d8575bfc0eb84d6009e8)) - -# [0.18.0](https://github.com/AliMD/fract/compare/v0.17.0...v0.18.0) (2022-10-22) - -### Features - -- **fetch:** cache strategy ([106eabd](https://github.com/AliMD/fract/commit/106eabdd10574b24f9919049d0b509ae40168a9a)) -- **fetch:** cache strategy demo ([47dd239](https://github.com/AliMD/fract/commit/47dd2391cd1d760cfec8b0f54a249d05b83b4c33)) -- **fetch:** improve demo ([638830f](https://github.com/AliMD/fract/commit/638830f817923a71ce0900776622a858e4905cad)) - -# [0.17.0](https://github.com/AliMD/fract/compare/v0.16.1...v0.17.0) (2022-10-21) - -### Bug Fixes - -- **storage:** \_last ket ([a1c452a](https://github.com/AliMD/fract/commit/a1c452a50c7b53b03765bf37556264a64ac3ed55)) - -### Features - -- add math demo ([7a92dc2](https://github.com/AliMD/fract/commit/7a92dc22ab323ddea9ed166e597ea1924cf368e9)) -- **demo:** fetch ([2bf7a69](https://github.com/AliMD/fract/commit/2bf7a694f53921b3096b4092f85bd212ec32881b)) -- **fetch:** docs & pattern ([459ad1c](https://github.com/AliMD/fract/commit/459ad1c5996f851769306639136d79c0f7270770)) -- **Math:** translateUnicodeDigits ([996c507](https://github.com/AliMD/fract/commit/996c507abb4708b9ef32377eb4045efb8a3f0939)) - -# [0.16.0](https://github.com/AliMD/fract/compare/v0.15.0...v0.16.0) (2022-09-08) - -**Note:** Version bump only for package @alwatr/demo - -# [0.15.0](https://github.com/AliMD/fract/compare/v0.14.0...v0.15.0) (2022-09-01) - -**Note:** Version bump only for package @alwatr/demo - -# [0.14.0](https://github.com/AliMD/fract/compare/v0.13.0...v0.14.0) (2022-08-19) - -**Note:** Version bump only for package @alwatr/demo - -# [0.13.0](https://github.com/AliMD/fract/compare/v0.12.0...v0.13.0) (2022-08-06) - -### Bug Fixes - -- **token:** calc benchs ([f1240cc](https://github.com/AliMD/fract/commit/f1240cce9247c6fb53dd63a940bd95123ba628d1)) - -### Features - -- **storage:** add \_createdBy and \_updatedBy ([1a70945](https://github.com/AliMD/fract/commit/1a70945bc61921f13d839adde25fdfe9fb37eaad)) -- **storage:** improve process and add has, storagePath, keys and length ([4e323ad](https://github.com/AliMD/fract/commit/4e323ad10ee0630cfa02edd191167b69e14743ff)) -- **token:** generate and verify HOTP tpkens ([d0372f8](https://github.com/AliMD/fract/commit/d0372f805a45d6fd6571b50821529068cec7d424)) -- **token:** new package files ([fe620e0](https://github.com/AliMD/fract/commit/fe620e0d9f84c4e6d8e0eed47d6b398e218429ad)) - -# [0.12.0](https://github.com/AliMD/fract/compare/v0.11.0...v0.12.0) (2022-07-22) - -### Bug Fixes - -- all package refrences ([11b027d](https://github.com/AliMD/fract/commit/11b027d4cdbe142e1f5ef6c6f87c1812fbb2d94b)) - -### Features - -- **font:** demo for sahel ([bb087ef](https://github.com/AliMD/fract/commit/bb087eff880aceaedfb253494581d1f363632573)) -- **jatabase:** demo ([17beb7e](https://github.com/AliMD/fract/commit/17beb7ecdf3e89b0ffee43f4365f3b2dc4950f99)) -- **logger:** node coloring support ([2b4aab6](https://github.com/AliMD/fract/commit/2b4aab655bc0707761587a7439de98bbd4ad0e08)) - -# [0.11.0](https://github.com/AliMD/fract/compare/v0.10.1...v0.11.0) (2022-04-16) - -**Note:** Version bump only for package @alwatr/demo - -# [0.10.0](https://github.com/AliMD/fract/compare/v0.9.0...v0.10.0) (2022-04-02) - -### Bug Fixes - -- **font:** cleanup ([cdd4ee1](https://github.com/AliMD/fract/commit/cdd4ee15332cb9f1ec19bf34ec02cb1f5999cad5)) -- try to fix typescript importer in eslint ([ceb508c](https://github.com/AliMD/fract/commit/ceb508c9d8152aba4f3833b1c1f4930828e2014d)) - -### Features - -- **demo:** add font demo ([33f3825](https://github.com/AliMD/fract/commit/33f3825a7e23b86281d047dd3be3b2f8eb862b8d)) -- **demo:** font ([8035d73](https://github.com/AliMD/fract/commit/8035d73dc99d4ff9c8eec0f70bec43b97b80320c)) - -# [0.9.0](https://github.com/AliMD/fract/compare/v0.8.0...v0.9.0) (2022-03-22) - -**Note:** Version bump only for package @alwatr/demo - -# [0.8.0](https://github.com/AliMD/fract/compare/v0.7.2...v0.8.0) (2022-03-14) - -### Features - -- **demo:** router outlet demo ([54576f0](https://github.com/AliMD/fract/commit/54576f0397df1d1471467564529a01b4e75335bf)) -- **router:** improve demo for test signal! ([59a1017](https://github.com/AliMD/fract/commit/59a1017f3ed323fea8e9e798f612f0f54b74b399)) -- **router:** simple demo ([884359a](https://github.com/AliMD/fract/commit/884359ac2c77a306c2410d6fd351382b416c36fe)) - -## [0.7.2](https://github.com/AliMD/fract/compare/v0.7.1...v0.7.2) (2022-03-12) - -### Features - -- **signal:** demo as test ([fc3f9fd](https://github.com/AliMD/fract/commit/fc3f9fdd8c76c6bc5117f3ee894480500f81cc80)) - -# [0.7.0](https://github.com/AliMD/fract/compare/v0.6.1...v0.7.0) (2022-03-12) - -**Note:** Version bump only for package @alwatr/demo - -# [0.6.0](https://github.com/AliMD/vatr/compare/v0.5.0...v0.6.0) (2022-03-11) - -### Bug Fixes - -- **demo:** package ([c2b2339](https://github.com/AliMD/vatr/commit/c2b2339f1ca08207ae0d0f8f0d7fff9c98a822ce)) -- old One repo links ([1156b07](https://github.com/AliMD/vatr/commit/1156b077e0abc4712207183e01896fe86f7a05f6)) - -# [0.5.0](https://github.com/AliMD/fract/compare/v0.4.0...v0.5.0) (2022-03-11) - -**Note:** Version bump only for package @alwatr/demo - -# [0.4.0](https://github.com/AliMD/fract/compare/v0.3.0...v0.4.0) (2022-03-11) - -### Features - -- **logger:** add logProperty, logMethodFull ([8b0317d](https://github.com/AliMD/fract/commit/8b0317db88ed73604a27935a3a30cd5c31cb0804)) -- **logger:** complete refactor the logger with new API and fix show correct line number ([7efe8cf](https://github.com/AliMD/fract/commit/7efe8cf0f566e148406f38fdd60fa3d747c9bc51)) - -# [0.3.0](https://github.com/AliMD/fract/compare/v0.2.1...v0.3.0) (2022-03-06) - -**Note:** Version bump only for package @alwatr/demo - -## [0.2.1](https://github.com/AliMD/fract/compare/v0.2.0...v0.2.1) (2022-03-05) - -**Note:** Version bump only for package @alwatr/demo - -# [0.2.0](https://github.com/AliMD/fract/compare/v0.1.2...v0.2.0) (2022-03-05) - -### Bug Fixes - -- **util:** remove package ([b337d9a](https://github.com/AliMD/fract/commit/b337d9a97c8f73c2a87e722b23a50718321d1648)) - -## [0.1.2](https://github.com/AliMD/fract/compare/v0.1.1...v0.1.2) (2022-03-03) - -**Note:** Version bump only for package @alwatr/demo - -## [0.1.1](https://github.com/AliMD/fract/compare/v0.1.0...v0.1.1) (2022-03-03) - -**Note:** Version bump only for package @alwatr/demo - -# 0.1.0 (2022-03-02) - -### Bug Fixes - -- add type module ([2649798](https://github.com/AliMD/fract/commit/2649798c752138742cbdd14ee78768daa26f5b5a)) -- **bug:** rootDir `src` to `.` ([4ad87ee](https://github.com/AliMD/fract/commit/4ad87ee4a84b80afe563db5d42671ec9624ffce3)) -- change all [@one](https://github.com/one) to [@alwatr](https://github.com/alwatr) ([e0573bf](https://github.com/AliMD/fract/commit/e0573bf8b55c9e25bad3f7b407cc2c3d509f36d3)) -- fix import module ([38dff29](https://github.com/AliMD/fract/commit/38dff29a99e21f75f35be31bc11fb84e1f9d4a55)) -- remove `src` and move all content to `root` ([3323322](https://github.com/AliMD/fract/commit/33233220ed576f30249aa1197105219b62c65945)) - -### Features - -- build demo ([e50b310](https://github.com/AliMD/fract/commit/e50b3106f428a2a11cc0d960970017d564caa017)) -- build index ([93b604f](https://github.com/AliMD/fract/commit/93b604f44d43eedec5df1dd47ad84b96a99ed9b7)) -- demo html ([de43204](https://github.com/AliMD/fract/commit/de432043c1b46f2c8f0d9c4f46580b31f3eee066)) -- **demo:** add error and force sample ([0aa2edd](https://github.com/AliMD/fract/commit/0aa2edd896b417ea79a249f3332ad629e80a17fa)) -- **demo:** add alwatr logger demo ([f759a06](https://github.com/AliMD/fract/commit/f759a06f65545d3589a136f2b9a553dfdb1f2af2)) -- **demo:** alwatr logger demo ([302c6f4](https://github.com/AliMD/fract/commit/302c6f46fcc00796e6c030c6fe98a6c2b9f21d04)) -- **svg-icon:** init svg-icon package (ionicons) ([#14](https://github.com/AliMD/fract/issues/14)) ([5b3a8f6](https://github.com/AliMD/fract/commit/5b3a8f67f5676e0a2139cfa30b60666190c991cf)) diff --git a/demo/crypto/benchmark.ts b/demo/crypto/benchmark.ts deleted file mode 100644 index 32224a75..00000000 --- a/demo/crypto/benchmark.ts +++ /dev/null @@ -1,40 +0,0 @@ -import {AlwatrTokenGenerator, type CryptoAlgorithm} from '@alwatr/crypto'; -import {delay} from '@alwatr/util'; - -if (process.env.NODE_ENV !== 'production') { - console.log('Please run node in production for benchmark. NODE_ENV=production node demo/crypto/benchmark.js'); - process.exit(); -} - -const tokenGenerator = new AlwatrTokenGenerator({ - secret: 'my-very-secret-key', - duration: null, - algorithm: 'md5', - encoding: 'base64url', -}); - -const sampleData = 'Lorem ipsum dolor sit amet consectetur adipisicing elit.'; - -function benchmark(algorithm: CryptoAlgorithm): void { - tokenGenerator.config.algorithm = algorithm; - const now = Date.now(); - const testRun = 1_000_000; - let i = testRun; - for (; i > 0; i--) { - tokenGenerator.generate(sampleData); - } - const runPerSec = Math.round((testRun / (Date.now() - now)) * 1000); - console.log(`Benchmark for ${algorithm} runs %s per sec`, runPerSec); -} - -benchmark('md5'); -await delay(500); -benchmark('sha1'); -await delay(500); -benchmark('sha224'); -await delay(500); -benchmark('sha256'); -await delay(500); -benchmark('sha384'); -await delay(500); -benchmark('sha512'); diff --git a/demo/crypto/hash.ts b/demo/crypto/hash.ts deleted file mode 100644 index 117294d6..00000000 --- a/demo/crypto/hash.ts +++ /dev/null @@ -1,16 +0,0 @@ -import {AlwatrHashGenerator} from '@alwatr/crypto'; - -const hashGenerator = new AlwatrHashGenerator({ - algorithm: 'sha1', - encoding: 'base64url', - crcLength: 8, -}); - -const test = (): void => { - const hash = hashGenerator.randomSelfValidate(); - console.log('hash: %s validation: %s', hash, hashGenerator.verifySelfValidate(hash)); -}; - -for (let index = 0; index < 10; index++) { - test(); -} diff --git a/demo/crypto/rand.ts b/demo/crypto/rand.ts deleted file mode 100644 index cc484aae..00000000 --- a/demo/crypto/rand.ts +++ /dev/null @@ -1,8 +0,0 @@ -import {AlwatrHashGenerator, secretGeneratorPreConfig} from '@alwatr/crypto'; - -const hashGenerator = new AlwatrHashGenerator(secretGeneratorPreConfig); - -for (let i = 0; i <= 10; i++) { - console.log('hash: %s', hashGenerator.randomSelfValidate()); -} - diff --git a/demo/crypto/token.ts b/demo/crypto/token.ts deleted file mode 100644 index 7f24f30f..00000000 --- a/demo/crypto/token.ts +++ /dev/null @@ -1,55 +0,0 @@ -import {type TokenStatus, AlwatrTokenGenerator} from '@alwatr/crypto'; -import {createLogger} from '@alwatr/logger'; - -const logger = createLogger('token/demo', true); - -const tokenGenerator = new AlwatrTokenGenerator({ - secret: 'my-very-secret-key', - duration: '2s', - algorithm: 'sha512', - encoding: 'base64url', -}); - -interface User { - id: string; - name: string; - role: 'admin' | 'user'; - auth: string; -} - -const user: User = { - id: 'alimd', - name: 'Ali Mihandoost', - role: 'admin', - auth: '', // Generated in first login -}; - -// ------ - -// For example when user authenticated we send user data contain valid auth token. -function login(): User { - user.auth = tokenGenerator.generate(`${user.id}-${user.role}`); - logger.logMethodFull?.('login', {}, {user}); - return user; -} - -// Now request received and we want to validate the token to ensure that the user is authenticated. -function userValidate(user: User): TokenStatus { - const validateStatus = tokenGenerator.verify(`${user.id}-${user.role}`, user.auth); - logger.logMethodFull?.('userValidate', {user}, {validateStatus}); - return validateStatus; -} - -// demo -const userData = login(); -userValidate(userData); // { validateStatus: 'valid' } - -setTimeout(() => { - // 2s later - userValidate(user); // { validateStatus: 'expired' } -}, 2001); - -setTimeout(() => { - // 4s later - userValidate(user); -}, 4001); // { validateStatus: 'invalid' } diff --git a/demo/crypto/user.ts b/demo/crypto/user.ts deleted file mode 100644 index d55e643f..00000000 --- a/demo/crypto/user.ts +++ /dev/null @@ -1,47 +0,0 @@ -import {AlwatrUserFactory} from '@alwatr/crypto'; -import {createLogger} from '@alwatr/logger'; -import {delay} from '@alwatr/util'; - -import type {User} from '@alwatr/type'; - -const logger = createLogger('crypto/user', true); - -const userFactory = new AlwatrUserFactory( - { - algorithm: 'sha1', - encoding: 'base64url', - crcLength: 4, - }, - { - secret: 'my-very-secret-key', - duration: '2s', - algorithm: 'sha512', - encoding: 'base64url', - }, -); - -const user: User = { - id: userFactory.generateId(), - country: 'iran', - fullName: 'امیرمحمد نجفی', - gender: 'male', - lpe: 1, - phoneNumber: 989151234567, -}; - -const userIdValidation = userFactory.verifyId(user.id); -logger.logOther?.('user id validation:', userIdValidation); - -const userToken = userFactory.generateToken([user.id, user.lpe]); -logger.logOther?.('user token:', userToken); - -const userTokenValidation = (): void => { - const tokenValidationStatus = userFactory.verifyToken([user.id, user.lpe], userToken); - logger.logOther?.('user token validation status:', tokenValidationStatus); -}; - -userTokenValidation(); -await delay(2000); -userTokenValidation(); -await delay(1000); -userTokenValidation(); diff --git a/demo/es-bench/bench.ts b/demo/es-bench/bench.ts deleted file mode 100644 index 184e74cb..00000000 --- a/demo/es-bench/bench.ts +++ /dev/null @@ -1,25 +0,0 @@ -if (globalThis.process && (globalThis.process?.env.NODE_ENV !== 'production' || typeof globalThis.gc !== 'function')) { - console.warn('Please run node in production with `--expose-gc` for benchmark\nNODE_ENV=production node --expose-gc demo/...'); -} - -export const bench = (name: string, func: () => void, count = 1_000_000): void => { - globalThis.gc?.(); - let i = count; - const startMemory = globalThis.process?.memoryUsage.rss() ?? 0; - const startTime = performance.now(); - - while (i--) { - func(); - } - - const duration = performance.now() - startTime; - const runPerSec = Math.ceil((count / duration) * 1000); - const memoryUsage = Math.round(((globalThis.process?.memoryUsage.rss() ?? 0) - startMemory) / 10) / 100; - - console.log( - `run ${name} ${runPerSec.toLocaleString()}/s with ${ - globalThis.process?.memoryUsage.rss !== undefined ? memoryUsage.toLocaleString() : '?' - }kb` - ); - globalThis.gc?.(); -}; diff --git a/demo/es-bench/compare.ts b/demo/es-bench/compare.ts deleted file mode 100644 index 97ba890f..00000000 --- a/demo/es-bench/compare.ts +++ /dev/null @@ -1,28 +0,0 @@ -import {bench} from './bench.js'; - -const value = undefined; - -function test_1(): boolean { - if (value === true) { - return true; - } - else { - return false; - } -} - -function test_2(): boolean { - if (value) { - return true; - } - else { - return false; - } -} - - -bench('test_1', test_1); -bench('test_2', test_2); - -bench('test_1', test_1); -bench('test_2', test_2); diff --git a/demo/es-bench/date-locale.ts b/demo/es-bench/date-locale.ts deleted file mode 100644 index 63c222e9..00000000 --- a/demo/es-bench/date-locale.ts +++ /dev/null @@ -1,42 +0,0 @@ -import {bench} from './bench.js'; - -// 18,303,355/s with 44,597.25kb -bench('date_now', () => { - Date.now(); -}); - -// 12,177,203/s with 51,511.3kb -bench('new_date', () => { - new Date(); -}); - -// 677,056/s with 52,559.87kb -const dateTimeFormat = Intl.DateTimeFormat('fa'); -bench('date_time_format_new', () => { - dateTimeFormat.format(new Date()); -}); - -// 9,770/s with 2,381,545.47kb -bench('new_date_time_format_new', () => { - const dateTimeFormat = Intl.DateTimeFormat('fa'); - dateTimeFormat.format(new Date()); -}); - -// 766,025/s with 2,227,060.74kb -bench('date_time_format_now', () => { - dateTimeFormat.format(Date.now()); -}); - -// 9,616/s with 1,784,446.98kb -bench('new_date_time_format_now', () => { - const dateTimeFormat = Intl.DateTimeFormat('fa'); - dateTimeFormat.format(Date.now()); -}); - -// 757,297/s with 1,626,062.85kb -bench('to_locale_date_string', () => { - const time = Date.now(); - new Date(time).toLocaleDateString('fa'); -}); - -globalThis.document?.body.append(' Done. Check the console.'); diff --git a/demo/es-bench/flat-str.ts b/demo/es-bench/flat-str.ts deleted file mode 100644 index 1d1c6e03..00000000 --- a/demo/es-bench/flat-str.ts +++ /dev/null @@ -1,40 +0,0 @@ -import {bench} from './bench.js'; - -function flatstr (s: string) { - // @ts-ignore - s | 0 - return s -} - -let temp = ''; - -function test_1(): void { - let s = ''; - let n = 1_000_000; - while(n--) { - s += 'ali'; - } - temp = s; -} - -function test_2(): void { - let s = ''; - let n = 1_000_000; - while(n--) { - s += 'ali'; - } - temp = flatstr(s); -} - - -bench('test_1', test_1, 10); -bench('test_2', test_2, 10); - -bench('test_1', test_1, 10); -bench('test_2', test_2, 10); - -bench('test_1', test_1, 10); -bench('test_2', test_2, 10); - - -console.log(temp.length) diff --git a/demo/es-bench/for-in-vs-of.ts b/demo/es-bench/for-in-vs-of.ts deleted file mode 100644 index 2a596125..00000000 --- a/demo/es-bench/for-in-vs-of.ts +++ /dev/null @@ -1,80 +0,0 @@ -import {random} from '@alwatr/math'; - -import {bench} from './bench.js'; - -const obj: Record> = {}; -let userName = ''; -console.log(userName); - -function prepare(): void { - for (let i = 100; i; i--) { - obj[i] = { - id: 'user_' + i, - fname: random.string(4, 16), - lname: random.string(4, 32), - email: random.string(8, 32), - token: random.string(16), - }; - } -} - -function test_for_in(): void { - for (const key in obj) { - if (!Object.prototype.hasOwnProperty.call(obj, key)) continue; - userName = obj[key].id; - } -} - -function test_for_of_values(): void { - for (const item of Object.values(obj)) { - userName = item.id; - } -} - -function test_for_of_keys(): void { - for (const key of Object.keys(obj)) { - userName = obj[key].id; - } -} - -prepare(); - -bench('for-of-values', test_for_of_values); -bench('for-of-keys', test_for_of_keys); -bench('for-in', test_for_in); - -globalThis.document?.body.append(' Done. Check the console.'); - -/* -1000 items, key is numberString (obj[i]) - for-of-values: 1s - for-of-keys: 3s - for-in: 6s - -1000 items, if key is string (obj['user_'+i]) - for-of-keys: 11s - for-in: 15s - for-of-values: 26s - - -100 items, key is numberString (obj[i]) - for-of-values: 139ms - for-of-keys: 342ms - for-in: 599ms - -100 items, if key is string (obj['user_'+i]) - for-of-keys: 651ms - for-in: 960ms - for-of-values: 2159ms - - -10 items, key is numberString (obj[i]) - for-of-values: 54ms - for-of-keys: 70ms - for-in: 107ms - -10 items, if key is string (obj['user_'+i]) - for-in: 28ms - for-of-values: 35ms - for-of-keys: 53ms -*/ diff --git a/demo/es-bench/import-tmp.ts b/demo/es-bench/import-tmp.ts deleted file mode 100644 index a8ada091..00000000 --- a/demo/es-bench/import-tmp.ts +++ /dev/null @@ -1,3 +0,0 @@ -export {} - -console.log('test'); diff --git a/demo/es-bench/import.ts b/demo/es-bench/import.ts deleted file mode 100644 index b4d1a438..00000000 --- a/demo/es-bench/import.ts +++ /dev/null @@ -1,17 +0,0 @@ -import {bench} from './bench.js'; - -const a = await import('./import-tmp.js'); - -function test_1(): unknown { - return a; -} - -function test_2(): unknown { - return import('./import-tmp.js'); -} - -bench('test_1', test_1); -bench('test_2', test_2); -bench('test_1', test_1); - -globalThis.document?.body.append(' Done. Check the console.'); diff --git a/demo/es-bench/index.html b/demo/es-bench/index.html deleted file mode 100644 index b0c1e779..00000000 --- a/demo/es-bench/index.html +++ /dev/null @@ -1,28 +0,0 @@ - - - - - ES Bench - - - - - Waiting... -
- - diff --git a/demo/es-bench/logger.ts b/demo/es-bench/logger.ts deleted file mode 100644 index 150e7da3..00000000 --- a/demo/es-bench/logger.ts +++ /dev/null @@ -1,39 +0,0 @@ -import {createLogger} from '@alwatr/logger'; -// import {delay} from '@alwatr/util'; - -import {bench} from './bench.js'; - -const logger = createLogger('logger-bench', false); - -const getUserList = (): Record> => { - const userList: Record> = {}; - for (let i = 10; i; i--) { - const userId = 'user_' + i; - userList[userId] = { - user: userId, - fname: 'ali', - lname: 'md', - email: 'i@ali.md', - token: '1234abcd', - }; - } - return userList; -}; - -function test_without_logger(obj: Record): number { - return Object.values(obj).length; -} - -function test_with_logger(obj: Record): number { - logger.logMethodArgs?.('test_with_logger', obj); - return Object.values(obj).length; -} - -bench('test_with_logger 1st', () => test_with_logger(getUserList())); -bench('test_without_logger 1st', () => test_without_logger(getUserList())); - -bench('test_with_logger 2nd', () => test_with_logger(getUserList())); -bench('test_without_logger 2nd', () => test_without_logger(getUserList())); - - -globalThis.document?.body.append(' Done. Check the console.'); diff --git a/demo/es-bench/many-bind.ts b/demo/es-bench/many-bind.ts deleted file mode 100644 index f5c070d9..00000000 --- a/demo/es-bench/many-bind.ts +++ /dev/null @@ -1,53 +0,0 @@ -import {bench} from './bench.js'; - -function test1(id: string): void { - console.log(id); -} -function test2(id: string): void { - console.log(id); -} -function test3(id: string): void { - console.log(id); -} - -const bind = (id: string) => ({ - id, - test1: test1.bind(null, id), - test2: test2.bind(null, id), - test3: test3.bind(null, id), -} as const); - -class MyClass { - constructor(public id: string) { - } - - test1(): void { - console.log(this.id); - } - test2(): void { - console.log(this.id); - } - test3(): void { - console.log(this.id); - } -} - -function test_bind(): string { - const a = bind('123'); - return a.id; -} - -function test_class(): string { - const a = new MyClass('123'); - return a.id; -} - -test_class(); -test_bind(); - -bench('test_bind', test_bind); -bench('test_class', test_class); -bench('test_bind', test_bind); -bench('test_class', test_class); - -globalThis.document?.body.append(' Done. Check the console.'); diff --git a/demo/es-bench/memory-arrow-func.ts b/demo/es-bench/memory-arrow-func.ts deleted file mode 100644 index 95681019..00000000 --- a/demo/es-bench/memory-arrow-func.ts +++ /dev/null @@ -1,31 +0,0 @@ -import {random} from '@alwatr/math'; - -export function heavyObject() { - const obj: Record> = {}; - for (let i = 100_000; i; i--) { - const id = 'user_' + i; - obj[id] = { - id, - fname: random.string(4, 16), - lname: random.string(4, 32), - email: random.string(8, 32), - token: random.string(16), - }; - } - return obj; -} - -(() => { - // @ts-ignore - const temp = heavyObject(); - window.addEventListener('click', () => { - console.log(1); - }); -})(); - -/** - * Empty html: 3.1MB - * Simple event: 3.3MB - * Use heavyObject: 64MB - * Make heavyObject but don`t use it: 3.3MB (برگام!) - */ diff --git a/demo/es-bench/memory-many-func.js b/demo/es-bench/memory-many-func.js deleted file mode 100644 index 0eab094d..00000000 --- a/demo/es-bench/memory-many-func.js +++ /dev/null @@ -1,39 +0,0 @@ -class test1 { -} - -for(let i=0; i<1000; i++) { - test1.prototype['method' + i] = function (a) { - a++; - return a; - } -} - -console.time('bench'); -const a1 = new test1(); -let n1=0; -for(let i=0; i<1000; i++) { - n1 += a1.method500(i); -} -console.timeEnd('bench'); - - -/// -- - - -class test2 { -} - -test2.prototype.methodN = function() { - return function (a) { - a++; - return a; - } -} - -console.time('bench'); -const a2 = new test2(); -let n2=0; -for(let i=0; i<1000; i++) { - n2 += a2.methodN()(i); -} -console.timeEnd('bench'); diff --git a/demo/es-bench/node-exist.ts b/demo/es-bench/node-exist.ts deleted file mode 100644 index 539d0adc..00000000 --- a/demo/es-bench/node-exist.ts +++ /dev/null @@ -1,23 +0,0 @@ -import {accessSync, existsSync, constants} from 'node:fs'; -import { bench } from './bench.js'; - -const filePath = './temp-file.txt'; -function exist(): boolean { - return existsSync(filePath); -} - -function access(): boolean { - try { - accessSync(filePath, constants.F_OK); - return true; - } - catch { - return false - } -} - -console.log('exist(%s) => %s', filePath, exist()) -console.log('access(%s) => %s', filePath, access()) - -bench('exist', exist); -bench('access', access); diff --git a/demo/es-bench/object-vs-map.ts b/demo/es-bench/object-vs-map.ts deleted file mode 100644 index b4ea2416..00000000 --- a/demo/es-bench/object-vs-map.ts +++ /dev/null @@ -1,56 +0,0 @@ -import {bench} from './bench.js'; - -const size = 1_000; - -let userListRecord: Record> = {}; -let userListMap = new Map>(); - -function test_make_map() { - userListMap = new Map>(); - for (let i = size; i; i--) { - const userId = 'user_' + i; - - const user = new Map(); - user.set('user', userId); - user.set('fname', 'ali'); - user.set('lname', 'md'); - user.set('email', 'i@ali.md'); - user.set('token', '1234abcd'); - - userListMap.set(userId, user); - } -} - -function test_make_obj() { - userListRecord = {}; - for (let i = size; i; i--) { - const userId = 'user_' + i; - userListRecord[userId] = { - user: userId, - fname: 'ali', - lname: 'md', - email: 'i@ali.md', - token: '1234abcd', - }; - } -} - -function test_access_map() { - if (userListMap.get('user_' + size / 2)!.get('user') !== 'user_' + size / 2) throw new Error('not_match'); -} - -function test_access_obj() { - if (userListRecord['user_' + size / 2]['user'] !== 'user_' + size / 2) throw new Error('not_match'); -} - -bench('test_make_map_1st', test_make_map, 10_000); -bench('test_make_obj_1st', test_make_obj, 10_000); -bench('test_access_map_1st', test_access_map, 10_000); -bench('test_access_obj_1st', test_access_obj, 10_000); - -bench('test_make_map_2nd', test_make_map, 10_000); -bench('test_make_obj_2nd', test_make_obj, 10_000); -bench('test_access_map_2nd', test_access_map, 10_000); -bench('test_access_obj_2nd', test_access_obj, 10_000); - -globalThis.document?.body.append(' Done. Check the console.'); diff --git a/demo/es-bench/reg-cost.ts b/demo/es-bench/reg-cost.ts deleted file mode 100644 index 0233f5cc..00000000 --- a/demo/es-bench/reg-cost.ts +++ /dev/null @@ -1,26 +0,0 @@ -import {bench} from './bench.js'; - -function test_1(input = 'ali'): string { - return input.replace(/[l i]/g, ''); -} - -const regex = /[l i]/g; -function test_2(input = 'ali'): string { - return input.replace(regex, ''); -} - -function test_3(input = 'ali'): string { - return input.replace(new RegExp('[l i]', 'g'), ''); -} - -const regex2 = new RegExp('[l i]', 'g'); -function test_4(input = 'ali'): string { - return input.replace(regex2, ''); -} - -bench('test_1', test_1); -bench('test_2', test_2); -bench('test_3', test_3); -bench('test_4', test_4); - -globalThis.document?.body.append(' Done. Check the console.'); diff --git a/demo/fetch/index.html b/demo/fetch/index.html deleted file mode 100644 index 13e88e74..00000000 --- a/demo/fetch/index.html +++ /dev/null @@ -1,49 +0,0 @@ - - - - - - @alwatr/fetch - - - - - -

@alwatr/fetch

- -
- - - - - - - - -
- -
- - - - -
- -

Check the console for result

- - diff --git a/demo/fetch/index.ts b/demo/fetch/index.ts deleted file mode 100644 index ccbfefa4..00000000 --- a/demo/fetch/index.ts +++ /dev/null @@ -1,28 +0,0 @@ -import {type CacheStrategy, type CacheDuplicate, fetch} from '@alwatr/fetch'; - -const buttons = document.querySelectorAll('button') as NodeListOf; - -for (const button of buttons) { - const url = button.dataset.url; - - if (button && url) { - button.addEventListener('click', async () => { - try { - const response = await fetch({ - url, - mode: 'cors', - timeout: +document.querySelector('#timeout')!.value, - cacheStrategy: document.querySelector('#cacheStrategy')!.value as CacheStrategy, - removeDuplicate: document.querySelector('#removeDuplicate')!.value as CacheDuplicate, - async revalidateCallback(response) { - console.log('Demo revalidateCallback: %o', {url, response, text: await response.text()}); - }, - }); - console.log('Demo response: %o', {url, response, text: await response.text()}); - } - catch (error) { - console.warn('Demo catch error: %o', {url, error}); - } - }); - } -} diff --git a/demo/fetch/node.ts b/demo/fetch/node.ts deleted file mode 100644 index 3607a95b..00000000 --- a/demo/fetch/node.ts +++ /dev/null @@ -1,14 +0,0 @@ -import {fetch} from '@alwatr/fetch'; - -try { - const response = await fetch({ - url: 'http://httpbin.org/uuid', - timeout: 3_000, - removeDuplicate: 'auto', - }); - console.log('ok: %s', response.ok); - console.log('text: %s', await response.text()); -} -catch (err) { - console.error(err); -} diff --git a/demo/fetch/style.css b/demo/fetch/style.css deleted file mode 100644 index 879203c1..00000000 --- a/demo/fetch/style.css +++ /dev/null @@ -1,64 +0,0 @@ -html { - color-scheme: light dark; -} - -body { - font-family: system-ui; - width: 20em; - margin: 5em auto 0; -} - -h1, -h3 { - text-align: center; -} - -button { - --border-size: 3px; - --corner-size: 0.45em; /* size of the corner */ - --color: #373b44; - - margin: var(--corner-size); - padding: calc(0.5em + var(--corner-size)) calc(0.9em + var(--corner-size)); - color: var(--color); - --_p: var(--corner-size); - background: - conic-gradient(from 90deg at var(--border-size) var(--border-size),#0000 90deg,var(--color) 0) - var(--_p) var(--_p)/calc(100% - var(--border-size) - 2*var(--_p)) calc(100% - var(--border-size) - 2*var(--_p)); - transition: .3s linear, color 0s, background-color 0s; - outline: var(--border-size) solid #0000; - outline-offset: 0.6em; - font-size: 16px; - border: 0; - user-select: none; - -webkit-user-select: none; - touch-action: manipulation; -} - -button:hover, -button:focus-visible { - --_p: 0px; - outline-color: var(--color); - outline-offset: 0.05em; -} - -button:active { - background: var(--color); - color: #fff; -} - -.option-container, -.button-container { - display: flex; - flex-direction: column; - margin: 1em; -} - -@media (prefers-color-scheme: dark) { - button { - --color: #d8dbdf; - } - button:active { - background: #373b44; - } -} diff --git a/demo/finite-state-machine/index.html b/demo/finite-state-machine/index.html deleted file mode 100644 index 497593db..00000000 --- a/demo/finite-state-machine/index.html +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - FSM - - - - - - diff --git a/demo/finite-state-machine/light-machine.ts b/demo/finite-state-machine/light-machine.ts deleted file mode 100644 index 02ddf22e..00000000 --- a/demo/finite-state-machine/light-machine.ts +++ /dev/null @@ -1,143 +0,0 @@ -import {finiteStateMachineConsumer, finiteStateMachineProvider, type FsmTypeHelper} from '@alwatr/fsm'; -import {delay} from '@alwatr/util'; - -// Provider -const lightMachineConstructor = finiteStateMachineProvider.defineConstructor('light_machine', { - initial: 'green', - context: { - a: 0 as number, - b: 0 as number, - }, - stateRecord: { - $all: { - entry: 'action_all_entry', - exit: 'action_all_exit', - on: { - POWER_LOST: { - target: 'flashingRed', - actions: 'action_all_POWER_LOST', - }, - }, - }, - green: { - entry: 'action_green_entry', - exit: 'action_green_exit', - on: { - TIMER: { - target: 'yellow', - actions: 'action_green_TIMER', - }, - }, - }, - yellow: { - entry: 'action_yellow_entry', - exit: 'action_yellow_exit', - on: { - TIMER: { - target: 'red', - actions: 'action_yellow_TIMER', - }, - }, - }, - red: { - entry: 'action_red_entry', - exit: 'action_red_exit', - on: { - TIMER: { - target: 'green', - actions: 'action_red_TIMER', - }, - }, - }, - flashingRed: { - entry: 'action_flashingRed_entry', - exit: 'action_flashingRed_exit', - on: { - POWER_BACK: { - target: 'green', - actions: 'action_flashingRed_POWER_BACK', - }, - }, - }, - }, -}); - -type LightMachine = FsmTypeHelper; - -// entries actions -finiteStateMachineProvider.defineActions('light_machine', { - 'action_all_entry': (m): void => console.log('$all entry called', m.getState()), - 'action_green_entry': (): void => console.log('green entry called'), - 'action_yellow_entry': (): void => console.log('yellow entry called'), - 'action_red_entry': (): void => console.log('red entry called'), - 'action_flashingRed_entry': (): void => console.log('flashingRed entry called'), -}); - -// exits actions -finiteStateMachineProvider.defineActions('light_machine', { - 'action_all_exit': (): void => console.log('$all exit called'), - 'action_green_exit': (): void => console.log('green exit called'), - 'action_yellow_exit': (): void => console.log('yellow exit called'), - 'action_red_exit': (): void => console.log('red exit called'), - 'action_flashingRed_exit': (): void => console.log('flashingRed exit called'), -}); - -// transition events actions -finiteStateMachineProvider.defineActions('light_machine', { - 'action_all_POWER_LOST': (): void => console.log('$all.POWER_LOST actions called'), - 'action_green_TIMER': (): void => console.log('green.TIMER actions called'), - 'action_yellow_TIMER': (): void => console.log('yellow.TIMER actions called'), - 'action_red_TIMER': (): void => console.log('red.TIMER actions called'), - 'action_flashingRed_POWER_BACK': (): void => console.log('flashingRed.POWER_BACK actions called'), -}); - -finiteStateMachineProvider.defineSignals('light_machine', [ - { - signalId: 'new_content_received', - transition: 'POWER_BACK', - contextName: 'a', - receivePrevious: 'NextCycle', - }, -]); - -// signals -// 'action_ali_signal': (a): void => console.log('ali signal ', a), - -// Consumer -const lightMachineConsumer = finiteStateMachineConsumer('light_machine-50', 'light_machine'); - -lightMachineConsumer.defineSignals([ - { - signalId: 'power_button_click_event', - transition: 'POWER_BACK', - receivePrevious: 'No', - }, - { - signalId: 'jafang', - callback: (signalDetail: Record): void => { - console.log(signalDetail); - }, - receivePrevious: 'NextCycle', - }, - { - callback: (): void => { - console.log('subscribe_callback', lightMachineConsumer.getState()); - }, - receivePrevious: 'NextCycle', - }, -]); - -console.log('start', lightMachineConsumer.getState()); - -await delay(1000); -lightMachineConsumer.transition('TIMER', {a: 1}); -await delay(1000); -lightMachineConsumer.transition('TIMER', {b: 2}); -await delay(1000); -lightMachineConsumer.transition('TIMER'); -await delay(1000); -lightMachineConsumer.transition('POWER_LOST', {a: 4}); -await delay(1000); -lightMachineConsumer.transition('TIMER', {a: 5, b: 5}); -await delay(1000); -lightMachineConsumer.transition('POWER_BACK', {a: 6}); diff --git a/demo/finite-state-machine2/light-machine.ts b/demo/finite-state-machine2/light-machine.ts deleted file mode 100644 index dc69f44a..00000000 --- a/demo/finite-state-machine2/light-machine.ts +++ /dev/null @@ -1,60 +0,0 @@ -import {FiniteStateMachine} from '@alwatr/fsm2'; -import {delay} from '@alwatr/util'; - -type State = 'green' | 'yellow' | 'red' | 'flashingRed'; -type Event = 'timer' | 'powerBack' | 'powerLost'; - -class LightMachine extends FiniteStateMachine { - constructor(name: string) { - super({name, initialState: 'green'}); - - this._stateRecord = { - _all: { - powerLost: 'flashingRed', - }, - green: { - timer: 'yellow', - }, - yellow: { - timer: 'red', - }, - red: { - timer: 'green', - }, - flashingRed: { - powerBack: 'green', - }, - }; - - this._actionRecord = { - _on_powerLost: this._onPowerLost, - }; - } - - protected _onPowerLost(): void { - console.warn('_onPowerLost'); - } -} - -// ---- - -const lightMachine = new LightMachine('demo.light-machine.1'); - -lightMachine.subscribe(function StateChanged() { - console.log('state changed: %s', this.state); -}); - -console.log('start', lightMachine.state); - -await delay(1000); -lightMachine.transition('timer'); -await delay(1000); -lightMachine.transition('timer'); -await delay(1000); -lightMachine.transition('timer'); -await delay(1000); -lightMachine.transition('powerLost'); -await delay(1000); -lightMachine.transition('timer'); -await delay(1000); -lightMachine.transition('powerBack'); diff --git a/demo/logger/index.html b/demo/logger/index.html deleted file mode 100644 index 46b7c8ca..00000000 --- a/demo/logger/index.html +++ /dev/null @@ -1,18 +0,0 @@ - - - - - - @alwatr/logger - - - - - -

Check the console

- - diff --git a/demo/logger/index.ts b/demo/logger/index.ts deleted file mode 100644 index 21338042..00000000 --- a/demo/logger/index.ts +++ /dev/null @@ -1,38 +0,0 @@ -import {createLogger} from '@alwatr/logger'; - -const logger1 = createLogger('logger/demo1'); -const logger2 = createLogger('logger/demo2'); - -console.debug('--- logger.logProperty ---'); -logger1.logProperty?.('name', 'ali'); -logger2.logProperty?.('options', {a: 1, b: 2}); - -console.debug('--- logger.logMethod ---'); -logger1.logMethod?.('myMethod1'); -logger2.logMethod?.('myMethod2'); - -console.debug('--- logger.logMethodArgs ---'); -logger1.logMethodArgs?.('myMethod1', {a: 1, b: 2}); -logger2.logMethodArgs?.('myMethod2', {a: 1, b: 2}); - -console.debug('--- logger.logMethodFull ---'); -logger1.logMethodFull?.('add', {a: 1, b: 2}, 3); - -console.debug('--- logger.incident ---'); -logger1.incident?.('myMethod', 'abort_signal', 'Aborted signal received', {url: '/test.json'}); - -console.debug('--- logger.accident ---'); -logger2.accident('myMethod', 'file_not_found', 'Url requested return 404 not found', { - url: '/test.json', -}); - -console.debug('--- logger.logOther ---'); -logger1.logOther?.('foo:', 'bar', {a: 1}); - -console.debug('--- logger.error ---'); -try { - throw new Error('my_error_message'); -} -catch (err) { - logger1.error('myMethod', 'error_code', err, {a: 1, b: 2}); -} diff --git a/demo/math/index.html b/demo/math/index.html deleted file mode 100644 index cb631516..00000000 --- a/demo/math/index.html +++ /dev/null @@ -1,18 +0,0 @@ - - - - - - @alwatr/math - - - - - -

Check the console

- - diff --git a/demo/math/translate-unicode-digits.ts b/demo/math/translate-unicode-digits.ts deleted file mode 100644 index 59f3547b..00000000 --- a/demo/math/translate-unicode-digits.ts +++ /dev/null @@ -1,29 +0,0 @@ -import {UnicodeDigits} from '@alwatr/math'; - -const unicodeDigits = new UnicodeDigits('fa', 'all'); - -const list = [ - '0123456789', - '٠١٢٣٤٥٦٧٨٩', - '߀߁߂߃߄߅߆߇߈߉', - '०१२३४५६७८९', - '০১২৩৪৫৬৭৮৯', - '੦੧੨੩੪੫੬੭੮੯', - '૦૧૨૩૪૫૬૭૮૯', - '୦୧୨୩୪୫୬୭୮୯', - '௦௧௨௩௪௫௬௭௮௯', -].join('\n'); - -console.log(list); -console.log('-----'); - -console.log(unicodeDigits.translate(list)); - -const start = Date.now(); -const count = 20_000; - -for (let i = count; i > 0; i--) { - unicodeDigits.translate(list); -} - -console.log((count / (Date.now() - start)) * 1000); diff --git a/demo/package.json b/demo/package.json index 0335882a..edb1a4df 100644 --- a/demo/package.json +++ b/demo/package.json @@ -4,20 +4,5 @@ "main": "index.js", "author": "S. Ali Mihandoost (https://ali.mihandoost.com)", "type": "module", - "private": "true", - "dependencies": { - "@alwatr/crypto": "^1.0.0", - "@alwatr/fetch": "^1.0.0", - "@alwatr/icon": "^1.0.0", - "@alwatr/logger": "^1.0.0", - "@alwatr/math": "^1.0.0", - "@alwatr/router": "^1.0.0", - "@alwatr/signal": "^1.0.0", - "@alwatr/storage-client": "^1.0.0", - "@alwatr/storage-engine": "^1.0.0", - "@alwatr/type": "^1.0.0", - "@alwatr/util": "^1.0.0", - "@alwatr/validator": "^1.0.0", - "tslib": "^2.6.2" - } + "private": "true" } diff --git a/demo/router/index.html b/demo/router/index.html deleted file mode 100644 index 91101344..00000000 --- a/demo/router/index.html +++ /dev/null @@ -1,48 +0,0 @@ - - - - - - @alwatr/router - - - - - -

Check the console

-
    - - - - - - - - -
- -
- - - - diff --git a/demo/router/index.ts b/demo/router/index.ts deleted file mode 100644 index bc1a3c72..00000000 --- a/demo/router/index.ts +++ /dev/null @@ -1,29 +0,0 @@ -import {routerOutlet, routeContextConsumer, redirect, type RouteContext, type RoutesConfig} from '@alwatr/router'; - -const routes: RoutesConfig = { - routeId: (routeContext: RouteContext): string | undefined => routeContext.sectionList[0]?.toString(), - templates: { - 'home': () => '

Home Page

', - '_404': () => '

404 Not Found!

', - 'about': () => '

About Page

', - 'product-list': () => '

Product List

', - 'product': (routeContext) => `

Product ${routeContext.sectionList[1]}

`, - 'contact': () => '

Product Page

', - }, -}; - -/** - * Your render process, can be lit-element requestUpdate or any other framework request render method. - */ -function render(): void { - console.info('render'); - document.querySelector('textarea')!.value = JSON.stringify(routeContextConsumer.getValue(), null, 2); - document.querySelector('.render')!.innerHTML = routerOutlet(routes) as string; -} - -/** - * Request update in route change. - */ -routeContextConsumer.subscribe(render); - -redirect('/'); diff --git a/demo/server-context/api-request.ts b/demo/server-context/api-request.ts deleted file mode 100644 index 4727e05c..00000000 --- a/demo/server-context/api-request.ts +++ /dev/null @@ -1,13 +0,0 @@ -import {AlwatrApiRequest} from '@alwatr/server-context'; - -const apiRequest = new AlwatrApiRequest({ - name: 'demo.server-request', -}); - -apiRequest.request({ - url: 'https://order.soffit.co/api/v1/publistore/', -}); - -apiRequest.subscribe(() => { - console.log('serverRequest: %o', {state: apiRequest.state, response: apiRequest.response}); -}); diff --git a/demo/server-context/index.html b/demo/server-context/index.html deleted file mode 100644 index e5e18bd2..00000000 --- a/demo/server-context/index.html +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - Server Context - - - - - - diff --git a/demo/server-context/server-context.ts b/demo/server-context/server-context.ts deleted file mode 100644 index 6687197f..00000000 --- a/demo/server-context/server-context.ts +++ /dev/null @@ -1,11 +0,0 @@ -import {AlwatrServerContext} from '@alwatr/server-context'; - -const serverContext = new AlwatrServerContext({ - name: 'demo.server_context', - url: 'https://order.soffit.co/api/v1/publistore/', -}); - -serverContext.request(); -serverContext.subscribe(async function StateChaned() { - console.log('serverContext => result', {state: this.state, context: this.context}); -}); diff --git a/demo/server-context/server-request.ts b/demo/server-context/server-request.ts deleted file mode 100644 index 3d9ca300..00000000 --- a/demo/server-context/server-request.ts +++ /dev/null @@ -1,13 +0,0 @@ -import {AlwatrServerRequest} from '@alwatr/server-context'; - -const serverRequest = new AlwatrServerRequest({ - name: 'demo.server-request', -}); - -serverRequest.request({ - url: 'http://httpbin.org/uuid', -}); - -serverRequest.subscribe(async () => { - console.log('serverRequest: %o', {state: serverRequest.state, response: await serverRequest.response?.text()}); -}); diff --git a/demo/signal/index.html b/demo/signal/index.html deleted file mode 100644 index 4dd4687a..00000000 --- a/demo/signal/index.html +++ /dev/null @@ -1,20 +0,0 @@ - - - - - - @alwatr/signal - - - - - -

Check the console

- - - - diff --git a/demo/signal/index.ts b/demo/signal/index.ts deleted file mode 100644 index 0801a351..00000000 --- a/demo/signal/index.ts +++ /dev/null @@ -1,27 +0,0 @@ -import {commandHandler, commandTrigger} from '@alwatr/signal'; - -commandHandler.define<{a: number; b: number}, number>( - 'command-add', - (argumentObject) => argumentObject.a + argumentObject.b, -); - -// ---- - -const commandAddTrigger = commandTrigger.bind<{a: number; b: number}, number>('command-add'); - -document.getElementById('requestButton')?.addEventListener('click', async () => { - console.info('1. request command'); - const value = await commandAddTrigger.request({a: 10, b: 20}); - console.info('2. returned: ', value); -}); - -document.getElementById('requestButton2')?.addEventListener('click', async () => { - console.info('1. request command (10+20)'); - const value = await commandAddTrigger.request({a: 10, b: 20}); - console.info('2. returned (10+20): ', value); - - console.info('3. request command (10+30, 10+40)'); - const value1p = commandAddTrigger.request({a: 10, b: 30}); - const value2p = commandAddTrigger.request({a: 10, b: 40}); - console.info('4. returned (%s)', (await Promise.all([value1p, value2p])).join(', ')); -}); diff --git a/demo/signal2/context/index.html b/demo/signal2/context/index.html deleted file mode 100644 index 1b98cbfd..00000000 --- a/demo/signal2/context/index.html +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - @alwatr/signal2/context - - - - - -

Check the console

- - - - - - - - diff --git a/demo/signal2/context/index.ts b/demo/signal2/context/index.ts deleted file mode 100644 index eeb1ad5f..00000000 --- a/demo/signal2/context/index.ts +++ /dev/null @@ -1,33 +0,0 @@ -import {AlwatrContextSignal} from '@alwatr/signal2'; - -const context = new AlwatrContextSignal<{name: string; age: number}>({name: 'user-info-context'}); - -function subscribeHandler(): void { - console.log('subscribe: a new context signal received', context.getValue()); -} -context.subscribe(subscribeHandler); - -document.getElementById('myButton1')?.addEventListener('click', () => { - context.setValue({name: 'Ali', age: 20}); -}); - -document.getElementById('myButton2')?.addEventListener('click', () => { - context.subscribe(subscribeHandler); -}); - -document.getElementById('myButton3')?.addEventListener('click', () => { - context.unsubscribe(subscribeHandler); -}); - -document.getElementById('myButton4')?.addEventListener('click', () => { - context.expire(); -}); - -document.getElementById('myButton5')?.addEventListener('click', () => { - console.log('value:', context.getValue()); -}); - -document.getElementById('myButton6')?.addEventListener('click', async () => { - await context.untilChange(); - console.log('until change reolved'); -}); diff --git a/demo/signal2/multithread-context/index.html b/demo/signal2/multithread-context/index.html deleted file mode 100644 index bbebc36f..00000000 --- a/demo/signal2/multithread-context/index.html +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - @alwatr/signal/multithread-context - - - - - -

Check the console

- - - diff --git a/demo/signal2/multithread-context/index.ts b/demo/signal2/multithread-context/index.ts deleted file mode 100644 index e5ea4f13..00000000 --- a/demo/signal2/multithread-context/index.ts +++ /dev/null @@ -1,6 +0,0 @@ -import {AlwatrMultithreadContextSignal} from '@alwatr/signal2'; - -import './main.js'; - -const worker = new Worker('./worker.js', {type: 'module'}); -AlwatrMultithreadContextSignal.setupChannel(worker); diff --git a/demo/signal2/multithread-context/main.ts b/demo/signal2/multithread-context/main.ts deleted file mode 100644 index 6fac9946..00000000 --- a/demo/signal2/multithread-context/main.ts +++ /dev/null @@ -1,16 +0,0 @@ -import {createLogger} from '@alwatr/logger'; - -import {messageContext} from './share-context.js'; - -const logger = createLogger('demo/signal2', true); - -let i = 0; - -document.getElementById('changeContext')?.addEventListener('click', () => { - logger.logMethod?.('main/setValue'); - messageContext.setValue({type: 'demo.signal', payload: {i: ++i}}); -}); - -messageContext.subscribe(() => { - logger.logMethodArgs?.('main/subscribe', messageContext.getValue()); -}); diff --git a/demo/signal2/multithread-context/share-context.ts b/demo/signal2/multithread-context/share-context.ts deleted file mode 100644 index f59a1f8a..00000000 --- a/demo/signal2/multithread-context/share-context.ts +++ /dev/null @@ -1,9 +0,0 @@ -import {AlwatrMultithreadContextSignal} from '@alwatr/signal2'; - -import type {Stringifyable} from '@alwatr/type'; - -interface Message { - type: string; - payload: Stringifyable -} -export const messageContext = new AlwatrMultithreadContextSignal({name: 'demo.message'}); diff --git a/demo/signal2/multithread-context/worker.ts b/demo/signal2/multithread-context/worker.ts deleted file mode 100644 index 82f4ce5e..00000000 --- a/demo/signal2/multithread-context/worker.ts +++ /dev/null @@ -1,24 +0,0 @@ -import {createLogger} from '@alwatr/logger'; -import {AlwatrMultithreadContextSignal} from '@alwatr/signal2'; - -AlwatrMultithreadContextSignal.setupChannel(); - -import {messageContext} from './share-context.js'; - -const logger = createLogger('demo/signal2', true); - -let i = 0; - -messageContext.subscribe((message) => { - logger.logMethodArgs?.('worker/subscribe', message); -}); - -setInterval(() => { - logger.logMethod?.('worker/setValue'); - messageContext.setValue({type: 'demo.signal', payload: {i: ++i}}); -}, 5000); - -globalThis.addEventListener('message', (event) => { - logger.logMethodArgs?.('onMessage', event.data); - globalThis.postMessage('aleyk ' + event.data); -}); diff --git a/demo/signal2/simple/index.html b/demo/signal2/simple/index.html deleted file mode 100644 index fe9e1d7a..00000000 --- a/demo/signal2/simple/index.html +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - @alwatr/signal2/event - - - - - -

Check the console

- - - - - - diff --git a/demo/signal2/simple/index.ts b/demo/signal2/simple/index.ts deleted file mode 100644 index e72092fa..00000000 --- a/demo/signal2/simple/index.ts +++ /dev/null @@ -1,32 +0,0 @@ -import {AlwatrSignal, AlwatrSimpleSignal} from '@alwatr/signal2'; - -// button 1 -const clickEvent = new AlwatrSimpleSignal({name: 'button-1-click-event'}); -document.getElementById('myButton1')?.addEventListener('click', () => clickEvent.notify()); -function clickEventSubscribeHandler(): void { - console.log('subscribe: a new signal received'); -} -clickEvent.subscribe(clickEventSubscribeHandler); - - -// button 2 -const clickEvent2 = new AlwatrSignal({name: 'button-2-click-event'}); -document.getElementById('myButton2')?.addEventListener('click', () => clickEvent2.notify({clickedBy: 'BTN_2'})); -function clickEvent2SubscribeHandler(detail: unknown): void { - console.log('subscribe: a new signal received ', detail); -} -clickEvent2.subscribe(clickEvent2SubscribeHandler); - - -// button 3 -document.getElementById('myButton3')?.addEventListener('click', () => { - clickEvent.subscribe(clickEventSubscribeHandler); - clickEvent2.subscribe(clickEvent2SubscribeHandler); -}); - - -// button 4 -document.getElementById('myButton4')?.addEventListener('click', () => { - clickEvent.unsubscribe(clickEventSubscribeHandler); - clickEvent2.unsubscribe(clickEvent2SubscribeHandler); -}); diff --git a/demo/storage-client/benchmark.ts b/demo/storage-client/benchmark.ts deleted file mode 100644 index 8e0583a8..00000000 --- a/demo/storage-client/benchmark.ts +++ /dev/null @@ -1,88 +0,0 @@ -import {random} from '@alwatr/math'; -import {AlwatrStorageClient} from '@alwatr/storage-client'; - -import type {AlwatrDocumentObject} from '@alwatr/type'; - -type User = AlwatrDocumentObject & { - fname: string; - lname: string; - email: string; - token: string; -}; - -const token = process.env.TOKEN ?? 'YOUR_SECRET_TOKEN'; - -const db = new AlwatrStorageClient({ - name: 'junk-data', - host: '127.0.0.1', - port: 9000, - token, -}); - -const max = 100_000; -let i = 0; -let last = 0; - -setInterval(() => { - const speed = (i - last) / 2; - console.log('Index: %s, Speed: %s r/s, Memory: %s MB', last, speed, Math.round(process.memoryUsage.rss() / 1000_000)); - last = i; -}, 2_000); - -console.time('set all items'); - -async function request(): Promise { - const parallelRequest: Promise[] = []; - - for (let j = 0; j < 100; j++) { - i++; - const newUser: User = { - id: 'user_' + i, - fname: random.string(4, 16), - lname: random.string(4, 32), - email: random.string(8, 32), - token: random.string(16), - }; - - parallelRequest.push(db.set(newUser)); - } - - await Promise.all(parallelRequest); - - if (i < max) { - setImmediate(request); - } - else { - console.timeEnd('set all items'); - } -} - -async function getBench(): Promise { - console.time('get item'); - try { - const item = await db.get('user_5000'); - console.dir(item); - } - catch (err) { - if ((err as Error)?.message === 'document_not_found') { - console.log('user_5000 id not found!'); - } - else { - throw err; - } - } - console.timeEnd('get item'); - - console.time('get keys'); - const keys = await db.keys(); - console.timeEnd('get keys'); - console.log('keys.length: %s', keys.length); - - console.time('get all'); - await db.getStorage(); - console.timeEnd('get all'); -} - -await getBench(); - -request(); diff --git a/demo/storage-client/index.ts b/demo/storage-client/index.ts deleted file mode 100644 index 0cec5b24..00000000 --- a/demo/storage-client/index.ts +++ /dev/null @@ -1,64 +0,0 @@ -import {AlwatrStorageClient} from '@alwatr/storage-client'; - -import type {AlwatrDocumentObject} from '@alwatr/type'; - -type User = AlwatrDocumentObject & { - fname: string; - lname: string; - email: string; - token?: string; -}; - -const token = process.env.TOKEN ?? 'YOUR_SECRET_TOKEN'; - -const db = new AlwatrStorageClient({ - name: 'user-list', - host: '127.0.0.1', - port: 9000, - token, -}); - -let ali: User | null; - -try { - ali = await db.get('alimd'); - - if (ali == null ) { - console.log('ali not found'); - const ali = { - id: 'alimd', - fname: 'Ali', - lname: 'Mihandoost', - email: 'ali@mihandoost.com', - }; - await db.set(ali); - } - else { - console.log('ali found: %o', ali); - ali.token = Math.random().toString(36).substring(2, 15); - } -} -catch (err) { - console.error(err); -} - -await db.set({ - id: 'fmd', - fname: 'Fatemeh', - lname: 'Mihandoost', - email: 'Fatemeh@mihandoost.com', - token: Math.random().toString(36).substring(2, 15), -}); - -console.log('has \'alimd\': %o', await db.has('alimd')); -console.log('keys: %o', await db.keys()); -console.log('getAll: %o', await db.getStorage()); -await db.delete('alimd'); -await db.delete('fmd'); - -try { - await db.delete('abcd'); -} -catch (err) { - console.log('delete 404: %o', (err as Error).message); -} diff --git a/demo/storage-engine/benchmark.ts b/demo/storage-engine/benchmark.ts deleted file mode 100644 index 12a9ebf0..00000000 --- a/demo/storage-engine/benchmark.ts +++ /dev/null @@ -1,38 +0,0 @@ -import {random} from '@alwatr/math'; -import {AlwatrStorageEngine} from '@alwatr/storage-engine'; - -import type {AlwatrDocumentObject} from '@alwatr/type'; - -type User = AlwatrDocumentObject & { - fname: string; - lname: string; - email: string; - token: string; -}; - -const db = new AlwatrStorageEngine({ - name: 'junk-data', - path: 'db', - saveBeautiful: false, - devMode: false, -}); - -console.time('set all items'); - -const max = 100_000; -for (let i = 0; i < max; i++) { - db.set({ - id: 'user_' + i, - fname: random.string(4, 16), - lname: random.string(4, 32), - email: random.string(8, 32), - token: random.string(16), - }); -} - -console.timeEnd('set all items'); - -console.time('get item'); -const item = db.get('user_' + max / 2); -console.timeEnd('get item'); -console.dir(item); diff --git a/demo/storage-engine/index.ts b/demo/storage-engine/index.ts deleted file mode 100644 index 0864f6f0..00000000 --- a/demo/storage-engine/index.ts +++ /dev/null @@ -1,54 +0,0 @@ -import {AlwatrStorageEngine} from '@alwatr/storage-engine'; - -import type {AlwatrDocumentObject} from '@alwatr/type'; - -type User = AlwatrDocumentObject & { - fname: string; - lname: string; - email: string; - token?: string; -}; - -const db = new AlwatrStorageEngine({ - name: 'user-list', - path: 'db', - saveBeautiful: true, - devMode: true, -}); - -console.log('db loaded and ready to access.'); - -let ali = db.get('alimd'); - -if (ali == null) { - console.log('ali not found'); - ali = { - id: 'alimd', - fname: 'Ali', - lname: 'Mihandoost', - email: 'ali@mihandoost.com', - }; -} -else { - console.log('ali found: %o', ali); - /** - * { - * id: 'alimd', - * fname: 'Ali', - * lname: 'MM', - * email: 'i@ali.md', - * } - */ - - ali.token = Math.random().toString(36).substring(2, 15); -} - -db.set(ali); - -db.set({ - id: 'fmd', - fname: 'Fatemeh', - lname: 'Mihandoost', - email: 'Fatemeh@mihandoost.com', - token: Math.random().toString(36).substring(2, 15), -}); diff --git a/demo/validator/index.html b/demo/validator/index.html deleted file mode 100644 index f2078038..00000000 --- a/demo/validator/index.html +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - @alwatr/signal - - - - - - -

Check the console

- - diff --git a/demo/validator/phone.ts b/demo/validator/phone.ts deleted file mode 100644 index 1ae8637a..00000000 --- a/demo/validator/phone.ts +++ /dev/null @@ -1,46 +0,0 @@ -import {sanitizePhoneNumber} from '@alwatr/validator'; - -let phoneNumber: string | number | null | undefined; -console.log('sanitizedPhoneNumber(%s): %s', (phoneNumber = null), sanitizePhoneNumber(phoneNumber)); - -console.log( - 'sanitizedPhoneNumber(%s): %s', - (phoneNumber = '91 is not a valid phone 55'), - sanitizePhoneNumber(phoneNumber), -); - -console.log( - 'sanitizedPhoneNumber(%s): %s', - (phoneNumber = 1234), - sanitizePhoneNumber(phoneNumber), -); - -console.log( - 'sanitizedPhoneNumber(%s): %s', - (phoneNumber = '+ 98 915 11 22 123'), - sanitizePhoneNumber(phoneNumber), -); - -console.log( - 'sanitizedPhoneNumber(%s): %s', - (phoneNumber = '98 (915) 11 22 123'), - sanitizePhoneNumber(phoneNumber), -); - -console.log( - 'sanitizedPhoneNumber(%s): %s', - (phoneNumber = '0 (915) 11-22-123'), - sanitizePhoneNumber(phoneNumber), -); - -console.log( - 'sanitizedPhoneNumber(%s): %s', - (phoneNumber = '91511-22123'), - sanitizePhoneNumber(phoneNumber), -); - -console.log( - 'sanitizedPhoneNumber(%s): %s', - (phoneNumber = '۹۸ ۹15۱۱-۲۲-۱۲۳'), - sanitizePhoneNumber(phoneNumber), -); diff --git a/demo/validator/validator.ts b/demo/validator/validator.ts deleted file mode 100644 index f151fe63..00000000 --- a/demo/validator/validator.ts +++ /dev/null @@ -1,132 +0,0 @@ -import {validator} from '@alwatr/validator'; - -console.log('basic test'); -console.log( - validator< - {num: number; str: string; bool: boolean; _null: null; ali: 'ali'; five: 5; true: true} - >( - {num: Number, str: String, bool: Boolean, _null: null, ali: 'ali', five: 5, true: true}, - {num: 123, str: 'test', bool: false, _null: null, ali: 'ali', five: 5, true: true}, - ), -); - -console.log('sanitize value test'); -console.log( - validator< - {num: number; str: string; bool: boolean; _null: null; ali: 'ali'; five: 5; true: true} - >( - {num: Number, str: String, bool: Boolean, _null: null, ali: 'ali', five: 5, true: true}, - {num: '123', str: 'test', bool: 'false', _null: null, ali: 'ali', five: 5, true: true}, - ), -); - -console.log('nested value test'); -console.log( - validator< - {a: {num: number; str: string; bool: boolean; _null: null; ali: 'ali'; five: 5; true: true}} - >( - {a: {num: Number, str: String, bool: Boolean, _null: null, ali: 'ali', five: 5, true: true}}, - {a: {num: '123', str: 'test', bool: 'false', _null: null, ali: 'ali', five: 5, true: true}}, - ), -); - -console.log('not valid test'); -try { - console.log( - validator< - {num: number} - >( - {num: Number}, - {num: 'test'}, - ), - ); - throw new Error('validator_not_work'); -} -catch (err) { - if ((err as Error).message !== 'validator_not_work') { - console.log('test ok, error message `%s`, error cause: %s', (err as Error).message, (err as Error).cause); - } - else { - throw err; - } -} - -try { - console.log( - validator< - {num: boolean} - >( - {num: Boolean}, - {num: 'true'}, - ), - ); - throw new Error('validator_not_work'); -} -catch (err) { - if ((err as Error).message !== 'validator_not_work') { - console.log('test ok, error message `%s`, error cause: %s', (err as Error).message, (err as Error).cause); - } - else { - throw err; - } -} - -try { - console.log( - validator< - {num: null} - >( - {num: null}, - {num: 'test'}, - ), - ); - throw new Error('validator_not_work'); -} -catch (err) { - if ((err as Error).message !== 'validator_not_work') { - console.log('test ok, error message `%s`, error cause: %s', (err as Error).message, (err as Error).cause); - } - else { - throw err; - } -} - -try { - console.log( - validator< - {num: number} - >( - {num: Number}, - {num: 'test'}, - ), - ); - throw new Error('validator_not_work'); -} -catch (err) { - if ((err as Error).message !== 'validator_not_work') { - console.log('test ok, error message `%s`, error cause: %s', (err as Error).message, (err as Error).cause); - } - else { - throw err; - } -} - -try { - console.log( - validator< - {num: string} - >( - {num: 'test'}, - {num: 'tes'}, - ), - ); - throw new Error('validator_not_work'); -} -catch (err) { - if ((err as Error).message !== 'validator_not_work') { - console.log('test ok, error message `%s`, error cause: %s', (err as Error).message, (err as Error).cause); - } - else { - throw err; - } -} From fb47833c2cb6853a7e619c8d3cdbe8b4aacdd604 Mon Sep 17 00:00:00 2001 From: Ali Mihandoost Date: Wed, 20 Sep 2023 03:13:50 +0330 Subject: [PATCH 2/3] fix: all deps --- demo/tsconfig.json | 19 +- packages/demo-pwa/package.json | 2 +- packages/fract/package.json | 2 +- packages/i18n/package.json | 7 +- packages/router/package.json | 7 +- packages/ui-kit/package.json | 9 +- tsconfig.json | 50 +--- yarn.lock | 508 +++++++++++---------------------- 8 files changed, 182 insertions(+), 422 deletions(-) diff --git a/demo/tsconfig.json b/demo/tsconfig.json index 83c25cb1..c6dc88aa 100644 --- a/demo/tsconfig.json +++ b/demo/tsconfig.json @@ -10,23 +10,8 @@ "include": ["**/*.ts"], "exclude": ["*.d.ts", "node_modules"], "references": [ - {"path": "../core/logger"}, - {"path": "../core/fetch"}, - {"path": "../core/signal"}, - {"path": "../core/signal2"}, - {"path": "../core/router"}, - {"path": "../core/router2"}, - {"path": "../core/type"}, - {"path": "../core/storage-client"}, - {"path": "../core/crypto"}, - {"path": "../core/math"}, - {"path": "../core/util"}, - {"path": "../core/fsm"}, - {"path": "../core/fsm2"}, - {"path": "../core/context"}, + {"path": "../packages/router"}, {"path": "../packages/icon"}, - {"path": "../core/storage-engine"}, - {"path": "../core/validator"}, - {"path": "../core/i18n2"} + {"path": "../packages/i18n"} ] } diff --git a/packages/demo-pwa/package.json b/packages/demo-pwa/package.json index 9c2898ef..daf874d9 100644 --- a/packages/demo-pwa/package.json +++ b/packages/demo-pwa/package.json @@ -1,6 +1,6 @@ { "name": "@alwatr/ui-demo-pwa", - "version": "1.0.0", + "version": "0.0.0", "description": "Alwatr Progressive Web Application Demo.", "type": "module", "author": "S. Ali Mihandoost (https://ali.mihandoost.com)", diff --git a/packages/fract/package.json b/packages/fract/package.json index 1396feca..b54310c6 100644 --- a/packages/fract/package.json +++ b/packages/fract/package.json @@ -33,7 +33,7 @@ }, "dependencies": { "@alwatr/logger": "^1.1.2", - "@alwatr/signal2": "^1.0.0", + "@alwatr/signal": "^2.0.0", "lit-html": "^2.8.0", "tslib": "^2.6.2" } diff --git a/packages/i18n/package.json b/packages/i18n/package.json index 39740427..9a91729d 100644 --- a/packages/i18n/package.json +++ b/packages/i18n/package.json @@ -1,6 +1,6 @@ { - "name": "@alwatr/i18n2", - "version": "1.0.0", + "name": "@alwatr/i18n", + "version": "2.0.0-beta", "description": "Elegant powerful translation module (i18n/l10n) with dynamic json storage written in tiny TypeScript, ES module.", "keywords": [ "i18n", @@ -16,7 +16,6 @@ "types": "index.d.ts", "author": "S. Ali Mihandoost (https://ali.mihandoost.com)", "license": "MIT", - "private": "true", "files": [ "**/*.{d.ts.map,d.ts,js.map,js,html,md}" ], @@ -35,7 +34,7 @@ "dependencies": { "@alwatr/logger": "^1.0.0", "@alwatr/math": "^1.0.0", - "@alwatr/signal2": "^1.0.0", + "@alwatr/signal": "^2.0.0", "tslib": "^2.6.2" } } diff --git a/packages/router/package.json b/packages/router/package.json index 5e03a645..bd51fef9 100644 --- a/packages/router/package.json +++ b/packages/router/package.json @@ -1,6 +1,6 @@ { - "name": "@alwatr/router2", - "version": "1.0.0", + "name": "@alwatr/router", + "version": "2.0.0-beta", "description": "Elegant powerful router (fundamental advance browser page routing) based on the simplicity of the signals written in tiny TypeScript module.", "keywords": [ "router", @@ -15,7 +15,6 @@ "types": "index.d.ts", "author": "S. Ali Mihandoost ", "license": "MIT", - "private": "true", "files": [ "**/*.{d.ts.map,d.ts,js.map,js,html,md}" ], @@ -34,7 +33,7 @@ "dependencies": { "@alwatr/logger": "^1.0.0", "@alwatr/math": "^1.0.0", - "@alwatr/signal2": "^1.0.0", + "@alwatr/signal": "^2.0.0", "tslib": "^2.6.2" } } diff --git a/packages/ui-kit/package.json b/packages/ui-kit/package.json index 6c32ab50..cf772491 100644 --- a/packages/ui-kit/package.json +++ b/packages/ui-kit/package.json @@ -1,6 +1,6 @@ { - "name": "@alwatr/ui-kit2", - "version": "1.0.0", + "name": "@alwatr/ui-kit", + "version": "0.0.0", "description": "Alwatr UI Elements Kit", "keywords": [ "element", @@ -21,7 +21,6 @@ "files": [ "**/**/*.{d.ts.map,d.ts,js.map,js,md,css}" ], - "private": true, "publishConfig": { "access": "public" }, @@ -35,8 +34,8 @@ "url": "https://github.com/AliMD/fract/issues" }, "dependencies": { - "@alwatr/i18n2": "^1.0.0", - "@alwatr/signal2": "^1.0.0", + "@alwatr/i18n": "^2.0.0-beta", + "@alwatr/signal": "^2.0.0", "@alwatr/util": "^1.0.0", "tslib": "^2.6.2" } diff --git a/tsconfig.json b/tsconfig.json index a76cbd31..6d6d623f 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -15,56 +15,16 @@ "files": [], "exclude": [], "references": [ - // core - {"path": "./core/logger"}, - {"path": "./core/fetch"}, - {"path": "./core/signal"}, - {"path": "./core/signal2"}, - {"path": "./core/context"}, - {"path": "./core/server-context"}, - {"path": "./core/router"}, - {"path": "./core/router2"}, - {"path": "./core/i18n"}, - {"path": "./core/i18n2"}, - {"path": "./core/math"}, - {"path": "./core/nano-server"}, - {"path": "./core/storage-engine"}, - {"path": "./core/storage-client"}, - {"path": "./core/crypto"}, - {"path": "./core/validator"}, - {"path": "./core/util"}, - {"path": "./core/fsm"}, - {"path": "./core/fsm2"}, - {"path": "./core/type"}, - {"path": "./core/fract"}, - - // ui - {"path": "./packages/element"}, + // packages + {"path": "./packages/router"}, + {"path": "./packages/i18n"}, + {"path": "./packages/fract"}, {"path": "./packages/icon"}, {"path": "./packages/ui-kit"}, - {"path": "./packages/ui-kit2"}, - {"path": "./packages/pwa-helper"}, {"path": "./packages/style"}, + {"path": "./packages/demo-pwa"}, // demo {"path": "./demo"}, - - // services - {"path": "./services/telegram-notifier"}, - {"path": "./services/flight-crawler"}, - {"path": "./services/storage-server"}, - {"path": "./services/comment"}, - {"path": "./services/form-registration"}, - - // uniquely - {"path": "./packages/demo-pwa"}, - {"path": "./uniquely/flight-finder-api"}, - {"path": "./uniquely/soffit-pwa"}, - {"path": "./uniquely/com-api"}, - {"path": "./uniquely/com-pwa"}, - {"path": "./uniquely/keep-pwa"}, - - // labs - {"path": "./labs/zx-example"} ] } diff --git a/yarn.lock b/yarn.lock index 33e77b9e..e3961798 100644 --- a/yarn.lock +++ b/yarn.lock @@ -20,6 +20,108 @@ resolved "https://registry.yarnpkg.com/@alloc/quick-lru/-/quick-lru-5.2.0.tgz#7bf68b20c0a350f936915fcae06f58e32007ce30" integrity sha512-UrcABB+4bUrFABwbluTIBErXwvbsU/V7TZWfmbgJfbkwiBuziS9gxdODUyuiecfdGQ85jglMW6juS3+z5TsKLw== +"@alwatr/element@^1.1.2": + version "1.1.2" + resolved "https://registry.yarnpkg.com/@alwatr/element/-/element-1.1.2.tgz#eb96aba4ee6d17db6fb8df37c970bc1602ac2084" + integrity sha512-Td56+YDDeuS7cKZZ47QkkSeZF4Zm9svYyalh7hKnpGbd8aXMxn91cRJo5CwQU9NFDeXdfN3wdatlYPeLMMkWLA== + dependencies: + "@alwatr/fsm" "^1.1.2" + "@alwatr/i18n" "^1.1.2" + "@alwatr/logger" "^1.1.2" + "@alwatr/router" "^1.1.2" + lit "^2.8.0" + tslib "^2.6.2" + +"@alwatr/fetch@^1.1.2": + version "1.1.3" + resolved "https://registry.yarnpkg.com/@alwatr/fetch/-/fetch-1.1.3.tgz#009907c5b6616be783d78a5a9a2665e7ca94afdc" + integrity sha512-cW6Iyw5CTmMvLNRYv0u3nR8EQhP6Hn/v66a3r3pKd4evBR/ZFuNFvttITpuiVWadAefN3hiWg/bUz3L7cNe6oQ== + dependencies: + "@alwatr/logger" "^1.1.3" + "@alwatr/signal" "^1.1.2" + "@alwatr/util" "^1.2.1" + tslib "^2.6.2" + +"@alwatr/fsm@^1.1.2": + version "1.1.2" + resolved "https://registry.yarnpkg.com/@alwatr/fsm/-/fsm-1.1.2.tgz#b5e45b4cee88c4163c43f1abdcf646f9f63b7fe3" + integrity sha512-CI4zAwFR2MmCVjhIRRPmRMc62rfO4y74RbYqlMHh2mzUHdW9Ox/UWu86ERtF7tAqquJSBlWF8EbJ9hJmf5BW3Q== + dependencies: + "@alwatr/logger" "^1.1.2" + "@alwatr/signal" "^1.1.2" + "@alwatr/type" "^1.1.1" + tslib "^2.6.2" + +"@alwatr/i18n@^1.1.2": + version "1.1.2" + resolved "https://registry.yarnpkg.com/@alwatr/i18n/-/i18n-1.1.2.tgz#4ac202bb9c326828213e191ac4d382e272d150dd" + integrity sha512-tXzyQXjs6UtSFK4oq71XgY1t4muaoeKQamskO+JEkDNX+5PARknSKEgg4kadcmnVABw+6WklDq8sgfn4tqrdpA== + dependencies: + "@alwatr/logger" "^1.1.2" + "@alwatr/math" "^1.1.2" + "@alwatr/signal" "^1.1.2" + tslib "^2.6.2" + +"@alwatr/logger@^1.0.0", "@alwatr/logger@^1.1.2", "@alwatr/logger@^1.1.3", "@alwatr/logger@^1.1.5": + version "1.1.5" + resolved "https://registry.yarnpkg.com/@alwatr/logger/-/logger-1.1.5.tgz#344082aa602142dc4e42ba4739d5f00dc5a540a0" + integrity sha512-iGBhEyoDnGE2oIz47p2lp+IrKH95M2lOFawULcvKcg2vRzVf/7t6mVicWtqyomkKAocyDMjHicZfjZJqBLZdbA== + dependencies: + "@alwatr/type" "^1.1.4" + tslib "^2.6.2" + +"@alwatr/math@^1.0.0", "@alwatr/math@^1.1.2", "@alwatr/math@^1.1.5": + version "1.1.5" + resolved "https://registry.yarnpkg.com/@alwatr/math/-/math-1.1.5.tgz#0e9b6c3160ca1a480b21de967e41aa48a9d86e6f" + integrity sha512-RoTLuFs0ln8j3TgIueEwynRoD02KmYWCAyUNKaDHLzAnfGMJtJQeeN7PZko87qk3kA6mBpj+/2XXH4Do8Hu2rw== + dependencies: + "@alwatr/logger" "^1.1.5" + tslib "^2.6.2" + +"@alwatr/router@^1.1.2": + version "1.1.2" + resolved "https://registry.yarnpkg.com/@alwatr/router/-/router-1.1.2.tgz#2eb38c1f19548fa834c073cd71df8b8cb8297a26" + integrity sha512-ctV/AQkJR8eway5c/XjTr8RsEAAcNgUfSof5MKcr9dXo2QcSeeesR0XfnKkrM6DnbcCoB7VvB3K4k+O3tOQxzA== + dependencies: + "@alwatr/logger" "^1.1.2" + "@alwatr/math" "^1.1.2" + "@alwatr/signal" "^1.1.2" + tslib "^2.6.2" + +"@alwatr/signal@^1.1.2": + version "1.1.2" + resolved "https://registry.yarnpkg.com/@alwatr/signal/-/signal-1.1.2.tgz#0ebf599de6a304c3d4f50d266f284a1cea14a94d" + integrity sha512-7wuvTUYmuT5UZ5o2H86lBmrNwUp5bNDxUFSK4mjxYHuvDJ32s1pHlGe36YwemzZyz4AtD13Z4bVe7ewvK70mnQ== + dependencies: + "@alwatr/logger" "^1.1.2" + "@alwatr/type" "^1.1.1" + "@alwatr/util" "^1.2.0" + tslib "^2.6.2" + +"@alwatr/signal@^2.0.0": + version "2.0.0" + resolved "https://registry.yarnpkg.com/@alwatr/signal/-/signal-2.0.0.tgz#5df4d1535fb121a439d676398ce2429a5f28c69b" + integrity sha512-1dsgovhR/PatKKAOArJm4jyswo8g0+AYMSWXM9AYmFCLTwzM98cqlJXfHfy8cPLl+ecuI6y44bch1y/3yiA8Jg== + dependencies: + "@alwatr/logger" "^1.1.5" + "@alwatr/type" "^1.1.4" + "@alwatr/util" "^1.2.3" + tslib "^2.6.2" + +"@alwatr/type@^1.1.1", "@alwatr/type@^1.1.4": + version "1.1.4" + resolved "https://registry.yarnpkg.com/@alwatr/type/-/type-1.1.4.tgz#5bcff20284a0404614e56b9b6c5e7f99580b6586" + integrity sha512-bjb3yQC/yiRz4ld+IGCIMiuaLGTjmhanaAE5pqPYLCvREIz82VvGvrfd9g9Si+Y8+fOUlIjKLtGvBWliTOaBcA== + +"@alwatr/util@^1.0.0", "@alwatr/util@^1.2.0", "@alwatr/util@^1.2.1", "@alwatr/util@^1.2.3": + version "1.2.3" + resolved "https://registry.yarnpkg.com/@alwatr/util/-/util-1.2.3.tgz#3b926837e3d9ed82f2b2947f7aacbd8bdf39927a" + integrity sha512-4KQUgP5izK+9xjt673U0gG0iYJdN5pfIe8+QHhzbHyJSHue6RBs406OSY6w++wyzpKW6sK3jLL7Xspu8CIaFCA== + dependencies: + "@alwatr/math" "^1.1.5" + "@alwatr/type" "^1.1.4" + tslib "^2.6.2" + "@ampproject/remapping@^2.2.0": version "2.2.1" resolved "https://registry.yarnpkg.com/@ampproject/remapping/-/remapping-2.2.1.tgz#99e8e11851128b8702cd57c33684f1d0f260b630" @@ -2059,11 +2161,6 @@ magic-string "^0.25.0" string.prototype.matchall "^4.0.6" -"@telegraf/types@^6.8.1": - version "6.8.1" - resolved "https://registry.yarnpkg.com/@telegraf/types/-/types-6.8.1.tgz#c9c567e8ba4fb3c656494f3901a7dfb22cb7d676" - integrity sha512-JCRQuPPDCreYQaAeOwnqIlWrs8pJVvaNEUWBVNvdK3oJoTUKyBV+3TsPrIcnGqLeapptznuTk5s4udTlZPvGTA== - "@tootallnate/once@2": version "2.0.0" resolved "https://registry.yarnpkg.com/@tootallnate/once/-/once-2.0.0.tgz#f544a148d3ab35801c1f633a7441fd87c2e484bf" @@ -2154,14 +2251,6 @@ "@types/qs" "*" "@types/serve-static" "*" -"@types/fs-extra@^11.0.1": - version "11.0.2" - resolved "https://registry.yarnpkg.com/@types/fs-extra/-/fs-extra-11.0.2.tgz#23dc1ed7b2eba8ccd75568ac34e7a4e48aa2d087" - integrity sha512-c0hrgAOVYr21EX8J0jBMXGLMgJqVf/v6yxi0dLaJboW9aQPh16Id+z6w2Tx1hm+piJOLv8xPfVKZCLfjPw/IMQ== - dependencies: - "@types/jsonfile" "*" - "@types/node" "*" - "@types/http-assert@*": version "1.5.3" resolved "https://registry.yarnpkg.com/@types/http-assert/-/http-assert-1.5.3.tgz#ef8e3d1a8d46c387f04ab0f2e8ab8cb0c5078661" @@ -2182,13 +2271,6 @@ resolved "https://registry.yarnpkg.com/@types/json5/-/json5-0.0.29.tgz#ee28707ae94e11d2b827bcbe5270bcea7f3e71ee" integrity sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ== -"@types/jsonfile@*": - version "6.1.2" - resolved "https://registry.yarnpkg.com/@types/jsonfile/-/jsonfile-6.1.2.tgz#d3b8a3536c5bb272ebee0f784180e456b7691c8f" - integrity sha512-8t92P+oeW4d/CRQfJaSqEwXujrhH4OEeHRjGU3v1Q8mUS8GPF3yiX26sw4svv6faL2HfBtGTe2xWIoVgN3dy9w== - dependencies: - "@types/node" "*" - "@types/keygrip@*": version "1.0.3" resolved "https://registry.yarnpkg.com/@types/keygrip/-/keygrip-1.0.3.tgz#2286b16ef71d8dea74dab00902ef419a54341bfe" @@ -2230,7 +2312,7 @@ resolved "https://registry.yarnpkg.com/@types/minimatch/-/minimatch-3.0.5.tgz#1001cc5e6a3704b83c236027e77f2f58ea010f40" integrity sha512-Klz949h02Gz2uZCMGwDUSDS1YBlTdDDgbWHi+81l29tQALUtvz4rAYi5uoVhE5Lagoq6DeqAUlbrHvW/mXDgdQ== -"@types/minimist@^1.2.0", "@types/minimist@^1.2.2": +"@types/minimist@^1.2.0": version "1.2.2" resolved "https://registry.yarnpkg.com/@types/minimist/-/minimist-1.2.2.tgz#ee771e2ba4b3dc5b372935d549fd9617bf345b8c" integrity sha512-jhuKLIRrhvCPLqwPcx6INqmKeiA5EWrsCOPhrlFSrbrmU4ZMPjj5Ul/oLCMDO98XRUIwVm78xICz4EPCektzeQ== @@ -2240,11 +2322,6 @@ resolved "https://registry.yarnpkg.com/@types/node/-/node-20.6.2.tgz#a065925409f59657022e9063275cd0b9bd7e1b12" integrity sha512-Y+/1vGBHV/cYk6OI1Na/LHzwnlNCAfU3ZNGrc1LdRe/LAIbdDPTTv/HU3M7yXN448aTVDq3eKRm2cg7iKLb8gw== -"@types/node@^18.16.3": - version "18.17.17" - resolved "https://registry.yarnpkg.com/@types/node/-/node-18.17.17.tgz#53cc07ce582c9d7c5850702a3c2cb0af0d7b0ca1" - integrity sha512-cOxcXsQ2sxiwkykdJqvyFS+MLQPLvIdwh5l6gNg8qF6s+C7XSkEWOZjK+XhUZd+mYvHV/180g2cnCcIl4l06Pw== - "@types/normalize-package-data@^2.4.0", "@types/normalize-package-data@^2.4.1": version "2.4.1" resolved "https://registry.yarnpkg.com/@types/normalize-package-data/-/normalize-package-data-2.4.1.tgz#d3357479a0fdfdd5907fe67e17e0a85c906e1301" @@ -2255,11 +2332,6 @@ resolved "https://registry.yarnpkg.com/@types/parse5/-/parse5-6.0.3.tgz#705bb349e789efa06f43f128cef51240753424cb" integrity sha512-SuT16Q1K51EAVPz1K29DJ/sXjhSQ0zjvsypYJ6tlwVsRV9jwW5Adq2ch8Dq8kDBCkYnELS7N7VNCSB5nC56t/g== -"@types/ps-tree@^1.1.2": - version "1.1.2" - resolved "https://registry.yarnpkg.com/@types/ps-tree/-/ps-tree-1.1.2.tgz#5c60773a38ffb1402e049902a7b7a8d3c67cd59a" - integrity sha512-ZREFYlpUmPQJ0esjxoG1fMvB2HNaD3z+mjqdSosZvd3RalncI9NEur73P8ZJz4YQdL64CmV1w0RuqoRUlhQRBw== - "@types/qs@*": version "6.9.8" resolved "https://registry.yarnpkg.com/@types/qs/-/qs-6.9.8.tgz#f2a7de3c107b89b441e071d5472e6b726b4adf45" @@ -2309,11 +2381,6 @@ resolved "https://registry.yarnpkg.com/@types/trusted-types/-/trusted-types-2.0.4.tgz#2b38784cd16957d3782e8e2b31c03bc1d13b4d65" integrity sha512-IDaobHimLQhjwsQ/NMwRVfa/yL7L/wriQPMhw1ZJall0KX6E1oxk29XMDeilW5qTIg5aoiqf5Udy8U/51aNoQQ== -"@types/which@^3.0.0": - version "3.0.0" - resolved "https://registry.yarnpkg.com/@types/which/-/which-3.0.0.tgz#849afdd9fdcb0b67339b9cfc80fa6ea4e0253fc5" - integrity sha512-ASCxdbsrwNfSMXALlC3Decif9rwDMu+80KGp5zI2RLRotfMsTv7fHL8W8VDp24wymzDyIFudhUeSCugrgRFfHQ== - "@types/ws@^7.4.0": version "7.4.7" resolved "https://registry.yarnpkg.com/@types/ws/-/ws-7.4.7.tgz#f7c390a36f7a0679aa69de2d501319f4f8d9b702" @@ -2321,16 +2388,16 @@ dependencies: "@types/node" "*" -"@typescript-eslint/eslint-plugin@^6.7.0": - version "6.7.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-6.7.0.tgz#ed2a38867190f8a688af85ad7c8a74670b8b3675" - integrity sha512-gUqtknHm0TDs1LhY12K2NA3Rmlmp88jK9Tx8vGZMfHeNMLE3GH2e9TRub+y+SOjuYgtOmok+wt1AyDPZqxbNag== +"@typescript-eslint/eslint-plugin@^6.7.2": + version "6.7.2" + resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-6.7.2.tgz#f18cc75c9cceac8080a9dc2e7d166008c5207b9f" + integrity sha512-ooaHxlmSgZTM6CHYAFRlifqh1OAr3PAQEwi7lhYhaegbnXrnh7CDcHmc3+ihhbQC7H0i4JF0psI5ehzkF6Yl6Q== dependencies: "@eslint-community/regexpp" "^4.5.1" - "@typescript-eslint/scope-manager" "6.7.0" - "@typescript-eslint/type-utils" "6.7.0" - "@typescript-eslint/utils" "6.7.0" - "@typescript-eslint/visitor-keys" "6.7.0" + "@typescript-eslint/scope-manager" "6.7.2" + "@typescript-eslint/type-utils" "6.7.2" + "@typescript-eslint/utils" "6.7.2" + "@typescript-eslint/visitor-keys" "6.7.2" debug "^4.3.4" graphemer "^1.4.0" ignore "^5.2.4" @@ -2338,72 +2405,72 @@ semver "^7.5.4" ts-api-utils "^1.0.1" -"@typescript-eslint/parser@^6.7.0": - version "6.7.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-6.7.0.tgz#332fe9c7ecf6783d3250b4c8a960bd4af0995807" - integrity sha512-jZKYwqNpNm5kzPVP5z1JXAuxjtl2uG+5NpaMocFPTNC2EdYIgbXIPImObOkhbONxtFTTdoZstLZefbaK+wXZng== +"@typescript-eslint/parser@^6.7.2": + version "6.7.2" + resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-6.7.2.tgz#e0ae93771441b9518e67d0660c79e3a105497af4" + integrity sha512-KA3E4ox0ws+SPyxQf9iSI25R6b4Ne78ORhNHeVKrPQnoYsb9UhieoiRoJgrzgEeKGOXhcY1i8YtOeCHHTDa6Fw== dependencies: - "@typescript-eslint/scope-manager" "6.7.0" - "@typescript-eslint/types" "6.7.0" - "@typescript-eslint/typescript-estree" "6.7.0" - "@typescript-eslint/visitor-keys" "6.7.0" + "@typescript-eslint/scope-manager" "6.7.2" + "@typescript-eslint/types" "6.7.2" + "@typescript-eslint/typescript-estree" "6.7.2" + "@typescript-eslint/visitor-keys" "6.7.2" debug "^4.3.4" -"@typescript-eslint/scope-manager@6.7.0": - version "6.7.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-6.7.0.tgz#6b3c22187976e2bf5ed0dc0d9095f1f2cbd1d106" - integrity sha512-lAT1Uau20lQyjoLUQ5FUMSX/dS07qux9rYd5FGzKz/Kf8W8ccuvMyldb8hadHdK/qOI7aikvQWqulnEq2nCEYA== +"@typescript-eslint/scope-manager@6.7.2": + version "6.7.2" + resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-6.7.2.tgz#cf59a2095d2f894770c94be489648ad1c78dc689" + integrity sha512-bgi6plgyZjEqapr7u2mhxGR6E8WCzKNUFWNh6fkpVe9+yzRZeYtDTbsIBzKbcxI+r1qVWt6VIoMSNZ4r2A+6Yw== dependencies: - "@typescript-eslint/types" "6.7.0" - "@typescript-eslint/visitor-keys" "6.7.0" + "@typescript-eslint/types" "6.7.2" + "@typescript-eslint/visitor-keys" "6.7.2" -"@typescript-eslint/type-utils@6.7.0": - version "6.7.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/type-utils/-/type-utils-6.7.0.tgz#21a013d4c7f96255f5e64ac59fb41301d1e052ba" - integrity sha512-f/QabJgDAlpSz3qduCyQT0Fw7hHpmhOzY/Rv6zO3yO+HVIdPfIWhrQoAyG+uZVtWAIS85zAyzgAFfyEr+MgBpg== +"@typescript-eslint/type-utils@6.7.2": + version "6.7.2" + resolved "https://registry.yarnpkg.com/@typescript-eslint/type-utils/-/type-utils-6.7.2.tgz#ed921c9db87d72fa2939fee242d700561454f367" + integrity sha512-36F4fOYIROYRl0qj95dYKx6kybddLtsbmPIYNK0OBeXv2j9L5nZ17j9jmfy+bIDHKQgn2EZX+cofsqi8NPATBQ== dependencies: - "@typescript-eslint/typescript-estree" "6.7.0" - "@typescript-eslint/utils" "6.7.0" + "@typescript-eslint/typescript-estree" "6.7.2" + "@typescript-eslint/utils" "6.7.2" debug "^4.3.4" ts-api-utils "^1.0.1" -"@typescript-eslint/types@6.7.0": - version "6.7.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-6.7.0.tgz#8de8ba9cafadc38e89003fe303e219c9250089ae" - integrity sha512-ihPfvOp7pOcN/ysoj0RpBPOx3HQTJTrIN8UZK+WFd3/iDeFHHqeyYxa4hQk4rMhsz9H9mXpR61IzwlBVGXtl9Q== +"@typescript-eslint/types@6.7.2": + version "6.7.2" + resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-6.7.2.tgz#75a615a6dbeca09cafd102fe7f465da1d8a3c066" + integrity sha512-flJYwMYgnUNDAN9/GAI3l8+wTmvTYdv64fcH8aoJK76Y+1FCZ08RtI5zDerM/FYT5DMkAc+19E4aLmd5KqdFyg== -"@typescript-eslint/typescript-estree@6.7.0": - version "6.7.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-6.7.0.tgz#20ce2801733bd46f02cc0f141f5b63fbbf2afb63" - integrity sha512-dPvkXj3n6e9yd/0LfojNU8VMUGHWiLuBZvbM6V6QYD+2qxqInE7J+J/ieY2iGwR9ivf/R/haWGkIj04WVUeiSQ== +"@typescript-eslint/typescript-estree@6.7.2": + version "6.7.2" + resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-6.7.2.tgz#ce5883c23b581a5caf878af641e49dd0349238c7" + integrity sha512-kiJKVMLkoSciGyFU0TOY0fRxnp9qq1AzVOHNeN1+B9erKFCJ4Z8WdjAkKQPP+b1pWStGFqezMLltxO+308dJTQ== dependencies: - "@typescript-eslint/types" "6.7.0" - "@typescript-eslint/visitor-keys" "6.7.0" + "@typescript-eslint/types" "6.7.2" + "@typescript-eslint/visitor-keys" "6.7.2" debug "^4.3.4" globby "^11.1.0" is-glob "^4.0.3" semver "^7.5.4" ts-api-utils "^1.0.1" -"@typescript-eslint/utils@6.7.0": - version "6.7.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/utils/-/utils-6.7.0.tgz#61b6f1f1b82ad529abfcee074d21764e880886fb" - integrity sha512-MfCq3cM0vh2slSikQYqK2Gq52gvOhe57vD2RM3V4gQRZYX4rDPnKLu5p6cm89+LJiGlwEXU8hkYxhqqEC/V3qA== +"@typescript-eslint/utils@6.7.2": + version "6.7.2" + resolved "https://registry.yarnpkg.com/@typescript-eslint/utils/-/utils-6.7.2.tgz#b9ef0da6f04932167a9222cb4ac59cb187165ebf" + integrity sha512-ZCcBJug/TS6fXRTsoTkgnsvyWSiXwMNiPzBUani7hDidBdj1779qwM1FIAmpH4lvlOZNF3EScsxxuGifjpLSWQ== dependencies: "@eslint-community/eslint-utils" "^4.4.0" "@types/json-schema" "^7.0.12" "@types/semver" "^7.5.0" - "@typescript-eslint/scope-manager" "6.7.0" - "@typescript-eslint/types" "6.7.0" - "@typescript-eslint/typescript-estree" "6.7.0" + "@typescript-eslint/scope-manager" "6.7.2" + "@typescript-eslint/types" "6.7.2" + "@typescript-eslint/typescript-estree" "6.7.2" semver "^7.5.4" -"@typescript-eslint/visitor-keys@6.7.0": - version "6.7.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-6.7.0.tgz#34140ac76dfb6316d17012e4469acf3366ad3f44" - integrity sha512-/C1RVgKFDmGMcVGeD8HjKv2bd72oI1KxQDeY8uc66gw9R0OK0eMq48cA+jv9/2Ag6cdrsUGySm1yzYmfz0hxwQ== +"@typescript-eslint/visitor-keys@6.7.2": + version "6.7.2" + resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-6.7.2.tgz#4cb2bd786f1f459731b0ad1584c9f73e1c7a4d5c" + integrity sha512-uVw9VIMFBUTz8rIeaUT3fFe8xIUx8r4ywAdlQv1ifH+6acn/XF8Y6rwJ7XNmkNMDrTW+7+vxFFPIF40nJCVsMQ== dependencies: - "@typescript-eslint/types" "6.7.0" + "@typescript-eslint/types" "6.7.2" eslint-visitor-keys "^3.4.1" "@web/config-loader@^0.2.1": @@ -2477,11 +2544,6 @@ "@types/parse5" "^6.0.1" parse5 "^6.0.1" -"@webcomponents/webcomponentsjs@^2.8.0": - version "2.8.0" - resolved "https://registry.yarnpkg.com/@webcomponents/webcomponentsjs/-/webcomponentsjs-2.8.0.tgz#ab21f027594fa827c1889e8b646da7be27c7908a" - integrity sha512-loGD63sacRzOzSJgQnB9ZAhaQGkN7wl2Zuw7tsphI5Isa0irijrRo6EnJii/GgjGefIFO8AIO7UivzRhFaEk9w== - JSONStream@^1.3.5: version "1.3.5" resolved "https://registry.yarnpkg.com/JSONStream/-/JSONStream-1.3.5.tgz#3208c1f08d3a4d99261ab64f92302bc15e111ca0" @@ -2490,7 +2552,7 @@ JSONStream@^1.3.5: jsonparse "^1.2.0" through ">=2.2.7 <3" -abbrev@1, abbrev@^1.0.0: +abbrev@^1.0.0: version "1.1.1" resolved "https://registry.yarnpkg.com/abbrev/-/abbrev-1.1.1.tgz#f8f2c887ad10bf67f634f005b6987fed3179aac8" integrity sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q== @@ -2945,24 +3007,6 @@ browserslist@^4.21.10, browserslist@^4.21.9: node-releases "^2.0.13" update-browserslist-db "^1.0.11" -buffer-alloc-unsafe@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/buffer-alloc-unsafe/-/buffer-alloc-unsafe-1.1.0.tgz#bd7dc26ae2972d0eda253be061dba992349c19f0" - integrity sha512-TEM2iMIEQdJ2yjPJoSIsldnleVaAk1oW3DBVUykyOLsEsFmEc9kn+SFFPz+gl54KQNxlDnAwCXosOS9Okx2xAg== - -buffer-alloc@^1.2.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/buffer-alloc/-/buffer-alloc-1.2.0.tgz#890dd90d923a873e08e10e5fd51a57e5b7cce0ec" - integrity sha512-CFsHQgjtW1UChdXgbyJGtnm+O/uLQeZdtbDo8mfUgYXCHSM1wgrVxXm6bSyrUuErEb+4sYVGCzASBRot7zyrow== - dependencies: - buffer-alloc-unsafe "^1.1.0" - buffer-fill "^1.0.0" - -buffer-fill@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/buffer-fill/-/buffer-fill-1.0.0.tgz#f8f78b76789888ef39f205cd637f68e702122b2c" - integrity sha512-T7zexNBwiiaCOGDg9xNX9PBmjrubblRkENuptryuI64URkXDFum9il/JGL8Lm8wYfAXpredVXXZz7eMHilimiQ== - buffer-from@^1.0.0: version "1.1.2" resolved "https://registry.yarnpkg.com/buffer-from/-/buffer-from-1.1.2.tgz#2b146a6fd72e80b4f55d255f35ed59a3a9a41bd5" @@ -3131,7 +3175,7 @@ chalk@^4.0.0, chalk@^4.0.2, chalk@^4.1.0, chalk@^4.1.2: ansi-styles "^4.1.0" supports-color "^7.1.0" -chalk@^5.2.0, chalk@^5.3.0: +chalk@^5.3.0: version "5.3.0" resolved "https://registry.yarnpkg.com/chalk/-/chalk-5.3.0.tgz#67c20a7ebef70e7f3970a01f90fa210cb6860385" integrity sha512-dLitG79d+GV1Nb/VYcCDFivJeK1hiukt9QjRNVOsUtTy1rR1YJsmpGGTZ3qJos+uw7WmWF4wUwBd9jxjocFC2w== @@ -3141,7 +3185,7 @@ chardet@^0.7.0: resolved "https://registry.yarnpkg.com/chardet/-/chardet-0.7.0.tgz#90094849f0937f2eedc2425d0d28a9e5f0cbad9e" integrity sha512-mT8iDcrh03qDGRRmoA2hmBJnxpllMR+0/0qlzjqZES6NdiWDcZkCNAk4rPFZ9Q85r27unkiNNg8ZOiwZXBHwcA== -chokidar@^3.3.0, chokidar@^3.4.3, chokidar@^3.5.2, chokidar@^3.5.3: +chokidar@^3.3.0, chokidar@^3.4.3, chokidar@^3.5.3: version "3.5.3" resolved "https://registry.yarnpkg.com/chokidar/-/chokidar-3.5.3.tgz#1cf37c8707b932bd1af1ae22c0432e2acd1903bd" integrity sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw== @@ -3802,7 +3846,7 @@ dotenv@^16.3.1: resolved "https://registry.yarnpkg.com/dotenv/-/dotenv-16.3.1.tgz#369034de7d7e5b120972693352a3bf112172cc3e" integrity sha512-IPzF4w4/Rd94bA9imS68tZBaYyBWSCE47V1RGuMrB94iyTOIEwRmVL2x/4An+6mETpLrKJ5hQkB8W4kFAadeIQ== -duplexer@^0.1.1, duplexer@~0.1.1: +duplexer@^0.1.1: version "0.1.2" resolved "https://registry.yarnpkg.com/duplexer/-/duplexer-0.1.2.tgz#3abe43aef3835f8ae077d136ddce0f276b0400e6" integrity sha512-jtD6YG370ZCIi/9GTaJKQxWTZD045+4R4hTk/x1UyoqadyJ9x9CgSi1RlVDQF8U2sxLLSnFkCaMihqljHIWgMg== @@ -4004,11 +4048,6 @@ escape-string-regexp@^5.0.0: resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-5.0.0.tgz#4683126b500b61762f2dbebace1806e8be31b1c8" integrity sha512-/veY75JbMK4j1yjvuUxuVsiS/hr/4iHs9FTT6cgTexxdE0Ly/glccBAkloH/DofkjRbZU3bnoj38mOmhkZ0lHw== -eslint-config-google@^0.14.0: - version "0.14.0" - resolved "https://registry.yarnpkg.com/eslint-config-google/-/eslint-config-google-0.14.0.tgz#4f5f8759ba6e11b424294a219dbfa18c508bcc1a" - integrity sha512-WsbX4WbjuMvTdeVL6+J3rK1RGhCTqjsFjX7UMSMgZiyxxaNLkoJENbrGExzERFeoTpGw3F3FypTiWAP9ZXzkEw== - eslint-import-resolver-node@^0.3.7: version "0.3.9" resolved "https://registry.yarnpkg.com/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.9.tgz#d4eaac52b8a2e7c3cd1903eb00f7e053356118ac" @@ -4070,14 +4109,6 @@ eslint-plugin-lit@^1.9.1: parse5-htmlparser2-tree-adapter "^6.0.1" requireindex "^1.2.0" -eslint-plugin-wc@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/eslint-plugin-wc/-/eslint-plugin-wc-2.0.0.tgz#63c7c509125a33291dda2420d4f9a512b6aa0e9b" - integrity sha512-7fS5IF/2mZZnyEhO6NKblLKTLzlRuC/hl+HxjwhG9dHYsY1BmFRG+J1+GqDynV7Fkb4Hsjbvqll/vvEs2J+hgw== - dependencies: - is-valid-element-name "^1.0.0" - js-levenshtein-esm "^1.2.0" - eslint-scope@^7.2.2: version "7.2.2" resolved "https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-7.2.2.tgz#deb4f92563390f32006894af62a22dba1c46423f" @@ -4182,19 +4213,6 @@ etag@^1.8.1: resolved "https://registry.yarnpkg.com/etag/-/etag-1.8.1.tgz#41ae2eeb65efa62268aebfea83ac7d79299b0887" integrity sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg== -event-stream@=3.3.4: - version "3.3.4" - resolved "https://registry.yarnpkg.com/event-stream/-/event-stream-3.3.4.tgz#4ab4c9a0f5a54db9338b4c34d86bfce8f4b35571" - integrity sha512-QHpkERcGsR0T7Qm3HNJSyXKEEj8AHNxkY3PK8TS2KJvQ7NiSHe3DDpwVKKtoYprL/AreyzFBeIkBIWChAqn60g== - dependencies: - duplexer "~0.1.1" - from "~0" - map-stream "~0.1.0" - pause-stream "0.0.11" - split "0.3" - stream-combiner "~0.0.4" - through "~2.3.1" - event-target-shim@^5.0.0: version "5.0.1" resolved "https://registry.yarnpkg.com/event-target-shim/-/event-target-shim-5.0.1.tgz#5d4d3ebdf9583d63a5333ce2deb7480ab2b05789" @@ -4225,11 +4243,6 @@ execa@^8.0.1: signal-exit "^4.1.0" strip-final-newline "^3.0.0" -exit-hook@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/exit-hook/-/exit-hook-4.0.0.tgz#c1e16ebd03d3166f837b1502dac755bb5c460d58" - integrity sha512-Fqs7ChZm72y40wKjOFXBKg7nJZvQJmewP5/7LtePDdnah/+FH9Hp5sgMujSCMPXlxOAW2//1jrW9pnsY7o20vQ== - expand-brackets@^2.1.4: version "2.1.4" resolved "https://registry.yarnpkg.com/expand-brackets/-/expand-brackets-2.1.4.tgz#b77735e315ce30f6b6eff0f83b04151a22449622" @@ -4417,11 +4430,6 @@ flat-cache@^3.0.4: keyv "^4.5.3" rimraf "^3.0.2" -flatstr@^1.0.12: - version "1.0.12" - resolved "https://registry.yarnpkg.com/flatstr/-/flatstr-1.0.12.tgz#c2ba6a08173edbb6c9640e3055b95e287ceb5931" - integrity sha512-4zPxDyhCyiN2wIAtSLI6gc82/EjqZc1onI4Mz/l0pWrAlsSfYH/2ZIcU+e3oA2wDwbzIWNKwa23F8rh6+DRWkw== - flatted@^3.2.7: version "3.2.9" resolved "https://registry.yarnpkg.com/flatted/-/flatted-3.2.9.tgz#7eb4c67ca1ba34232ca9d2d93e9886e611ad7daf" @@ -4471,11 +4479,6 @@ fresh@~0.5.2: resolved "https://registry.yarnpkg.com/fresh/-/fresh-0.5.2.tgz#3d8cadd90d976569fa835ab1f8e4b23a105605a7" integrity sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q== -from@~0: - version "0.1.7" - resolved "https://registry.yarnpkg.com/from/-/from-0.1.7.tgz#83c60afc58b9c56997007ed1a768b3ab303a44fe" - integrity sha512-twe20eF1OxVxp/ML/kq2p1uc6KvFK/+vs8WjEbeKmV2He22MKm7YF2ANIt+EOqhJ5L3K/SuuPhk0hWQDjOM23g== - fs-extra@^11.0.0, fs-extra@^11.1.1: version "11.1.1" resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-11.1.1.tgz#da69f7c39f3b002378b0954bb6ae7efdc0876e2d" @@ -4539,11 +4542,6 @@ functions-have-names@^1.2.3: resolved "https://registry.yarnpkg.com/functions-have-names/-/functions-have-names-1.2.3.tgz#0404fe4ee2ba2f607f0e0ec3c80bae994133b834" integrity sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ== -fx@*: - version "28.0.1" - resolved "https://registry.yarnpkg.com/fx/-/fx-28.0.1.tgz#c00aafb3b2cebcfc57e6db91753a74c8a02388d6" - integrity sha512-U/ELI6liBxdquKMe7oA6sOYgutVjSmaQTpZ3MDhJs/9l4lK6ewATv1SQCR8LRDz+n2sKTjcNEnj1djtuZ9OgoA== - gauge@^4.0.3: version "4.0.4" resolved "https://registry.yarnpkg.com/gauge/-/gauge-4.0.4.tgz#52ff0652f2bbf607a989793d53b751bef2328dce" @@ -4782,7 +4780,7 @@ globby@^11.1.0: merge2 "^1.4.1" slash "^3.0.0" -globby@^13.0.0, globby@^13.1.4, globby@^13.2.2: +globby@^13.0.0, globby@^13.2.2: version "13.2.2" resolved "https://registry.yarnpkg.com/globby/-/globby-13.2.2.tgz#63b90b1bf68619c2135475cbd4e71e66aa090592" integrity sha512-Y1zNGV+pzQdh7H39l9zgB4PJqjRNqydvdYCDG4HFXM4XuvSaQQlEc91IU1yALL8gUTDomgBAfz3XJdmUS+oo0w== @@ -5031,11 +5029,6 @@ ieee754@^1.1.13, ieee754@^1.2.1: resolved "https://registry.yarnpkg.com/ieee754/-/ieee754-1.2.1.tgz#8eb7a10a63fff25d15a57b001586d177d1b0d352" integrity sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA== -ignore-by-default@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/ignore-by-default/-/ignore-by-default-1.0.1.tgz#48ca6d72f6c6a3af00a9ad4ae6876be3889e2b09" - integrity sha512-Ius2VYcGNk7T90CppJqcIkS5ooHUZyIQK+ClZfMfMNFEF9VSE73Fq+906u/CWu92x4gzZMWOwfFYckPObzdEbA== - ignore-walk@^6.0.0: version "6.0.3" resolved "https://registry.yarnpkg.com/ignore-walk/-/ignore-walk-6.0.3.tgz#0fcdb6decaccda35e308a7b0948645dd9523b7bb" @@ -5381,11 +5374,6 @@ is-plain-object@^5.0.0: resolved "https://registry.yarnpkg.com/is-plain-object/-/is-plain-object-5.0.0.tgz#4427f50ab3429e9025ea7d52e9043a9ef4159344" integrity sha512-VRSzKkbMm5jMDoKLbltAkFQ5Qr7VDiTFGXxYFXXowVj387GeGNOCsOH6Msy00SGZ3Fp84b1Naa1psqgcCIEP5Q== -is-potential-custom-element-name@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/is-potential-custom-element-name/-/is-potential-custom-element-name-1.0.1.tgz#171ed6f19e3ac554394edf78caa05784a45bebb5" - integrity sha512-bCYeRA2rVibKZd+s2625gGnGF/t7DSqDs4dP7CrLA1m7jKWz6pps0LpYLJN8Q64HtmPKJ1hrN3nzPNKFEKOUiQ== - is-regex@^1.1.4: version "1.1.4" resolved "https://registry.yarnpkg.com/is-regex/-/is-regex-1.1.4.tgz#eef5663cd59fa4c0ae339505323df6854bb15958" @@ -5473,13 +5461,6 @@ is-unicode-supported@^1.2.0: resolved "https://registry.yarnpkg.com/is-unicode-supported/-/is-unicode-supported-1.3.0.tgz#d824984b616c292a2e198207d4a609983842f714" integrity sha512-43r2mRvz+8JRIKnWJ+3j8JtjRKZ6GmjzfaE/qiBJnikNnYv/6bagRJ1kUhNk8R5EX/GkobD+r+sfxCPJsiKBLQ== -is-valid-element-name@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/is-valid-element-name/-/is-valid-element-name-1.0.0.tgz#26ef3fd76cdf1f122d105406e32d35b0de005981" - integrity sha512-GZITEJY2LkSjQfaIPBha7eyZv+ge0PhBR7KITeCCWvy7VBQrCUdFkvpI+HrAPQjVtVjy1LvlEkqQTHckoszruw== - dependencies: - is-potential-custom-element-name "^1.0.0" - is-weakref@^1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/is-weakref/-/is-weakref-1.0.2.tgz#9529f383a9338205e89765e0392efc2f100f06f2" @@ -5569,11 +5550,6 @@ jiti@^1.18.2: resolved "https://registry.yarnpkg.com/jiti/-/jiti-1.20.0.tgz#2d823b5852ee8963585c8dd8b7992ffc1ae83b42" integrity sha512-3TV69ZbrvV6U5DfQimop50jE9Dl6J8O1ja1dvBbMba/sZ3YBEQqJ2VZRoQPVnhlzjNtU1vaXRZVrVjU4qtm8yA== -js-levenshtein-esm@^1.2.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/js-levenshtein-esm/-/js-levenshtein-esm-1.2.0.tgz#96532c34e0c90df198c9419963c64ca3cf43ae92" - integrity sha512-fzreKVq1eD7eGcQr7MtRpQH94f8gIfhdrc7yeih38xh684TNMK9v5aAu2wxfIRMk/GpAJRrzcirMAPIaSDaByQ== - js-tokens@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-4.0.0.tgz#19203fb59991df98e3a287050d4647cdeaf32499" @@ -6061,11 +6037,6 @@ map-obj@^4.0.0: resolved "https://registry.yarnpkg.com/map-obj/-/map-obj-4.3.0.tgz#9304f906e93faae70880da102a9f1df0ea8bb05a" integrity sha512-hdN1wVrZbb29eBGiGjJbeP8JbKjq1urkHJ/LIP/NY48MZ1QVXUsQBV1G1zvYFHn1XE06cwjBsOI2K3Ulnj1YXQ== -map-stream@~0.1.0: - version "0.1.0" - resolved "https://registry.yarnpkg.com/map-stream/-/map-stream-0.1.0.tgz#e56aa94c4c8055a16404a0674b78f215f7c8e194" - integrity sha512-CkYQrPYZfWnu/DAmVCpTSX/xHpKZ80eKh2lAkyA6AJTef6bW+6JpbQZN5rofum7da+SyN1bi5ctTm+lTfcCW3g== - map-visit@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/map-visit/-/map-visit-1.0.0.tgz#ecdca8f13144e660f1b5bd41f12f3479d98dfb8f" @@ -6204,7 +6175,7 @@ minimist-options@4.1.0: is-plain-obj "^1.1.0" kind-of "^6.0.3" -minimist@^1.2.0, minimist@^1.2.5, minimist@^1.2.6, minimist@^1.2.8: +minimist@^1.2.0, minimist@^1.2.5, minimist@^1.2.6: version "1.2.8" resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.8.tgz#c1a464e7693302e082a075cee0c057741ac4772c" integrity sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA== @@ -6306,11 +6277,6 @@ modify-values@^1.0.1: resolved "https://registry.yarnpkg.com/modify-values/-/modify-values-1.0.1.tgz#b3939fa605546474e3e3e3c63d64bd43b4ee6022" integrity sha512-xV2bxeN6F7oYjZWTe/YPAy6MN2M+sL4u/Rlm2AHCIVGfo2p1yGmBHQ6vHehl4bRTZBdHu3TSkWdYgkwpYzAGSw== -mri@^1.2.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/mri/-/mri-1.2.0.tgz#6721480fec2a11a4889861115a48b6cbe7cc8f0b" - integrity sha512-tzzskb3bG8LvYGFF/mDTpq3jpI6Q9wc3LEmBaghu+DdCssd1FakN7Bc0hVNmEyGq1bq3RgfkCb3cmQLpNPOroA== - ms@2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/ms/-/ms-2.0.0.tgz#5608aeadfc00be6c2901df5f9861788de0d597c8" @@ -6409,16 +6375,7 @@ node-domexception@^1.0.0: resolved "https://registry.yarnpkg.com/node-domexception/-/node-domexception-1.0.0.tgz#6888db46a1f71c0b76b3f7555016b63fe64766e5" integrity sha512-/jKZoMpw0F8GRwl4/eLROPA3cfcXtLApP0QzLmUT/HuPCZWyB7IY9ZrMeKw2O/nFIqPQB3PVM9aYm0F312AXDQ== -node-fetch@3.3.1: - version "3.3.1" - resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-3.3.1.tgz#b3eea7b54b3a48020e46f4f88b9c5a7430d20b2e" - integrity sha512-cRVc/kyto/7E5shrWca1Wsea4y6tL9iYJE5FBCius3JQfb/4P4I295PfhgbJQBLTx6lATE4z+wK0rPM4VS2uow== - dependencies: - data-uri-to-buffer "^4.0.0" - fetch-blob "^3.1.4" - formdata-polyfill "^4.0.10" - -node-fetch@^2.6.7, node-fetch@^2.6.8: +node-fetch@^2.6.7: version "2.7.0" resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-2.7.0.tgz#d0f0fa6e3e2dc1d27efcd8ad99d550bda94d187d" integrity sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A== @@ -6456,22 +6413,6 @@ node-releases@^2.0.13: resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-2.0.13.tgz#d5ed1627c23e3461e819b02e57b75e4899b1c81d" integrity sha512-uYr7J37ae/ORWdZeQ1xxMJe3NtdmqMC/JZK+geofDrkLUApKRHPd18/TxtBOJ4A0/+uUIliorNrfYV6s1b02eQ== -nodemon@^3.0.1: - version "3.0.1" - resolved "https://registry.yarnpkg.com/nodemon/-/nodemon-3.0.1.tgz#affe822a2c5f21354466b2fc8ae83277d27dadc7" - integrity sha512-g9AZ7HmkhQkqXkRc20w+ZfQ73cHLbE8hnPbtaFbFtCumZsjyMhKk9LajQ07U5Ux28lvFjZ5X7HvWR1xzU8jHVw== - dependencies: - chokidar "^3.5.2" - debug "^3.2.7" - ignore-by-default "^1.0.1" - minimatch "^3.1.2" - pstree.remy "^1.1.8" - semver "^7.5.3" - simple-update-notifier "^2.0.0" - supports-color "^5.5.0" - touch "^3.1.0" - undefsafe "^2.0.5" - nopt@^6.0.0: version "6.0.0" resolved "https://registry.yarnpkg.com/nopt/-/nopt-6.0.0.tgz#245801d8ebf409c6df22ab9d95b65e1309cdb16d" @@ -6486,13 +6427,6 @@ nopt@^7.0.0: dependencies: abbrev "^2.0.0" -nopt@~1.0.10: - version "1.0.10" - resolved "https://registry.yarnpkg.com/nopt/-/nopt-1.0.10.tgz#6ddd21bd2a31417b92727dd585f8a6f37608ebee" - integrity sha512-NWmpvLSqUrgrAC9HCuxEvb+PSloHpqVu+FqcO4eeF2h5qYRhA7ev6KvelyQAKtegUbC6RypJnlEOhd8vloNKYg== - dependencies: - abbrev "1" - normalize-package-data@^2.3.2, normalize-package-data@^2.5.0: version "2.5.0" resolved "https://registry.yarnpkg.com/normalize-package-data/-/normalize-package-data-2.5.0.tgz#e66db1838b200c1dfc233225d12cb36520e234a8" @@ -6861,11 +6795,6 @@ p-reduce@^3.0.0: resolved "https://registry.yarnpkg.com/p-reduce/-/p-reduce-3.0.0.tgz#f11773794792974bd1f7a14c72934248abff4160" integrity sha512-xsrIUgI0Kn6iyDYm9StOpOeK29XM1aboGji26+QEortiFST1hGZaUQOLhtEbqHErPpGW/aSz6allwK2qcptp0Q== -p-timeout@^4.1.0: - version "4.1.0" - resolved "https://registry.yarnpkg.com/p-timeout/-/p-timeout-4.1.0.tgz#788253c0452ab0ffecf18a62dff94ff1bd09ca0a" - integrity sha512-+/wmHtzJuWii1sXn3HCuH/FTwGhrp4tmJTxSKJbfS+vkipci6osxXM5mY0jUiRzWKMTgUT8l7HFbeSwZAynqHw== - p-timeout@^5.0.2: version "5.1.0" resolved "https://registry.yarnpkg.com/p-timeout/-/p-timeout-5.1.0.tgz#b3c691cf4415138ce2d9cfe071dba11f0fee085b" @@ -7051,13 +6980,6 @@ path-type@^4.0.0: resolved "https://registry.yarnpkg.com/path-type/-/path-type-4.0.0.tgz#84ed01c0a7ba380afe09d90a8c180dcd9d03043b" integrity sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw== -pause-stream@0.0.11: - version "0.0.11" - resolved "https://registry.yarnpkg.com/pause-stream/-/pause-stream-0.0.11.tgz#fe5a34b0cbce12b5aa6a2b403ee2e73b602f1445" - integrity sha512-e3FBlXLmN/D1S+zHzanP4E/4Z60oFAa3O051qt1pxa7DEJWKAyil6upYVXCWadEnuoqa4Pkc9oUx9zsxYeRv8A== - dependencies: - through "~2.3" - picocolors@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/picocolors/-/picocolors-1.0.0.tgz#cb5bdc74ff3f51892236eaf79d68bc44564ab81c" @@ -7514,18 +7436,6 @@ protocols@^2.0.0, protocols@^2.0.1: resolved "https://registry.yarnpkg.com/protocols/-/protocols-2.0.1.tgz#8f155da3fc0f32644e83c5782c8e8212ccf70a86" integrity sha512-/XJ368cyBJ7fzLMwLKv1e4vLxOju2MNAIokcr7meSaNcVbWz/CPcW22cP04mwxOErdA5mwjA8Q6w/cdAQxVn7Q== -ps-tree@^1.2.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/ps-tree/-/ps-tree-1.2.0.tgz#5e7425b89508736cdd4f2224d028f7bb3f722ebd" - integrity sha512-0VnamPPYHl4uaU/nSFeZZpR21QAWRz+sRv4iW9+v/GS/J5U5iZB5BNN6J0RMoOvdx2gWM2+ZFMIm58q24e4UYA== - dependencies: - event-stream "=3.3.4" - -pstree.remy@^1.1.8: - version "1.1.8" - resolved "https://registry.yarnpkg.com/pstree.remy/-/pstree.remy-1.1.8.tgz#c242224f4a67c21f686839bbdb4ac282b8373d3a" - integrity sha512-77DZwxQmxKnu3aR542U+X8FypNzbfJ+C5XQDk3uWjWxn6151aIMGthWYRXTqT1E5oJvg+ljaa2OJi+VfvCOQ8w== - punycode@^2.1.0, punycode@^2.1.1: version "2.3.0" resolved "https://registry.yarnpkg.com/punycode/-/punycode-2.3.0.tgz#f67fa67c94da8f4d0cfff981aee4118064199b8f" @@ -7899,13 +7809,6 @@ safe-buffer@~5.1.0, safe-buffer@~5.1.1: resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.2.tgz#991ec69d296e0313747d59bdfd2b745c35f8828d" integrity sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g== -safe-compare@^1.1.4: - version "1.1.4" - resolved "https://registry.yarnpkg.com/safe-compare/-/safe-compare-1.1.4.tgz#5e0128538a82820e2e9250cd78e45da6786ba593" - integrity sha512-b9wZ986HHCo/HbKrRpBJb2kqXMK9CEWIE1egeEvZsYn69ay3kdfl9nG3RyOcR+jInTDf7a86WQ1d4VJX7goSSQ== - dependencies: - buffer-alloc "^1.2.0" - safe-regex-test@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/safe-regex-test/-/safe-regex-test-1.0.0.tgz#793b874d524eb3640d1873aad03596db2d4f2295" @@ -7927,11 +7830,6 @@ safe-regex@^1.1.0: resolved "https://registry.yarnpkg.com/safer-buffer/-/safer-buffer-2.1.2.tgz#44fa161b0187b9549dd84bb91802f9bd8385cd6a" integrity sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg== -sandwich-stream@^2.0.2: - version "2.0.2" - resolved "https://registry.yarnpkg.com/sandwich-stream/-/sandwich-stream-2.0.2.tgz#6d1feb6cf7e9fe9fadb41513459a72c2e84000fa" - integrity sha512-jLYV0DORrzY3xaz/S9ydJL6Iz7essZeAfnAavsJ+zsJGZ1MOnsS52yRjU3uF3pJa/lla7+wisp//fxOwOH8SKQ== - "semver@2 || 3 || 4 || 5", semver@^5.5.0: version "5.7.2" resolved "https://registry.yarnpkg.com/semver/-/semver-5.7.2.tgz#48d55db737c3287cd4835e17fa13feace1c41ef8" @@ -8055,13 +7953,6 @@ sigstore@^2.0.0, sigstore@^2.1.0: "@sigstore/sign" "^2.1.0" "@sigstore/tuf" "^2.1.0" -simple-update-notifier@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/simple-update-notifier/-/simple-update-notifier-2.0.0.tgz#d70b92bdab7d6d90dfd73931195a30b6e3d7cebb" - integrity sha512-a2B9Y0KlNXl9u/vsW6sTIu9vGEpfKu2wRV6l1H3XEas/0gUIzGzBoP/IouTcUQbm9JWZLH3COxyn03TYlFax6w== - dependencies: - semver "^7.5.3" - slash@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/slash/-/slash-3.0.0.tgz#6539be870c165adbd5240220dbe361f1bc4d4634" @@ -8241,13 +8132,6 @@ split2@^4.0.0: resolved "https://registry.yarnpkg.com/split2/-/split2-4.2.0.tgz#c9c5920904d148bab0b9f67145f245a86aadbfa4" integrity sha512-UcjcJOWknrNkF6PLX83qcHM6KHgVKNkV62Y8a5uYDVv9ydGQVwAHMKqHdJje1VTWpljG0WYpCDhrCdAOYH4TWg== -split@0.3: - version "0.3.3" - resolved "https://registry.yarnpkg.com/split/-/split-0.3.3.tgz#cd0eea5e63a211dfff7eb0f091c4133e2d0dd28f" - integrity sha512-wD2AeVmxXRBoX44wAycgjVpMhvbwdI2aZjCkvfNcH1YqHQvJVa1duWc73OyVGJUc05fhFaTZeQ/PYsrmyH0JVA== - dependencies: - through "2" - split@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/split/-/split-1.0.1.tgz#605bd9be303aa59fb35f9229fbea0ddec9ea07d9" @@ -8275,13 +8159,6 @@ static-extend@^0.1.1: resolved "https://registry.yarnpkg.com/statuses/-/statuses-1.5.0.tgz#161c7dac177659fd9811f43771fa99381478628c" integrity sha512-OpZ3zP+jT1PI7I8nemJX4AKmAX070ZkYPVWV/AaKTJl+tXCTGyVdC1a4SL8RUQYEwk/f34ZX8UTykN68FwrqAA== -stream-combiner@~0.0.4: - version "0.0.4" - resolved "https://registry.yarnpkg.com/stream-combiner/-/stream-combiner-0.0.4.tgz#4d5e433c185261dde623ca3f44c586bcf5c4ad14" - integrity sha512-rT00SPnTVyRsaSz5zgSPma/aHSOic5U1prhYdRy5HS2kTZviFpmDgzilbtsJsxiroqACmayynDN/9VzIbX5DOw== - dependencies: - duplexer "~0.1.1" - stream-read-all@^3.0.1: version "3.0.1" resolved "https://registry.yarnpkg.com/stream-read-all/-/stream-read-all-3.0.1.tgz#60762ae45e61d93ba0978cda7f3913790052ad96" @@ -8442,7 +8319,7 @@ sucrase@^3.32.0: pirates "^4.0.1" ts-interface-checker "^0.1.9" -supports-color@^5.3.0, supports-color@^5.5.0: +supports-color@^5.3.0: version "5.5.0" resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-5.5.0.tgz#e2e69a44ac8772f78a1ec0b35b689df6530efc8f" integrity sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow== @@ -8519,20 +8396,6 @@ tar@^6.1.11, tar@^6.1.2, tar@^6.2.0: mkdirp "^1.0.3" yallist "^4.0.0" -telegraf@^4.13.1: - version "4.13.1" - resolved "https://registry.yarnpkg.com/telegraf/-/telegraf-4.13.1.tgz#ad0b6df452aa133bf6561b4a182bdedb558046b6" - integrity sha512-WXITwqE3ivqDqjHFxj94xaQhHddldBZdE2g/hRJXyCMTkwZYw69q9I7La7nsDpsHLn5ADSQlGv0KAbwFkFpmlA== - dependencies: - "@telegraf/types" "^6.8.1" - abort-controller "^3.0.0" - debug "^4.3.4" - mri "^1.2.0" - node-fetch "^2.6.8" - p-timeout "^4.1.0" - safe-compare "^1.1.4" - sandwich-stream "^2.0.2" - temp-dir@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/temp-dir/-/temp-dir-2.0.0.tgz#bde92b05bdfeb1516e804c9c00ad45177f31321e" @@ -8605,7 +8468,7 @@ through2@^2.0.0: readable-stream "~2.3.6" xtend "~4.0.1" -through@2, "through@>=2.2.7 <3", through@^2.3.4, through@~2.3, through@~2.3.1: +through@2, "through@>=2.2.7 <3", through@^2.3.4: version "2.3.8" resolved "https://registry.yarnpkg.com/through/-/through-2.3.8.tgz#0dd4c9ffaabc357960b1b724115d7e0e86a2e1f5" integrity sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg== @@ -8666,13 +8529,6 @@ toidentifier@1.0.1: resolved "https://registry.yarnpkg.com/toidentifier/-/toidentifier-1.0.1.tgz#3be34321a88a820ed1bd80dfaa33e479fbb8dd35" integrity sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA== -touch@^3.1.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/touch/-/touch-3.1.0.tgz#fe365f5f75ec9ed4e56825e0bb76d24ab74af83b" - integrity sha512-WBx8Uy5TLtOSRtIq+M03/sKDrXCLHxwDcquSP2c43Le03/9serjQBIztjRz6FkJez9D/hleyAXTBGLwwZUw9lA== - dependencies: - nopt "~1.0.10" - tr46@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/tr46/-/tr46-1.0.1.tgz#a8b13fd6bfd2489519674ccde55ba3693b706d09" @@ -8899,11 +8755,6 @@ unbox-primitive@^1.0.2: has-symbols "^1.0.3" which-boxed-primitive "^1.0.2" -undefsafe@^2.0.5: - version "2.0.5" - resolved "https://registry.yarnpkg.com/undefsafe/-/undefsafe-2.0.5.tgz#38733b9327bdcd226db889fb723a6efd162e6e2c" - integrity sha512-WxONCrssBM8TSPRqN5EmsjVrsv4A8X12J4ArBiiayv3DyyG3ZlIg6yysuuSYdZsVz3TKcTg2fd//Ujd4CHV1iA== - unicode-canonical-property-names-ecmascript@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/unicode-canonical-property-names-ecmascript/-/unicode-canonical-property-names-ecmascript-2.0.0.tgz#301acdc525631670d39f6146e0e77ff6bbdebddc" @@ -9123,11 +8974,6 @@ webidl-conversions@^7.0.0: resolved "https://registry.yarnpkg.com/webidl-conversions/-/webidl-conversions-7.0.0.tgz#256b4e1882be7debbf01d05f0aa2039778ea080a" integrity sha512-VwddBukDzu71offAQR975unBIGqfKZpM+8ZX6ySk8nYhVoo5CYaZyzt3YBvYtRtO+aoGlqxPg/B87NGVZ/fu6g== -webpod@^0: - version "0.0.2" - resolved "https://registry.yarnpkg.com/webpod/-/webpod-0.0.2.tgz#b577c93604fd23596488735887168b3236e3adae" - integrity sha512-cSwwQIeg8v4i3p4ajHhwgR7N6VyxAf+KYSSsY6Pd3aETE+xEU4vbitz7qQkB0I321xnhDdgtxuiSfk5r/FVtjg== - whatwg-url@^11.0.0: version "11.0.0" resolved "https://registry.yarnpkg.com/whatwg-url/-/whatwg-url-11.0.0.tgz#0a849eebb5faf2119b901bb76fd795c2848d4018" @@ -9194,13 +9040,6 @@ which@^2.0.1, which@^2.0.2: dependencies: isexe "^2.0.0" -which@^3.0.0: - version "3.0.1" - resolved "https://registry.yarnpkg.com/which/-/which-3.0.1.tgz#89f1cd0c23f629a8105ffe69b8172791c87b4be1" - integrity sha512-XA1b62dzQzLfaEOSQFTCOd5KFf/1VSzZo7/7TUjnya6u0vGGKzU96UQBZTAThCb2j4/xjBAyii1OhRLJEivHvg== - dependencies: - isexe "^2.0.0" - which@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/which/-/which-4.0.0.tgz#cd60b5e74503a3fbcfbf6cd6b4138a8bae644c1a" @@ -9484,7 +9323,7 @@ yallist@^4.0.0: resolved "https://registry.yarnpkg.com/yallist/-/yallist-4.0.0.tgz#9bb92790d9c0effec63be73519e11a35019a3a72" integrity sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A== -yaml@^2.1.1, yaml@^2.2.2: +yaml@^2.1.1: version "2.3.2" resolved "https://registry.yarnpkg.com/yaml/-/yaml-2.3.2.tgz#f522db4313c671a0ca963a75670f1c12ea909144" integrity sha512-N/lyzTPaJasoDmfV7YTrYCI0G/3ivm/9wdG0aHuheKowWQwGTsK0Eoiw6utmzAnI6pkJa0DUVygvp3spqqEKXg== @@ -9559,24 +9398,3 @@ yocto-queue@^0.1.0: version "0.1.0" resolved "https://registry.yarnpkg.com/yocto-queue/-/yocto-queue-0.1.0.tgz#0294eb3dee05028d31ee1a5fa2c556a6aaf10a1b" integrity sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q== - -zx@^7.2.3: - version "7.2.3" - resolved "https://registry.yarnpkg.com/zx/-/zx-7.2.3.tgz#d9fef6bd084f7e21994080de09fb20e441074c39" - integrity sha512-QODu38nLlYXg/B/Gw7ZKiZrvPkEsjPN3LQ5JFXM7h0JvwhEdPNNl+4Ao1y4+o3CLNiDUNcwzQYZ4/Ko7kKzCMA== - dependencies: - "@types/fs-extra" "^11.0.1" - "@types/minimist" "^1.2.2" - "@types/node" "^18.16.3" - "@types/ps-tree" "^1.1.2" - "@types/which" "^3.0.0" - chalk "^5.2.0" - fs-extra "^11.1.1" - fx "*" - globby "^13.1.4" - minimist "^1.2.8" - node-fetch "3.3.1" - ps-tree "^1.2.0" - webpod "^0" - which "^3.0.0" - yaml "^2.2.2" From fe35d109c053b70b2c5d3ce897916ec18916aedc Mon Sep 17 00:00:00 2001 From: Ali Mihandoost Date: Wed, 20 Sep 2023 03:15:09 +0330 Subject: [PATCH 3/3] chore(yarn): upgrade --- yarn.lock | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/yarn.lock b/yarn.lock index e3961798..09b84342 100644 --- a/yarn.lock +++ b/yarn.lock @@ -344,10 +344,10 @@ resolved "https://registry.yarnpkg.com/@babel/helper-string-parser/-/helper-string-parser-7.22.5.tgz#533f36457a25814cf1df6488523ad547d784a99f" integrity sha512-mM4COjgZox8U+JcXQwPijIZLElkgEpO5rsERVDJTc2qfCDfERyob6k5WegS14SX18IIjv+XD+GrqNumY5JRCDw== -"@babel/helper-validator-identifier@^7.22.19", "@babel/helper-validator-identifier@^7.22.5": - version "7.22.19" - resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.22.19.tgz#2f34ab1e445f5b95e2e6edfe50ea2449e610583a" - integrity sha512-Tinq7ybnEPFFXhlYOYFiSjespWQk0dq2dRNAiMdRTOYQzEGqnnNyrTxPYHP5r6wGjlF1rFgABdDV0g8EwD6Qbg== +"@babel/helper-validator-identifier@^7.22.19", "@babel/helper-validator-identifier@^7.22.20", "@babel/helper-validator-identifier@^7.22.5": + version "7.22.20" + resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.22.20.tgz#c4ae002c61d2879e724581d96665583dbc1dc0e0" + integrity sha512-Y4OZ+ytlatR8AI+8KZfKuL5urKp7qey08ha31L8b3BwewJAoJamTzyvxPR/5D+KkdJCGPq/+8TukHBlY10FX9A== "@babel/helper-validator-option@^7.22.15": version "7.22.15" @@ -373,11 +373,11 @@ "@babel/types" "^7.22.15" "@babel/highlight@^7.22.13": - version "7.22.13" - resolved "https://registry.yarnpkg.com/@babel/highlight/-/highlight-7.22.13.tgz#9cda839e5d3be9ca9e8c26b6dd69e7548f0cbf16" - integrity sha512-C/BaXcnnvBCmHTpz/VGZ8jgtE2aYlW4hxDhseJAWZb7gqGM/qtCK6iZUb0TyKFf7BOUsBH7Q7fkRsDRhg1XklQ== + version "7.22.20" + resolved "https://registry.yarnpkg.com/@babel/highlight/-/highlight-7.22.20.tgz#4ca92b71d80554b01427815e06f2df965b9c1f54" + integrity sha512-dkdMCN3py0+ksCgYmGG8jKeGA/8Tk+gJwSYYlFGxG5lmhfKNoAy004YpLxpS1W2J8m/EK2Ew+yOs9pVRwO89mg== dependencies: - "@babel/helper-validator-identifier" "^7.22.5" + "@babel/helper-validator-identifier" "^7.22.20" chalk "^2.4.2" js-tokens "^4.0.0" @@ -8109,9 +8109,9 @@ spdx-expression-parse@^3.0.0: spdx-license-ids "^3.0.0" spdx-license-ids@^3.0.0: - version "3.0.13" - resolved "https://registry.yarnpkg.com/spdx-license-ids/-/spdx-license-ids-3.0.13.tgz#7189a474c46f8d47c7b0da4b987bb45e908bd2d5" - integrity sha512-XkD+zwiqXHikFZm4AX/7JSCXA98U5Db4AFd5XUg/+9UNtnH75+Z9KxtpYiJZx36mUDVOwH83pl7yvCer6ewM3w== + version "3.0.15" + resolved "https://registry.yarnpkg.com/spdx-license-ids/-/spdx-license-ids-3.0.15.tgz#142460aabaca062bc7cd4cc87b7d50725ed6a4ba" + integrity sha512-lpT8hSQp9jAKp9mhtBU4Xjon8LPGBvLIuBiSVhMEtmLecTh2mO0tlqrAMp47tBXzMr13NJMQ2lf7RpQGLJ3HsQ== split-string@^3.0.1, split-string@^3.0.2: version "3.1.0"