bacon.react.base
Advanced tools
Comparing version 3.1.0 to 3.1.1
@@ -226,2 +226,2 @@ "use strict"; | ||
exports.default = B; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9iYWNvbi5yZWFjdC5iYXNlLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7QUFBQTs7OztBQUNBOzs7O0FBQ0E7Ozs7Ozs7O0FBSU8sSUFBTSwwQkFBUztBQUNwQixXQUFTLG9CQUFLO0FBQUMsVUFBTSxDQUFOLENBQUQ7R0FBTDtDQURFOztBQUliLElBQU0sY0FBYyxFQUFDLFNBQVMsSUFBVCxFQUFmO0FBQ04sSUFBTSxZQUFZLEVBQUMsU0FBUyxJQUFULEVBQWUsVUFBVSxJQUFWLEVBQTVCOztBQUVOLElBQU0sU0FBUztBQUNiLDhDQUFrQjtBQUNoQixXQUFPLFNBQVAsQ0FEZ0I7R0FETDtBQUliLG9DQUFhO1FBQ0osVUFBVyxLQUFLLEtBQUwsQ0FBWCxRQURJOztBQUVYLFFBQUksT0FBSixFQUNFLFVBREY7R0FOVztBQVNiLGdFQUEwQixXQUFXO0FBQ25DLFNBQUssWUFBTCxDQUFrQixTQUFsQixFQURtQztHQVR4QjtBQVliLG9EQUFxQjtBQUNuQixTQUFLLFlBQUwsQ0FBa0IsS0FBSyxLQUFMLENBQWxCLENBRG1CO0dBWlI7QUFlYix3REFBc0IsSUFBSSxJQUFJO0FBQzVCLFdBQU8sR0FBRyxRQUFILEtBQWdCLEtBQUssS0FBTCxDQUFXLFFBQVgsQ0FESztHQWZqQjtBQWtCYix3REFBdUI7QUFDckIsU0FBSyxVQUFMLEdBRHFCO0FBRXJCLFNBQUssUUFBTCxDQUFjLFNBQWQsRUFGcUI7R0FsQlY7QUFzQmIsNEJBQVM7QUFDUCxXQUFPLEtBQUssS0FBTCxDQUFXLFFBQVgsQ0FEQTtHQXRCSTtD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XG4gICAgY29uc3Qgb2JzU3RyZWFtcyA9IFtdXG5cbiAgICBmb3IgKGNvbnN0IGtleSBpbiBwcm9wcykge1xuICAgICAgY29uc3QgdmFsID0gcHJvcHNba2V5XVxuICAgICAgY29uc3Qga2V5T3V0ID0gXCJtb3VudFwiID09PSBrZXkgPyBcInJlZlwiIDoga2V5XG4gICAgICBpZiAodmFsIGluc3RhbmNlb2YgQmFjb24uT2JzZXJ2YWJsZSkge1xuICAgICAgICBvYnNLZXlzLnB1c2goa2V5T3V0KVxuICAgICAgICBvYnNTdHJlYW1zLnB1c2godmFsKVxuICAgICAgfSBlbHNlIGlmIChcImNoaWxkcmVuXCIgPT09IGtleSAmJlxuICAgICAgICAgICAgICAgICB2YWwgaW5zdGFuY2VvZiBBcnJheSAmJlxuICAgICAgICAgICAgICAgICB2YWwuZmluZChjID0+IGMgaW5zdGFuY2VvZiBCYWNvbi5PYnNlcnZhYmxlKSkge1xuICAgICAgICBvYnNLZXlzLnB1c2goa2V5T3V0KVxuICAgICAgICBvYnNTdHJlYW1zLnB1c2goQmFjb24uY29tYmluZUFzQXJyYXkodmFsKSlcbiAgICAgIH0gZWxzZSB7XG4gICAgICAgIHZhbHNba2V5T3V0XSA9IHZhbFxuICAgICAgfVxuICAgIH1cblxuICAgIHRoaXMuc2V0U3RhdGUoe2Rpc3Bvc2U6IGNvbWJpbmVBc0FycmF5KG9ic1N0cmVhbXMpLnN1YnNjcmliZShldiA9PiB7XG4gICAgICBpZiAoZXYuaGFzVmFsdWUoKSkge1xuICAgICAgICBjb25zdCBvYnNWYWxzID0gZXYudmFsdWUoKVxuICAgICAgICBjb25zdCBwcm9wcyA9IHt9XG4gICAgICAgIGxldCBjaGlsZHJlbiA9IG51bGxcbiAgICAgICAgZm9yIChjb25zdCBrZXkgaW4gdmFscykge1xuICAgICAgICAgIGNvbnN0IHZhbCA9IHZhbHNba2V5XVxuICAgICAgICAgIGlmIChcImNoaWxkcmVuXCIgPT09IGtleSkge2NoaWxkcmVuID0gdmFsfSBlbHNlIHtwcm9wc1trZXldID0gdmFsfVxuICAgICAgICB9XG4gICAgICAgIGZvciAobGV0IGk9MCwgbj1vYnNLZXlzLmxlbmd0aDsgaTxuOyArK2kpIHtcbiAgICAgICAgICBjb25zdCBrZXkgPSBvYnNLZXlzW2ldXG4gICAgICAgICAgY29uc3QgdmFsID0gb2JzVmFsc1tpXVxuICAgICAgICAgIGlmIChcImNoaWxkcmVuXCIgPT09IGtleSkge2NoaWxkcmVuID0gdmFsfSBlbHNlIHtwcm9wc1trZXldID0gdmFsfVxuICAgICAgICB9XG4gICAgICAgIHRoaXMuc2V0U3RhdGUoe3JlbmRlcmVkOiBSZWFjdC5jcmVhdGVFbGVtZW50KHRoaXMucHJvcHMuQ2xhc3MsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHByb3BzLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBjaGlsZHJlbil9KVxuICAgICAgfSBlbHNlIGlmIChldi5pc0Vycm9yKCkpIHtcbiAgICAgICAgY29uZmlnLm9uRXJyb3IoZXYuZXJyb3IpXG4gICAgICB9IGVsc2Uge1xuICAgICAgICB0aGlzLnNldFN0YXRlKG51bGxEaXNwb3NlKVxuICAgICAgfVxuICAgIH0pfSlcbiAgfVxufSlcblxuZXhwb3J0IGNvbnN0IGZyb21DbGFzcyA9XG4gIENsYXNzID0+IHByb3BzID0+IFJlYWN0LmNyZWF0ZUVsZW1lbnQoRnJvbUNsYXNzLCB7Q2xhc3MsIHByb3BzfSlcblxuZXhwb3J0IGNvbnN0IGZyb21DbGFzc2VzID0gY2xhc3NlcyA9PiB7XG4gIGNvbnN0IHJlc3VsdCA9IHt9XG4gIGZvciAoY29uc3QgayBpbiBjbGFzc2VzKVxuICAgIHJlc3VsdFtrXSA9IGZyb21DbGFzcyhjbGFzc2VzW2tdKVxuICByZXR1cm4gcmVzdWx0XG59XG5c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name": "bacon.react.base", | ||
"version": "3.1.0", | ||
"version": "3.1.1", | ||
"description": "JSX with Bacon, yummy?", | ||
@@ -10,3 +10,3 @@ "main": "lib/bacon.react.base.js", | ||
"prepublish": "npm run lint && npm run test && npm run dist", | ||
"test": "node_modules/.bin/nyc node_modules/mocha/bin/mocha" | ||
"test": "nyc mocha" | ||
}, | ||
@@ -38,2 +38,3 @@ "repository": { | ||
"babel-preset-stage-2": "^6.5.0", | ||
"babel-register": "^6.8.0", | ||
"eslint": "^2.7.0", | ||
@@ -40,0 +41,0 @@ "mocha": "^2.4.5", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
45728
9
12