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