{"bugs":{"url":"https://github.com/deebloo/joist/issues"},"dist":{"shasum":"470c1c378d86ac2b492f9e712e0eef34b14cff69","tarball":"https://registry.npmjs.org/@joist/styled/-/styled-2.0.0-next.1637898290.0.tgz","fileCount":9,"integrity":"sha512-K6Q6HWTxNMqnxj6TUBWtp9HXSfwWqyAZWB1TBiuax7O6nPmgPnmIVeD9pBZBWyQHf/ixnq5gNFZkGKS2p/ivnA==","signatures":[{"sig":"MEQCICiURO4fFLDWC4oAzng/1h/NxZF/Gk9tUobF7/lgP90gAiA1/nKVSY/Zdk47vMQtbQFYM+XkjRGphwQp9bfjUsPckA==","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\nwsFcBAEBCAAQBQJhoFg3CRA9TVsSAnZWagAAU00P+QApexiH7N9lN+M7get7\nzlSswWlvXCuIS86M7jUKhFhrL8IYOEaCZJ6KAOIQeq/QnthlQfnM70lmHD1z\nKLHqcbCIEwD25Gplpasy1aKN7iCPz+upyPWP38KHYahZsogbdNzCbeL6Ohsu\nEvWqzZc9jnspE8TNVtlmCAr1c9NXSWH78s2xiADdQt5jvgvbDjz3aqxZfW8U\nnV/fkC3ZcElMEKSNpmETKCpxzy2OtDtj9VYqOVS5Yvxdj3BHva12z7HNTM3x\nyNcw7yWXszcjcaee3GxIz9IB5tF8iPyJQWwmbQ0ow5BUbRH2qN7M+zV5a4Ql\nnH7ne/oKZYCvABe5Sv2AGiSLQTNb7CVEEpgUtBCG3cF59awRTv+dcuEXeKIg\n+y9i2irajakBFHRQluRVTq+t4kpqf1ywk5Yav+ws9jsilMrirw+uzuzyzw88\nBi0/iUmXu4QqCfmd4GZVXCnh4fN/7wTLrbRGRoFNrlmrVkHC4zoS6Oi+R2MP\nXjIRbn90vrm19LEulCkAhk/onk4mtONiK3xpz6WDDiiZtA0qxNOXS6wDk+oY\nj59gJBOpLVHCQuPGoLvN90r2v/5xzWtNxSEe8VP8fqOkSIp+EfjHMzLcos+B\n4vYrq85pHRND7DvVSXM5c58wbHls4xf+MAj5cDIw4HMkb0eSojdNIAyccBEx\n13LM\r\n=7saV\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":"022c013e9494a9c0a6a652b3088afd37660c4f44","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.1637898290.0_1637898295595_0.599396976194815","host":"s3://npm-registry-packages"},"_id":"@joist/styled@2.0.0-next.1637898290.0","version":"2.0.0-next.1637898290.0"}