{"bugs":{"url":"https://github.com/deebloo/joist/issues"},"dist":{"shasum":"af2de80df8ffea00d1b00bc10a7889ae4b3ca03d","tarball":"https://registry.npmjs.org/@joist/styled/-/styled-2.0.0-next.1638198387.0.tgz","fileCount":9,"integrity":"sha512-RlnxqNkV8hLrruvb4PtA+21XpmQnLHePPGXz27wVqHDEPqRivoaUsJIHrQrEtuYab8GF1XWvb11ZKJr/I9rI/Q==","signatures":[{"sig":"MEYCIQDIxrlRyQ1SdCkILYmkfKEEqhSHg1BGcX5rXcgVnmy+wQIhAMt5elHUDqDhGIc9granIX9a+qS3fawNR5nTP+HSqO9M","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\nwsFcBAEBCAAQBQJhpOx4CRA9TVsSAnZWagAAFccP/jWWToHgPZl/1ywO0hQv\ndU9OzXRGZ+/9L1UOsE6u38ImB1Lf8gVNZGfmvE3vkI3IlrabpF10sgoSN/9k\n+1T1Gde2bQT43OQWO1dr4wDmXhECYeejDn51xaS5hHjMvKu6WJ4rH8YkYSW2\nO69g6FEcCTok9om+Y92aJBm+GA03U7RfF6D+TX+FqEvFnRz20YTSQnSKviwo\n9UlbAgMmNq4YAEUXVmVLki7/WmHiHVrG2Ymj9i93QrDy2DoMHDkh2wtuK6Lp\ns08mW0sDs2y1eABcRWIdHyKPqb5iMedAZQYEQDDCi6QStab30icCle4LLswZ\n0USsaF83ZO8OzRrVw+dCklSo3NH0JUXtZfJYrLBaCOA7TbsL6fQs7+dkQt16\nFaG7DtURkJ0R7AkUudnqk/58Acje0DvF0pJsVArO7NaQEawzZjofhrRkJxCE\nOiNWKcYQe3uqxcubb6NlZ7V2A0TtH3f2bPktIGrihURWnARnhK3rzKfRA4Tu\nCXLjSPe2ME+Ag6r6EbUPAt2n+jK2BET1Hl1yXVyfnpiq8TMY2yT43uWuXxCN\n24QvHYIQIsVNfj/hnJZ2a2LNPo1EnYqPyp0+G8ZN6tlWAsVIXnczXx/OGC9H\nKLm711F7XIVIv2dOw/S0HyoNgpWZVjVg6ECCakKrizzxVdW450YiAtrsQ4B7\nCo83\r\n=ReQf\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":"ca28f3ecd39d7caa751b5e8f44513afd2649f27c","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.1638198387.0_1638198392617_0.2227633800141522","host":"s3://npm-registry-packages"},"_id":"@joist/styled@2.0.0-next.1638198387.0","version":"2.0.0-next.1638198387.0"}