react-google-map-street-view
Version:
React component for google street view
922 lines • 3.44 MB
JSON
{
"errors": [
"app.78927d4b9d55e389651b.js from UglifyJs\nUnexpected token: name (Demo) [app.78927d4b9d55e389651b.js:16,6]"
],
"warnings": [],
"version": "2.5.1",
"hash": "0ea476b625ef7bf25dd3",
"time": 5606,
"publicPath": "",
"assetsByChunkName": {
"app": [
"app.78927d4b9d55e389651b.js",
"app.78927d4b9d55e389651b.css"
],
"vendor": "vendor.69557ec01a869809cfff.js"
},
"assets": [
{
"name": "app.78927d4b9d55e389651b.js",
"size": 11453,
"chunks": [
0
],
"chunkNames": [
"app"
],
"emitted": true
},
{
"name": "vendor.69557ec01a869809cfff.js",
"size": 150879,
"chunks": [
1
],
"chunkNames": [
"vendor"
],
"emitted": true
},
{
"name": "app.78927d4b9d55e389651b.css",
"size": 485,
"chunks": [
0
],
"chunkNames": [
"app"
],
"emitted": true
},
{
"name": "index.html",
"size": 1009,
"chunks": [],
"chunkNames": [],
"emitted": true
}
],
"entrypoints": {
"app": {
"chunks": [
1,
0
],
"assets": [
"vendor.69557ec01a869809cfff.js",
"app.78927d4b9d55e389651b.js",
"app.78927d4b9d55e389651b.css"
]
}
},
"chunks": [
{
"id": 0,
"rendered": true,
"initial": true,
"entry": false,
"extraAsync": false,
"size": 7748,
"names": [
"app"
],
"files": [
"app.78927d4b9d55e389651b.js",
"app.78927d4b9d55e389651b.css"
],
"hash": "78927d4b9d55e389651b",
"parents": [
1
],
"modules": [
{
"id": 77,
"identifier": "/Users/ayushi/Documents/mywork/react-google-map-street-view/node_modules/babel-loader/lib/index.js!/Users/ayushi/Documents/mywork/react-google-map-street-view/node_modules/eslint-loader/index.js!/Users/ayushi/Documents/mywork/react-google-map-street-view/docs/Demo.js",
"name": "./docs/Demo.js",
"index": 169,
"index2": 173,
"size": 1937,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"assets": [],
"issuer": "/Users/ayushi/Documents/mywork/react-google-map-street-view/node_modules/babel-loader/lib/index.js!/Users/ayushi/Documents/mywork/react-google-map-street-view/node_modules/eslint-loader/index.js!/Users/ayushi/Documents/mywork/react-google-map-street-view/docs/index.js",
"issuerId": 81,
"issuerName": "./docs/index.js",
"profile": {
"factory": 9,
"building": 509,
"dependencies": 8
},
"failed": false,
"errors": 0,
"warnings": 0,
"reasons": [
{
"moduleId": 81,
"moduleIdentifier": "/Users/ayushi/Documents/mywork/react-google-map-street-view/node_modules/babel-loader/lib/index.js!/Users/ayushi/Documents/mywork/react-google-map-street-view/node_modules/eslint-loader/index.js!/Users/ayushi/Documents/mywork/react-google-map-street-view/docs/index.js",
"module": "./docs/index.js",
"moduleName": "./docs/index.js",
"type": "harmony import",
"userRequest": "./Demo",
"loc": "4:0-26"
}
],
"usedExports": [
"default"
],
"providedExports": [
"default"
],
"depth": 1,
"source": "import React, { Component } from 'react';\nimport PropTypes from 'prop-types';\nimport StreetView from '../src/StreetView';\n\nclass Demo extends Component {\n constructor(props) {\n super(props);\n this.state = {\n address: '',\n isStreetView: true\n };\n }\n render() {\n const { isStreetView, value } = this.state;\n const { key } = this.props;\n return React.createElement(\n 'div',\n { style: styles.outerContainer },\n React.createElement(\n 'h1',\n { style: styles.heading },\n 'React Google map street view'\n ),\n React.createElement(\n 'div',\n { style: styles.innerContainer },\n React.createElement(\n 'div',\n { style: styles.heading },\n React.createElement(\n 'div',\n null,\n 'Address',\n React.createElement(\n 'span',\n { style: styles.addressText },\n '(Please provide complete address with Zip code)'\n )\n ),\n React.createElement('input', {\n type: 'text', value: this.state.value, onChange: event => this.setState({ value: event.target.value }),\n style: styles.addressInput\n })\n ),\n React.createElement(\n 'div',\n null,\n React.createElement(StreetView, {\n address: value, APIkey: key, streetView: isStreetView,\n zoomLevel: 15\n })\n )\n )\n );\n }\n}\n\nDemo.propTypes = process.env.NODE_ENV !== \"production\" ? {\n key: PropTypes.string.isRequired\n} : {};\n\nconst styles = {\n outerContainer: {\n paddingLeft: 20\n },\n heading: {\n paddingBottom: 20,\n paddingRight: 20\n },\n innerContainer: {\n display: 'flex'\n },\n addressInput: {\n borderBottom: '1px solid black',\n width: '20vw',\n marginTop: 20,\n marginBottom: 20\n },\n addressText: {\n fontSize: 14\n }\n};\n\nexport default Demo;"
},
{
"id": 78,
"identifier": "/Users/ayushi/Documents/mywork/react-google-map-street-view/node_modules/extract-text-webpack-plugin/loader.js??ref--3-0!/Users/ayushi/Documents/mywork/react-google-map-street-view/node_modules/style-loader/index.js!/Users/ayushi/Documents/mywork/react-google-map-street-view/node_modules/css-loader/index.js!/Users/ayushi/Documents/mywork/react-google-map-street-view/docs/main.css",
"name": "./docs/main.css",
"index": 175,
"index2": 178,
"size": 41,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"assets": [],
"issuer": "/Users/ayushi/Documents/mywork/react-google-map-street-view/node_modules/babel-loader/lib/index.js!/Users/ayushi/Documents/mywork/react-google-map-street-view/node_modules/eslint-loader/index.js!/Users/ayushi/Documents/mywork/react-google-map-street-view/docs/index.js",
"issuerId": 81,
"issuerName": "./docs/index.js",
"profile": {
"factory": 531,
"building": 4,
"dependencies": 74
},
"failed": false,
"errors": 0,
"warnings": 0,
"reasons": [
{
"moduleId": 81,
"moduleIdentifier": "/Users/ayushi/Documents/mywork/react-google-map-street-view/node_modules/babel-loader/lib/index.js!/Users/ayushi/Documents/mywork/react-google-map-street-view/node_modules/eslint-loader/index.js!/Users/ayushi/Documents/mywork/react-google-map-street-view/docs/index.js",
"module": "./docs/index.js",
"moduleName": "./docs/index.js",
"type": "harmony import",
"userRequest": "./main.css",
"loc": "7:0-20"
}
],
"usedExports": false,
"providedExports": null,
"depth": 1,
"source": "// removed by extract-text-webpack-plugin"
},
{
"id": 79,
"identifier": "/Users/ayushi/Documents/mywork/react-google-map-street-view/node_modules/extract-text-webpack-plugin/loader.js??ref--3-0!/Users/ayushi/Documents/mywork/react-google-map-street-view/node_modules/style-loader/index.js!/Users/ayushi/Documents/mywork/react-google-map-street-view/node_modules/css-loader/index.js!/Users/ayushi/Documents/mywork/react-google-map-street-view/style.css",
"name": "./style.css",
"index": 180,
"index2": 180,
"size": 41,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"assets": [],
"issuer": "/Users/ayushi/Documents/mywork/react-google-map-street-view/node_modules/babel-loader/lib/index.js!/Users/ayushi/Documents/mywork/react-google-map-street-view/node_modules/eslint-loader/index.js!/Users/ayushi/Documents/mywork/react-google-map-street-view/docs/index.js",
"issuerId": 81,
"issuerName": "./docs/index.js",
"profile": {
"factory": 536,
"building": 1
},
"failed": false,
"errors": 0,
"warnings": 0,
"reasons": [
{
"moduleId": 81,
"moduleIdentifier": "/Users/ayushi/Documents/mywork/react-google-map-street-view/node_modules/babel-loader/lib/index.js!/Users/ayushi/Documents/mywork/react-google-map-street-view/node_modules/eslint-loader/index.js!/Users/ayushi/Documents/mywork/react-google-map-street-view/docs/index.js",
"module": "./docs/index.js",
"moduleName": "./docs/index.js",
"type": "harmony import",
"userRequest": "../style.css",
"loc": "8:0-22"
}
],
"usedExports": false,
"providedExports": null,
"depth": 1,
"source": "// removed by extract-text-webpack-plugin"
},
{
"id": 81,
"identifier": "/Users/ayushi/Documents/mywork/react-google-map-street-view/node_modules/babel-loader/lib/index.js!/Users/ayushi/Documents/mywork/react-google-map-street-view/node_modules/eslint-loader/index.js!/Users/ayushi/Documents/mywork/react-google-map-street-view/docs/index.js",
"name": "./docs/index.js",
"index": 0,
"index2": 181,
"size": 606,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"assets": [],
"issuer": null,
"issuerId": null,
"issuerName": null,
"profile": {
"factory": 209,
"building": 737
},
"failed": false,
"errors": 0,
"warnings": 0,
"reasons": [],
"usedExports": true,
"providedExports": null,
"depth": 0,
"source": "/* eslint-disable global-require, import/no-unresolved, react/no-multi-comp */\nimport React from 'react';\nimport ReactDOM from 'react-dom';\nimport Demo from './Demo';\n\n// import 'purecss/build/pure.css';\nimport './main.css';\nimport '../style.css';\n\n// Add your documentation imports here. These are available to\n// React specimen. Do NOT pass React here as Catalog does that.\n\nconst key = 'AIzaSyCjyF9AD_G_2bLXCe53iE2kvLqh93QFrP8';\n\n// Catalog - logoSrc=\"../images/logo.png\"\nReactDOM.render(React.createElement(\n 'div',\n null,\n React.createElement(Demo, { key: key })\n), document.getElementById('app'));"
},
{
"id": 82,
"identifier": "/Users/ayushi/Documents/mywork/react-google-map-street-view/node_modules/babel-loader/lib/index.js!/Users/ayushi/Documents/mywork/react-google-map-street-view/node_modules/eslint-loader/index.js!/Users/ayushi/Documents/mywork/react-google-map-street-view/src/StreetView.js",
"name": "./src/StreetView.js",
"index": 172,
"index2": 172,
"size": 4852,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"assets": [],
"issuer": "/Users/ayushi/Documents/mywork/react-google-map-street-view/node_modules/babel-loader/lib/index.js!/Users/ayushi/Documents/mywork/react-google-map-street-view/node_modules/eslint-loader/index.js!/Users/ayushi/Documents/mywork/react-google-map-street-view/docs/Demo.js",
"issuerId": 77,
"issuerName": "./docs/Demo.js",
"profile": {
"factory": 13,
"building": 305,
"dependencies": 14
},
"failed": false,
"errors": 0,
"warnings": 0,
"reasons": [
{
"moduleId": 77,
"moduleIdentifier": "/Users/ayushi/Documents/mywork/react-google-map-street-view/node_modules/babel-loader/lib/index.js!/Users/ayushi/Documents/mywork/react-google-map-street-view/node_modules/eslint-loader/index.js!/Users/ayushi/Documents/mywork/react-google-map-street-view/docs/Demo.js",
"module": "./docs/Demo.js",
"moduleName": "./docs/Demo.js",
"type": "harmony import",
"userRequest": "../src/StreetView",
"loc": "3:0-43"
}
],
"usedExports": [
"default"
],
"providedExports": [
"default"
],
"depth": 2,
"source": "import React, { Component } from 'react';\nimport PropTypes from 'prop-types';\nimport GoogleMapsLoader from 'google-maps';\nimport { defaultMapStyle, defaultTextStyle } from './styles';\n\nclass StreetView extends Component {\n constructor(props) {\n super(props);\n this.state = {\n error: false\n };\n }\n\n componentWillMount() {\n GoogleMapsLoader.KEY = this.props.APIkey;\n GoogleMapsLoader.LIBRARIES = ['geometry', 'places'];\n const vm = this;\n this.promise = new Promise((resolve, reject) => {\n GoogleMapsLoader.load(google => {\n if (google) {\n vm.google = google;\n resolve(google);\n } else {\n reject('Unable to fetch google maps loader');\n }\n });\n });\n if (!this.props.address) {\n this.setState({ error: true });\n }\n }\n\n componentDidMount() {\n this.node = this.map;\n if (!this.state.error) {\n this.displayMap();\n }\n }\n\n componentWillReceiveProps(nextProps) {\n if (nextProps.address && (nextProps.address !== this.props.address || nextProps.streetView !== this.props.streetView)) {\n this.setState({ error: false });\n this.displayMap();\n }\n }\n\n getLatLangFromAddress() {\n const geocoder = new this.google.maps.Geocoder();\n return new Promise((resolve, reject) => {\n geocoder.geocode({\n address: this.props.address\n }, (results, geoStatus) => {\n if (geoStatus === this.google.maps.GeocoderStatus.OK) {\n resolve(results[0].geometry.location);\n } else {\n this.setState({ error: true });\n reject('Unable to fetch Latitude and Longitutde');\n }\n });\n });\n }\n\n renderPanaroma(latLang, panoId) {\n const streetView = new this.google.maps.StreetViewService();\n streetView.getPanoramaByLocation(panoId, this.props.streetViewZoom, (data, status) => {\n if (status === this.google.maps.StreetViewStatus.OK) {\n const panorama = new this.google.maps.StreetViewPanorama(this.node);\n panorama.setPano(data.location.pano);\n const heading = this.google.maps.geometry.spherical.computeHeading(data.location.latLng, latLang);\n panorama.setPov({\n heading,\n pitch: 0,\n zoom: 1\n });\n panorama.setVisible(true);\n } else {\n this.renderMapView(latLang);\n }\n });\n }\n\n renderMapView(latLang) {\n const map = new this.google.maps.Map(this.node, { center: latLang, zoom: this.props.zoomLevel });\n const marker = new this.google.maps.Marker({\n position: latLang\n });\n marker.setMap(map);\n }\n\n directionsService(address, latLang) {\n const directionsService = new this.google.maps.DirectionsService();\n const request = {\n origin: address,\n destination: address,\n travelMode: this.google.maps.DirectionsTravelMode.DRIVING\n };\n directionsService.route(request, (response, directionStatus) => {\n if (directionStatus === this.google.maps.DirectionsStatus.OK) {\n const panoId = response.routes[0].legs[0].start_location;\n this.renderPanaroma(latLang, panoId);\n }\n });\n }\n\n displayMap() {\n const address = this.props.address + this.props.zip;\n if (address) {\n this.promise.then(() => {\n this.getLatLangFromAddress(address).then(latLang => {\n if (this.props.streetView) {\n this.directionsService(address, latLang);\n } else {\n this.renderMapView(latLang);\n }\n }).catch(() => {\n this.setState({ error: true });\n });\n });\n }\n }\n\n render() {\n const { address, mapStyle, textStyle, defaultText, errorText } = this.props;\n const { error } = this.state;\n\n let displayText = React.createElement(\n 'div',\n { style: textStyle },\n ' ',\n defaultText,\n ' '\n );\n if (address && error) {\n displayText = React.createElement(\n 'div',\n { style: textStyle },\n ' ',\n errorText,\n ' '\n );\n }\n return React.createElement(\n 'div',\n { ref: div => {\n this.map = div;\n }, style: mapStyle },\n (!address || error) && displayText\n );\n }\n}\n\nStreetView.defaultProps = {\n streetView: 1,\n zoomLevel: 10,\n streetViewZoom: 50,\n zip: 0,\n mapStyle: defaultMapStyle,\n textStyle: defaultTextStyle,\n defaultText: 'Please Provide address',\n errorText: 'Couldn\\'t load maps for the address'\n};\n\nStreetView.propTypes = process.env.NODE_ENV !== \"production\" ? {\n APIkey: PropTypes.string.isRequired,\n mapStyle: PropTypes.any,\n textStyle: PropTypes.object,\n address: PropTypes.string.isRequired,\n zip: PropTypes.number,\n streetView: PropTypes.bool,\n zoomLevel: PropTypes.number,\n streetViewZoom: PropTypes.number,\n defaultText: PropTypes.string,\n errorText: PropTypes.string\n} : {};\n\nexport default StreetView;"
},
{
"id": 83,
"identifier": "/Users/ayushi/Documents/mywork/react-google-map-street-view/node_modules/babel-loader/lib/index.js!/Users/ayushi/Documents/mywork/react-google-map-street-view/node_modules/eslint-loader/index.js!/Users/ayushi/Documents/mywork/react-google-map-street-view/src/styles.js",
"name": "./src/styles.js",
"index": 174,
"index2": 171,
"size": 271,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"assets": [],
"issuer": "/Users/ayushi/Documents/mywork/react-google-map-street-view/node_modules/babel-loader/lib/index.js!/Users/ayushi/Documents/mywork/react-google-map-street-view/node_modules/eslint-loader/index.js!/Users/ayushi/Documents/mywork/react-google-map-street-view/src/StreetView.js",
"issuerId": 82,
"issuerName": "./src/StreetView.js",
"profile": {
"factory": 62,
"building": 68
},
"failed": false,
"errors": 0,
"warnings": 0,
"reasons": [
{
"moduleId": 82,
"moduleIdentifier": "/Users/ayushi/Documents/mywork/react-google-map-street-view/node_modules/babel-loader/lib/index.js!/Users/ayushi/Documents/mywork/react-google-map-street-view/node_modules/eslint-loader/index.js!/Users/ayushi/Documents/mywork/react-google-map-street-view/src/StreetView.js",
"module": "./src/StreetView.js",
"moduleName": "./src/StreetView.js",
"type": "harmony import",
"userRequest": "./styles",
"loc": "4:0-61"
}
],
"usedExports": [
"defaultMapStyle",
"defaultTextStyle"
],
"providedExports": [
"defaultMapStyle",
"defaultTextStyle"
],
"depth": 3,
"source": "export const defaultMapStyle = {\n width: '40vw',\n background: '#ffffff',\n height: '60vh',\n border: '1px solid #000000'\n};\n\nexport const defaultTextStyle = {\n height: '100%',\n display: 'flex',\n justifyContent: 'center',\n alignItems: 'center',\n fontSize: '15px'\n};"
}
],
"filteredModules": 0,
"origins": [
{
"moduleId": 81,
"module": "/Users/ayushi/Documents/mywork/react-google-map-street-view/node_modules/babel-loader/lib/index.js!/Users/ayushi/Documents/mywork/react-google-map-street-view/node_modules/eslint-loader/index.js!/Users/ayushi/Documents/mywork/react-google-map-street-view/docs/index.js",
"moduleIdentifier": "/Users/ayushi/Documents/mywork/react-google-map-street-view/node_modules/babel-loader/lib/index.js!/Users/ayushi/Documents/mywork/react-google-map-street-view/node_modules/eslint-loader/index.js!/Users/ayushi/Documents/mywork/react-google-map-street-view/docs/index.js",
"moduleName": "./docs/index.js",
"loc": "",
"name": "app",
"reasons": []
}
]
},
{
"id": 1,
"rendered": true,
"initial": true,
"entry": true,
"extraAsync": false,
"size": 693825,
"names": [
"vendor"
],
"files": [
"vendor.69557ec01a869809cfff.js"
],
"hash": "69557ec01a869809cfff",
"parents": [],
"modules": [
{
"id": 0,
"identifier": "/Users/ayushi/Documents/mywork/react-google-map-street-view/node_modules/fbjs/lib/invariant.js",
"name": "./~/fbjs/lib/invariant.js",
"index": 7,
"index2": 2,
"size": 1632,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
1
],
"assets": [],
"issuer": "/Users/ayushi/Documents/mywork/react-google-map-street-view/node_modules/prop-types/factoryWithThrowingShims.js",
"issuerId": 98,
"issuerName": "./~/prop-types/factoryWithThrowingShims.js",
"profile": {
"factory": 136,
"building": 64
},
"failed": false,
"errors": 0,
"warnings": 0,
"reasons": [
{
"moduleId": 4,
"moduleIdentifier": "/Users/ayushi/Documents/mywork/react-google-map-street-view/node_modules/react-dom/lib/ReactDOMComponentTree.js",
"module": "./~/react-dom/lib/ReactDOMComponentTree.js",
"moduleName": "./~/react-dom/lib/ReactDOMComponentTree.js",
"type": "cjs require",
"userRequest": "fbjs/lib/invariant",
"loc": "18:16-45"
},
{
"moduleId": 8,
"moduleIdentifier": "/Users/ayushi/Documents/mywork/react-google-map-street-view/node_modules/react-dom/lib/ReactUpdates.js",
"module": "./~/react-dom/lib/ReactUpdates.js",
"moduleName": "./~/react-dom/lib/ReactUpdates.js",
"type": "cjs require",
"userRequest": "fbjs/lib/invariant",
"loc": "22:16-45"
},
{
"moduleId": 11,
"moduleIdentifier": "/Users/ayushi/Documents/mywork/react-google-map-street-view/node_modules/react-dom/lib/PooledClass.js",
"module": "./~/react-dom/lib/PooledClass.js",
"moduleName": "./~/react-dom/lib/PooledClass.js",
"type": "cjs require",
"userRequest": "fbjs/lib/invariant",
"loc": "16:16-45"
},
{
"moduleId": 13,
"moduleIdentifier": "/Users/ayushi/Documents/mywork/react-google-map-street-view/node_modules/react-dom/lib/DOMProperty.js",
"module": "./~/react-dom/lib/DOMProperty.js",
"moduleName": "./~/react-dom/lib/DOMProperty.js",
"type": "cjs require",
"userRequest": "fbjs/lib/invariant",
"loc": "15:16-45"
},
{
"moduleId": 19,
"moduleIdentifier": "/Users/ayushi/Documents/mywork/react-google-map-street-view/node_modules/react-dom/lib/EventPluginHub.js",
"module": "./~/react-dom/lib/EventPluginHub.js",
"moduleName": "./~/react-dom/lib/EventPluginHub.js",
"type": "cjs require",
"userRequest": "fbjs/lib/invariant",
"loc": "21:16-45"
},
{
"moduleId": 25,
"moduleIdentifier": "/Users/ayushi/Documents/mywork/react-google-map-street-view/node_modules/react-dom/lib/Transaction.js",
"module": "./~/react-dom/lib/Transaction.js",
"moduleName": "./~/react-dom/lib/Transaction.js",
"type": "cjs require",
"userRequest": "fbjs/lib/invariant",
"loc": "16:16-45"
},
{
"moduleId": 32,
"moduleIdentifier": "/Users/ayushi/Documents/mywork/react-google-map-street-view/node_modules/react-dom/lib/EventPluginRegistry.js",
"module": "./~/react-dom/lib/EventPluginRegistry.js",
"moduleName": "./~/react-dom/lib/EventPluginRegistry.js",
"type": "cjs require",
"userRequest": "fbjs/lib/invariant",
"loc": "16:16-45"
},
{
"moduleId": 33,
"moduleIdentifier": "/Users/ayushi/Documents/mywork/react-google-map-street-view/node_modules/react-dom/lib/EventPluginUtils.js",
"module": "./~/react-dom/lib/EventPluginUtils.js",
"moduleName": "./~/react-dom/lib/EventPluginUtils.js",
"type": "cjs require",
"userRequest": "fbjs/lib/invariant",
"loc": "17:16-45"
},
{
"moduleId": 35,
"moduleIdentifier": "/Users/ayushi/Documents/mywork/react-google-map-street-view/node_modules/react-dom/lib/LinkedValueUtils.js",
"module": "./~/react-dom/lib/LinkedValueUtils.js",
"moduleName": "./~/react-dom/lib/LinkedValueUtils.js",
"type": "cjs require",
"userRequest": "fbjs/lib/invariant",
"loc": "21:16-45"
},
{
"moduleId": 36,
"moduleIdentifier": "/Users/ayushi/Documents/mywork/react-google-map-street-view/node_modules/react-dom/lib/ReactComponentEnvironment.js",
"module": "./~/react-dom/lib/ReactComponentEnvironment.js",
"moduleName": "./~/react-dom/lib/ReactComponentEnvironment.js",
"type": "cjs require",
"userRequest": "fbjs/lib/invariant",
"loc": "16:16-45"
},
{
"moduleId": 38,
"moduleIdentifier": "/Users/ayushi/Documents/mywork/react-google-map-street-view/node_modules/react-dom/lib/ReactUpdateQueue.js",
"module": "./~/react-dom/lib/ReactUpdateQueue.js",
"moduleName": "./~/react-dom/lib/ReactUpdateQueue.js",
"type": "cjs require",
"userRequest": "fbjs/lib/invariant",
"loc": "20:16-45"
},
{
"moduleId": 46,
"moduleIdentifier": "/Users/ayushi/Documents/mywork/react-google-map-street-view/node_modules/react/lib/ReactComponent.js",
"module": "./~/react/lib/ReactComponent.js",
"moduleName": "./~/react/lib/ReactComponent.js",
"type": "cjs require",
"userRequest": "fbjs/lib/invariant",
"loc": "19:16-45"
},
{
"moduleId": 55,
"moduleIdentifier": "/Users/ayushi/Documents/mywork/react-google-map-street-view/node_modules/react-dom/lib/CallbackQueue.js",
"module": "./~/react-dom/lib/CallbackQueue.js",
"moduleName": "./~/react-dom/lib/CallbackQueue.js",
"type": "cjs require",
"userRequest": "fbjs/lib/invariant",
"loc": "20:16-45"
},
{
"moduleId": 61,
"moduleIdentifier": "/Users/ayushi/Documents/mywork/react-google-map-street-view/node_modules/react-dom/lib/ReactHostComponent.js",
"module": "./~/react-dom/lib/ReactHostComponent.js",
"moduleName": "./~/react-dom/lib/ReactHostComponent.js",
"type": "cjs require",
"userRequest": "fbjs/lib/invariant",
"loc": "15:16-45"
},
{
"moduleId": 63,
"moduleIdentifier": "/Users/ayushi/Documents/mywork/react-google-map-street-view/node_modules/react-dom/lib/ReactMount.js",
"module": "./~/react-dom/lib/ReactMount.js",
"moduleName": "./~/react-dom/lib/ReactMount.js",
"type": "cjs require",
"userRequest": "fbjs/lib/invariant",
"loc": "33:16-45"
},
{
"moduleId": 64,
"moduleIdentifier": "/Users/ayushi/Documents/mywork/react-google-map-street-view/node_modules/react-dom/lib/ReactNodeTypes.js",
"module": "./~/react-dom/lib/ReactNodeTypes.js",
"moduleName": "./~/react-dom/lib/ReactNodeTypes.js",
"type": "cjs require",
"userRequest": "fbjs/lib/invariant",
"loc": "18:16-45"
},
{
"moduleId": 66,
"moduleIdentifier": "/Users/ayushi/Documents/mywork/react-google-map-street-view/node_modules/react-dom/lib/accumulateInto.js",
"module": "./~/react-dom/lib/accumulateInto.js",
"moduleName": "./~/react-dom/lib/accumulateInto.js",
"type": "cjs require",
"userRequest": "fbjs/lib/invariant",
"loc": "16:16-45"
},
{
"moduleId": 70,
"moduleIdentifier": "/Users/ayushi/Documents/mywork/react-google-map-street-view/node_modules/react-dom/lib/instantiateReactComponent.js",
"module": "./~/react-dom/lib/instantiateReactComponent.js",
"moduleName": "./~/react-dom/lib/instantiateReactComponent.js",
"type": "cjs require",
"userRequest": "fbjs/lib/invariant",
"loc": "21:16-45"
},
{
"moduleId": 73,
"moduleIdentifier": "/Users/ayushi/Documents/mywork/react-google-map-street-view/node_modules/react-dom/lib/traverseAllChildren.js",
"module": "./~/react-dom/lib/traverseAllChildren.js",
"moduleName": "./~/react-dom/lib/traverseAllChildren.js",
"type": "cjs require",
"userRequest": "fbjs/lib/invariant",
"loc": "19:16-45"
},
{
"moduleId": 74,
"moduleIdentifier": "/Users/ayushi/Documents/mywork/react-google-map-street-view/node_modules/react/lib/ReactComponentTreeHook.js",
"module": "./~/react/lib/ReactComponentTreeHook.js",
"moduleName": "./~/react/lib/ReactComponentTreeHook.js",
"type": "cjs require",
"userRequest": "fbjs/lib/invariant",
"loc": "18:16-45"
},
{
"moduleId": 87,
"moduleIdentifier": "/Users/ayushi/Documents/mywork/react-google-map-street-view/node_modules/fbjs/lib/createArrayFromMixed.js",
"module": "./~/fbjs/lib/createArrayFromMixed.js",
"moduleName": "./~/fbjs/lib/createArrayFromMixed.js",
"type": "cjs require",
"userRequest": "./invariant",
"loc": "14:16-38"
},
{
"moduleId": 88,
"moduleIdentifier": "/Users/ayushi/Documents/mywork/react-google-map-street-view/node_modules/fbjs/lib/createNodesFromMarkup.js",
"module": "./~/fbjs/lib/createNodesFromMarkup.js",
"moduleName": "./~/fbjs/lib/createNodesFromMarkup.js",
"type": "cjs require",
"userRequest": "./invariant",
"loc": "20:16-38"
},
{
"moduleId": 89,
"moduleIdentifier": "/Users/ayushi/Documents/mywork/react-google-map-street-view/node_modules/fbjs/lib/getMarkupWrap.js",
"module": "./~/fbjs/lib/getMarkupWrap.js",
"moduleName": "./~/fbjs/lib/getMarkupWrap.js",
"type": "cjs require",
"userRequest": "./invariant",
"loc": "17:16-38"
},
{
"moduleId": 98,
"moduleIdentifier": "/Users/ayushi/Documents/mywork/react-google-map-street-view/node_modules/prop-types/factoryWithThrowingShims.js",
"module": "./~/prop-types/factoryWithThrowingShims.js",
"moduleName": "./~/prop-types/factoryWithThrowingShims.js",
"type": "cjs require",
"userRequest": "fbjs/lib/invariant",
"loc": "13:16-45"
},
{
"moduleId": 99,
"moduleIdentifier": "/Users/ayushi/Documents/mywork/react-google-map-street-view/node_modules/prop-types/factoryWithTypeCheckers.js",
"module": "./~/prop-types/factoryWithTypeCheckers.js",
"moduleName": "./~/prop-types/factoryWithTypeCheckers.js",
"type": "cjs require",
"userRequest": "fbjs/lib/invariant",
"loc": "13:16-45"
},
{
"moduleId": 106,
"moduleIdentifier": "/Users/ayushi/Documents/mywork/react-google-map-street-view/node_modules/react-dom/lib/Danger.js",
"module": "./~/react-dom/lib/Danger.js",
"moduleName": "./~/react-dom/lib/Danger.js",
"type": "cjs require",
"userRequest": "fbjs/lib/invariant",
"loc": "20:16-45"
},
{
"moduleId": 113,
"moduleIdentifier": "/Users/ayushi/Documents/mywork/react-google-map-street-view/node_modules/react-dom/lib/ReactCompositeComponent.js",
"module": "./~/react-dom/lib/ReactCompositeComponent.js",
"moduleName": "./~/react-dom/lib/ReactCompositeComponent.js",
"type": "cjs require",
"userRequest": "fbjs/lib/invariant",
"loc": "30:16-45"
},
{
"moduleId": 115,
"moduleIdentifier": "/Users/ayushi/Documents/mywork/react-google-map-street-view/node_modules/react-dom/lib/ReactDOMComponent.js",
"module": "./~/react-dom/lib/ReactDOMComponent.js",
"moduleName": "./~/react-dom/lib/ReactDOMComponent.js",
"type": "cjs require",
"userRequest": "fbjs/lib/invariant",
"loc": "39:16-45"
},
{
"moduleId": 120,
"moduleIdentifier": "/Users/ayushi/Documents/mywork/react-google-map-street-view/node_modules/react-dom/lib/ReactDOMInput.js",
"module": "./~/react-dom/lib/ReactDOMInput.js",
"moduleName": "./~/react-dom/lib/ReactDOMInput.js",
"type": "cjs require",
"userRequest": "fbjs/lib/invariant",
"loc": "21:16-45"
},
{
"moduleId": 123,
"moduleIdentifier": "/Users/ayushi/Documents/mywork/react-google-map-street-view/node_modules/react-dom/lib/ReactDOMTextComponent.js",
"module": "./~/react-dom/lib/ReactDOMTextComponent.js",
"moduleName": "./~/react-dom/lib/ReactDOMTextComponent.js",
"type": "cjs require",
"userRequest": "fbjs/lib/invariant",
"loc": "21:16-45"
},
{
"moduleId": 124,
"moduleIdentifier": "/Users/ayushi/Documents/mywork/react-google-map-street-view/node_modules/react-dom/lib/ReactDOMTextarea.js",
"module": "./~/react-dom/lib/ReactDOMTextarea.js",
"moduleName": "./~/react-dom/lib/ReactDOMTextarea.js",
"type": "cjs require",
"userRequest": "fbjs/lib/invariant",
"loc": "20:16-45"
},
{
"moduleId": 125,
"moduleIdentifier": "/Users/ayushi/Documents/mywork/react-google-map-street-view/node_modules/react-dom/lib/ReactDOMTreeTraversal.js",
"module": "./~/react-dom/lib/ReactDOMTreeTraversal.js",
"moduleName": "./~/react-dom/lib/ReactDOMTreeTraversal.js",
"type": "cjs require",
"userRequest": "fbjs/lib/invariant",
"loc": "15:16-45"
},
{
"moduleId": 133,
"moduleIdentifier": "/Users/ayushi/Documents/mywork/react-google-map-street-view/node_modules/react-dom/lib/ReactMultiChild.js",
"module": "./~/react-dom/lib/ReactMultiChild.js",
"moduleName": "./~/react-dom/lib/ReactMultiChild.js",
"type": "cjs require",
"userRequest": "fbjs/lib/invariant",
"loc": "25:16-45"
},
{
"moduleId": 134,
"moduleIdentifier": "/Users/ayushi/Documents/mywork/react-google-map-street-view/node_modules/react-dom/lib/ReactOwner.js",
"module": "./~/react-dom/lib/ReactOwner.js",
"moduleName": "./~/react-dom/lib/ReactOwner.js",
"type": "cjs require",
"userRequest": "fbjs/lib/invariant",
"loc": "16:16-45"
},
{
"moduleId": 143,
"moduleIdentifier": "/Users/ayushi/Documents/mywork/react-google-map-street-view/node_modules/react-dom/lib/SimpleEventPlugin.js",
"module": "./~/react-dom/lib/SimpleEventPlugin.js",
"moduleName": "./~/react-dom/lib/SimpleEventPlugin.js",
"type": "cjs require",
"userRequest": "fbjs/lib/invariant",
"loc": "33:16-45"
},
{
"moduleId": 156,
"moduleIdentifier": "/Users/ayushi/Documents/mywork/react-google-map-street-view/node_modules/react-dom/lib/findDOMNode.js",
"module": "./~/react-dom/lib/findDOMNode.js",
"moduleName": "./~/react-dom/lib/findDOMNode.js",
"type": "cjs require",
"userRequest": "fbjs/lib/invariant",
"loc": "20:16-45"
},
{
"moduleId": 165,
"moduleIdentifier": "/Users/ayushi/Documents/mywork/react-google-map-street-view/node_modules/react/lib/PooledClass.js",
"module": "./~/react/lib/PooledClass.js",
"moduleName": "./~/react/lib/PooledClass.js",
"type": "cjs require",
"userRequest": "fbjs/lib/invariant",
"loc": "16:16-45"
},
{
"moduleId": 167,
"moduleIdentifier": "/Users/ayushi/Documents/mywork/react-google-map-street-view/node_modules/react/lib/ReactClass.js",
"module": "./~/react/lib/ReactClass.js",
"moduleName": "./~/react/lib/ReactClass.js",
"type": "cjs require",
"userRequest": "fbjs/lib/invariant",
"loc": "22:16-45"
},
{
"moduleId": 175,
"moduleIdentifier": "/Users/ayushi/Documents/mywork/react-google-map-street-view/node_modules/react/lib/onlyChild.js",
"module": "./~/react/lib/onlyChild.js",
"moduleName": "./~/react/lib/onlyChild.js",
"type": "cjs require",
"userRequest": "fbjs/lib/invariant",
"loc": "16:16-45"
},
{
"moduleId": 176,
"moduleIdentifier": "/Users/ayushi/Documents/mywork/react-google-map-street-view/node_modules/react/lib/traverseAllChildren.js",
"module": "./~/react/lib/traverseAllChildren.js",
"moduleName": "./~/react/lib/traverseAllChildren.js",
"type": "cjs require",
"userRequest": "fbjs/lib/invariant",
"loc": "19:16-45"
}
],
"usedExports": true,
"providedExports": null,
"depth": 4,
"source": "/**\n * Copyright (c) 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\n'use strict';\n\n/**\n * Use invariant() to assert state which your program assumes to be true.\n *\n * Provide sprintf-style format (only %s is supported) and arguments\n * to provide information about what broke and what you were\n * expecting.\n *\n * The invariant message will be stripped in production, but the invariant\n * will remain to ensure logic does not differ in production.\n */\n\nvar validateFormat = function validateFormat(format) {};\n\nif (process.env.NODE_ENV !== 'production') {\n validateFormat = function validateFormat(format) {\n if (format === undefined) {\n throw new Error('invariant requires an error message argument');\n }\n };\n}\n\nfunction invariant(condition, format, a, b, c, d, e, f) {\n validateFormat(format);\n\n if (!condition) {\n var error;\n if (format === undefined) {\n error = new Error('Minified exception occurred; use the non-minified dev environment ' + 'for the full error message and additional helpful warnings.');\n } else {\n var args = [a, b, c, d, e, f];\n var argIndex = 0;\n error = new Error(format.replace(/%s/g, function () {\n return args[argIndex++];\n }));\n error.name = 'Invariant Violation';\n }\n\n error.framesToPop = 1; // we don't care about invariant's own frame\n throw error;\n }\n}\n\nmodule.exports = invariant;"
},
{
"id": 1,
"identifier": "/Users/ayushi/Documents/mywork/react-google-map-street-view/node_modules/fbjs/lib/warning.js",
"name": "./~/fbjs/lib/warning.js",
"index": 10,
"index2": 6,
"size": 2105,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
1
],
"assets": [],
"issuer": "/Users/ayushi/Documents/mywork/react-google-map-street-view/node_modules/react/lib/React.js",
"issuerId": 15,
"issuerName": "./~/react/lib/React.js",
"profile": {
"factory": 217,
"building": 63,
"dependencies": 1
},
"failed": false,
"errors": 0,
"warnings": 0,
"reasons": [
{
"moduleId": 9,
"moduleIdentifier": "/Users/ayushi/Documents/mywork/react-google-map-street-view/node_modules/react-dom/lib/SyntheticEvent.js",
"module": "./~/react-dom/lib/SyntheticEvent.js",
"moduleName": "./~/react-dom/lib/SyntheticEvent.js",
"type": "cjs require",
"userRequest": "fbjs/lib/warning",
"loc": "18:14-41"
},
{
"moduleId": 14,
"moduleIdentifier": "/Users/ayushi/Documents/mywork/react-google-map-street-view/node_modules/react-dom/lib/ReactReconciler.js",
"module": "./~/react-dom/lib/ReactReconciler.js",
"moduleName": "./~/react-dom/lib/ReactReconciler.js",
"type": "cjs require",
"userRequest": "fbjs/lib/warning",
"loc": "16:14-41"
},
{
"moduleId": 15,
"moduleIdentifier": "/Users/ayushi/Documents/mywork/react-google-map-street-view/node_modules/react/lib/React.js",
"module": "./~/react/lib/React.js",
"moduleName": "./~/react/lib/React.js",
"type": "cjs require",
"userRequest": "fbjs/lib/warning",
"loc": "25:14-41"
},
{
"moduleId": 16,
"moduleIdentifier": "/Users/ayushi/Documents/mywork/react-google-map-street-view/node_modules/react/lib/ReactElement.js",
"module": "./~/react/lib/ReactElement.js",
"moduleName": "./~/react/lib/ReactElement.js",
"type": "cjs require",
"userRequest": "fbjs/lib/warning",
"loc": "17:14-41"
},
{
"moduleId": 20,
"moduleIdentifier": "/Users/ayushi/Documents/mywork/react-google-map-street-view/node_modules/react-dom/lib/EventPropagators.js",
"module": "./~/react-dom/lib/EventPropagators.js",
"moduleName": "./~/react-dom/lib/EventPropagators.js",
"type": "cjs require",
"userRequest": "fbjs/lib/warning",
"loc": "18:14-41"
},
{
"moduleId": 33,
"moduleIdentifier": "/Users/ayushi/Documents/mywork/react-google-map-street-view/node_modules/react-dom/lib/EventPluginUtils.js",
"module": "./~/react-dom/lib/EventPluginUtils.js",
"moduleName": "./~/react-dom/lib/EventPluginUtils.js",
"type": "cjs require",
"userRequest": "fbjs/lib/warning",
"loc": "18:14-41"
},
{
"moduleId": 35,
"moduleIdentifier": "/Users/ayushi/Documents/mywork/react-google-map-street-view/node_modules/react-dom/lib/LinkedValueUtils.js",
"module": "./~/react-dom/lib/LinkedValueUtils.js",
"moduleName": "./~/react-dom/lib/LinkedValueUtils.js",
"type": "cjs require",
"userRequest": "fbjs/lib/warning",
"loc": "22:14-41"
},
{
"moduleId": 38,
"moduleIdentifier": "/Users/ayushi/Documents/mywork/react-google-map-street-view/node_modules/react-dom/lib/ReactUpdateQueue.js",
"module": "./~/react-dom/lib/ReactUpdateQueue.js",
"moduleName": "./~/react-dom/lib/ReactUpdateQueue.js",
"type": "cjs require",
"userRequest": "fbjs/lib/warning",
"loc": "21:14-41"
},
{
"moduleId": 45,
"moduleIdentifier": "/Users/ayushi/Documents/mywork/react-google-map-street-view/node_modules/react-dom/lib/validateDOMNesting.js",
"module": "./~/react-dom/lib/validateDOMNesting.js",
"moduleName": "./~/react-dom/lib/validateDOMNesting.js",
"type": "cjs require",
"userRequest": "fbjs/lib/warning",
"loc": "16:14-41"
},
{
"moduleId": 46,
"moduleIdentifier": "/Users/ayushi/Documents/mywork/react-google-map-street-view/node_modules/react/lib/ReactComponent.js",
"module": "./~/react/lib/ReactComponent.js",
"moduleName": "./~/react/lib/ReactComponent.js",
"type": "cjs require",
"userRequest": "fbjs/lib/warning",
"loc": "20:14-41"
},
{
"moduleId": 47,
"moduleIdentifier": "/Users/ayushi/Documents/mywork/react-google-map-street-view/node_modules/react/lib/ReactNoopUpdateQueue.js",
"module": "./~/react/lib/ReactNoopUpdateQueue.js",
"moduleName": "./~/react/lib/ReactNoopUpdateQueue.js",
"type": "cjs require",
"userRequest": "fbjs/lib/warning",
"loc": "13:14-41"
},
{
"moduleId": 56,
"moduleIdentifier": "/Users/ayushi/Documents/mywork/react-google-map-street-view/node_modules/react-dom/lib/DOMPropertyOperations.js",
"module": "./~/react-dom/lib/DOMPropertyOperations.js",
"moduleName": "./~/react-dom/lib/DOMPropertyOperations.js",
"type": "cjs require",
"userRequest": "fbjs/lib/warning",
"loc": "18:14-41"
},
{
"moduleId": 58,
"moduleIdentifier": "/Users/ayushi/Documents/mywork/react-google-map-street-view/node_modules/react-dom/lib/ReactDOMSelect.js",
"module": "./~/react-dom/lib/ReactDOMSelect.js",
"moduleName": "./~/react-dom/lib/ReactDOMSelect.js",
"type": "cjs require",
"userRequest": "fbjs/lib/warning",
"loc": "19:14-41"
},
{
"moduleId": 63,
"moduleIdentifier": "/Users/ayushi/Documents/mywork/react-google-map-street-view/node_modules/react-dom/lib/ReactMount.js",
"module": "./~/react-dom/lib/ReactMount.js",
"moduleName": "./~/react-dom/lib/ReactMount.js",
"type": "cjs require",
"userRequest": "fbjs/lib/warning",
"loc": "36:14-41"
},
{
"moduleId": 70,
"moduleIdentifier": "/Users/ayushi/Documents/my