{"bugs":{"url":"https://github.com/deebloo/joist/issues"},"dist":{"shasum":"4844626c743cbc351fad2e5aa6ed08b094f54c3d","tarball":"https://registry.npmjs.org/@joist/styled/-/styled-2.0.0-next.1637898205.0.tgz","fileCount":9,"integrity":"sha512-aJJbGyGWWGvY3k6ET6dGkCbFQH6H1XuF77Iims9zSb9JMvyakaKRF0GabXBSOU73VTVcNn68EfbykdcPvsjsnQ==","signatures":[{"sig":"MEUCIEvPYQ4zuEAxJOszNpN+2blmi2i+xon29yni32QDze5/AiEAgmu+5E/UNPoltqFoGTOHbdUgr3rYEKYNZ9E1CY3k69k=","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\nwsFcBAEBCAAQBQJhoFfiCRA9TVsSAnZWagAA4Y4P/3iYGcOedBs/q9dXs0Pi\nGR7u02iIabdtAtPiBpAsK8OmmIvoTp2ht3vZw+dtgeldbEXNzxQsfZ+Y4bWJ\nLlADTTuSIhA5Db0JzCT6GBwKVklhmfhM+9c+QEdzn638G+WHkel5NzMhBdUa\nyg0qpIlbQNAoAKvLaK2BUWDP4W8UAyY+StW9oFjMsvTWN1F9vgOpvI9A01GC\nYj5aQx7mNnPwCkjqIRo/NvwvoRbidN7FbCoEGreI4R4mJcfbJfFagL/ui2za\nYhU/x/e07GaqCcMp1okjoavF+bCh3Rb85csVxleeQeJViz4xuiYo8vn6/lkw\nZcBCvB/0gqWo6ot3rgmuKkAe+dsl6cqlPfU/XUcClMaxOoGVaqdlWAhPueSE\nwsn23b9uE4f5B2mER6vgkAgijekQRgovpIJvyoCmVk1fi8H37yW8TVZvo7we\nuCokOOlf9GwnarJSIrw6cvrCK92RCiHNVZxrj9b7JZGsrzSdSxOazunIc3yl\n+OgwZgwy3Z69NgcFDRmpKrG2Nb4DUgqkyj9T+qqkcb8ogTF4kguPBZKwIrMX\n3tM3nLgbH8AwHBbEqZEmI7tNsHoLCA1GXAHcuJ/pQhrOGR5sdP0anqzlab4L\nNv6XKziWNLLlHDW4PqlgxxXVb4/RNhuuY1wHpzjRegR6MTTtVsqqeJoM52Br\n4vQm\r\n=HGab\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":"e3f5bea296381162a594146cbe2c0c7eed9f8d65","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.1637898205.0_1637898210458_0.5184866815634985","host":"s3://npm-registry-packages"},"_id":"@joist/styled@2.0.0-next.1637898205.0","version":"2.0.0-next.1637898205.0"}