Sha256: 01b8e49a3a47a7f73d761a209c013169cf6ce32dafca5247c636a198f1e92aa2

Contents?: true

Size: 884 Bytes

Versions: 49

Compression:

Stored size: 884 Bytes

Contents

{"version":3,"file":"tryCatch.js","sourceRoot":"","sources":["../../src/util/tryCatch.ts"],"names":[],"mappings":";AAAA,4BAA4B,eAAe,CAAC,CAAA;AAE5C,IAAI,cAAwB,CAAC;AAE7B;IACE,IAAI,CAAC;QACH,MAAM,CAAC,cAAc,CAAC,KAAK,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC;IAC/C,CAAE;IAAA,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QACX,yBAAW,CAAC,CAAC,GAAG,CAAC,CAAC;QAClB,MAAM,CAAC,yBAAW,CAAC;IACrB,CAAC;AACH,CAAC;AAED,kBAA6C,EAAK;IAChD,cAAc,GAAG,EAAE,CAAC;IACpB,MAAM,CAAM,UAAU,CAAC;AACzB,CAAC;AAHe,gBAAQ,WAGvB,CAAA;AAAA,CAAC","sourcesContent":["import { errorObject } from './errorObject';\n\nlet tryCatchTarget: Function;\n\nfunction tryCatcher(this: any): any {\n  try {\n    return tryCatchTarget.apply(this, arguments);\n  } catch (e) {\n    errorObject.e = e;\n    return errorObject;\n  }\n}\n\nexport function tryCatch<T extends Function>(fn: T): T {\n  tryCatchTarget = fn;\n  return <any>tryCatcher;\n};\n"]}

Version data entries

49 entries across 49 versions & 4 rubygems

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