{"bugs":{"url":"https://github.com/deebloo/joist/issues"},"dist":{"shasum":"71fcfd5eecaad2f7e0456c7e7a50edc0f1dced91","tarball":"https://registry.npmjs.org/@joist/styled/-/styled-2.0.0-next.1637940839.0.tgz","fileCount":9,"integrity":"sha512-Z0S5XovYIcYh29WxT72SEInhovfMPiAyWiOTiAk3pEFgA8UiFyACt9LI/+oQ7pnmOTNf2ySeUhhFRaj5USBx5Q==","signatures":[{"sig":"MEUCIBZxT6c3r6uhqgg/wBRByYnCL+jOD2lRS67LRjTId8HVAiEA2WVuJgvklBdFfmfwOufU3vUp8g1kJKodWMmQpA6PG/E=","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\nwsFcBAEBCAAQBQJhoP5sCRA9TVsSAnZWagAAvN4P/Rn4+6iBQwv6uHyJ2HvD\nYMWp4Q/+XHlyFgP912yDti/d2Rxdc0ZwN2WdgW+q3C3ZAdfwyCZq0PN6DoN/\ni9qmPunV1D/Knss0xtoE4N6T7PzkHyV4aTFqkg/Qs5DX8SrfwF2NlsyfiDWG\n4Gsi2vET3E06jFeipjyiCVbEkveNYAYaSUjTZPRIsKUlAXXdB1gG0kh/Qfjw\nmnOqQkoWReE8zu88qIF/i6WBqCtHTEnIhe0Gwx/3uoyClW/WKJxsdUcjErMQ\n5h6lkrU4wwTo0+rZXnp613iGSxmHsQxH3Uvf884Psomqd1dULa384Uv9HQAH\nhg6Np4oPLjDr5bZoSV+47bitnmseDmT9x6L7G3SDMmAz1Py7yD4RRXn0e3js\nvcqYq8/aOfktHowY5DhU1+ZKniyuJs6f/P8BC86UzOL0zmDxF+8JdcpLVqND\nE1YuC+jP96D6yhRa+E4uTgbymdZyZ1VgFQx7BRsSN50kXKtmpfR3IK0mJec0\nI90hPkxP3YRxN9ESKxwy9kLIPtcFzjrSAYaIg099V4cXRfTITudJrzrZEzQI\n6G9daxwcN8SrquAIv9RKlK60DGLxXxEZec5nzsP5v2IVZjWOlCYVfpMt9vQU\nS1VO6Q2om/adfrkjfME+l6aH567PMNyafC2mHm6jGjQit8iNjBjGoyQnmztg\nsygh\r\n=iNBD\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":"beb7032d164ddb1c451e0da43c8c4156f0f233a7","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.1637940839.0_1637940844388_0.7164643093582064","host":"s3://npm-registry-packages"},"_id":"@joist/styled@2.0.0-next.1637940839.0","version":"2.0.0-next.1637940839.0"}