{"bugs":{"url":"https://github.com/deebloo/joist/issues"},"dist":{"shasum":"1028c2e9c726b32e9fc42962f4dbcc7022c43067","tarball":"https://registry.npmjs.org/@joist/styled/-/styled-2.0.0-next.1638208599.0.tgz","fileCount":9,"integrity":"sha512-KK0WkLuMHtZBB/OTZsoE6k0NISbkmicmfu8HvqrO/Gi8qKs0qpZOTtzudD45vgVdzqA06EtOHrDoMVFOAymnKw==","signatures":[{"sig":"MEUCIQDx7I/85CbmH+9lzq1aMOOwVG4GEz2wh0+y7Sg0Tm3ELAIgG1E3TtTQ8UZJSw7oMWRWY8XMoxQSBp1KX5pugi/+P+Y=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":26092,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhpRRcCRA9TVsSAnZWagAAc50P/R0rTqywe6I2FhpKrd2A\n1H3BdR6G7/qYpH7YpEaJpFLCoDz6UvKfvQwgFs36+wzMs6TFAAEoKUnH+H46\nKfxiL4dfmoJMWLim89ksgG/+0jdgXPoYOcpYSchTCXaOqmwfKw+m+m9flyEg\njZt2ojqcyRcMx1l78HBb0zCsY/5Qm7C8Ssps82OjQCA+/LOzpLN5JfGHfmuf\nboZVo6hHM7/MtRlzfdQvEGU5E7ss4M93xQaN/UDo8HjEBmOA+K+LdcfdVW+Z\n+0RW9oLBN/TtfY30r3oWxxW34oykA1ZPDbsPHTTdtrxAkiNcbA4hPxys4ENd\n/dsFB2x/lNXSZFTpuzuCf0xb+xHOjhgfUOFSv110EO832XBRLk/U/mv/cpa0\nzzhCY3PITXCdFZz68zXhpj9jlBSDZt9YN9dfYLMfZN0+fLbaMgMX0YEKpty3\nEBN/a7x83svMgpVhw+4OWraDDu0kznPzaeCHs9pAyR9/yf47Ac6BNRlh8h/q\nED6uiEbglQ+mg7CAtlLQO9AGLigd1gXpd5USp1NWw+Rncah4imgRmbawIVJI\n2pNpaubHBKKFajkKvV8OA/w5qP8NbXv2bXVGGZuGoLYTrD7csRyf3JtQr8A3\npniAsE/SbIqP9yDHWgZLlaktyli50oyUoFaGc3i8lZmfoqZ6lkt2KijX8zSd\najpL\r\n=xPTY\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./target/build/lib.js","name":"@joist/styled","author":{"name":"deebloo"},"module":"./target/build/lib.js","readme":"# Di\n\nDependency Injection in ~800 bytes. Can be used with and without decorators.\n\n#### Installation:\n\n```BASH\nnpm i @joist/di\n```\n\n#### Example:\n\n```TS\nimport { Injector } from '@joist/di';\n\nclass FooService {\n  sayHello() {\n    return 'Hello From FooService';\n  }\n}\n\nclass BarService {\n  static deps = [FooService];\n\n  constructor(private foo: FooService) {}\n\n  sayHello() {\n    return 'Hello From BarService and ' + this.foo.sayHello();\n  }\n}\n\nconst app = new Injector();\n\napp.get(BarService).sayHello(); // Hello from BarService and Hello from FooService\n```\n\n```TS\nimport { Injector } from '@joist/di';\nimport { inject } from '@joist/di/decorators';\n\nclass FooService {\n  sayHello() {\n    return 'Hello From FooService';\n  }\n}\n\nclass BarService {\n  constructor(@inject(FooService) private foo: FooService) {}\n\n  sayHello() {\n    return 'Hello From BarService and ' + this.foo.sayHello();\n  }\n}\n\nconst app = new Injector();\n\napp.get(BarService).sayHello(); // Hello from BarService and Hello from FooService\n```\n\n#### Override A Service:\n\n```TS\nimport { Injector } from '@joist/di';\nimport { inject } from '@joist/di/decorators';\n\nclass FooService {\n  sayHello() {\n    return 'Hello From FooService';\n  }\n}\n\nclass BarService {\n  constructor(@inject(FooService) private foo: FooService) {}\n\n  sayHello() {\n    return 'Hello From BarService and ' + this.foo.sayHello();\n  }\n}\n\n// Override FooService with an alternate implementation\nconst app = new Injector({\n  providers: [\n    {\n      provide: FooService,\n      use: class extends FooService {\n        sayHello() {\n          return 'IT HAS BEEN OVERRIDEN'\n        }\n      }\n    }\n  ]\n});\n\napp.get(BarService).sayHello(); // Hello from BarService and IT HAS BEEN OVERRIDEN\n```\n\n#### Root Service\n\nIf you have nested injectors and you still want singleton instances mark your service as shown or decorate with `@service()`\n\n```TS\nclass FooService {\n  static providedInRoot = true;\n\n  sayHello() {\n    return 'Hello From FooService';\n  }\n}\n```\n\n```TS\nimport { service } from '@joist/di/decorators';\n\n@service()\nclass FooService {\n  sayHello() {\n    return 'Hello From FooService';\n  }\n}\n```\n","exports":{".":{"import":"./target/build/lib.js"},"./styled":{"import":"./target/build/lib/styled.js"},"./observable":{"import":"./target/build/lib/observable.js"}},"gitHead":"51c244d1669fc955fc8ce8113b49d3df7361d0a3","license":"MIT","scripts":{"test":"tsc -p tsconfig.test.json && wtr --config ../../wtr.config.mjs --port 8000","build":"tsc -p tsconfig.build.json"},"_npmUser":{"name":"deebloo","email":"dannybluedesign@gmail.com"},"homepage":"https://github.com/deebloo/joist#readme","keywords":["TypeScript","DI","Dependency Injection"],"repository":{"url":"git+https://github.com/deebloo/joist.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.18.1+x64 (linux)","description":"Dependency Injection in ~800 bytes","directories":{},"maintainers":[{"name":"deebloo","email":"dannybluedesign@gmail.com"}],"sideEffects":false,"_nodeVersion":"14.18.1","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/styled_2.0.0-next.1638208599.0_1638208604197_0.7411900912839224","host":"s3://npm-registry-packages"},"_id":"@joist/styled@2.0.0-next.1638208599.0","version":"2.0.0-next.1638208599.0"}