{"bugs":{"url":"https://github.com/deebloo/joist/issues"},"dist":{"shasum":"5c36d67fc3b2fabc5314866389ddfa050c715342","tarball":"https://registry.npmjs.org/@joist/styled/-/styled-2.0.0-next.1637940616.0.tgz","fileCount":9,"integrity":"sha512-NxuSfQZGJCHKlZLmz+xsJ8k97zpE+Ps63Spk/I7SBUtHVWV5fUzqwTrPVhbdcIeGnibSZQBsJ7IWj3uySCNKaA==","signatures":[{"sig":"MEQCIAXBv+Qoz8Mppw+k+BsPwlTcstWh5S77OQtaoZ1FTiL0AiAAuv2zej/ICKd+D2J5rh0raU7Bi545y1M/2qQmZ+R7Gg==","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\nwsFcBAEBCAAQBQJhoP2MCRA9TVsSAnZWagAAHQ8P/jXKr1iiJwWi5l9jQiue\nyXOi0G9lDx00K2/wA9Kq2sPt/hyIs5GpuiJR1IGDFkt84KSGgvzmHVFm0pEq\nzQ3+uJihNTAR4ww//U413+zt+sFGK6KIuJgYqS0Puz60e+eB+QHveuHBIZ+3\ncqUtdHcEx5MEYsmzWMdRKLrDWZbiOjTlKQHUuXfFPEBVicBp6fiy/LXEoaPu\n/OYqTvqkLRNoj+avSHydq+Bia+nEgVlmpQYTh576m2ZJXkHCtfMyKr1PRNa0\n6ox+7mkabhUVjzTUU/ii+/UKXRgdfppIOoGHqLwGGuku22mjmusry22O+Y7r\njOMRrQOhXtE7DPLg+0tPiWofYYMqDbC3ci2V/LQAhH1JlEQ+ytrZq45fAS6w\nYg+yg4Z+cCDimw2L9dzc1Er/VoLkDomP38zkViKRkXverxCRbUv9ECJBM0fX\nhKl+GSMtodNOq6T7pXnxLEIUdLSLbbO05FH6gjjpEBcAIkWf/lMR96ams1G+\nlZZ9fpOZpUXBFZ21+UqLlhc32Nsd9V+CW2LBoM5LPP3lzd97BXhnHLyyaUTO\nfWKnUgLZOvPUry8Xgm1t3TYKyqqiAr7Iq9YkF8YFWmNSoC8AEUgAa3XuHXyr\n/GE4oOQL5Zzh0LhbPKAkrBw4DrLuhZ/yJ0Kcx411Uy8m/gmzz38sc/eZKWE5\ngPJr\r\n=5c/P\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":"3174efa02ec99f5f57717d24d528c5aed0d0e1de","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.1637940616.0_1637940620681_0.9571465976850315","host":"s3://npm-registry-packages"},"_id":"@joist/styled@2.0.0-next.1637940616.0","version":"2.0.0-next.1637940616.0"}