@aws-amplify/core
Version:
Core category of aws-amplify
1 lines • 1.71 kB
Source Map (JSON)
{"version":3,"file":"errorHelpers.mjs","sources":["../../../src/ServiceWorker/errorHelpers.ts"],"sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { createAssertionFunction } from '../errors';\nexport var ServiceWorkerErrorCode;\n(function (ServiceWorkerErrorCode) {\n ServiceWorkerErrorCode[\"UndefinedInstance\"] = \"UndefinedInstance\";\n ServiceWorkerErrorCode[\"UndefinedRegistration\"] = \"UndefinedRegistration\";\n ServiceWorkerErrorCode[\"Unavailable\"] = \"Unavailable\";\n})(ServiceWorkerErrorCode || (ServiceWorkerErrorCode = {}));\nconst serviceWorkerErrorMap = {\n [ServiceWorkerErrorCode.UndefinedInstance]: {\n message: 'Service Worker instance is undefined.',\n },\n [ServiceWorkerErrorCode.UndefinedRegistration]: {\n message: 'Service Worker registration is undefined.',\n },\n [ServiceWorkerErrorCode.Unavailable]: {\n message: 'Service Worker not available.',\n },\n};\nexport const assert = createAssertionFunction(serviceWorkerErrorMap);\n"],"names":[],"mappings":";;;;AAAA;AACA;AAEU,IAAC,uBAAuB;AAClC,CAAC,UAAU,sBAAsB,EAAE;AACnC,IAAI,sBAAsB,CAAC,mBAAmB,CAAC,GAAG,mBAAmB,CAAC;AACtE,IAAI,sBAAsB,CAAC,uBAAuB,CAAC,GAAG,uBAAuB,CAAC;AAC9E,IAAI,sBAAsB,CAAC,aAAa,CAAC,GAAG,aAAa,CAAC;AAC1D,CAAC,EAAE,sBAAsB,KAAK,sBAAsB,GAAG,EAAE,CAAC,CAAC,CAAC;AAC5D,MAAM,qBAAqB,GAAG;AAC9B,IAAI,CAAC,sBAAsB,CAAC,iBAAiB,GAAG;AAChD,QAAQ,OAAO,EAAE,uCAAuC;AACxD,KAAK;AACL,IAAI,CAAC,sBAAsB,CAAC,qBAAqB,GAAG;AACpD,QAAQ,OAAO,EAAE,2CAA2C;AAC5D,KAAK;AACL,IAAI,CAAC,sBAAsB,CAAC,WAAW,GAAG;AAC1C,QAAQ,OAAO,EAAE,+BAA+B;AAChD,KAAK;AACL,CAAC,CAAC;AACU,MAAC,MAAM,GAAG,uBAAuB,CAAC,qBAAqB;;;;"}