New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

slate-prop-types

Package Overview
Dependencies
Maintainers
1
Versions
137
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

slate-prop-types - npm Package Compare versions

Comparing version 0.4.43 to 0.4.44

6

dist/slate-prop-types.js

@@ -59,8 +59,2 @@ (function (global, factory) {

}),
character: create('Character', function (v) {
return slate.Character.isCharacter(v);
}),
characters: create('List<Character>', function (v) {
return slate.Character.isCharacterList(v);
}),
data: create('Data', function (v) {

@@ -67,0 +61,0 @@ return slate.Data.isData(v);

2

dist/slate-prop-types.min.js

@@ -1,1 +0,1 @@

!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("slate")):"function"==typeof define&&define.amd?define(["exports","slate"],n):n(e.SlatePropTypes={},e.Slate)}(this,function(e,n){"use strict";function t(e,n){function t(t,r,i,a,u){var o=r[i];return null!=o||t?null==o&&t?new Error("The "+u+" `"+i+"` is marked as required in `"+a+"`, but it was not supplied."):n(o)?null:new Error("Invalid "+u+" `"+i+"` supplied to `"+a+"`, expected a Slate `"+e+"` but received: "+o):null}function r(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.apply(void 0,[!1].concat(n))}return r.isRequired=function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.apply(void 0,[!0].concat(n))},r}var r={block:t("Block",function(e){return n.Block.isBlock(e)}),blocks:t("List<Block>",function(e){return n.Block.isBlockList(e)}),change:t("Change",function(e){return n.Change.isChange(e)}),character:t("Character",function(e){return n.Character.isCharacter(e)}),characters:t("List<Character>",function(e){return n.Character.isCharacterList(e)}),data:t("Data",function(e){return n.Data.isData(e)}),document:t("Document",function(e){return n.Document.isDocument(e)}),history:t("History",function(e){return n.History.isHistory(e)}),inline:t("Inline",function(e){return n.Inline.isInline(e)}),inlines:t("Inline",function(e){return n.Inline.isInlineList(e)}),leaf:t("Leaf",function(e){return n.Leaf.isLeaf(e)}),leaves:t("List<Leaf>",function(e){return n.Leaf.isLeafList(e)}),mark:t("Mark",function(e){return n.Mark.isMark(e)}),marks:t("Set<Mark>",function(e){return n.Mark.isMarkSet(e)}),node:t("Node",function(e){return n.Node.isNode(e)}),nodes:t("List<Node>",function(e){return n.Node.isNodeList(e)}),range:t("Range",function(e){return n.Range.isRange(e)}),ranges:t("List<Range>",function(e){return n.Range.isRangeList(e)}),schema:t("Schema",function(e){return n.Schema.isSchema(e)}),stack:t("Stack",function(e){return n.Stack.isStack(e)}),value:t("Value",function(e){return n.Value.isValue(e)}),text:t("Text",function(e){return n.Text.isText(e)}),texts:t("List<Text>",function(e){return n.Text.isTextList(e)})};e.default=r,Object.defineProperty(e,"__esModule",{value:!0})});
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("slate")):"function"==typeof define&&define.amd?define(["exports","slate"],n):n(e.SlatePropTypes={},e.Slate)}(this,function(e,n){"use strict";function t(e,n){function t(t,i,r,u,o){var a=i[r];return null!=a||t?null==a&&t?new Error("The "+o+" `"+r+"` is marked as required in `"+u+"`, but it was not supplied."):n(a)?null:new Error("Invalid "+o+" `"+r+"` supplied to `"+u+"`, expected a Slate `"+e+"` but received: "+a):null}function i(){for(var e=arguments.length,n=Array(e),i=0;i<e;i++)n[i]=arguments[i];return t.apply(void 0,[!1].concat(n))}return i.isRequired=function(){for(var e=arguments.length,n=Array(e),i=0;i<e;i++)n[i]=arguments[i];return t.apply(void 0,[!0].concat(n))},i}var i={block:t("Block",function(e){return n.Block.isBlock(e)}),blocks:t("List<Block>",function(e){return n.Block.isBlockList(e)}),change:t("Change",function(e){return n.Change.isChange(e)}),data:t("Data",function(e){return n.Data.isData(e)}),document:t("Document",function(e){return n.Document.isDocument(e)}),history:t("History",function(e){return n.History.isHistory(e)}),inline:t("Inline",function(e){return n.Inline.isInline(e)}),inlines:t("Inline",function(e){return n.Inline.isInlineList(e)}),leaf:t("Leaf",function(e){return n.Leaf.isLeaf(e)}),leaves:t("List<Leaf>",function(e){return n.Leaf.isLeafList(e)}),mark:t("Mark",function(e){return n.Mark.isMark(e)}),marks:t("Set<Mark>",function(e){return n.Mark.isMarkSet(e)}),node:t("Node",function(e){return n.Node.isNode(e)}),nodes:t("List<Node>",function(e){return n.Node.isNodeList(e)}),range:t("Range",function(e){return n.Range.isRange(e)}),ranges:t("List<Range>",function(e){return n.Range.isRangeList(e)}),schema:t("Schema",function(e){return n.Schema.isSchema(e)}),stack:t("Stack",function(e){return n.Stack.isStack(e)}),value:t("Value",function(e){return n.Value.isValue(e)}),text:t("Text",function(e){return n.Text.isText(e)}),texts:t("List<Text>",function(e){return n.Text.isTextList(e)})};e.default=i,Object.defineProperty(e,"__esModule",{value:!0})});

@@ -1,2 +0,2 @@

import { Block, Change, Character, Data, Document, History, Inline, Leaf, Mark, Node, Range, Schema, Stack, Value, Text } from 'slate';
import { Block, Change, Data, Document, History, Inline, Leaf, Mark, Node, Range, Schema, Stack, Value, Text } from 'slate';

@@ -55,8 +55,2 @@ /**

}),
character: create('Character', function (v) {
return Character.isCharacter(v);
}),
characters: create('List<Character>', function (v) {
return Character.isCharacterList(v);
}),
data: create('Data', function (v) {

@@ -63,0 +57,0 @@ return Data.isData(v);

@@ -59,8 +59,2 @@ 'use strict';

}),
character: create('Character', function (v) {
return slate.Character.isCharacter(v);
}),
characters: create('List<Character>', function (v) {
return slate.Character.isCharacterList(v);
}),
data: create('Data', function (v) {

@@ -67,0 +61,0 @@ return slate.Data.isData(v);

{
"name": "slate-prop-types",
"description": "A set of React prop type checkers for Slate editors.",
"version": "0.4.43",
"version": "0.4.44",
"license": "MIT",

@@ -24,3 +24,3 @@ "repository": "git://github.com/ianstormtaylor/slate.git",

"mocha": "^2.5.3",
"slate": "^0.36.2"
"slate": "^0.37.0"
},

@@ -27,0 +27,0 @@ "scripts": {

Sorry, the diff of this file is not supported yet

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