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

@tinacms/core

Package Overview
Dependencies
Maintainers
11
Versions
101
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tinacms/core - npm Package Compare versions

Comparing version 0.6.1 to 0.6.2-canary.37

build/cms.test.d.ts

10

build/cms.d.ts

@@ -24,3 +24,3 @@ /**

*/
import { PluginTypeManager } from './plugins';
import { Plugin, PluginTypeManager } from './plugins';
/**

@@ -66,2 +66,8 @@ * A [[CMS]] is the core object of any content management system.

*/
export interface CMSConfig {
plugins?: Array<Plugin>;
apis?: {
[key: string]: any;
};
}
export declare class CMS {

@@ -104,3 +110,3 @@ /**

*/
constructor();
constructor(config?: CMSConfig | null);
/**

@@ -107,0 +113,0 @@ * Registers a new external API with the CMS.

2

build/index.js

@@ -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 n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};var e=(i.prototype.subscribe=function(t){var e=this;return this.__subscribers.push(t),function(){return e.unsubscribe(t)}},i.prototype.unsubscribe=function(t){var e=this.__subscribers.indexOf(t);this.__subscribers.splice(e,1)},i.prototype.notifiySubscribers=function(){this.__subscribers.forEach(function(t){return t()})},i);function i(){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=(n(s=_,p=u=e),void(s.prototype=null===p?Object.create(p):(f.prototype=p.prototype,new f)),_.prototype.add=function(t){var e=t;e.__type||(e.__type=this.__type),this.__plugins[e.name]=e,this.notifiySubscribers()},_.prototype.all=function(){var e=this;return Object.keys(this.__plugins).map(function(t){return e.__plugins[t]})},_.prototype.find=function(t){return this.__plugins[t]},_.prototype.remove=function(t){var e="string"==typeof t?t:t.name,n=this.__plugins[e];return delete this.__plugins[e],this.notifiySubscribers(),n},_);function f(){this.constructor=s}function _(t){var e=u.call(this)||this;return e.__type=t,e.__plugins={},e}var a=(y.prototype.registerApi=function(t,e){this.api[t]=e},y);function y(){this.api={},this.plugins=new r}t.CMS=a,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,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})});
{
"name": "@tinacms/core",
"version": "0.6.1",
"version": "0.6.2-canary.37+2021b828",
"main": "build/index.js",

@@ -32,7 +32,6 @@ "types": "build/index.d.ts",

"@types/jest": "^24.0.15",
"@types/react": "^16.8.23",
"jest": "^24.8.0",
"ts-jest": "^24.0.2"
},
"gitHead": "b25ee09f0e2d0b34cafd81487acda1e5eedf6907"
"gitHead": "2021b82838481aac6ab3b2734b437a6562421b5e"
}
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