UNPKG

1.15 kBSource Map (JSON)View Raw
1{"version":3,"sources":["../src/invariant.js"],"names":["invariant","condition","format","message","error","InvariantError","name"],"mappings":";;;;;;;AAWA;;AAXA;;;;;;;;;AASA;AAIe,SAASA,SAAT,CAAmBC,SAAnB,EAAuCC,SAAiB,EAAxD,EAAkE;AAC/E,MAAID,SAAJ,EAAe;AACf,QAAME,UAAW,GAAED,MAAO;sFAA1B;AAEA,MAAIE,QAAQ,IAAIC,sBAAJ,CAAmBF,OAAnB,CAAZ;AACAC,QAAME,IAAN,GAAa,qBAAb;AACA,QAAMF,KAAN;AACD","sourcesContent":["/**\n * Copyright (c) 2017-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n */\n\n/* @flow strict */\n\nimport { InvariantError } from \"./errors.js\";\n\nexport default function invariant(condition: boolean, format: string = \"\"): void {\n if (condition) return;\n const message = `${format}\nThis is likely a bug in Prepack, not your code. Feel free to open an issue on GitHub.`;\n let error = new InvariantError(message);\n error.name = \"Invariant Violation\";\n throw error;\n}\n"],"file":"invariant.js"}
\No newline at end of file