Sha256: 2a1dca2a7f4fad481d29c521801218dcc448cd49f85df5f13396ccbad3d4d20c

Contents?: true

Size: 1.35 KB

Versions: 49

Compression:

Stored size: 1.35 KB

Contents

{"version":3,"file":"SubscriptionLoggable.js","sourceRoot":"","sources":["../../src/testing/SubscriptionLoggable.ts"],"names":[],"mappings":";AACA,gCAAgC,mBAAmB,CAAC,CAAA;AAEpD;IAAA;QACS,kBAAa,GAAsB,EAAE,CAAC;IAgB/C,CAAC;IAbC,iDAAkB,GAAlB;QACE,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,iCAAe,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC;QACnE,MAAM,CAAC,IAAI,CAAC,aAAa,CAAC,MAAM,GAAG,CAAC,CAAC;IACvC,CAAC;IAED,mDAAoB,GAApB,UAAqB,KAAa;QAChC,IAAM,gBAAgB,GAAG,IAAI,CAAC,aAAa,CAAC;QAC5C,IAAM,kBAAkB,GAAG,gBAAgB,CAAC,KAAK,CAAC,CAAC;QACnD,gBAAgB,CAAC,KAAK,CAAC,GAAG,IAAI,iCAAe,CAC3C,kBAAkB,CAAC,eAAe,EAClC,IAAI,CAAC,SAAS,CAAC,GAAG,EAAE,CACrB,CAAC;IACJ,CAAC;IACH,2BAAC;AAAD,CAAC,AAjBD,IAiBC;AAjBY,4BAAoB,uBAiBhC,CAAA","sourcesContent":["import { Scheduler } from '../Scheduler';\nimport { SubscriptionLog } from './SubscriptionLog';\n\nexport class SubscriptionLoggable {\n  public subscriptions: SubscriptionLog[] = [];\n  scheduler: Scheduler;\n\n  logSubscribedFrame(): number {\n    this.subscriptions.push(new SubscriptionLog(this.scheduler.now()));\n    return this.subscriptions.length - 1;\n  }\n\n  logUnsubscribedFrame(index: number) {\n    const subscriptionLogs = this.subscriptions;\n    const oldSubscriptionLog = subscriptionLogs[index];\n    subscriptionLogs[index] = new SubscriptionLog(\n      oldSubscriptionLog.subscribedFrame,\n      this.scheduler.now()\n    );\n  }\n}\n"]}

Version data entries

49 entries across 49 versions & 4 rubygems

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