Sha256: 28756f0fe93e1970dfa705f4133c778e591972db2ba09e648d663f513a95d878

Contents?: true

Size: 1.78 KB

Versions: 26

Compression:

Stored size: 1.78 KB

Contents

{"version":3,"sources":["../../../../src/core/utils/internal/devUtils.ts"],"sourcesContent":["import { format } from 'outvariant'\n\nconst LIBRARY_PREFIX = '[MSW]'\n\n/**\n * Formats a given message by appending the library's prefix string.\n */\nfunction formatMessage(message: string, ...positionals: any[]): string {\n  const interpolatedMessage = format(message, ...positionals)\n  return `${LIBRARY_PREFIX} ${interpolatedMessage}`\n}\n\n/**\n * Prints a library-specific warning.\n */\nfunction warn(message: string, ...positionals: any[]): void {\n  // eslint-disable-next-line no-console\n  console.warn(formatMessage(message, ...positionals))\n}\n\n/**\n * Prints a library-specific error.\n */\nfunction error(message: string, ...positionals: any[]): void {\n  // eslint-disable-next-line no-console\n  console.error(formatMessage(message, ...positionals))\n}\n\nexport const devUtils = {\n  formatMessage,\n  warn,\n  error,\n}\n\n/**\n * Internal error instance.\n * Used to differentiate the library errors that must be forwarded\n * to the user from the unhandled exceptions. Use this if you don't\n * wish for the error to be coerced to a 500 fallback response.\n */\nexport class InternalError extends Error {\n  constructor(message: string) {\n    super(message)\n    this.name = 'InternalError'\n  }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,wBAAuB;AAEvB,MAAM,iBAAiB;AAKvB,SAAS,cAAc,YAAoB,aAA4B;AACrE,QAAM,0BAAsB,0BAAO,SAAS,GAAG,WAAW;AAC1D,SAAO,GAAG,cAAc,IAAI,mBAAmB;AACjD;AAKA,SAAS,KAAK,YAAoB,aAA0B;AAE1D,UAAQ,KAAK,cAAc,SAAS,GAAG,WAAW,CAAC;AACrD;AAKA,SAAS,MAAM,YAAoB,aAA0B;AAE3D,UAAQ,MAAM,cAAc,SAAS,GAAG,WAAW,CAAC;AACtD;AAEO,MAAM,WAAW;AAAA,EACtB;AAAA,EACA;AAAA,EACA;AACF;AAQO,MAAM,sBAAsB,MAAM;AAAA,EACvC,YAAY,SAAiB;AAC3B,UAAM,OAAO;AACb,SAAK,OAAO;AAAA,EACd;AACF;","names":[]}

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
clapton-0.0.26 lib/clapton/javascripts/node_modules/msw/lib/core/utils/internal/devUtils.js.map
clapton-0.0.25 lib/clapton/javascripts/node_modules/msw/lib/core/utils/internal/devUtils.js.map
clapton-0.0.24 lib/clapton/javascripts/node_modules/msw/lib/core/utils/internal/devUtils.js.map
clapton-0.0.23 lib/clapton/javascripts/node_modules/msw/lib/core/utils/internal/devUtils.js.map
clapton-0.0.22 lib/clapton/javascripts/node_modules/msw/lib/core/utils/internal/devUtils.js.map
clapton-0.0.21 lib/clapton/javascripts/node_modules/msw/lib/core/utils/internal/devUtils.js.map
clapton-0.0.20 lib/clapton/javascripts/node_modules/msw/lib/core/utils/internal/devUtils.js.map
clapton-0.0.19 lib/clapton/javascripts/node_modules/msw/lib/core/utils/internal/devUtils.js.map
clapton-0.0.18 lib/clapton/javascripts/node_modules/msw/lib/core/utils/internal/devUtils.js.map
clapton-0.0.17 lib/clapton/javascripts/node_modules/msw/lib/core/utils/internal/devUtils.js.map
clapton-0.0.16 lib/clapton/javascripts/node_modules/msw/lib/core/utils/internal/devUtils.js.map
clapton-0.0.15 lib/clapton/javascripts/node_modules/msw/lib/core/utils/internal/devUtils.js.map
clapton-0.0.14 lib/clapton/javascripts/node_modules/msw/lib/core/utils/internal/devUtils.js.map
clapton-0.0.13 lib/clapton/javascripts/node_modules/msw/lib/core/utils/internal/devUtils.js.map
clapton-0.0.12 lib/clapton/javascripts/node_modules/msw/lib/core/utils/internal/devUtils.js.map
clapton-0.0.11 lib/clapton/javascripts/node_modules/msw/lib/core/utils/internal/devUtils.js.map
clapton-0.0.10 lib/clapton/javascripts/node_modules/msw/lib/core/utils/internal/devUtils.js.map
clapton-0.0.9 lib/clapton/javascripts/node_modules/msw/lib/core/utils/internal/devUtils.js.map
clapton-0.0.8 lib/clapton/javascripts/node_modules/msw/lib/core/utils/internal/devUtils.js.map
clapton-0.0.7 lib/clapton/javascripts/node_modules/msw/lib/core/utils/internal/devUtils.js.map