Sha256: 958df6be7b6c8723805914ec1a6c4df2a04f6e7afc98a1949629e7c0b176f189

Contents?: true

Size: 1.51 KB

Versions: 49

Compression:

Stored size: 1.51 KB

Contents

{"version":3,"file":"toSubscriber.js","sourceRoot":"","sources":["../../src/util/toSubscriber.ts"],"names":[],"mappings":";AAAA,2BAA2B,eAAe,CAAC,CAAA;AAC3C,6BAAmD,wBAAwB,CAAC,CAAA;AAC5E,yBAAwD,aAAa,CAAC,CAAA;AAEtE,sBACE,cAA0D,EAC1D,KAA4B,EAC5B,QAAqB;IAErB,EAAE,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC;QACnB,EAAE,CAAC,CAAC,cAAc,YAAY,uBAAU,CAAC,CAAC,CAAC;YACzC,MAAM,CAAkB,cAAe,CAAC;QAC1C,CAAC;QAED,EAAE,CAAC,CAAC,cAAc,CAAC,2BAAkB,CAAC,CAAC,CAAC,CAAC;YACvC,MAAM,CAAC,cAAc,CAAC,2BAAkB,CAAC,EAAE,CAAC;QAC9C,CAAC;IACH,CAAC;IAED,EAAE,CAAC,CAAC,CAAC,cAAc,IAAI,CAAC,KAAK,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;QAC3C,MAAM,CAAC,IAAI,uBAAU,CAAC,gBAAa,CAAC,CAAC;IACvC,CAAC;IAED,MAAM,CAAC,IAAI,uBAAU,CAAC,cAAc,EAAE,KAAK,EAAE,QAAQ,CAAC,CAAC;AACzD,CAAC;AApBe,oBAAY,eAoB3B,CAAA","sourcesContent":["import { Subscriber } from '../Subscriber';\nimport { rxSubscriber as rxSubscriberSymbol } from '../symbol/rxSubscriber';\nimport { PartialObserver, empty as emptyObserver } from '../Observer';\n\nexport function toSubscriber<T>(\n  nextOrObserver?: PartialObserver<T> | ((value: T) => void),\n  error?: (error: any) => void,\n  complete?: () => void): Subscriber<T> {\n\n  if (nextOrObserver) {\n    if (nextOrObserver instanceof Subscriber) {\n      return (<Subscriber<T>> nextOrObserver);\n    }\n\n    if (nextOrObserver[rxSubscriberSymbol]) {\n      return nextOrObserver[rxSubscriberSymbol]();\n    }\n  }\n\n  if (!nextOrObserver && !error && !complete) {\n    return new Subscriber(emptyObserver);\n  }\n\n  return new Subscriber(nextOrObserver, error, complete);\n}\n"]}

Version data entries

49 entries across 49 versions & 4 rubygems

Version Path
ilog-0.4.1 node_modules/rxjs/util/toSubscriber.js.map
ilog-0.4.0 node_modules/rxjs/util/toSubscriber.js.map
ilog-0.3.3 node_modules/rxjs/util/toSubscriber.js.map
govuk_publishing_components-18.0.0 node_modules/rxjs/util/toSubscriber.js.map
govuk_publishing_components-17.21.0 node_modules/rxjs/util/toSubscriber.js.map
govuk_publishing_components-17.20.0 node_modules/rxjs/util/toSubscriber.js.map
govuk_publishing_components-17.19.1 node_modules/rxjs/util/toSubscriber.js.map
govuk_publishing_components-17.19.0 node_modules/rxjs/util/toSubscriber.js.map
govuk_publishing_components-17.18.0 node_modules/rxjs/util/toSubscriber.js.map
govuk_publishing_components-17.17.0 node_modules/rxjs/util/toSubscriber.js.map
govuk_publishing_components-17.16.0 node_modules/rxjs/util/toSubscriber.js.map
govuk_publishing_components-17.15.0 node_modules/rxjs/util/toSubscriber.js.map
govuk_publishing_components-17.14.0 node_modules/rxjs/util/toSubscriber.js.map
govuk_publishing_components-17.13.0 node_modules/rxjs/util/toSubscriber.js.map
govuk_publishing_components-17.12.2 node_modules/rxjs/util/toSubscriber.js.map
govuk_publishing_components-17.12.1 node_modules/rxjs/util/toSubscriber.js.map
govuk_publishing_components-17.12.0 node_modules/rxjs/util/toSubscriber.js.map
govuk_publishing_components-17.11.0 node_modules/rxjs/util/toSubscriber.js.map
govuk_publishing_components-17.10.0 node_modules/rxjs/util/toSubscriber.js.map
govuk_publishing_components-17.9.0 node_modules/rxjs/util/toSubscriber.js.map