{"bugs":{"url":"https://github.com/deebloo/joist/issues"},"dist":{"shasum":"685be8b834e30fce9fb38edc275a454dd91735e0","tarball":"https://registry.npmjs.org/@joist/styled/-/styled-2.0.0-next.1638208634.0.tgz","fileCount":9,"integrity":"sha512-YDjyc359BjnUSVX91p5vU6Q51NwnSH7i0kfYRaJ9M2e4NckCctYe5CwXW5FgynJrhUZ0FvChoGec6xinmJZK9A==","signatures":[{"sig":"MEUCIBcmbawJoi5uaKX3kEG/Vsqv0rKaqQ4DdoI2Yf/2q7VVAiEAsfPc2MQ7GE9/1H/23U+vQyk3nKhbFY459Cx9GcmeCEo=","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\nwsFcBAEBCAAQBQJhpRR/CRA9TVsSAnZWagAAdIkP/34BQKpGA8Gk4RtKq2iF\nrjDgHGbIzL4xU+OHhScQyQvpwrXvt48d0iWP6QhYLHU2u3fVCTCZLNIkaY8v\n7gJIcfeyrZQu3k1yaLlsrZ3qlHsZZct17crCWPszuJOTR4WIHozI5keBYWQd\nMAyqcsciyT3wCXmrtaeezXeCCfowoo5puYWlpH4lGedn8EpRGlBidy6xzGJY\nYEkXLzuNxmCvp96nmUtgJ9kLkHbljeqpE++yzhahDuM+Xoifzw/m1kKJ6gds\nD38jVaxzoytwj5rJRvnLX0J8UPE2y5jLBZJRYBBvPF229N41aAerzE5sICO/\nX2B0nm+Wg7M3qKa+1++QbBLTqOxK7xGuokH7e2mN8jQuUNPfFSAyku6fKIiC\n3uwQ2TYRNGmSfk1CSuwoIee6URTWjhSPxY9zAitWrkm69iakI0oAn47a6dwm\nbWv4DfKZFNq8BI60qb/mot+gSec+bgCqxEZm903U+AFqPOatLTe4TxAuO5ot\nKVlKEfyMbRvDmIkhKn5SUZjkOPbieXDINTYVzplxd2BeF4MaxoS7+g9z8AYW\nQH3/HAvd3/EJqt2aDq4ASR7SMEStOrf3VMyExNvuqhe865GDbm8waIXYgVK/\n10GESrqLhl964sgoUNonodroA/d8Bb/Iht6LXclfHtzY+vIp4pNe2wXLhxUH\n/+UC\r\n=8bQV\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":"e705da1e4503050e6d1c1770cf9ab9a7d3718d3b","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.1638208634.0_1638208639581_0.8630983034750581","host":"s3://npm-registry-packages"},"_id":"@joist/styled@2.0.0-next.1638208634.0","version":"2.0.0-next.1638208634.0"}