react-instagram-embed
Advanced tools
Comparing version 1.4.1 to 1.4.2
@@ -114,6 +114,6 @@ function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } | ||
if (window.instgrm || document.getElementById('react-instagram-embed-script')) { | ||
if (window.instgrm) { | ||
this.fetchEmbed(this.getQueryParams(this.props)); | ||
} else { | ||
if (this.props.injectScript) { | ||
if (this.props.injectScript && !document.getElementById('react-instagram-embed-script')) { | ||
this.injectScript(); | ||
@@ -120,0 +120,0 @@ } |
@@ -126,6 +126,6 @@ "use strict"; | ||
if (window.instgrm || document.getElementById('react-instagram-embed-script')) { | ||
if (window.instgrm) { | ||
this.fetchEmbed(this.getQueryParams(this.props)); | ||
} else { | ||
if (this.props.injectScript) { | ||
if (this.props.injectScript && !document.getElementById('react-instagram-embed-script')) { | ||
this.injectScript(); | ||
@@ -132,0 +132,0 @@ } |
{ | ||
"name": "react-instagram-embed", | ||
"version": "1.4.1", | ||
"version": "1.4.2", | ||
"description": "React embedding Instagram posts component", | ||
@@ -30,4 +30,3 @@ "main": "lib/index.js", | ||
"clean:build": "if [ -d build ]; then rm -rf build; fi", | ||
"build:demo": "NODE_ENV=production webpack --progress", | ||
"prepublishOnly": "npm run lint && npm run type && npm test && npm run compile" | ||
"build:demo": "NODE_ENV=production webpack" | ||
}, | ||
@@ -65,21 +64,21 @@ "repository": { | ||
"devDependencies": { | ||
"@babel/cli": "^7.0.0", | ||
"@babel/core": "^7.0.0", | ||
"@babel/plugin-proposal-class-properties": "^7.0.0", | ||
"@babel/plugin-proposal-object-rest-spread": "^7.0.0", | ||
"@babel/plugin-transform-flow-strip-types": "^7.0.0", | ||
"@babel/polyfill": "^7.0.0", | ||
"@babel/preset-env": "^7.0.0", | ||
"@babel/cli": "^7.2.3", | ||
"@babel/core": "^7.2.2", | ||
"@babel/plugin-proposal-class-properties": "^7.2.3", | ||
"@babel/plugin-proposal-object-rest-spread": "^7.2.0", | ||
"@babel/plugin-transform-flow-strip-types": "^7.2.3", | ||
"@babel/polyfill": "^7.2.5", | ||
"@babel/preset-env": "^7.2.3", | ||
"@babel/preset-react": "^7.0.0", | ||
"@babel/register": "^7.0.0", | ||
"ava": "^1.0.0-beta.5.1", | ||
"babel-eslint": "^8.2.3", | ||
"babel-loader": "^8.0.4", | ||
"ava": "^1.0.1", | ||
"babel-eslint": "^10.0.1", | ||
"babel-loader": "^8.0.5", | ||
"browser-env": "^3.2.5", | ||
"css-loader": "^0.28.11", | ||
"eslint": "^4.19.1", | ||
"eslint-plugin-ava": "^4.5.1", | ||
"eslint-plugin-babel": "^5.1.0", | ||
"eslint-plugin-flowtype": "^2.49.3", | ||
"eslint-plugin-react": "^7.8.2", | ||
"css-loader": "^2.1.0", | ||
"eslint": "^5.12.0", | ||
"eslint-plugin-ava": "^5.1.1", | ||
"eslint-plugin-babel": "^5.3.0", | ||
"eslint-plugin-flowtype": "^3.2.1", | ||
"eslint-plugin-react": "^7.12.3", | ||
"flow-bin": "^0.66.0", | ||
@@ -89,17 +88,17 @@ "gh-pages": "^1.2.0", | ||
"html-webpack-plugin": "^3.2.0", | ||
"normalize.css": "^8.0.0", | ||
"nyc": "^12.0.1", | ||
"normalize.css": "^8.0.1", | ||
"nyc": "^13.1.0", | ||
"raf": "^3.4.0", | ||
"react": "^16.4.0", | ||
"react-dom": "^16.4.0", | ||
"react": "^16.7.0", | ||
"react-dom": "^16.7.0", | ||
"react-ghfork": "^0.5.1", | ||
"react-hot-loader": "^4.2.0", | ||
"react-test-renderer": "^16.4.0", | ||
"style-loader": "^0.21.0", | ||
"uglifyjs-webpack-plugin": "^1.2.5", | ||
"webpack": "^4.10.2", | ||
"webpack-cli": "^3.0.1", | ||
"webpack-dev-server": "^3.1.4", | ||
"react-hot-loader": "^4.6.3", | ||
"react-test-renderer": "^16.7.0", | ||
"style-loader": "^0.23.1", | ||
"uglifyjs-webpack-plugin": "^2.1.1", | ||
"webpack": "^4.28.1", | ||
"webpack-cli": "^3.2.1", | ||
"webpack-dev-server": "^3.1.14", | ||
"webpack-stylish": "^0.1.8" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
28921