{"bugs":{"url":"https://github.com/deebloo/joist/issues"},"dist":{"shasum":"ed39d1afa5a56d115e3013cbfebd2876fb09fa56","tarball":"https://registry.npmjs.org/@joist/styled/-/styled-2.0.0-next.1637962354.0.tgz","fileCount":9,"integrity":"sha512-r3vYJTy/PGZmTiw8r2VreOFihbaAgAjj/EePPZNxtjOlTCxzzU+Be66OK+MtG6RIc2lGHRrGQ2ik6mOQ92BXYw==","signatures":[{"sig":"MEYCIQCn9XKMaMmXKhe35DiFWPHtbnIbjsDMUmc8q20jgY+vRwIhANNP7WqQ1WB23bc2/tL/wUuUKGfFfAqc/wgDQHZ7NwRn","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\nwsFcBAEBCAAQBQJhoVJ2CRA9TVsSAnZWagAA5ZIP/RCuuAZjP5ReT9X8EjTn\nxaZuggszrkuQy6DYTtWQZ0jI+mKGulNbxiNNa69btUqrYP//wT1JNg0rU6qc\ndlXUpeMcxhTI96U5hRwZIBgRDMT9MWPn/FYah1gn341lIwaBPB3OiSlyow7+\nOH9UO8Nqk4KRBADzCl0bW4IKteV2Fd74jjwIaqU1KUtU/en7ZvHXq4xgnrvm\nfD/gzJGocEaDEqrDNv82IBxiPBIl7Y8oGGIrHwsY/GBbI51a0tlF70V9vPKw\nZk5o8tJwLv9k1SCbGvo1cJ8yBT+7i6atvHzFgdBbPQNz15OuzboYf3bzKMNB\nBwNAuKR8retQqtqpm0xsvk9PFiJHRszgsIk04VlAKZRb9eN5mMgmv+frR6j5\nGV5VQpBT58CYFgqO0dcrQxRRs8w1yXQ6NJ1PFu+urNwAnnl+iZdSeZUdxdLJ\nAwh/ESnuO8I2hHTiMsULp916EmJHzNAJGlWYvBb47ju0bHcYKWlpRKami2tx\nwT2bX9UjKkMsNrjYkIHFkCNrVfL+jQNQq/kXQTOkczMNJWjYikS5s90j6XmT\nO1rhRM0SeExPjd+8bMm9/MNcwdruKdgHyZP0Xxei0MQLKW7f3xUW6OxJ+Tx3\ngT7nd+V6+e6KQhTFoELmW0RLFRtRM40pvqwYmxN/q1JUKQqweYp8VEA8kN7r\n211r\r\n=jkmp\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":"c7d312a2b6f590c0347c3872c6e8b59c53df561b","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.1637962354.0_1637962358590_0.034938606206128986","host":"s3://npm-registry-packages"},"_id":"@joist/styled@2.0.0-next.1637962354.0","version":"2.0.0-next.1637962354.0"}