{"bugs":{"url":"https://github.com/deebloo/joist/issues"},"dist":{"shasum":"e7a9b62807624b589c6aac51e4ab2fc40c836c0a","tarball":"https://registry.npmjs.org/@joist/styled/-/styled-2.0.0-next.1637899541.0.tgz","fileCount":9,"integrity":"sha512-9H5Uke65zuZtVO7554uvNllm3llZqe7OFh/QQ6is49kCqo1i44lz2In34R9DymuMzwwnKW+oOnz1ntfOXutFEg==","signatures":[{"sig":"MEUCIQDa8QLay9UVoTphKikxqCRM2AcBXBz3u4PSiKB7I3DCiwIgdprek5kQJZ3YZVtGFzy+cqhp/EU93vImQ6+W6/BU5vk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":26246,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhoF0aCRA9TVsSAnZWagAApVcP+wbkXohqjVIUJ7hhc+8s\nX1JiWirC46GvwgpouO6PfoHdmJyg9SFCfJfxy9grzO+62gWUz5oXu+bSDZEJ\nRsP0e68jFboLayZ8K6KezSzOY0XiUNmxYG8fL4kuNZYrTF5Q9WI0RtnT9C2N\ncZeCAT4EIJJJvuen6X9F54KRy9OAnU+T1UbLxMrOYjH63FC/c2tcmjRsuC5o\nOgmdPcgqUz1JBoq3RktuSbIalX6dPZY4vR2M8iaDwTOdTDpdBbeeK0e3T7CW\nHTIswUmZUhYJOoDDfuHXlNrsW1F2CEW4Oe5oY3jRhcZDyDopn8c5qVCb84+p\n9QHTLYuqR/f7E9TefFmrKBoB6I2u2SScEM915GI/4WbeIpPSMZ7C27FZn1Nx\nXryiFWqJDx9dlxMmMjHiy+onpNw32U3TstToUWVSnLO84vBuYcXX60mtWRZQ\nTaQ+h/6EMncEkieLyG1QUS2W5bvQtYE+GytEbJ8bhBmTQv//plqAXe1UYfGv\nGj0SI0sqeraaG1+03/QLelSSsbAN4PyohMsHSMQ/8yFZIqk3w1Ovo90AB8z4\nJYB8SOW+9UCkJrlxaPiZXO/C6O5LIR5L4D2GDgit9WTGeXywWyu6otonUnWu\nWoC+6oKcES1DqIBXaJEIpYoIoAAv11jgFYcebFFGeeFrHguCVZRKrbwTlob6\nTTqQ\r\n=LxlM\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":"5f99f6d33b582f068ea2159bc956a65d7ac720fe","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.1637899541.0_1637899546605_0.09840306553514822","host":"s3://npm-registry-packages"},"_id":"@joist/styled@2.0.0-next.1637899541.0","version":"2.0.0-next.1637899541.0"}