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
govuk_publishing_components-17.8.0 node_modules/rxjs/util/toSubscriber.js.map
govuk_publishing_components-17.7.0 node_modules/rxjs/util/toSubscriber.js.map
govuk_publishing_components-17.6.1 node_modules/rxjs/util/toSubscriber.js.map
govuk_publishing_components-17.6.0 node_modules/rxjs/util/toSubscriber.js.map
govuk_publishing_components-17.5.0 node_modules/rxjs/util/toSubscriber.js.map
govuk_publishing_components-17.4.0 node_modules/rxjs/util/toSubscriber.js.map
govuk_publishing_components-17.3.0 node_modules/rxjs/util/toSubscriber.js.map
govuk_publishing_components-17.2.0 node_modules/rxjs/util/toSubscriber.js.map
govuk_publishing_components-17.1.1 node_modules/rxjs/util/toSubscriber.js.map
govuk_publishing_components-17.1.0 node_modules/rxjs/util/toSubscriber.js.map
govuk_publishing_components-17.0.0 node_modules/rxjs/util/toSubscriber.js.map
govuk_publishing_components-16.29.0 node_modules/rxjs/util/toSubscriber.js.map
govuk_publishing_components-16.28.0 node_modules/rxjs/util/toSubscriber.js.map
govuk_publishing_components-16.27.1 node_modules/rxjs/util/toSubscriber.js.map
govuk_publishing_components-16.27.0 node_modules/rxjs/util/toSubscriber.js.map
govuk_publishing_components-16.26.0 node_modules/rxjs/util/toSubscriber.js.map
govuk_publishing_components-16.25.0 node_modules/rxjs/util/toSubscriber.js.map
govuk_publishing_components-16.24.0 node_modules/rxjs/util/toSubscriber.js.map
govuk_publishing_components-16.23.0 node_modules/rxjs/util/toSubscriber.js.map
govuk_publishing_components-16.22.0 node_modules/rxjs/util/toSubscriber.js.map