UNPKG

rn-web-cli

Version:

React Native for Web

1 lines 3.09 kB
{"version":3,"sources":["node_modules\\prop-types\\factoryWithThrowingShims.js"],"names":["emptyFunction","require","invariant","ReactPropTypesSecret","module","exports","shim","props","propName","componentName","location","propFullName","secret","isRequired","getShim","ReactPropTypes","array","bool","func","number","object","string","symbol","any","arrayOf","element","instanceOf","node","objectOf","oneOf","oneOfType","shape","checkPropTypes","PropTypes"],"mappings":";;;;;;;;;AASA;;AAEA,GAAIA,eAAgBC,QAAQ,wBAAR,CAApB;AACA,GAAIC,WAAYD,QAAQ,oBAAR,CAAhB;AACA,GAAIE,sBAAuBF,QAAQ,4BAAR,CAA3B;;AAEAG,OAAOC,OAAP,CAAiB,UAAW;AAC1B,QAASC,KAAT,CAAcC,KAAd,CAAqBC,QAArB,CAA+BC,aAA/B,CAA8CC,QAA9C,CAAwDC,YAAxD,CAAsEC,MAAtE,CAA8E;AAC5E,GAAIA,SAAWT,oBAAf,CAAqC;;AAEnC;AACD;AACDD;AACE,KADF;AAEE;AACA,+CADA;AAEA,gDAJF;;AAMD;AACDI,KAAKO,UAAL,CAAkBP,IAAlB;AACA,QAASQ,QAAT,EAAmB;AACjB,MAAOR,KAAP;AACD;;;AAGD,GAAIS,gBAAiB;AACnBC,MAAOV,IADY;AAEnBW,KAAMX,IAFa;AAGnBY,KAAMZ,IAHa;AAInBa,OAAQb,IAJW;AAKnBc,OAAQd,IALW;AAMnBe,OAAQf,IANW;AAOnBgB,OAAQhB,IAPW;;AASnBiB,IAAKjB,IATc;AAUnBkB,QAASV,OAVU;AAWnBW,QAASnB,IAXU;AAYnBoB,WAAYZ,OAZO;AAanBa,KAAMrB,IAba;AAcnBsB,SAAUd,OAdS;AAenBe,MAAOf,OAfY;AAgBnBgB,UAAWhB,OAhBQ;AAiBnBiB,MAAOjB,OAjBY,CAArB;;;AAoBAC,eAAeiB,cAAf,CAAgChC,aAAhC;AACAe,eAAekB,SAAf,CAA2BlB,cAA3B;;AAEA,MAAOA,eAAP;AACD,CA3CD","file":"factoryWithThrowingShims.js","sourceRoot":"D:/Work/Office/react-native-on-web/cli/tmpl/project","sourcesContent":["/**\n * Copyright 2013-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'use strict';\n\nvar emptyFunction = require('fbjs/lib/emptyFunction');\nvar invariant = require('fbjs/lib/invariant');\nvar ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\n\nmodule.exports = function() {\n function shim(props, propName, componentName, location, propFullName, secret) {\n if (secret === ReactPropTypesSecret) {\n // It is still safe when called from React.\n return;\n }\n invariant(\n false,\n 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +\n 'Use PropTypes.checkPropTypes() to call them. ' +\n 'Read more at http://fb.me/use-check-prop-types'\n );\n };\n shim.isRequired = shim;\n function getShim() {\n return shim;\n };\n // Important!\n // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.\n var ReactPropTypes = {\n array: shim,\n bool: shim,\n func: shim,\n number: shim,\n object: shim,\n string: shim,\n symbol: shim,\n\n any: shim,\n arrayOf: getShim,\n element: shim,\n instanceOf: getShim,\n node: shim,\n objectOf: getShim,\n oneOf: getShim,\n oneOfType: getShim,\n shape: getShim\n };\n\n ReactPropTypes.checkPropTypes = emptyFunction;\n ReactPropTypes.PropTypes = ReactPropTypes;\n\n return ReactPropTypes;\n};\n"]}