@shaai/react
Advanced tools
Comparing version 1.1.1 to 1.1.2
@@ -18,2 +18,6 @@ "use strict"; | ||
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } | ||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } | ||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } | ||
@@ -50,3 +54,5 @@ | ||
}; | ||
_this.scroll = new Scroll(props.config); | ||
_this.scroll = new Scroll(props.match && props.match.path && props.match.path !== '/' ? _objectSpread({}, props.config, { | ||
basePath: props.match.path | ||
}) : props.config); | ||
return _this; | ||
@@ -89,2 +95,2 @@ } | ||
exports["default"] = _default; | ||
exports["default"] = _default; |
{ | ||
"name": "@shaai/react", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "React wrapper for Shaai", | ||
"main": "dist/index.js", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
"test": "echo \"Error: no test specified\" && exit 1", | ||
"build": "./node_modules/.bin/babel index.js --out-file dist/index.js" | ||
}, | ||
@@ -9,0 +10,0 @@ "repository": { |
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
8475
106