@tinacms/core
Advanced tools
Comparing version 0.7.2 to 0.7.3
@@ -108,3 +108,3 @@ /** | ||
*/ | ||
constructor(config?: CMSConfig | null); | ||
constructor(config?: CMSConfig); | ||
/** | ||
@@ -111,0 +111,0 @@ * Registers a new external API with the CMS. |
@@ -1,1 +0,1 @@ | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t=t||self)["@tinacms/core"]={})}(this,function(t){"use strict";var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)};var e=(n.prototype.subscribe=function(t){var e=this;return this.__subscribers.push(t),function(){return e.unsubscribe(t)}},n.prototype.unsubscribe=function(t){var e=this.__subscribers.indexOf(t);this.__subscribers.splice(e,1)},n.prototype.notifiySubscribers=function(){this.__subscribers.forEach(function(t){return t()})},n);function n(){this.__subscribers=[]}var r=(o.prototype.getType=function(t){return this.plugins[t]=this.plugins[t]||new c(t)},o.prototype.findOrCreateMap=function(t){return this.getType(t)},o.prototype.add=function(t){this.findOrCreateMap(t.__type).add(t)},o.prototype.remove=function(t){this.findOrCreateMap(t.__type).remove(t)},o.prototype.all=function(t){return this.findOrCreateMap(t).all()},o);function o(){this.plugins={}}var s,u,p,c=(i(s=a,u=p=e),void(s.prototype=null===u?Object.create(u):(f.prototype=u.prototype,new f)),a.prototype.add=function(t){var e=t;e.__type||(e.__type=this.__type),this.__plugins[e.name]=e,this.notifiySubscribers()},a.prototype.all=function(){var e=this;return Object.keys(this.__plugins).map(function(t){return e.__plugins[t]})},a.prototype.find=function(t){return this.__plugins[t]},a.prototype.remove=function(t){var e="string"==typeof t?t:t.name,i=this.__plugins[e];return delete this.__plugins[e],this.notifiySubscribers(),i},a);function f(){this.constructor=s}function a(t){var e=p.call(this)||this;return e.__type=t,e.__plugins={},e}var _=(y.prototype.registerApi=function(t,e){this.api[t]=e},y);function y(t){var n=this;void 0===t&&(t=null),this.api={},this.plugins=new r,t&&t.plugins&&t.plugins.forEach(function(t){return n.plugins.add(t)}),t&&t.apis&&Object.entries(t.apis).forEach(function(t){var e=t[0],i=t[1];return n.registerApi(e,i)})}t.CMS=_,t.PluginType=c,t.PluginTypeManager=r,t.Subscribable=e,Object.defineProperty(t,"__esModule",{value:!0})}); | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t=t||self)["@tinacms/core"]={})}(this,function(t){"use strict";var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)};var e=(n.prototype.subscribe=function(t){var e=this;return this.__subscribers.push(t),function(){return e.unsubscribe(t)}},n.prototype.unsubscribe=function(t){var e=this.__subscribers.indexOf(t);this.__subscribers.splice(e,1)},n.prototype.notifiySubscribers=function(){this.__subscribers.forEach(function(t){return t()})},n);function n(){this.__subscribers=[]}var r=(o.prototype.getType=function(t){return this.plugins[t]=this.plugins[t]||new c(t)},o.prototype.findOrCreateMap=function(t){return this.getType(t)},o.prototype.add=function(t){this.findOrCreateMap(t.__type).add(t)},o.prototype.remove=function(t){this.findOrCreateMap(t.__type).remove(t)},o.prototype.all=function(t){return this.findOrCreateMap(t).all()},o);function o(){this.plugins={}}var s,p,u,c=(i(s=a,p=u=e),void(s.prototype=null===p?Object.create(p):(f.prototype=p.prototype,new f)),a.prototype.add=function(t){var e=t;e.__type||(e.__type=this.__type),this.__plugins[e.name]=e,this.notifiySubscribers()},a.prototype.all=function(){var e=this;return Object.keys(this.__plugins).map(function(t){return e.__plugins[t]})},a.prototype.find=function(t){return this.__plugins[t]},a.prototype.remove=function(t){var e="string"==typeof t?t:t.name,i=this.__plugins[e];return delete this.__plugins[e],this.notifiySubscribers(),i},a);function f(){this.constructor=s}function a(t){var e=u.call(this)||this;return e.__type=t,e.__plugins={},e}var _=(y.prototype.registerApi=function(t,e){this.api[t]=e},y);function y(t){var n=this;void 0===t&&(t={}),this.api={},this.plugins=new r,t.plugins&&t.plugins.forEach(function(t){return n.plugins.add(t)}),t.apis&&Object.entries(t.apis).forEach(function(t){var e=t[0],i=t[1];return n.registerApi(e,i)})}t.CMS=_,t.PluginType=c,t.PluginTypeManager=r,t.Subscribable=e,Object.defineProperty(t,"__esModule",{value:!0})}); |
@@ -6,2 +6,10 @@ # Change Log | ||
## [0.7.3](https://github.com/tinacms/tinacms/compare/@tinacms/core@0.7.2...@tinacms/core@0.7.3) (2020-03-16) | ||
**Note:** Version bump only for package @tinacms/core | ||
## [0.7.2](https://github.com/tinacms/tinacms/compare/@tinacms/core@0.7.2-alpha.0...@tinacms/core@0.7.2) (2020-03-09) | ||
@@ -8,0 +16,0 @@ |
{ | ||
"name": "@tinacms/core", | ||
"version": "0.7.2", | ||
"version": "0.7.3", | ||
"main": "build/index.js", | ||
@@ -32,3 +32,3 @@ "types": "build/index.d.ts", | ||
}, | ||
"gitHead": "f1eaf98e9629d0f7bb4c04ff85c9c3cf865a0352" | ||
"gitHead": "1f20c84ddb4ed1860a966c11e5b8e44749da07cb" | ||
} |
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
35966