Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

colonel-kurtz

Package Overview
Dependencies
Maintainers
3
Versions
89
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

colonel-kurtz - npm Package Compare versions

Comparing version 2.23.1-rc1 to 2.23.1-rc2

4

package.json
{
"name": "colonel-kurtz",
"version": "2.23.1-rc1",
"version": "2.23.1-rc2",
"description": "A block editor",

@@ -40,3 +40,3 @@ "main": "src/Colonel.js",

"peerDependencies": {
"react": ">= 0.12.1 < 0.14"
"react": ">= 0.12.1 <= 0.14"
},

@@ -43,0 +43,0 @@ "dependencies": {

@@ -10,3 +10,3 @@ /**

var _get = function get(_x, _x2, _x3) { var _again = true; _function: while (_again) { var object = _x, property = _x2, receiver = _x3; desc = parent = getter = undefined; _again = false; if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { _x = parent; _x2 = property; _x3 = receiver; _again = true; continue _function; } } else if ('value' in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } } };
var _get = function get(_x, _x2, _x3) { var _again = true; _function: while (_again) { var object = _x, property = _x2, receiver = _x3; _again = false; if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { _x = parent; _x2 = property; _x3 = receiver; _again = true; desc = parent = undefined; continue _function; } } else if ('value' in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } } };

@@ -13,0 +13,0 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }

@@ -25,3 +25,3 @@ /**

return (_ref = {}, _defineProperty(_ref, Actions.create, this.create), _defineProperty(_ref, Actions.destroy, this.destroy), _defineProperty(_ref, Actions.update, this.update), _defineProperty(_ref, Actions.move, this.move), _ref);
return _ref = {}, _defineProperty(_ref, Actions.create, this.create), _defineProperty(_ref, Actions.destroy, this.destroy), _defineProperty(_ref, Actions.update, this.update), _defineProperty(_ref, Actions.move, this.move), _ref;
},

@@ -113,2 +113,2 @@

module.exports = Blocks;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9zdG9yZXMvQmxvY2tzLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7OztBQVNBLElBQUksT0FBTyxHQUFNLE9BQU8sQ0FBQyxtQkFBbUIsQ0FBQyxDQUFBO0FBQzdDLElBQUksS0FBSyxHQUFRLE9BQU8sQ0FBQyxpQkFBaUIsQ0FBQyxDQUFBO0FBQzNDLElBQUksUUFBUSxHQUFLLE9BQU8sQ0FBQyxtQkFBbUIsQ0FBQyxDQUFBO0FBQzdDLElBQUksU0FBUyxHQUFJLE9BQU8sQ0FBQyxvQkFBb0IsQ0FBQyxDQUFBOztBQUU5QyxJQUFJLE1BQU0sR0FBRztBQUNYLFVBQVEsRUFBQSxvQkFBRzs7O0FBQ1QsNkNBQ0csT0FBTyxDQUFDLE1BQU0sRUFBSyxJQUFJLENBQUMsTUFBTSx5QkFDOUIsT0FBTyxDQUFDLE9BQU8sRUFBSSxJQUFJLENBQUMsT0FBTyx5QkFDL0IsT0FBTyxDQUFDLE1BQU0sRUFBSyxJQUFJLENBQUMsTUFBTSx5QkFDOUIsT0FBTyxDQUFDLElBQUksRUFBTyxJQUFJLENBQUMsSUFBSSxTQUM5QjtHQUNGOztBQUVELGlCQUFlLEVBQUEsMkJBQUc7QUFDaEIsV0FBTyxFQUFFLENBQUE7R0FDVjs7QUFFRCxNQUFJLEVBQUEsY0FBQyxLQUFLLEVBQUUsRUFBRSxFQUFFO0FBQ2QsV0FBTyxLQUFLLENBQUMsTUFBTSxDQUF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zID0gQmxvY2tzXG4iXX0=

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc