{"_id":"@acmedinotech/dinoframe","_rev":"3-d73f70043f5549094a29567f2d897294","name":"@acmedinotech/dinoframe","dist-tags":{"latest":"0.1.2023082-4.4"},"versions":{"0.1.2023082-4.1":{"name":"@acmedinotech/dinoframe","version":"0.1.2023082-4.1","scripts":{"test":"npx jest","pack":"npm pack","release:validate":"yarn test && npx webpack --mode production && echo '✅ release ready to go' && echo git sha: `git rev-parse HEAD` && echo '> tag/publish with: yarn release'","release":"node release.js"},"description":"a flexible, decorator-driven framework for building and managing complex apps","main":"dist/index.js","types":"dist/index.d.ts","dependencies":{"express":"^4.17.1","lodash.clonedeep":"^4.5.0","ts-node":"^10.9.1","typescript":"^5.0.4"},"devDependencies":{"@babel/plugin-proposal-class-properties":"^7.18.6","@babel/plugin-proposal-export-default-from":"^7.18.10","@babel/plugin-transform-runtime":"^7.21.4","@babel/preset-env":"^7.21.5","@babel/preset-typescript":"^7.21.5","@testing-library/user-event":"^14.4.3","@types/express":"^4.17.12","@types/jest":"^29.5.1","@types/jsdom":"^21.1.1","@types/lodash.clonedeep":"^4.5.6","@types/node":"^18.16.3","@types/parse-json":"^4.0.0","@types/webpack":"^5.28.1","awesome-typescript-loader":"^5.2.1","babel-jest":"^29.5.0","babel-loader":"^9.1.2","jest-environment-jsdom":"^29.5.0","jest":"^29.5.0","jsdom":"^21.1.1","prettier":"^2.0.5","ts-jest":"^29.1.0","ts-loader":"^9.4.2","webpack-cli":"^5.0.2","webpack-node-externals":"^3.0.0","webpack":"^5.81.0"},"license":"GPL-3.0-or-later","directories":{"doc":"docs","lib":"dist"},"repository":{"type":"git","url":"git+https://github.com/kaisershahid/dinoframe.git"},"keywords":["express","annotations","serializing","deserializing"],"author":{"name":"kaiser shahid"},"bugs":{"url":"https://github.com/kaisershahid/dinoframe/issues"},"homepage":"https://github.com/kaisershahid/dinoframe#readme","_id":"@acmedinotech/dinoframe@0.1.2023082-4.1","gitHead":"68ce42c95a652f842a1ddf5a8cdf34764eee759a","_nodeVersion":"20.5.0","_npmVersion":"9.8.0","dist":{"integrity":"sha512-crK0nNKtZ0r+tM7tGuVE0VlKSxGbTdJ+t+LD+yULqVAuEVRzXVSJeZ5iKB82NZ+1ikRimKVG9gRWc2LF0kAu3w==","shasum":"3bf1b33ed72a7c5f6d7c08c983cdba121b448141","tarball":"https://registry.npmjs.org/@acmedinotech/dinoframe/-/dinoframe-0.1.2023082-4.1.tgz","fileCount":5,"unpackedSize":38535,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFSAA3/MR4OsnPM4NUAeyKDaCvpQiVzwBEhPJpDhMo/3AiEAlre67+HAZWrCI5f55oivtZAe6yUqta+2vAk6UgTCL/g="}]},"_npmUser":{"name":"kaisershahid","email":"kaisershahid@gmail.com"},"maintainers":[{"name":"kaisershahid","email":"kaisershahid@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/dinoframe_0.1.2023082-4.1_1692906246316_0.3681190673849113"},"_hasShrinkwrap":false},"0.1.2023082-4.2":{"name":"@acmedinotech/dinoframe","version":"0.1.2023082-4.2","scripts":{"test":"npx jest","pack":"npm pack","release:validate":"yarn test && npx webpack --mode production && echo '✅ release ready to go' && echo git sha: `git rev-parse HEAD` && echo '> tag/publish with: yarn release'","release":"node release.js"},"description":"a flexible, decorator-driven framework for building and managing complex apps","main":"dist/index.js","types":"dist/index.d.ts","dependencies":{"express":"^4.17.1","lodash.clonedeep":"^4.5.0","ts-node":"^10.9.1","typescript":"^5.0.4"},"devDependencies":{"@babel/plugin-proposal-class-properties":"^7.18.6","@babel/plugin-proposal-export-default-from":"^7.18.10","@babel/plugin-transform-runtime":"^7.21.4","@babel/preset-env":"^7.21.5","@babel/preset-typescript":"^7.21.5","@testing-library/user-event":"^14.4.3","@types/express":"^4.17.12","@types/jest":"^29.5.1","@types/jsdom":"^21.1.1","@types/lodash.clonedeep":"^4.5.6","@types/node":"^18.16.3","@types/parse-json":"^4.0.0","@types/webpack":"^5.28.1","awesome-typescript-loader":"^5.2.1","babel-jest":"^29.5.0","babel-loader":"^9.1.2","jest-environment-jsdom":"^29.5.0","jest":"^29.5.0","jsdom":"^21.1.1","prettier":"^2.0.5","ts-jest":"^29.1.0","ts-loader":"^9.4.2","webpack-cli":"^5.0.2","webpack-node-externals":"^3.0.0","webpack":"^5.81.0"},"license":"GPL-3.0-or-later","directories":{"doc":"docs","lib":"dist"},"repository":{"type":"git","url":"git+https://github.com/kaisershahid/dinoframe.git"},"keywords":["express","annotations","serializing","deserializing"],"author":{"name":"kaiser shahid"},"bugs":{"url":"https://github.com/kaisershahid/dinoframe/issues"},"homepage":"https://github.com/kaisershahid/dinoframe#readme","_id":"@acmedinotech/dinoframe@0.1.2023082-4.2","gitHead":"5987fd092bcd569e57f453f87244aae67b67f29e","_nodeVersion":"20.5.0","_npmVersion":"9.8.0","dist":{"integrity":"sha512-heozjUEpiF5J1NDPQAS7KJgDbrTMqi5Qd1eUatqwMkkhEyf3rP6JTjhXDZJ+mv8D8rL5YZYosed3P+B/P8n9lA==","shasum":"2d4dfcc7dfe2c15cdd2072c353cea256f90fa81e","tarball":"https://registry.npmjs.org/@acmedinotech/dinoframe/-/dinoframe-0.1.2023082-4.2.tgz","fileCount":5,"unpackedSize":38535,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBMdSK8QzlUuMFd9f/G5Bk92ilWza/Ocy5KrPh/lWXBmAiBSF/V2N+W7/xUgKyCjE30y9JMSE+khQU+pNcK2+SfFBQ=="}]},"_npmUser":{"name":"kaisershahid","email":"kaisershahid@gmail.com"},"maintainers":[{"name":"kaisershahid","email":"kaisershahid@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/dinoframe_0.1.2023082-4.2_1692906614435_0.8562177147460737"},"_hasShrinkwrap":false},"0.1.2023082-4.3":{"name":"@acmedinotech/dinoframe","version":"0.1.2023082-4.3","scripts":{"test":"npx jest","pack":"npm pack","release:validate":"yarn test && npx webpack --mode production && echo '✅ release ready to go' && echo git sha: `git rev-parse HEAD` && echo '> tag/publish with: yarn release'","release":"node release.js"},"description":"a flexible, decorator-driven framework for building and managing complex apps","main":"dist/index.js","types":"dist/index.d.ts","dependencies":{"express":"^4.17.1","lodash.clonedeep":"^4.5.0","ts-node":"^10.9.1","typescript":"^5.0.4"},"devDependencies":{"@babel/plugin-proposal-class-properties":"^7.18.6","@babel/plugin-proposal-export-default-from":"^7.18.10","@babel/plugin-transform-runtime":"^7.21.4","@babel/preset-env":"^7.21.5","@babel/preset-typescript":"^7.21.5","@testing-library/user-event":"^14.4.3","@types/express":"^4.17.12","@types/jest":"^29.5.1","@types/jsdom":"^21.1.1","@types/lodash.clonedeep":"^4.5.6","@types/node":"^18.16.3","@types/parse-json":"^4.0.0","@types/webpack":"^5.28.1","awesome-typescript-loader":"^5.2.1","babel-jest":"^29.5.0","babel-loader":"^9.1.2","jest-environment-jsdom":"^29.5.0","jest":"^29.5.0","jsdom":"^21.1.1","prettier":"^2.0.5","ts-jest":"^29.1.0","ts-loader":"^9.4.2","webpack-cli":"^5.0.2","webpack-node-externals":"^3.0.0","webpack":"^5.81.0"},"license":"GPL-3.0-or-later","directories":{"doc":"docs","lib":"dist"},"repository":{"type":"git","url":"git+https://github.com/kaisershahid/dinoframe.git"},"keywords":["express","annotations","serializing","deserializing"],"author":{"name":"kaiser shahid"},"bugs":{"url":"https://github.com/kaisershahid/dinoframe/issues"},"homepage":"https://github.com/kaisershahid/dinoframe#readme","_id":"@acmedinotech/dinoframe@0.1.2023082-4.3","gitHead":"5987fd092bcd569e57f453f87244aae67b67f29e","_nodeVersion":"20.5.0","_npmVersion":"9.8.0","dist":{"integrity":"sha512-Yp04UUiOBDyzKUiQMUZwFy3aY7xZoRBMzingnaaLB55+1PhLt2epgjA6z9/0k4vYLZruIz+iyoFq7feeaTddUA==","shasum":"d92c29e59d9be574378caa0fe425ba30ded1de1f","tarball":"https://registry.npmjs.org/@acmedinotech/dinoframe/-/dinoframe-0.1.2023082-4.3.tgz","fileCount":5,"unpackedSize":38535,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCW4PP0+hTvOtdlzj5+7kYfRtk9pfqkr/zp/RAp5npfzwIgf+5Il0+oPl/QDUuxVpr/jU6mUobq0oUhISj1QwyIOuY="}]},"_npmUser":{"name":"kaisershahid","email":"kaisershahid@gmail.com"},"maintainers":[{"name":"kaisershahid","email":"kaisershahid@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/dinoframe_0.1.2023082-4.3_1692907149000_0.46327338401256934"},"_hasShrinkwrap":false},"0.1.2023082-4.4":{"name":"@acmedinotech/dinoframe","version":"0.1.2023082-4.4","scripts":{"test":"npx jest","pack":"npm pack","release:validate":"yarn test && npx webpack --mode production && echo '✅ release ready to go' && echo git sha: `git rev-parse HEAD` && echo '> tag/publish with: yarn release'","release":"node release.js"},"description":"a flexible, decorator-driven framework for building and managing complex apps","main":"dist/index.js","types":"dist/index.d.ts","dependencies":{"express":"^4.17.1","lodash.clonedeep":"^4.5.0","ts-node":"^10.9.1","typescript":"^5.0.4"},"devDependencies":{"@babel/plugin-proposal-class-properties":"^7.18.6","@babel/plugin-proposal-export-default-from":"^7.18.10","@babel/plugin-transform-runtime":"^7.21.4","@babel/preset-env":"^7.21.5","@babel/preset-typescript":"^7.21.5","@testing-library/user-event":"^14.4.3","@types/express":"^4.17.12","@types/jest":"^29.5.1","@types/jsdom":"^21.1.1","@types/lodash.clonedeep":"^4.5.6","@types/node":"^18.16.3","@types/parse-json":"^4.0.0","@types/webpack":"^5.28.1","awesome-typescript-loader":"^5.2.1","babel-jest":"^29.5.0","babel-loader":"^9.1.2","jest-environment-jsdom":"^29.5.0","jest":"^29.5.0","jsdom":"^21.1.1","prettier":"^2.0.5","ts-jest":"^29.1.0","ts-loader":"^9.4.2","webpack-cli":"^5.0.2","webpack-node-externals":"^3.0.0","webpack":"^5.81.0"},"license":"GPL-3.0-or-later","directories":{"doc":"docs","lib":"dist"},"repository":{"type":"git","url":"git+https://github.com/kaisershahid/dinoframe.git"},"keywords":["express","annotations","serializing","deserializing"],"author":{"name":"kaiser shahid"},"bugs":{"url":"https://github.com/kaisershahid/dinoframe/issues"},"homepage":"https://github.com/kaisershahid/dinoframe#readme","_id":"@acmedinotech/dinoframe@0.1.2023082-4.4","gitHead":"9825bd393d7c2679112282d5e6dd8f99958d1037","_nodeVersion":"20.5.0","_npmVersion":"9.8.0","dist":{"integrity":"sha512-QtcjiPfFVKZplZRd5wapzUNnj9PYmmw7zm0lRCLfkZpEjp7FxvPgxSdbGzu89OB0hvo4+kMN11/OWF7ueEX40w==","shasum":"4a69742f56e9e98addf32cc9abf4736ac69c09e1","tarball":"https://registry.npmjs.org/@acmedinotech/dinoframe/-/dinoframe-0.1.2023082-4.4.tgz","fileCount":27,"unpackedSize":84527,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCkIj08FeimhWuWqvE/S6gYFXicvYaa/S+XwCkX3yRE9gIhAN3gkM3CLOJnziR8IS65CkcPqXhBe4D/eltcqXNOfhGY"}]},"_npmUser":{"name":"kaisershahid","email":"kaisershahid@gmail.com"},"maintainers":[{"name":"kaisershahid","email":"kaisershahid@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/dinoframe_0.1.2023082-4.4_1692907504628_0.699334012757657"},"_hasShrinkwrap":false}},"time":{"created":"2023-08-24T19:44:06.235Z","0.1.2023082-4.1":"2023-08-24T19:44:06.723Z","modified":"2023-08-24T20:05:05.169Z","0.1.2023082-4.2":"2023-08-24T19:50:14.638Z","0.1.2023082-4.3":"2023-08-24T19:59:09.190Z","0.1.2023082-4.4":"2023-08-24T20:05:04.829Z"},"maintainers":[{"name":"kaisershahid","email":"kaisershahid@gmail.com"}],"description":"a flexible, decorator-driven framework for building and managing complex apps","homepage":"https://github.com/kaisershahid/dinoframe#readme","keywords":["express","annotations","serializing","deserializing"],"repository":{"type":"git","url":"git+https://github.com/kaisershahid/dinoframe.git"},"author":{"name":"kaiser shahid"},"bugs":{"url":"https://github.com/kaisershahid/dinoframe/issues"},"license":"GPL-3.0-or-later","readme":"# dinoframe\n\ndinoframe is a decorator framework that makes wiring complex web apps in TypeScript easier. At its core, it provides libraries to make it easy to write and apply new decorators along wth a core set of decorators to make it easy to orchestrate application startup. In general, it should be pretty simple to integrate with and get moving.\n\n## Quick note on `discover()`\n\nThe JS engine will only process a class when a concrete reference is made to it -- simply importing it won't do anything. To get around that, we've adopted the following convention: entrypoints into your code should contain `discover(): string`, either as a module member or static class member. This function should:\n\n1. directly reference the classes you want to process\n   - e.g. simply having a line like `[Class1, Class2]` is enough\n2. optionally return a bundle identifier\n   - explained in [bundle](src/service-container/bundle/readme.md) submodule\n\nThis is only a suggestion, but we tend to prefer explicit entrypoints to avoid any confusion.\n\n## `decorator`\n\nTS doesn't make decorators instrinsic metadata on a class. If you like Java-style annotations that are accessible as class metadata, it's on you to implement that functionality yourself. However, even that has its limitations if you're interested in what other decorators are applied.\n\nThe `decorator` module changes that. It provides an easy way to:\n\n1. collect decorator metadata into a convenient and hierarchical structure (grouping metadata by providers);\n2. uniquely and consistently identify a class across arbitrary decorator providers;\n3. package decorated classes into uniquely defined bundles (grouping metadata by concern);\n4. introspect decorations from other providers using the collection library;\n\n## `service-container`, `http`\n\nBuilding on `decorator`, and inspired by [Apache Sling](https://sling.apache.org/), `service-container` makes it quick and simple to declare services and their\ndependencies purely through decorators. Dependency management ensures no service starts up until all its dependencies are fulfilled, interfaces provide inversion-of-control, and flexible access pattern works seamlessly with your existing code.\n\nA companion to the container is `http`, which makes it easy to declare routes and middleware in an Express-friendly way while also supporting service container integration.\n\n## `morph`\n\nThe `morph` module is a lightweight and flexible serialization/deserialization library that makes it easy to validate and convert external data into a concrete class instance. See the [morph readme](./src/morph/readme.md) for in-depth examples and explanation. \n","readmeFilename":"readme.md"}