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

@stencila/schema

Package Overview
Dependencies
Maintainers
3
Versions
148
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@stencila/schema - npm Package Compare versions

Comparing version 1.13.0 to 1.14.0

dist/codeDependencies.jsonld

2

dist/browser/schema.umd.js

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

!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e||self).schema={})}(this,function(e){function t(){return t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},t.apply(this,arguments)}var o,n=function(e){return Object.entries(e).reduce(function(e,o){var n,i=o[1];return void 0===i?e:t({},e,((n={})[o[0]]=i,n))},{})};e.CitationIntentEnumeration=void 0,(o=e.CitationIntentEnumeration||(e.CitationIntentEnumeration={})).AgreesWith="AgreesWith",o.CitesAsAuthority="CitesAsAuthority",o.CitesAsDataSource="CitesAsDataSource",o.CitesAsEvidence="CitesAsEvidence",o.CitesAsMetadataDocument="CitesAsMetadataDocument",o.CitesAsPotentialSolution="CitesAsPotentialSolution",o.CitesAsRecommendedReading="CitesAsRecommendedReading",o.CitesAsRelated="CitesAsRelated",o.CitesAsSourceDocument="CitesAsSourceDocument",o.CitesForInformation="CitesForInformation",o.Compiles="Compiles",o.Confirms="Confirms",o.ContainsAssertionFrom="ContainsAssertionFrom",o.Corrects="Corrects",o.Credits="Credits",o.Critiques="Critiques",o.Derides="Derides",o.Describes="Describes",o.DisagreesWith="DisagreesWith",o.Discusses="Discusses",o.Disputes="Disputes",o.Documents="Documents",o.Extends="Extends",o.GivesBackgroundTo="GivesBackgroundTo",o.GivesSupportTo="GivesSupportTo",o.HasReplyFrom="HasReplyFrom",o.IncludesExcerptFrom="IncludesExcerptFrom",o.IncludesQuotationFrom="IncludesQuotationFrom",o.IsAgreedWithBy="IsAgreedWithBy",o.IsCitedAsAuthorityBy="IsCitedAsAuthorityBy",o.IsCitedAsDataSourceBy="IsCitedAsDataSourceBy",o.IsCitedAsEvidenceBy="IsCitedAsEvidenceBy",o.IsCitedAsMetadataDocumentBy="IsCitedAsMetadataDocumentBy",o.IsCitedAsPontentialSolutionBy="IsCitedAsPontentialSolutionBy",o.IsCitedAsRecommendedReadingBy="IsCitedAsRecommendedReadingBy",o.IsCitedAsRelatedBy="IsCitedAsRelatedBy",o.IsCitedAsSourceDocumentBy="IsCitedAsSourceDocumentBy",o.IsCitedBy="IsCitedBy",o.IsCitedForInformationBy="IsCitedForInformationBy",o.IsCompiledBy="IsCompiledBy",o.IsConfirmedBy="IsConfirmedBy",o.IsCorrectedBy="IsCorrectedBy",o.IsCreditedBy="IsCreditedBy",o.IsCritiquedBy="IsCritiquedBy",o.IsDeridedBy="IsDeridedBy",o.IsDescribedBy="IsDescribedBy",o.IsDisagreedWithBy="IsDisagreedWithBy",o.IsDiscussedBy="IsDiscussedBy",o.IsDisputedBy="IsDisputedBy",o.IsDocumentedBy="IsDocumentedBy",o.IsExtendedBy="IsExtendedBy",o.IsLinkedToBy="IsLinkedToBy",o.IsParodiedBy="IsParodiedBy",o.IsPlagiarizedBy="IsPlagiarizedBy",o.IsQualifiedBy="IsQualifiedBy",o.IsRefutedBy="IsRefutedBy",o.IsRetractedBy="IsRetractedBy",o.IsReviewedBy="IsReviewedBy",o.IsRidiculedBy="IsRidiculedBy",o.IsSpeculatedOnBy="IsSpeculatedOnBy",o.IsSupportedBy="IsSupportedBy",o.IsUpdatedBy="IsUpdatedBy",o.Likes="Likes",o.LinksTo="LinksTo",o.ObtainsBackgroundFrom="ObtainsBackgroundFrom",o.ObtainsSupportFrom="ObtainsSupportFrom",o.Parodies="Parodies",o.Plagiarizes="Plagiarizes",o.ProvidesAssertionFor="ProvidesAssertionFor",o.ProvidesConclusionsFor="ProvidesConclusionsFor",o.ProvidesDataFor="ProvidesDataFor",o.ProvidesExcerptFor="ProvidesExcerptFor",o.ProvidesMethodFor="ProvidesMethodFor",o.ProvidesQuotationFor="ProvidesQuotationFor",o.Qualifies="Qualifies",o.Refutes="Refutes",o.RepliesTo="RepliesTo",o.Retracts="Retracts",o.Reviews="Reviews",o.Ridicules="Ridicules",o.SharesAuthorInstitutionWith="SharesAuthorInstitutionWith",o.SharesAuthorWith="SharesAuthorWith",o.SharesFundingAgencyWith="SharesFundingAgencyWith",o.SharesJournalWith="SharesJournalWith",o.SharesPublicationVenueWith="SharesPublicationVenueWith",o.SpeculatesOn="SpeculatesOn",o.Supports="Supports",o.Updates="Updates",o.UsesConclusionsFrom="UsesConclusionsFrom",o.UsesDataFrom="UsesDataFrom",o.UsesMethodIn="UsesMethodIn";var i={CodeExecutable:"CodeExecutable",CodeChunk:"CodeChunk",CodeExpression:"CodeExpression"},r={Code:"Code",CodeBlock:"CodeBlock",CodeChunk:"CodeChunk",CodeExecutable:"CodeExecutable",CodeExpression:"CodeExpression",CodeFragment:"CodeFragment"},a={ContactPoint:"ContactPoint",PostalAddress:"PostalAddress"},u={CreativeWork:"CreativeWork",Article:"Article",AudioObject:"AudioObject",Claim:"Claim",Collection:"Collection",Comment:"Comment",Datatable:"Datatable",Figure:"Figure",ImageObject:"ImageObject",MediaObject:"MediaObject",Periodical:"Periodical",PublicationIssue:"PublicationIssue",PublicationVolume:"PublicationVolume",Review:"Review",SoftwareApplication:"SoftwareApplication",SoftwareSourceCode:"SoftwareSourceCode",Table:"Table",VideoObject:"VideoObject"},s={Entity:"Entity",ArrayValidator:"ArrayValidator",Article:"Article",AudioObject:"AudioObject",BooleanValidator:"BooleanValidator",Brand:"Brand",CitationIntentEnumeration:"CitationIntentEnumeration",Cite:"Cite",CiteGroup:"CiteGroup",Claim:"Claim",Code:"Code",CodeBlock:"CodeBlock",CodeChunk:"CodeChunk",CodeError:"CodeError",CodeExecutable:"CodeExecutable",CodeExpression:"CodeExpression",CodeFragment:"CodeFragment",Collection:"Collection",Comment:"Comment",ConstantValidator:"ConstantValidator",ContactPoint:"ContactPoint",CreativeWork:"CreativeWork",Datatable:"Datatable",DatatableColumn:"DatatableColumn",Date:"Date",DefinedTerm:"DefinedTerm",Delete:"Delete",Emphasis:"Emphasis",EnumValidator:"EnumValidator",Enumeration:"Enumeration",Figure:"Figure",Function:"Function",Grant:"Grant",Heading:"Heading",ImageObject:"ImageObject",Include:"Include",IntegerValidator:"IntegerValidator",Link:"Link",List:"List",ListItem:"ListItem",Mark:"Mark",Math:"Math",MathBlock:"MathBlock",MathFragment:"MathFragment",MediaObject:"MediaObject",MonetaryGrant:"MonetaryGrant",NontextualAnnotation:"NontextualAnnotation",Note:"Note",NumberValidator:"NumberValidator",Organization:"Organization",Paragraph:"Paragraph",Parameter:"Parameter",Periodical:"Periodical",Person:"Person",PostalAddress:"PostalAddress",Product:"Product",PropertyValue:"PropertyValue",PublicationIssue:"PublicationIssue",PublicationVolume:"PublicationVolume",Quote:"Quote",QuoteBlock:"QuoteBlock",Review:"Review",SoftwareApplication:"SoftwareApplication",SoftwareEnvironment:"SoftwareEnvironment",SoftwareSession:"SoftwareSession",SoftwareSourceCode:"SoftwareSourceCode",StringValidator:"StringValidator",Strong:"Strong",Subscript:"Subscript",Superscript:"Superscript",Table:"Table",TableCell:"TableCell",TableRow:"TableRow",ThematicBreak:"ThematicBreak",Thing:"Thing",TupleValidator:"TupleValidator",Validator:"Validator",Variable:"Variable",VideoObject:"VideoObject",VolumeMount:"VolumeMount"},d={Enumeration:"Enumeration",CitationIntentEnumeration:"CitationIntentEnumeration"},c={Grant:"Grant",MonetaryGrant:"MonetaryGrant"},l={Mark:"Mark",Delete:"Delete",Emphasis:"Emphasis",NontextualAnnotation:"NontextualAnnotation",Quote:"Quote",Strong:"Strong",Subscript:"Subscript",Superscript:"Superscript"},p={Math:"Math",MathBlock:"MathBlock",MathFragment:"MathFragment"},y={MediaObject:"MediaObject",AudioObject:"AudioObject",ImageObject:"ImageObject",VideoObject:"VideoObject"},C={Thing:"Thing",Article:"Article",AudioObject:"AudioObject",Brand:"Brand",CitationIntentEnumeration:"CitationIntentEnumeration",Claim:"Claim",Collection:"Collection",Comment:"Comment",ContactPoint:"ContactPoint",CreativeWork:"CreativeWork",Datatable:"Datatable",DatatableColumn:"DatatableColumn",DefinedTerm:"DefinedTerm",Enumeration:"Enumeration",Figure:"Figure",Grant:"Grant",ImageObject:"ImageObject",ListItem:"ListItem",MediaObject:"MediaObject",MonetaryGrant:"MonetaryGrant",Organization:"Organization",Periodical:"Periodical",Person:"Person",PostalAddress:"PostalAddress",Product:"Product",PropertyValue:"PropertyValue",PublicationIssue:"PublicationIssue",PublicationVolume:"PublicationVolume",Review:"Review",SoftwareApplication:"SoftwareApplication",SoftwareEnvironment:"SoftwareEnvironment",SoftwareSession:"SoftwareSession",SoftwareSourceCode:"SoftwareSourceCode",Table:"Table",VideoObject:"VideoObject",VolumeMount:"VolumeMount"},m={Validator:"Validator",ArrayValidator:"ArrayValidator",BooleanValidator:"BooleanValidator",ConstantValidator:"ConstantValidator",EnumValidator:"EnumValidator",IntegerValidator:"IntegerValidator",NumberValidator:"NumberValidator",StringValidator:"StringValidator",TupleValidator:"TupleValidator"},f={Claim:"Claim",CodeBlock:"CodeBlock",CodeChunk:"CodeChunk",Collection:"Collection",Figure:"Figure",Heading:"Heading",Include:"Include",List:"List",MathBlock:"MathBlock",Paragraph:"Paragraph",QuoteBlock:"QuoteBlock",Table:"Table",ThematicBreak:"ThematicBreak"},b={AudioObject:"AudioObject",Cite:"Cite",CiteGroup:"CiteGroup",CodeExpression:"CodeExpression",CodeFragment:"CodeFragment",Delete:"Delete",Emphasis:"Emphasis",ImageObject:"ImageObject",Link:"Link",MathFragment:"MathFragment",NontextualAnnotation:"NontextualAnnotation",Note:"Note",Parameter:"Parameter",Quote:"Quote",Strong:"Strong",Subscript:"Subscript",Superscript:"Superscript",VideoObject:"VideoObject"},I={CodeExecutableTypes:i,CodeTypes:r,ContactPointTypes:a,CreativeWorkTypes:u,EntityTypes:s,EnumerationTypes:d,GrantTypes:c,MarkTypes:l,MathTypes:p,MediaObjectTypes:y,ThingTypes:C,ValidatorTypes:m,BlockContent:f,InlineContent:b},g=function(e){var t=typeof e;return null===e||"boolean"===t||"number"===t||"string"===t||!!Array.isArray(e)||"object"===t&&!Object.prototype.hasOwnProperty.call(e,"type")},B=function(e){return null!=e&&Object.prototype.hasOwnProperty.call(e,"type")},h=function(e,t){return B(t)&&t.type===e},A=function(e,t){return B(t)&&t.type in I[e]},v="1.12.0",S=v.split(".")[0],P=v.split(".").slice(0,2).join(".");e.arrayValidator=function(e){return void 0===e&&(e={}),t({},n(e),{type:"ArrayValidator"})},e.article=function(e){return void 0===e&&(e={}),t({},n(e),{type:"Article"})},e.audioObject=function(e){return t({},n(e),{type:"AudioObject"})},e.blockContentTypes=f,e.booleanValidator=function(e){return void 0===e&&(e={}),t({},n(e),{type:"BooleanValidator"})},e.brand=function(e){return t({},n(e),{type:"Brand"})},e.cite=function(e){return t({},n(e),{type:"Cite"})},e.citeGroup=function(e){return t({},n(e),{type:"CiteGroup"})},e.claim=function(e){return t({},n(e),{type:"Claim"})},e.code=function(e){return t({},n(e),{type:"Code"})},e.codeBlock=function(e){return t({},n(e),{type:"CodeBlock"})},e.codeChunk=function(e){return t({},n(e),{type:"CodeChunk"})},e.codeError=function(e){return t({},n(e),{type:"CodeError"})},e.codeExecutable=function(e){return t({},n(e),{type:"CodeExecutable"})},e.codeExecutableTypes=i,e.codeExpression=function(e){return t({},n(e),{type:"CodeExpression"})},e.codeFragment=function(e){return t({},n(e),{type:"CodeFragment"})},e.codeTypes=r,e.collection=function(e){return t({},n(e),{type:"Collection"})},e.comment=function(e){return void 0===e&&(e={}),t({},n(e),{type:"Comment"})},e.constantValidator=function(e){return void 0===e&&(e={}),t({},n(e),{type:"ConstantValidator"})},e.contactPoint=function(e){return void 0===e&&(e={}),t({},n(e),{type:"ContactPoint"})},e.contactPointTypes=a,e.creativeWork=function(e){return void 0===e&&(e={}),t({},n(e),{type:"CreativeWork"})},e.creativeWorkTypes=u,e.datatable=function(e){return t({},n(e),{type:"Datatable"})},e.datatableColumn=function(e){return t({},n(e),{type:"DatatableColumn"})},e.date=function(e){return t({},n(e),{type:"Date"})},e.definedTerm=function(e){return t({},n(e),{type:"DefinedTerm"})},e.del=function(e){return t({},n(e),{type:"Delete"})},e.emphasis=function(e){return t({},n(e),{type:"Emphasis"})},e.entity=function(e){return void 0===e&&(e={}),t({},n(e),{type:"Entity"})},e.entityTypes=s,e.enumValidator=function(e){return void 0===e&&(e={}),t({},n(e),{type:"EnumValidator"})},e.enumeration=function(e){return void 0===e&&(e={}),t({},n(e),{type:"Enumeration"})},e.enumerationTypes=d,e.figure=function(e){return void 0===e&&(e={}),t({},n(e),{type:"Figure"})},e.function_=function(e){return void 0===e&&(e={}),t({},n(e),{type:"Function"})},e.grant=function(e){return void 0===e&&(e={}),t({},n(e),{type:"Grant"})},e.grantTypes=c,e.heading=function(e){return t({},n(e),{type:"Heading"})},e.imageObject=function(e){return t({},n(e),{type:"ImageObject"})},e.include=function(e){return t({},n(e),{type:"Include"})},e.inlineContentTypes=b,e.integerValidator=function(e){return void 0===e&&(e={}),t({},n(e),{type:"IntegerValidator"})},e.isA=h,e.isBlockContent=function(e){return A("BlockContent",e)},e.isEntity=B,e.isIn=A,e.isInTypeMap=function(e){return function(t){return!!B(t)&&Object.keys(e).includes(t.type)}},e.isInlineContent=function(e){return g(e)||A("InlineContent",e)},e.isMember=function(e){return function(t){return A(e,t)}},e.isPrimitive=g,e.isType=function(e){return function(t){return h(e,t)}},e.link=function(e){return t({},n(e),{type:"Link"})},e.list=function(e){return t({},n(e),{type:"List"})},e.listItem=function(e){return void 0===e&&(e={}),t({},n(e),{type:"ListItem"})},e.mark=function(e){return t({},n(e),{type:"Mark"})},e.markTypes=l,e.math=function(e){return t({},n(e),{type:"Math"})},e.mathBlock=function(e){return t({},n(e),{type:"MathBlock"})},e.mathFragment=function(e){return t({},n(e),{type:"MathFragment"})},e.mathTypes=p,e.mediaObject=function(e){return t({},n(e),{type:"MediaObject"})},e.mediaObjectTypes=y,e.monetaryGrant=function(e){return void 0===e&&(e={}),t({},n(e),{type:"MonetaryGrant"})},e.nodeType=function(e){return null===e?"Null":"boolean"==typeof e?"Boolean":"number"==typeof e?"Number":"string"==typeof e?"String":Array.isArray(e)?"Array":B(e)?e.type:"Object"},e.nontextualAnnotation=function(e){return t({},n(e),{type:"NontextualAnnotation"})},e.note=function(e){return t({},n(e),{type:"Note"})},e.numberValidator=function(e){return void 0===e&&(e={}),t({},n(e),{type:"NumberValidator"})},e.organization=function(e){return void 0===e&&(e={}),t({},n(e),{type:"Organization"})},e.paragraph=function(e){return t({},n(e),{type:"Paragraph"})},e.parameter=function(e){return t({},n(e),{type:"Parameter"})},e.periodical=function(e){return void 0===e&&(e={}),t({},n(e),{type:"Periodical"})},e.person=function(e){return void 0===e&&(e={}),t({},n(e),{type:"Person"})},e.postalAddress=function(e){return void 0===e&&(e={}),t({},n(e),{type:"PostalAddress"})},e.product=function(e){return void 0===e&&(e={}),t({},n(e),{type:"Product"})},e.propertyValue=function(e){return t({},n(e),{type:"PropertyValue"})},e.publicationIssue=function(e){return void 0===e&&(e={}),t({},n(e),{type:"PublicationIssue"})},e.publicationVolume=function(e){return void 0===e&&(e={}),t({},n(e),{type:"PublicationVolume"})},e.quote=function(e){return t({},n(e),{type:"Quote"})},e.quoteBlock=function(e){return t({},n(e),{type:"QuoteBlock"})},e.review=function(e){return void 0===e&&(e={}),t({},n(e),{type:"Review"})},e.softwareApplication=function(e){return void 0===e&&(e={}),t({},n(e),{type:"SoftwareApplication"})},e.softwareEnvironment=function(e){return t({},n(e),{type:"SoftwareEnvironment"})},e.softwareSession=function(e){return void 0===e&&(e={}),t({},n(e),{type:"SoftwareSession"})},e.softwareSourceCode=function(e){return void 0===e&&(e={}),t({},n(e),{type:"SoftwareSourceCode"})},e.stringValidator=function(e){return void 0===e&&(e={}),t({},n(e),{type:"StringValidator"})},e.strong=function(e){return t({},n(e),{type:"Strong"})},e.subscript=function(e){return t({},n(e),{type:"Subscript"})},e.superscript=function(e){return t({},n(e),{type:"Superscript"})},e.table=function(e){return t({},n(e),{type:"Table"})},e.tableCell=function(e){return void 0===e&&(e={}),t({},n(e),{type:"TableCell"})},e.tableRow=function(e){return t({},n(e),{type:"TableRow"})},e.thematicBreak=function(e){return void 0===e&&(e={}),t({},n(e),{type:"ThematicBreak"})},e.thing=function(e){return void 0===e&&(e={}),t({},n(e),{type:"Thing"})},e.thingTypes=C,e.tupleValidator=function(e){return void 0===e&&(e={}),t({},n(e),{type:"TupleValidator"})},e.unions=I,e.validator=function(e){return void 0===e&&(e={}),t({},n(e),{type:"Validator"})},e.validatorTypes=m,e.variable=function(e){return t({},n(e),{type:"Variable"})},e.version=v,e.versionMajor=S,e.versionMinor=P,e.videoObject=function(e){return t({},n(e),{type:"VideoObject"})},e.volumeMount=function(e){return t({},n(e),{type:"VolumeMount"})}});
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e||self).schema={})}(this,function(e){function t(){return t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},t.apply(this,arguments)}var o,n=function(e){return Object.entries(e).reduce(function(e,o){var n,i=o[1];return void 0===i?e:t({},e,((n={})[o[0]]=i,n))},{})};e.CitationIntentEnumeration=void 0,(o=e.CitationIntentEnumeration||(e.CitationIntentEnumeration={})).AgreesWith="AgreesWith",o.CitesAsAuthority="CitesAsAuthority",o.CitesAsDataSource="CitesAsDataSource",o.CitesAsEvidence="CitesAsEvidence",o.CitesAsMetadataDocument="CitesAsMetadataDocument",o.CitesAsPotentialSolution="CitesAsPotentialSolution",o.CitesAsRecommendedReading="CitesAsRecommendedReading",o.CitesAsRelated="CitesAsRelated",o.CitesAsSourceDocument="CitesAsSourceDocument",o.CitesForInformation="CitesForInformation",o.Compiles="Compiles",o.Confirms="Confirms",o.ContainsAssertionFrom="ContainsAssertionFrom",o.Corrects="Corrects",o.Credits="Credits",o.Critiques="Critiques",o.Derides="Derides",o.Describes="Describes",o.DisagreesWith="DisagreesWith",o.Discusses="Discusses",o.Disputes="Disputes",o.Documents="Documents",o.Extends="Extends",o.GivesBackgroundTo="GivesBackgroundTo",o.GivesSupportTo="GivesSupportTo",o.HasReplyFrom="HasReplyFrom",o.IncludesExcerptFrom="IncludesExcerptFrom",o.IncludesQuotationFrom="IncludesQuotationFrom",o.IsAgreedWithBy="IsAgreedWithBy",o.IsCitedAsAuthorityBy="IsCitedAsAuthorityBy",o.IsCitedAsDataSourceBy="IsCitedAsDataSourceBy",o.IsCitedAsEvidenceBy="IsCitedAsEvidenceBy",o.IsCitedAsMetadataDocumentBy="IsCitedAsMetadataDocumentBy",o.IsCitedAsPontentialSolutionBy="IsCitedAsPontentialSolutionBy",o.IsCitedAsRecommendedReadingBy="IsCitedAsRecommendedReadingBy",o.IsCitedAsRelatedBy="IsCitedAsRelatedBy",o.IsCitedAsSourceDocumentBy="IsCitedAsSourceDocumentBy",o.IsCitedBy="IsCitedBy",o.IsCitedForInformationBy="IsCitedForInformationBy",o.IsCompiledBy="IsCompiledBy",o.IsConfirmedBy="IsConfirmedBy",o.IsCorrectedBy="IsCorrectedBy",o.IsCreditedBy="IsCreditedBy",o.IsCritiquedBy="IsCritiquedBy",o.IsDeridedBy="IsDeridedBy",o.IsDescribedBy="IsDescribedBy",o.IsDisagreedWithBy="IsDisagreedWithBy",o.IsDiscussedBy="IsDiscussedBy",o.IsDisputedBy="IsDisputedBy",o.IsDocumentedBy="IsDocumentedBy",o.IsExtendedBy="IsExtendedBy",o.IsLinkedToBy="IsLinkedToBy",o.IsParodiedBy="IsParodiedBy",o.IsPlagiarizedBy="IsPlagiarizedBy",o.IsQualifiedBy="IsQualifiedBy",o.IsRefutedBy="IsRefutedBy",o.IsRetractedBy="IsRetractedBy",o.IsReviewedBy="IsReviewedBy",o.IsRidiculedBy="IsRidiculedBy",o.IsSpeculatedOnBy="IsSpeculatedOnBy",o.IsSupportedBy="IsSupportedBy",o.IsUpdatedBy="IsUpdatedBy",o.Likes="Likes",o.LinksTo="LinksTo",o.ObtainsBackgroundFrom="ObtainsBackgroundFrom",o.ObtainsSupportFrom="ObtainsSupportFrom",o.Parodies="Parodies",o.Plagiarizes="Plagiarizes",o.ProvidesAssertionFor="ProvidesAssertionFor",o.ProvidesConclusionsFor="ProvidesConclusionsFor",o.ProvidesDataFor="ProvidesDataFor",o.ProvidesExcerptFor="ProvidesExcerptFor",o.ProvidesMethodFor="ProvidesMethodFor",o.ProvidesQuotationFor="ProvidesQuotationFor",o.Qualifies="Qualifies",o.Refutes="Refutes",o.RepliesTo="RepliesTo",o.Retracts="Retracts",o.Reviews="Reviews",o.Ridicules="Ridicules",o.SharesAuthorInstitutionWith="SharesAuthorInstitutionWith",o.SharesAuthorWith="SharesAuthorWith",o.SharesFundingAgencyWith="SharesFundingAgencyWith",o.SharesJournalWith="SharesJournalWith",o.SharesPublicationVenueWith="SharesPublicationVenueWith",o.SpeculatesOn="SpeculatesOn",o.Supports="Supports",o.Updates="Updates",o.UsesConclusionsFrom="UsesConclusionsFrom",o.UsesDataFrom="UsesDataFrom",o.UsesMethodIn="UsesMethodIn";var i={CodeExecutable:"CodeExecutable",CodeChunk:"CodeChunk",CodeExpression:"CodeExpression"},r={Code:"Code",CodeBlock:"CodeBlock",CodeChunk:"CodeChunk",CodeExecutable:"CodeExecutable",CodeExpression:"CodeExpression",CodeFragment:"CodeFragment"},a={ContactPoint:"ContactPoint",PostalAddress:"PostalAddress"},u={CreativeWork:"CreativeWork",Article:"Article",AudioObject:"AudioObject",Claim:"Claim",Collection:"Collection",Comment:"Comment",Datatable:"Datatable",Figure:"Figure",ImageObject:"ImageObject",MediaObject:"MediaObject",Periodical:"Periodical",PublicationIssue:"PublicationIssue",PublicationVolume:"PublicationVolume",Review:"Review",SoftwareApplication:"SoftwareApplication",SoftwareSourceCode:"SoftwareSourceCode",Table:"Table",VideoObject:"VideoObject"},s={Entity:"Entity",ArrayValidator:"ArrayValidator",Article:"Article",AudioObject:"AudioObject",BooleanValidator:"BooleanValidator",Brand:"Brand",CitationIntentEnumeration:"CitationIntentEnumeration",Cite:"Cite",CiteGroup:"CiteGroup",Claim:"Claim",Code:"Code",CodeBlock:"CodeBlock",CodeChunk:"CodeChunk",CodeError:"CodeError",CodeExecutable:"CodeExecutable",CodeExpression:"CodeExpression",CodeFragment:"CodeFragment",Collection:"Collection",Comment:"Comment",ConstantValidator:"ConstantValidator",ContactPoint:"ContactPoint",CreativeWork:"CreativeWork",Datatable:"Datatable",DatatableColumn:"DatatableColumn",Date:"Date",DefinedTerm:"DefinedTerm",Delete:"Delete",Emphasis:"Emphasis",EnumValidator:"EnumValidator",Enumeration:"Enumeration",Figure:"Figure",Function:"Function",Grant:"Grant",Heading:"Heading",ImageObject:"ImageObject",Include:"Include",IntegerValidator:"IntegerValidator",Link:"Link",List:"List",ListItem:"ListItem",Mark:"Mark",Math:"Math",MathBlock:"MathBlock",MathFragment:"MathFragment",MediaObject:"MediaObject",MonetaryGrant:"MonetaryGrant",NontextualAnnotation:"NontextualAnnotation",Note:"Note",NumberValidator:"NumberValidator",Organization:"Organization",Paragraph:"Paragraph",Parameter:"Parameter",Periodical:"Periodical",Person:"Person",PostalAddress:"PostalAddress",Product:"Product",PropertyValue:"PropertyValue",PublicationIssue:"PublicationIssue",PublicationVolume:"PublicationVolume",Quote:"Quote",QuoteBlock:"QuoteBlock",Review:"Review",SoftwareApplication:"SoftwareApplication",SoftwareEnvironment:"SoftwareEnvironment",SoftwareSession:"SoftwareSession",SoftwareSourceCode:"SoftwareSourceCode",StringValidator:"StringValidator",Strong:"Strong",Subscript:"Subscript",Superscript:"Superscript",Table:"Table",TableCell:"TableCell",TableRow:"TableRow",ThematicBreak:"ThematicBreak",Thing:"Thing",TupleValidator:"TupleValidator",Validator:"Validator",Variable:"Variable",VideoObject:"VideoObject",VolumeMount:"VolumeMount"},d={Enumeration:"Enumeration",CitationIntentEnumeration:"CitationIntentEnumeration"},c={Grant:"Grant",MonetaryGrant:"MonetaryGrant"},l={Mark:"Mark",Delete:"Delete",Emphasis:"Emphasis",NontextualAnnotation:"NontextualAnnotation",Quote:"Quote",Strong:"Strong",Subscript:"Subscript",Superscript:"Superscript"},p={Math:"Math",MathBlock:"MathBlock",MathFragment:"MathFragment"},y={MediaObject:"MediaObject",AudioObject:"AudioObject",ImageObject:"ImageObject",VideoObject:"VideoObject"},C={Thing:"Thing",Article:"Article",AudioObject:"AudioObject",Brand:"Brand",CitationIntentEnumeration:"CitationIntentEnumeration",Claim:"Claim",Collection:"Collection",Comment:"Comment",ContactPoint:"ContactPoint",CreativeWork:"CreativeWork",Datatable:"Datatable",DatatableColumn:"DatatableColumn",DefinedTerm:"DefinedTerm",Enumeration:"Enumeration",Figure:"Figure",Grant:"Grant",ImageObject:"ImageObject",ListItem:"ListItem",MediaObject:"MediaObject",MonetaryGrant:"MonetaryGrant",Organization:"Organization",Periodical:"Periodical",Person:"Person",PostalAddress:"PostalAddress",Product:"Product",PropertyValue:"PropertyValue",PublicationIssue:"PublicationIssue",PublicationVolume:"PublicationVolume",Review:"Review",SoftwareApplication:"SoftwareApplication",SoftwareEnvironment:"SoftwareEnvironment",SoftwareSession:"SoftwareSession",SoftwareSourceCode:"SoftwareSourceCode",Table:"Table",VideoObject:"VideoObject",VolumeMount:"VolumeMount"},m={Validator:"Validator",ArrayValidator:"ArrayValidator",BooleanValidator:"BooleanValidator",ConstantValidator:"ConstantValidator",EnumValidator:"EnumValidator",IntegerValidator:"IntegerValidator",NumberValidator:"NumberValidator",StringValidator:"StringValidator",TupleValidator:"TupleValidator"},f={Claim:"Claim",CodeBlock:"CodeBlock",CodeChunk:"CodeChunk",Collection:"Collection",Figure:"Figure",Heading:"Heading",Include:"Include",List:"List",MathBlock:"MathBlock",Paragraph:"Paragraph",QuoteBlock:"QuoteBlock",Table:"Table",ThematicBreak:"ThematicBreak"},b={AudioObject:"AudioObject",Cite:"Cite",CiteGroup:"CiteGroup",CodeExpression:"CodeExpression",CodeFragment:"CodeFragment",Delete:"Delete",Emphasis:"Emphasis",ImageObject:"ImageObject",Link:"Link",MathFragment:"MathFragment",NontextualAnnotation:"NontextualAnnotation",Note:"Note",Parameter:"Parameter",Quote:"Quote",Strong:"Strong",Subscript:"Subscript",Superscript:"Superscript",VideoObject:"VideoObject"},I={CodeExecutableTypes:i,CodeTypes:r,ContactPointTypes:a,CreativeWorkTypes:u,EntityTypes:s,EnumerationTypes:d,GrantTypes:c,MarkTypes:l,MathTypes:p,MediaObjectTypes:y,ThingTypes:C,ValidatorTypes:m,BlockContent:f,InlineContent:b},g=function(e){var t=typeof e;return null===e||"boolean"===t||"number"===t||"string"===t||!!Array.isArray(e)||"object"===t&&!Object.prototype.hasOwnProperty.call(e,"type")},B=function(e){return null!=e&&Object.prototype.hasOwnProperty.call(e,"type")},h=function(e,t){return B(t)&&t.type===e},A=function(e,t){return B(t)&&t.type in I[e]},v="1.13.0",S=v.split(".")[0],P=v.split(".").slice(0,2).join(".");e.arrayValidator=function(e){return void 0===e&&(e={}),t({},n(e),{type:"ArrayValidator"})},e.article=function(e){return void 0===e&&(e={}),t({},n(e),{type:"Article"})},e.audioObject=function(e){return t({},n(e),{type:"AudioObject"})},e.blockContentTypes=f,e.booleanValidator=function(e){return void 0===e&&(e={}),t({},n(e),{type:"BooleanValidator"})},e.brand=function(e){return t({},n(e),{type:"Brand"})},e.cite=function(e){return t({},n(e),{type:"Cite"})},e.citeGroup=function(e){return t({},n(e),{type:"CiteGroup"})},e.claim=function(e){return t({},n(e),{type:"Claim"})},e.code=function(e){return t({},n(e),{type:"Code"})},e.codeBlock=function(e){return t({},n(e),{type:"CodeBlock"})},e.codeChunk=function(e){return t({},n(e),{type:"CodeChunk"})},e.codeError=function(e){return t({},n(e),{type:"CodeError"})},e.codeExecutable=function(e){return t({},n(e),{type:"CodeExecutable"})},e.codeExecutableTypes=i,e.codeExpression=function(e){return t({},n(e),{type:"CodeExpression"})},e.codeFragment=function(e){return t({},n(e),{type:"CodeFragment"})},e.codeTypes=r,e.collection=function(e){return t({},n(e),{type:"Collection"})},e.comment=function(e){return void 0===e&&(e={}),t({},n(e),{type:"Comment"})},e.constantValidator=function(e){return void 0===e&&(e={}),t({},n(e),{type:"ConstantValidator"})},e.contactPoint=function(e){return void 0===e&&(e={}),t({},n(e),{type:"ContactPoint"})},e.contactPointTypes=a,e.creativeWork=function(e){return void 0===e&&(e={}),t({},n(e),{type:"CreativeWork"})},e.creativeWorkTypes=u,e.datatable=function(e){return t({},n(e),{type:"Datatable"})},e.datatableColumn=function(e){return t({},n(e),{type:"DatatableColumn"})},e.date=function(e){return t({},n(e),{type:"Date"})},e.definedTerm=function(e){return t({},n(e),{type:"DefinedTerm"})},e.del=function(e){return t({},n(e),{type:"Delete"})},e.emphasis=function(e){return t({},n(e),{type:"Emphasis"})},e.entity=function(e){return void 0===e&&(e={}),t({},n(e),{type:"Entity"})},e.entityTypes=s,e.enumValidator=function(e){return void 0===e&&(e={}),t({},n(e),{type:"EnumValidator"})},e.enumeration=function(e){return void 0===e&&(e={}),t({},n(e),{type:"Enumeration"})},e.enumerationTypes=d,e.figure=function(e){return void 0===e&&(e={}),t({},n(e),{type:"Figure"})},e.function_=function(e){return void 0===e&&(e={}),t({},n(e),{type:"Function"})},e.grant=function(e){return void 0===e&&(e={}),t({},n(e),{type:"Grant"})},e.grantTypes=c,e.heading=function(e){return t({},n(e),{type:"Heading"})},e.imageObject=function(e){return t({},n(e),{type:"ImageObject"})},e.include=function(e){return t({},n(e),{type:"Include"})},e.inlineContentTypes=b,e.integerValidator=function(e){return void 0===e&&(e={}),t({},n(e),{type:"IntegerValidator"})},e.isA=h,e.isBlockContent=function(e){return A("BlockContent",e)},e.isEntity=B,e.isIn=A,e.isInTypeMap=function(e){return function(t){return!!B(t)&&Object.keys(e).includes(t.type)}},e.isInlineContent=function(e){return g(e)||A("InlineContent",e)},e.isMember=function(e){return function(t){return A(e,t)}},e.isPrimitive=g,e.isType=function(e){return function(t){return h(e,t)}},e.link=function(e){return t({},n(e),{type:"Link"})},e.list=function(e){return t({},n(e),{type:"List"})},e.listItem=function(e){return void 0===e&&(e={}),t({},n(e),{type:"ListItem"})},e.mark=function(e){return t({},n(e),{type:"Mark"})},e.markTypes=l,e.math=function(e){return t({},n(e),{type:"Math"})},e.mathBlock=function(e){return t({},n(e),{type:"MathBlock"})},e.mathFragment=function(e){return t({},n(e),{type:"MathFragment"})},e.mathTypes=p,e.mediaObject=function(e){return t({},n(e),{type:"MediaObject"})},e.mediaObjectTypes=y,e.monetaryGrant=function(e){return void 0===e&&(e={}),t({},n(e),{type:"MonetaryGrant"})},e.nodeType=function(e){return null===e?"Null":"boolean"==typeof e?"Boolean":"number"==typeof e?"Number":"string"==typeof e?"String":Array.isArray(e)?"Array":B(e)?e.type:"Object"},e.nontextualAnnotation=function(e){return t({},n(e),{type:"NontextualAnnotation"})},e.note=function(e){return t({},n(e),{type:"Note"})},e.numberValidator=function(e){return void 0===e&&(e={}),t({},n(e),{type:"NumberValidator"})},e.organization=function(e){return void 0===e&&(e={}),t({},n(e),{type:"Organization"})},e.paragraph=function(e){return t({},n(e),{type:"Paragraph"})},e.parameter=function(e){return t({},n(e),{type:"Parameter"})},e.periodical=function(e){return void 0===e&&(e={}),t({},n(e),{type:"Periodical"})},e.person=function(e){return void 0===e&&(e={}),t({},n(e),{type:"Person"})},e.postalAddress=function(e){return void 0===e&&(e={}),t({},n(e),{type:"PostalAddress"})},e.product=function(e){return void 0===e&&(e={}),t({},n(e),{type:"Product"})},e.propertyValue=function(e){return t({},n(e),{type:"PropertyValue"})},e.publicationIssue=function(e){return void 0===e&&(e={}),t({},n(e),{type:"PublicationIssue"})},e.publicationVolume=function(e){return void 0===e&&(e={}),t({},n(e),{type:"PublicationVolume"})},e.quote=function(e){return t({},n(e),{type:"Quote"})},e.quoteBlock=function(e){return t({},n(e),{type:"QuoteBlock"})},e.review=function(e){return void 0===e&&(e={}),t({},n(e),{type:"Review"})},e.softwareApplication=function(e){return void 0===e&&(e={}),t({},n(e),{type:"SoftwareApplication"})},e.softwareEnvironment=function(e){return t({},n(e),{type:"SoftwareEnvironment"})},e.softwareSession=function(e){return void 0===e&&(e={}),t({},n(e),{type:"SoftwareSession"})},e.softwareSourceCode=function(e){return void 0===e&&(e={}),t({},n(e),{type:"SoftwareSourceCode"})},e.stringValidator=function(e){return void 0===e&&(e={}),t({},n(e),{type:"StringValidator"})},e.strong=function(e){return t({},n(e),{type:"Strong"})},e.subscript=function(e){return t({},n(e),{type:"Subscript"})},e.superscript=function(e){return t({},n(e),{type:"Superscript"})},e.table=function(e){return t({},n(e),{type:"Table"})},e.tableCell=function(e){return void 0===e&&(e={}),t({},n(e),{type:"TableCell"})},e.tableRow=function(e){return t({},n(e),{type:"TableRow"})},e.thematicBreak=function(e){return void 0===e&&(e={}),t({},n(e),{type:"ThematicBreak"})},e.thing=function(e){return void 0===e&&(e={}),t({},n(e),{type:"Thing"})},e.thingTypes=C,e.tupleValidator=function(e){return void 0===e&&(e={}),t({},n(e),{type:"TupleValidator"})},e.unions=I,e.validator=function(e){return void 0===e&&(e={}),t({},n(e),{type:"Validator"})},e.validatorTypes=m,e.variable=function(e){return t({},n(e),{type:"Variable"})},e.version=v,e.versionMajor=S,e.versionMinor=P,e.videoObject=function(e){return t({},n(e),{type:"VideoObject"})},e.volumeMount=function(e){return t({},n(e),{type:"VolumeMount"})}});
//# sourceMappingURL=schema.umd.js.map

@@ -55,2 +55,48 @@ {

},
"codeDependencies": {
"@id": "stencila:codeDependencies",
"description": "The upstream dependencies of the code.",
"type": "array",
"items": {
"anyOf": [
{
"$ref": "CodeChunk.schema.json"
},
{
"$ref": "CodeExpression.schema.json"
},
{
"$ref": "Parameter.schema.json"
}
]
},
"from": "CodeExecutable",
"isArray": true,
"isPlural": true,
"aliases": [
"codeDependencie"
]
},
"codeDependents": {
"@id": "stencila:codeDependents",
"description": "The downstream dependents of the code.",
"type": "array",
"items": {
"anyOf": [
{
"$ref": "CodeChunk.schema.json"
},
{
"$ref": "CodeExpression.schema.json"
}
]
},
"$comment": "Note that in comparison to `codeDependencies`, this property does not allow for `Parameter`\ndependents (because parameters are never dependent upon others).\n",
"from": "CodeExecutable",
"isArray": true,
"isPlural": true,
"aliases": [
"codeDependent"
]
},
"compileDigest": {

@@ -68,2 +114,14 @@ "@id": "stencila:compileDigest",

},
"executeRequired": {
"@id": "stencila:executeRequired",
"description": "Whether, and why, a node requires execution or re-execution.",
"enum": [
"No",
"NeverExecuted",
"SemanticsChanged",
"DependenciesChanged"
],
"$comment": "Derived from a comparison of `compileDigest` and `executeDigest`.\n`No`: no re-execution is required, the semantics of the code and its dependencies has not changed\nsince it was last executed.\n`NeverExecuted`: execution is required because the code has never been executed (or any previous\nexecution was not persisted in its state).\n`SemanticsChanged`: re-execution is required because the semantics of the code has changed since it was\nlast executed.\n`DependenciesChanged`: the semantics of one or more dependencies (including transitive dependencies) \nchanged since it was last executed.\n",
"from": "CodeExecutable"
},
"executeStatus": {

@@ -162,2 +220,4 @@ "@id": "stencila:executeStatus",

"encodingFormat": "mediaType",
"codeDependencie": "codeDependencies",
"codeDependent": "codeDependents",
"error": "errors",

@@ -164,0 +224,0 @@ "output": "outputs"

@@ -58,2 +58,48 @@ {

},
"codeDependencies": {
"@id": "stencila:codeDependencies",
"description": "The upstream dependencies of the code.",
"type": "array",
"items": {
"anyOf": [
{
"$ref": "CodeChunk.schema.json"
},
{
"$ref": "CodeExpression.schema.json"
},
{
"$ref": "Parameter.schema.json"
}
]
},
"from": "CodeExecutable",
"isArray": true,
"isPlural": true,
"aliases": [
"codeDependencie"
]
},
"codeDependents": {
"@id": "stencila:codeDependents",
"description": "The downstream dependents of the code.",
"type": "array",
"items": {
"anyOf": [
{
"$ref": "CodeChunk.schema.json"
},
{
"$ref": "CodeExpression.schema.json"
}
]
},
"$comment": "Note that in comparison to `codeDependencies`, this property does not allow for `Parameter`\ndependents (because parameters are never dependent upon others).\n",
"from": "CodeExecutable",
"isArray": true,
"isPlural": true,
"aliases": [
"codeDependent"
]
},
"compileDigest": {

@@ -71,2 +117,14 @@ "@id": "stencila:compileDigest",

},
"executeRequired": {
"@id": "stencila:executeRequired",
"description": "Whether, and why, a node requires execution or re-execution.",
"enum": [
"No",
"NeverExecuted",
"SemanticsChanged",
"DependenciesChanged"
],
"$comment": "Derived from a comparison of `compileDigest` and `executeDigest`.\n`No`: no re-execution is required, the semantics of the code and its dependencies has not changed\nsince it was last executed.\n`NeverExecuted`: execution is required because the code has never been executed (or any previous\nexecution was not persisted in its state).\n`SemanticsChanged`: re-execution is required because the semantics of the code has changed since it was\nlast executed.\n`DependenciesChanged`: the semantics of one or more dependencies (including transitive dependencies) \nchanged since it was last executed.\n",
"from": "CodeExecutable"
},
"executeStatus": {

@@ -132,2 +190,4 @@ "@id": "stencila:executeStatus",

"encodingFormat": "mediaType",
"codeDependencie": "codeDependencies",
"codeDependent": "codeDependents",
"error": "errors"

@@ -134,0 +194,0 @@ },

@@ -55,2 +55,48 @@ {

},
"codeDependencies": {
"@id": "stencila:codeDependencies",
"description": "The upstream dependencies of the code.",
"type": "array",
"items": {
"anyOf": [
{
"$ref": "CodeChunk.schema.json"
},
{
"$ref": "CodeExpression.schema.json"
},
{
"$ref": "Parameter.schema.json"
}
]
},
"from": "CodeExecutable",
"isArray": true,
"isPlural": true,
"aliases": [
"codeDependencie"
]
},
"codeDependents": {
"@id": "stencila:codeDependents",
"description": "The downstream dependents of the code.",
"type": "array",
"items": {
"anyOf": [
{
"$ref": "CodeChunk.schema.json"
},
{
"$ref": "CodeExpression.schema.json"
}
]
},
"$comment": "Note that in comparison to `codeDependencies`, this property does not allow for `Parameter`\ndependents (because parameters are never dependent upon others).\n",
"from": "CodeExecutable",
"isArray": true,
"isPlural": true,
"aliases": [
"codeDependent"
]
},
"compileDigest": {

@@ -68,2 +114,14 @@ "@id": "stencila:compileDigest",

},
"executeRequired": {
"@id": "stencila:executeRequired",
"description": "Whether, and why, a node requires execution or re-execution.",
"enum": [
"No",
"NeverExecuted",
"SemanticsChanged",
"DependenciesChanged"
],
"$comment": "Derived from a comparison of `compileDigest` and `executeDigest`.\n`No`: no re-execution is required, the semantics of the code and its dependencies has not changed\nsince it was last executed.\n`NeverExecuted`: execution is required because the code has never been executed (or any previous\nexecution was not persisted in its state).\n`SemanticsChanged`: re-execution is required because the semantics of the code has changed since it was\nlast executed.\n`DependenciesChanged`: the semantics of one or more dependencies (including transitive dependencies) \nchanged since it was last executed.\n",
"from": "CodeExecutable"
},
"executeStatus": {

@@ -134,4 +192,6 @@ "@id": "stencila:executeStatus",

"encodingFormat": "mediaType",
"codeDependencie": "codeDependencies",
"codeDependent": "codeDependents",
"error": "errors"
}
}
{
"name": "@stencila/schema",
"version": "1.13.0",
"version": "1.14.0",
"description": "Extensions to schema.org to support semantic, composable, parameterize-able and executable documents",

@@ -5,0 +5,0 @@ "files": [

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

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